Talk:2/9 of an esolang
Jump to navigation
Jump to search
What should the interpreter/compiler do with non-command characters?
I finally get it that Hello, world! program begins with non-printable character, but what does it do? I only get it thatcis for restriction to the first character. --YamTokTpaFa (talk) 06:28, 3 January 2020 (UTC)
Should line number begin with 0 or 1?
--YamTokTpaFa (talk) 06:37, 3 January 2020 (UTC)
- I've just realized that that non-printable character, with beginning of Hello, World! program, is C288 in hexadecimal (perhaps in UTF-8), which seems to be 520 in decimal, if I ignore some bit patterns. The specifications says that that character needs to be expressed in the JavaScript expression
String.fromCharCode((130*[line number])+6)
, but seemed not satisfying the specification.
- Then I googled the function and realized that that function recognizes a sequence of integers as UTF-16 string. Then finally realized it was 136, which the first line number begins with 136.--YamTokTpaFa (talk) 11:46, 18 April 2020 (UTC)