Talk:Caesar cipher: Difference between revisions

Content added Content deleted
Line 11: Line 11:
::::: Probably 16 bit wide characters and byte addressing? --[[User:Rdm|Rdm]] 11:19, 19 September 2011 (UTC)
::::: Probably 16 bit wide characters and byte addressing? --[[User:Rdm|Rdm]] 11:19, 19 September 2011 (UTC)
:::::: Number one, the characters were eventually shaved off: I was using a 3-letter variable name instead of one char! :P Two, the line ''t:=&s'' retrieves a memory address of the string and stores it in ''t''. The code ''*t'' retrieves a byte (actually, a character-wide number) at ''t''. To advance through the string, we must increment t. I was using it on a Unicode build, so 16 bits. On an ANSI build, we could probably remove <code>,t+=2</code> and use <code>While *t++</code> or the like. (Although, incrementing in the while would screw up the use of *t in the Chr() statement.) I will add a note that the golfed version works on Unicode. --[[User:Crazyfirex|Crazyfirex]] 22:09, 19 September 2011 (UTC)
:::::: Number one, the characters were eventually shaved off: I was using a 3-letter variable name instead of one char! :P Two, the line ''t:=&s'' retrieves a memory address of the string and stores it in ''t''. The code ''*t'' retrieves a byte (actually, a character-wide number) at ''t''. To advance through the string, we must increment t. I was using it on a Unicode build, so 16 bits. On an ANSI build, we could probably remove <code>,t+=2</code> and use <code>While *t++</code> or the like. (Although, incrementing in the while would screw up the use of *t in the Chr() statement.) I will add a note that the golfed version works on Unicode. --[[User:Crazyfirex|Crazyfirex]] 22:09, 19 September 2011 (UTC)
::: For what it's worth, a scheme that discarded Greek characters would have been useless to Caesar himself. (Opinion is divided as to whether he expired with "Et tu, Brute" or "καὶ σὺ, τέκνον"). Perhaps, in any case, all such discussions should by now incline to UTF-8 by default. The shadows already grow long on ASCII and the Pax Americana. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 14:21, 4 November 2016 (UTC)


==Undiscussed deletion (JavaScript) June 13 2016==
==Undiscussed deletion (JavaScript) June 13 2016==