Skip to main content
11 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Feb 13, 2018 at 14:15 comment added Martin Ender @Christopher This has nothing to do with rewriting the interpreter in another language. The source code of your program in memory is 2 bytes, not 3. Whether you create that string with a literal (which takes more than 2 characters) or read it from a file (which would contain 2 characters) doesn't matter.
Feb 13, 2018 at 12:59 comment added user63187 @martin can't do that without rewriting the language in a different language. Since I don't plan on using it anymore I really have no reason
Feb 13, 2018 at 10:31 comment added Martin Ender @Christopher I don't think Dennis had enough context to answer that. The size of a program is the actual size of the byte representation of the source code. Writing "1\n" in JavaScript code creates a string containing two characters, so the size of the program should be 2 bytes. You could replace that string literal with a short expression that loads the source code from a text file. That text file would need to contain a literal linefeed, not \n, and its size would be 2 bytes.
Feb 11, 2018 at 21:51 comment added user63187 @Jakob chat.stackexchange.com/transcript/message/42803737#42803737
Feb 11, 2018 at 21:48 history edited user63187 CC BY-SA 3.0
deleted 26 characters in body
Aug 24, 2017 at 21:25 comment added Jakob continuing in chat
Aug 23, 2017 at 21:24 comment added Jakob Could you provide a reference to the thread on Meta? You posted a 3-byte solution here, but the solution you link to is 2 bytes. This doesn't make sense to me.
Aug 23, 2017 at 1:32 comment added Jakob You're referring to the last line of code, correct? That is an actual newline; the string literal is 2 bytes (i and a newline), but its representation in JavaScript source is three (i\n). Your submission here should be encoded as text, not JavaScript source.
Aug 22, 2017 at 22:38 comment added Jakob You should indicate a newline by leaving an empty line in the code block, not by using an escape sequence.
Jul 15, 2017 at 16:15 history answered user63187 CC BY-SA 3.0