BQNPAD
11–17 of 17 posts
Re: BQNPAD
#12Earlier quoted context omitted.
"APL"+{⊑(+`⌽)⍟𝕩 1‿1}¨↕3 "BQN" ( https://bqnpad.mechanize.systems/s?bqn=eyJkb2MiOiIjIFdlbGNvb... )
Python: "".join(chr(ord(c)+1) for c in "APL") → 'BQM'
You're python code is spelled just "APL"+1 in BQN.
Array languages implicitly so a "foreach" when there is a scalar operand
Re: BQNPAD
#13Earlier quoted context omitted.
Python: "".join(chr(ord(c)+1) for c in "APL") → 'BQM'
The comment you're replying to is the BQN code that adds a Fibonacci number to each letter of the "APL" string. You're python code is spelled just "APL"+1 in BQN. Array languages implicitly so a "foreach" when there is a scalar operand
Oh, right.
> [Your] python code is spelled just "APL"+1 in BQN.
Apparently APL has very weak typing, if "A"+1 is "B".
Re: BQNPAD
#14Earlier quoted context omitted.
The comment you're replying to is the BQN code that adds a Fibonacci number to each letter of the "APL" string. You're python code is spelled just "APL"+1 in BQN. Array languages implicitly so a "foreach" when there is a scalar operand
> * The comment you're replying to is the BQN code that adds a Fibonacci number to each letter of the "APL" string.* Oh, right. > [Your] python code is spelled just "APL"+1 in BQN. Apparently APL has very weak typing, if "A"+1 is "B".
(it's the same logic that's behind any language with pointers - you can add a number to a pointer, subtract a number from a pointer, and subtract two pointers to get a number)
[0]: https://mlochbaum.github.io/BQN/doc/arithmetic.html#characte...
Re: BQNPAD
#15For more info: https://mlochbaum.github.io/BQN/doc/quick.html BQN is an array language similar to APL, it has 2 VM runtimes, one in javascript (for this engine) and one in C. BQN stands for Big Query Notation language, but is a play on being better than APL -> BQN
Unfortunately (missed opportunity): "APL"+1 "BQM"
Best Quality Marshall
Bizarrely Quirky Matrices
Re: BQNPAD
#16Earlier quoted context omitted.
> * The comment you're replying to is the BQN code that adds a Fibonacci number to each letter of the "APL" string.* Oh, right. > [Your] python code is spelled just "APL"+1 in BQN. Apparently APL has very weak typing, if "A"+1 is "B".
APL doesn't do this character arithmetic; BQN does. But it's not weak typing, it's an intentionally designed feature[0]; so things like "a"+1.2 or "a"+"b" error. It's quite useful too - you can add the null character to a number (or list of numbers) to convert code points to respective characters (or subtract to do the inverse). Or do things like '0'+x to convert a list of numbers to a string of digits (and x-'0' for…
Your average "very weakly" typed language will happily do "APL"+1 == "APL1"
Re: BQNPAD
#17For more info: https://mlochbaum.github.io/BQN/doc/quick.html BQN is an array language similar to APL, it has 2 VM runtimes, one in javascript (for this engine) and one in C. BQN stands for Big Query Notation language, but is a play on being better than APL -> BQN
Unfortunately (missed opportunity): "APL"+1 "BQM"