ngn has only given the sources to TIO, and now only the executable is there (he also asked Dennis to delete the sources after pulling)...hm, what if I download that?
@Adám technically no - you can use it only "for a quick test and for golfing purposes" as mentioned in my homepage, but of course I wouldn't mind giving access to people who show genuine interest in k
@ngn oh, almighty Dennis, it looks like a little off-topic conversation sprouted in here, but we don't have the power you have, so can you please do us that one little favor of moving messages, to the great APL orchard?
@EriktheOutgolfer my team of laywers will be watching you - the moment you start using ngn/k for anything but quick testing and golfing, a swat team will break in and arrest you :)
in←(⎕NEW⊂'Clipboard').Text
⍞←'Copy next part and press Enter'
in,←(⎕NEW⊂'Clipboard').Text⊣⍞
⎕IO←0
(⎕UCS hex⍳(part1,part2)∩hex←16↑⎕D,⎕A) ⎕NAPPEND 'k' ⎕NCREATE 0
@Adám wow why would I do that when I can just click ngn's link (or write up my own code, it's not that hard), remove the 0x part, and then xxd -r the hex?
@Cowsquack ascii is 7-bit (0-127), non-ascii chars need to be encoded somehow, usually as utf8 which uses multiple bytes with a set 8-th bit (codepoints 128-255) to represent a single char
@Cowsquack the simplest thing I could do to support unicode is to treat any char beyond U+007F as a letter - then I wouldn't need to do any utf8 decoding
of course, unicode has many non-letters and that may be confusing...
@Cowsquack example: "LΛ" is two codepoints (U+004C,U+039B) but three bytes (0x4cce9b); in order to determine if the second character is really a letter, I would have to decode the bytes
but if I treat any byte >128 as a letter, I wouldn't need to decode - from k's point of view LΛ would look like a 3-letters variable name
as 2\ means "as many digits as necessary", 2\7 is 1 1 1 and 2\8 is 1 0 0 0 - they have different lengths, so I could return (1 1 1;1 0 0 0) or pad with leading zeros: (0 1 1 1;1 0 0 0)