Kap: Difference between revisions
m (Text replacement - "2021 (unversioned)" to "2022 (unversioned)") |
(Update website) |
||
Line 12: | Line 12: | ||
| platforms = JVM, Native Linux, In-browser, [[wikipedia:Node.js|Node.js]] | | platforms = JVM, Native Linux, In-browser, [[wikipedia:Node.js|Node.js]] | ||
| license = [[wikipedia:MIT License|MIT]] | | license = [[wikipedia:MIT License|MIT]] | ||
| website = [[https://kapdemo.dhsdevelopments.com/ KAP]] | |||
| documentation = [https://kapdemo.dhsdevelopments.com/kap-comparison.html KAP for APL’ers] | | documentation = [https://kapdemo.dhsdevelopments.com/kap-comparison.html KAP for APL’ers] | ||
| file ext = .kap | | file ext = .kap | ||
| influenced by = [[Dyalog APL]], [[GNU APL]] | | influenced by = [[Dyalog APL]], [[GNU APL]] | ||
| run online = [https://kapdemo.dhsdevelopments.com/ JS Client] | | run online = [https://kapdemo.dhsdevelopments.com/clientweb2/ JS Client] | ||
}} | }} | ||
Revision as of 05:41, 3 February 2022
KAP is an array-based language that aims to implement most of standard APL, along with additional features. Much of standard APL works in KAP, although if an APL feature does not fit with KAP's design, those features are changed or removed.
Lazy evaluation
The main difference compared to APL is that KAP is lazy-evaluated. This means that the language gives the developers very loose guarantees when (or if, and how many times) a function will actually be invoked. For example, ↑ f¨ ⍳10
will only make a single call to f
because f¨ ⍳10
will not immediately evaluate the result but only return a delayed evaluation. Since all but the first result is then discarded, those results will never be computed.
Differences from APL
The following is a list of significant differences compared to APL:
- Lazy evaluation
- All values are immutable, it is not possible to modify the content of an array
- Ability to define custom syntax
- Native hash table support
APL dialects [edit] | |
---|---|
Maintained | APL+Win ∙ APL2 ∙ APL64 ∙ APL\iv ∙ Aplette ∙ April ∙ Co-dfns ∙ Dyalog APL ∙ Dyalog APL Vision ∙ dzaima/APL ∙ GNU APL ∙ Kap ∙ NARS2000 ∙ Pometo ∙ TinyAPL |
Historical | A Programming Language ∙ A+ (A) ∙ APL# ∙ APL2C ∙ APL\360 ∙ APL/700 ∙ APL\1130 ∙ APL\3000 ∙ APL.68000 ∙ APL*PLUS ∙ APL.jl ∙ APL.SV ∙ APLX ∙ Extended Dyalog APL ∙ Iverson notation ∙ IVSYS/7090 ∙ NARS ∙ ngn/apl ∙ openAPL ∙ Operators and Functions ∙ PAT ∙ Rowan ∙ SAX ∙ SHARP APL ∙ Rationalized APL ∙ VisualAPL (APLNext) ∙ VS APL ∙ York APL |
Derivatives | AHPL ∙ BQN ∙ CoSy ∙ ELI ∙ Glee ∙ I ∙ Ivy ∙ J ∙ Jelly ∙ K (Goal, Klong, Q) ∙ KamilaLisp ∙ Lang5 ∙ Lil ∙ Nial ∙ RAD ∙ Uiua |
Overviews | Comparison of APL dialects ∙ Timeline of array languages ∙ Timeline of influential array languages ∙ Family tree of array languages |