2,962
edits
(Remove BQN category: only used by this page) |
m (→Functions: Link to Pair for Enlist) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 18: | Line 18: | ||
| forum = [https://app.element.io/#/room/%23bqn:matrix.org #bqn:matrix.org] | | forum = [https://app.element.io/#/room/%23bqn:matrix.org #bqn:matrix.org] | ||
| influenced by = [[J]], [[A+]], [[Dyalog APL]], [[Co-dfns]], [[APL\iv]], [[wikipedia:JavaScript|JavaScript]]<ref>[[Marshall Lochbaum]]. [https://mlochbaum.github.io/BQN/commentary/history.html "BQN's development history"].</ref> | | influenced by = [[J]], [[A+]], [[Dyalog APL]], [[Co-dfns]], [[APL\iv]], [[wikipedia:JavaScript|JavaScript]]<ref>[[Marshall Lochbaum]]. [https://mlochbaum.github.io/BQN/commentary/history.html "BQN's development history"].</ref> | ||
| influenced = [[Goal]], [[ | | influenced = [[Goal]], [[Kap]], [[Uiua]] | ||
| run online = [https://bqnpad.mechanize.systems/ BQNPAD] | | run online = [https://bqnpad.mechanize.systems/ BQNPAD] | ||
}} | }} | ||
'''BQN''' is an APL-family language designed primarily by [[Marshall Lochbaum]]. Although it maintains the concept of array-driven computing and much of APL's array functionality, BQN discards all [[backwards compatibility|compatibility]] with other array languages and changes many fundamental concepts. It uses the [[based array model]] with dedicated [[array notation]], distinguishes between data types and expression roles to give the language a [[wikipedia:context-free grammar|context-free grammar]] with [[wikipedia:first-class function|first-class function]]s, | '''BQN''' is an APL-family language designed primarily by [[Marshall Lochbaum]]. Although it maintains the concept of array-driven computing and much of APL's array functionality, BQN discards all [[backwards compatibility|compatibility]] with other array languages and changes many fundamental concepts. It uses the [[based array model]] with dedicated [[array notation]], distinguishes between data types and expression roles to give the language a [[wikipedia:context-free grammar|context-free grammar]] with [[wikipedia:first-class function|first-class function]]s, uses a new set of [[glyph]]s with different primitive pairings, and implements [[character arithmetic]]. The language uses the [[leading axis model]] and [[tacit programming]] as core paradigms. Its implementation is largely self-hosted, with an array-based compiler like [[Co-dfns]]. | ||
== Implementations == | == Implementations == | ||
Line 57: | Line 57: | ||
| <code>⌈</code> || [[Ceiling]] || [[Maximum]] | | <code>⌈</code> || [[Ceiling]] || [[Maximum]] | ||
|- | |- | ||
| <code>∧</code> || Sort Up | | <code>∧</code> || [[Sort Up]] || [[And]] | ||
|- | |- | ||
| <code>∨</code> || Sort Down | | <code>∨</code> || [[Sort Down]] || [[Or]] | ||
|- | |- | ||
| <code>¬</code> || [[Not]] || Span | | <code>¬</code> || [[Not]] || Span | ||
Line 89: | Line 89: | ||
| <code>∾</code> || [[Raze|Join]] || [[Catenate|Join to]] | | <code>∾</code> || [[Raze|Join]] || [[Catenate|Join to]] | ||
|- | |- | ||
| <code>≍</code> || Solo | | <code>≍</code> || [[Solo]] || [[Couple]] | ||
|- | |- | ||
| <code>⋈</code> || Enlist | | <code>⋈</code> || [[Pair|Enlist]] || [[Pair]] | ||
|- | |- | ||
| <code>↑</code> || Prefixes || [[Take]] | | <code>↑</code> || Prefixes || [[Take]] | ||
Line 117: | Line 117: | ||
| <code>⊑</code> || [[First]] || Pick | | <code>⊑</code> || [[First]] || Pick | ||
|- | |- | ||
| <code>⊐</code> || Classify | | <code>⊐</code> || [[Classify]] || [[Index of]] | ||
|- | |- | ||
| <code>⊒</code> || [[Occurrence Count]] || [[Progressive Index of]] | | <code>⊒</code> || [[Occurrence Count]] || [[Progressive Index of]] | ||
Line 125: | Line 125: | ||
| <code>⍷</code> || [[Unique|Deduplicate]] || [[Find]] | | <code>⍷</code> || [[Unique|Deduplicate]] || [[Find]] | ||
|- | |- | ||
| <code>⊔</code> || Group Indices | | <code>⊔</code> || [[Group Indices]] || [[Group (BQN)|Group]] | ||
|- | |- | ||
| <code>!</code> || Assert || Assert with Message | | <code>!</code> || Assert || Assert with Message | ||
Line 149: | Line 149: | ||
| <code>⌜</code> || [[Outer Product|Table]] | | <code>⌜</code> || [[Outer Product|Table]] | ||
|- | |- | ||
| <code>⁼</code> || Undo | | <code>⁼</code> || [[Undo]] | ||
|- | |- | ||
| <code>´</code> || [[Reduce|Fold]] | | <code>´</code> || [[Reduce|Fold]] | ||
Line 204: | Line 204: | ||
<references /> | <references /> | ||
{{APL dialects}}[[Category:Based array languages]][[Category:IR compilers]][[Category:Leading axis languages]][[Category:Languages with tacit programming]] | {{APL dialects}}[[Category:Based array languages]][[Category:Languages with first-class functions]][[Category:IR compilers]][[Category:Leading axis languages]][[Category:Languages with tacit programming]] |