#bqn — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #bqn, aggregated by home.social.
-
-
-
-
-
How easy it is to construct an APL or K-like programming language(by Mohammed Jamal Alrujayi)
This was an amazing article I found on the orange site published just last week. He notes that although APL and K are of the Harvard school of languages, while Lisp is of the MIT school, they are fundamentally related in their minimalism and in how the languages are structured around a single data type: Lists for Lisp, and vectors/matrices for APL. The two schools of thought were unified in the K programming language by Arthur Whitney:
On kparc.com (his personal website) he listed K’s lineage simply as “lisp and apl,” linking to Iverson’s Turing paper and Perlis’s lyrical programming.
I didn’t know much about Iverson’s family of languages (#APL, J, #BQN, K, and so on), but seeing it embedded in just a few lines of code in a high-level language like #Python suddenly makes it so much easier to understand. The syntactic keywords are basically composed of either infix operators of mapping operators, the data (constants or variables) are like leaves of the syntax tree. So all you need are three lambdas: “atom” checks if it’s argument is a number, monad serves as
applyormapdepending on the type of it’s arguments and abstracts it into a lambda, and “dyad” constructs an infix operator abstracted into a curried lambda. You only need those three rules!atom = lambda x: isinstance(x, (int, float, str)) monad = lambda f: lambda x: f(x) if atom(x) else list(map(monad(f), x)) dyad = lambda f: (lambda x, y: f(x, y) if atom(x) and atom(y) else list(map(lambda yi: dyad(f)(x, yi), y)) if atom(x) else list(map(lambda xi: dyad(f)(xi, y), x)) if atom(y) else list(map(lambda xi, yi: dyad(f)(xi, yi), x, y)))Now I definitely want to try this as Scheme macros!
#tech #software #Lisp #APL #KProgrammingLanguage #JProgrammingLanguage #ProgrammingLanguages #PLT
-
How easy it is to construct an APL or K-like programming language(by Mohammed Jamal Alrujayi)
This was an amazing article I found on the orange site published just last week. He notes that although APL and K are of the Harvard school of languages, while Lisp is of the MIT school, they are fundamentally related in their minimalism and in how the languages are structured around a single data type: Lists for Lisp, and vectors/matrices for APL. The two schools of thought were unified in the K programming language by Arthur Whitney:
On kparc.com (his personal website) he listed K’s lineage simply as “lisp and apl,” linking to Iverson’s Turing paper and Perlis’s lyrical programming.
I didn’t know much about Iverson’s family of languages (#APL, J, #BQN, K, and so on), but seeing it embedded in just a few lines of code in a high-level language like #Python suddenly makes it so much easier to understand. The syntactic keywords are basically composed of either infix operators of mapping operators, the data (constants or variables) are like leaves of the syntax tree. So all you need are three lambdas: “atom” checks if it’s argument is a number, monad serves as
applyormapdepending on the type of it’s arguments and abstracts it into a lambda, and “dyad” constructs an infix operator abstracted into a curried lambda. You only need those three rules!atom = lambda x: isinstance(x, (int, float, str)) monad = lambda f: lambda x: f(x) if atom(x) else list(map(monad(f), x)) dyad = lambda f: (lambda x, y: f(x, y) if atom(x) and atom(y) else list(map(lambda yi: dyad(f)(x, yi), y)) if atom(x) else list(map(lambda xi: dyad(f)(xi, y), x)) if atom(y) else list(map(lambda xi, yi: dyad(f)(xi, yi), x, y)))Now I definitely want to try this as Scheme macros!
#tech #software #Lisp #APL #KProgrammingLanguage #JProgrammingLanguage #ProgrammingLanguages #PLT
-
How easy it is to construct an APL or K-like programming language(by Mohammed Jamal Alrujayi)
This was an amazing article I found on the orange site published just last week. He notes that although APL and K are of the Harvard school of languages, while Lisp is of the MIT school, they are fundamentally related in their minimalism and in how the languages are structured around a single data type: Lists for Lisp, and vectors/matrices for APL. The two schools of thought were unified in the K programming language by Arthur Whitney:
On kparc.com (his personal website) he listed K’s lineage simply as “lisp and apl,” linking to Iverson’s Turing paper and Perlis’s lyrical programming.
I didn’t know much about Iverson’s family of languages (#APL, J, #BQN, K, and so on), but seeing it embedded in just a few lines of code in a high-level language like #Python suddenly makes it so much easier to understand. The syntactic keywords are basically composed of either infix operators of mapping operators, the data (constants or variables) are like leaves of the syntax tree. So all you need are three lambdas: “atom” checks if it’s argument is a number, monad serves as
applyormapdepending on the type of it’s arguments and abstracts it into a lambda, and “dyad” constructs an infix operator abstracted into a curried lambda. You only need those three rules!atom = lambda x: isinstance(x, (int, float, str)) monad = lambda f: lambda x: f(x) if atom(x) else list(map(monad(f), x)) dyad = lambda f: (lambda x, y: f(x, y) if atom(x) and atom(y) else list(map(lambda yi: dyad(f)(x, yi), y)) if atom(x) else list(map(lambda xi: dyad(f)(xi, y), x)) if atom(y) else list(map(lambda xi, yi: dyad(f)(xi, yi), x, y)))Now I definitely want to try this as Scheme macros!
#tech #software #Lisp #APL #KProgrammingLanguage #JProgrammingLanguage #ProgrammingLanguages #PLT
-
How easy it is to construct an APL or K-like programming language(by Mohammed Jamal Alrujayi)
This was an amazing article I found on the orange site published just last week. He notes that although APL and K are of the Harvard school of languages, while Lisp is of the MIT school, they are fundamentally related in their minimalism and in how the languages are structured around a single data type: Lists for Lisp, and vectors/matrices for APL. The two schools of thought were unified in the K programming language by Arthur Whitney:
On kparc.com (his personal website) he listed K’s lineage simply as “lisp and apl,” linking to Iverson’s Turing paper and Perlis’s lyrical programming.
I didn’t know much about Iverson’s family of languages (#APL, J, #BQN, K, and so on), but seeing it embedded in just a few lines of code in a high-level language like #Python suddenly makes it so much easier to understand. The syntactic keywords are basically composed of either infix operators of mapping operators, the data (constants or variables) are like leaves of the syntax tree. So all you need are three lambdas: “atom” checks if it’s argument is a number, monad serves as
applyormapdepending on the type of it’s arguments and abstracts it into a lambda, and “dyad” constructs an infix operator abstracted into a curried lambda. You only need those three rules!atom = lambda x: isinstance(x, (int, float, str)) monad = lambda f: lambda x: f(x) if atom(x) else list(map(monad(f), x)) dyad = lambda f: (lambda x, y: f(x, y) if atom(x) and atom(y) else list(map(lambda yi: dyad(f)(x, yi), y)) if atom(x) else list(map(lambda xi: dyad(f)(xi, y), x)) if atom(y) else list(map(lambda xi, yi: dyad(f)(xi, yi), x, y)))Now I definitely want to try this as Scheme macros!
#tech #software #Lisp #APL #KProgrammingLanguage #JProgrammingLanguage #ProgrammingLanguages #PLT
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 071350Z 08014KT 10SM CLR 29/21 A3007” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #rafaelhernandezairport #airport #aguadilla #puertorico #tjbq #bqn #metar #aviation #aviationweather #avgeek vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 071350Z 08014KT 10SM CLR 29/21 A3007” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #rafaelhernandezairport #airport #aguadilla #puertorico #tjbq #bqn #metar #aviation #aviationweather #avgeek vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 071350Z 08014KT 10SM CLR 29/21 A3007” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #rafaelhernandezairport #airport #aguadilla #puertorico #tjbq #bqn #metar #aviation #aviationweather #avgeek vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 071350Z 08014KT 10SM CLR 29/21 A3007” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #rafaelhernandezairport #airport #aguadilla #puertorico #tjbq #bqn #metar #aviation #aviationweather #avgeek vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 071350Z 08014KT 10SM CLR 29/21 A3007” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #rafaelhernandezairport #airport #aguadilla #puertorico #tjbq #bqn #metar #aviation #aviationweather #avgeek vl
-
Reading about trains in the #bqn documentation in preparation for #adventofcode tomorrow feels like
-
Reading about trains in the #bqn documentation in preparation for #adventofcode tomorrow feels like
-
Reading about trains in the #bqn documentation in preparation for #adventofcode tomorrow feels like
-
Reading about trains in the #bqn documentation in preparation for #adventofcode tomorrow feels like
-
🐍🐒 Behold, the "Zoo of Array Languages," where letters and numbers come to frolic in a chaotic code safari! 🦓🌪️ #APL360, #BQN, and friends are here to remind you that your keyboard is a weapon, and syntax is just a suggestion. 🤪👾
https://ktye.github.io/ #ZooOfArrayLanguages #CodeSafari #SyntaxFun #ProgrammingAdventure #HackerNews #ngated -
🐍🐒 Behold, the "Zoo of Array Languages," where letters and numbers come to frolic in a chaotic code safari! 🦓🌪️ #APL360, #BQN, and friends are here to remind you that your keyboard is a weapon, and syntax is just a suggestion. 🤪👾
https://ktye.github.io/ #ZooOfArrayLanguages #CodeSafari #SyntaxFun #ProgrammingAdventure #HackerNews #ngated -
🐍🐒 Behold, the "Zoo of Array Languages," where letters and numbers come to frolic in a chaotic code safari! 🦓🌪️ #APL360, #BQN, and friends are here to remind you that your keyboard is a weapon, and syntax is just a suggestion. 🤪👾
https://ktye.github.io/ #ZooOfArrayLanguages #CodeSafari #SyntaxFun #ProgrammingAdventure #HackerNews #ngated -
🐍🐒 Behold, the "Zoo of Array Languages," where letters and numbers come to frolic in a chaotic code safari! 🦓🌪️ #APL360, #BQN, and friends are here to remind you that your keyboard is a weapon, and syntax is just a suggestion. 🤪👾
https://ktye.github.io/ #ZooOfArrayLanguages #CodeSafari #SyntaxFun #ProgrammingAdventure #HackerNews #ngated -
हवाई अड्डाRafael Hernandez में Aguadilla (पुएर्तो रिको) का विमानन मौसम है “TJBQ 161350Z 09014G21KT 10SM SCT021 31/24 A3008” : पर देखें इसका क्या मतलब है https://www.bigorre.org/aero/meteo/tjbq/hi #aguadilla # #rafaelhernandez #tjbq #bqn #metar #aviation #विमाननमौसम #avgeek vl
-
हवाई अड्डाRafael Hernandez में Aguadilla (पुएर्तो रिको) का विमानन मौसम है “TJBQ 161350Z 09014G21KT 10SM SCT021 31/24 A3008” : पर देखें इसका क्या मतलब है https://www.bigorre.org/aero/meteo/tjbq/hi #aguadilla # #rafaelhernandez #tjbq #bqn #metar #aviation #विमाननमौसम #avgeek vl
-
हवाई अड्डाRafael Hernandez में Aguadilla (पुएर्तो रिको) का विमानन मौसम है “TJBQ 161350Z 09014G21KT 10SM SCT021 31/24 A3008” : पर देखें इसका क्या मतलब है https://www.bigorre.org/aero/meteo/tjbq/hi #aguadilla # #rafaelhernandez #tjbq #bqn #metar #aviation #विमाननमौसम #avgeek vl
-
हवाई अड्डाRafael Hernandez में Aguadilla (पुएर्तो रिको) का विमानन मौसम है “TJBQ 161350Z 09014G21KT 10SM SCT021 31/24 A3008” : पर देखें इसका क्या मतलब है https://www.bigorre.org/aero/meteo/tjbq/hi #aguadilla # #rafaelhernandez #tjbq #bqn #metar #aviation #विमाननमौसम #avgeek vl
-
हवाई अड्डाRafael Hernandez में Aguadilla (पुएर्तो रिको) का विमानन मौसम है “TJBQ 161350Z 09014G21KT 10SM SCT021 31/24 A3008” : पर देखें इसका क्या मतलब है https://www.bigorre.org/aero/meteo/tjbq/hi #aguadilla # #rafaelhernandez #tjbq #bqn #metar #aviation #विमाननमौसम #avgeek vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 291250Z 10012KT 10SM SCT030 29/23 A3006 RMK LTG DSNT N AND SE” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #aguadilla #puertorico #rafaelhernandezairport #tjbq #bqn #metar #aviation #aviationweather #avgeek #airport vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 291250Z 10012KT 10SM SCT030 29/23 A3006 RMK LTG DSNT N AND SE” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #aguadilla #puertorico #rafaelhernandezairport #tjbq #bqn #metar #aviation #aviationweather #avgeek #airport vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 291250Z 10012KT 10SM SCT030 29/23 A3006 RMK LTG DSNT N AND SE” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #aguadilla #puertorico #rafaelhernandezairport #tjbq #bqn #metar #aviation #aviationweather #avgeek #airport vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 291250Z 10012KT 10SM SCT030 29/23 A3006 RMK LTG DSNT N AND SE” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #aguadilla #puertorico #rafaelhernandezairport #tjbq #bqn #metar #aviation #aviationweather #avgeek #airport vl
-
Aviation weather for Rafael Hernandez airport in Aguadilla area (Puerto Rico) is “TJBQ 291250Z 10012KT 10SM SCT030 29/23 A3006 RMK LTG DSNT N AND SE” : See what it means on https://www.bigorre.org/aero/meteo/tjbq/en #aguadilla #puertorico #rafaelhernandezairport #tjbq #bqn #metar #aviation #aviationweather #avgeek #airport vl
-
Scheming a mise-en-abîme in BQN
https://panadestein.github.io/blog/posts/si.html#fnr.2
#HackerNews #Scheming #mise-en-abîme #BQN #programming #HackerNews #techblog
-
Scheming a mise-en-abîme in BQN
https://panadestein.github.io/blog/posts/si.html#fnr.2
#HackerNews #Scheming #mise-en-abîme #BQN #programming #HackerNews #techblog
-
Scheming a mise-en-abîme in BQN
https://panadestein.github.io/blog/posts/si.html#fnr.2
#HackerNews #Scheming #mise-en-abîme #BQN #programming #HackerNews #techblog
-
Scheming a mise-en-abîme in BQN
https://panadestein.github.io/blog/posts/si.html#fnr.2
#HackerNews #Scheming #mise-en-abîme #BQN #programming #HackerNews #techblog
-
Marshall Lochbaum has a great five year retrospective on the design of his #BQN language. I wish that we could all have the clarity, objectivity and honesty about our work that Marshall has about his.
-
Marshall Lochbaum has a great five year retrospective on the design of his #BQN language. I wish that we could all have the clarity, objectivity and honesty about our work that Marshall has about his.
-
Marshall Lochbaum has a great five year retrospective on the design of his #BQN language. I wish that we could all have the clarity, objectivity and honesty about our work that Marshall has about his.
-
Marshall Lochbaum has a great five year retrospective on the design of his #BQN language. I wish that we could all have the clarity, objectivity and honesty about our work that Marshall has about his.
-
Marshall Lochbaum has a great five year retrospective on the design of his #BQN language. I wish that we could all have the clarity, objectivity and honesty about our work that Marshall has about his.