@Razetime Unicode version: ⋄enc←{p←?(2*16)⍨¨⍵⋄(⎕ucs p)(⎕ucs p+⎕ucs⍵)}, and then can ⋄⊢(p c)←enc 'helló'. Dec is pretty simple: ⋄dec←{⎕ucs(⎕ucs⍵)-⎕ucs⍺}. then ⋄p dec c
@Adám it seems to be a problem with word splitting. Dyalog interprets ⎕ucs⍵ as two separate symbols, but DSE interprets it as only one, which isn't on the valid tokens list
Background
A one-time pad is a form of encryption that has been proven impossible to crack if used properly.
Encryption is performed by taking a plaintext (comprised of only letters A-Z) and generating a random string on the same length (also only letters). This string acts as the key. Each cha...
CMP: In the new array notation, should x ← 10 ⋄ c ← ( a: x ← 20 ) ⋄ x give 20 (like in JavaScript) or should it give 10, that is, the expression for a member of an object is done in a temporary scope.
@xpqz let me ask you a question: do you usually save functions in files?
I was taking RIDE for a spin and editing functions and fixing them seems similar to the windows terp. but then saving a dfn/tradfn to a file... I don't think there's a menu item for that :P
I'd love to see a VS Code plugin for Dyalog that simply allowed me to save my work in a single file and allow me to run the debugger through its interface,
@RGS I've not tried it with 18.0. I last used it when it was being developed (a long time ago...) It was worked on primarily by Gil Athoraya (github.com/OptimaSystems/vscode-apl-language-client) but I don't think it's being actively worked on.
In the JavaScript BQN old interpreter (tenuous link to this channel), what is v in this line? github.com/mlochbaum/BQN/blob/…
In the JS console, get1([[10,20,30], 1]) returns 20, which matches the i[0][i[1]]; part of the linked line. Where does the anonymous function involving v come into it
@TessellatingHeckler (v=>(assert(v!==null),v))(…) is an immediately called lambda; All it does is check that the … isn't null, and in that case, returns it