Kbd
ok
Our great sponsors
Kbd | ok | |
---|---|---|
8 | 30 | |
27 | 575 | |
- | - | |
1.8 | 4.2 | |
about 2 years ago | 6 months ago | |
APL | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Kbd
-
Dyalog APL Keyboard Layouts
Should you wish to type them on a normal keyboard:
https://abrudz.github.io/lb/apl has a browser bookmarklet which adds an APL language bar to the top of any web page so you can type in any input box with backtick prefixes.
https://github.com/abrudz/Kbd has a Windows Input Method Editor (IME) that adds system-wide RightAlt+letter combos.
-
Ask HN: Do I need a special keyboard layout to learn array programming?
:d) https://github.com/abrudz/Kbd
-
APL has the highest percentage of trans programmers for the 2nd year in a row, according to Stack Overflow survey
I use setxkbmap -layout us,apl -variant ,dyalog -option grp:switch on Linux and https://github.com/abrudz/Kbd on Windows.
-
Ngn/k (free K implementation)
This might have been true a couple of years ago but it is totally untrue now.
I'm not sure why you couldn't use the student version of Dyalog? Sounds like it would have been fine. There are also many more FOSS implementations of array languages now, such as ngn/k and April. https://github.com/phantomics/april
'only available for Linux' - not true https://github.com/abrudz/Kbd/ and others (also different input modes like `w for ⍵)
'no community support' - on the contrary there is a big and helpful APL community https://aplwiki.com/wiki/Chat_rooms_and_forums that is (imo) more useful than stackoverflow
'Dynamic scoping...' - Dyalog's (and other APL's) dfns have lexical scope.
'The language is extremely terse' - is this meant to be a bad thing?
'The code tends to be very hacky' - maybe if you write bad code or try and write C in APL (it won't work)
- Use TAB entry style in Dyalog for Mac?
-
Learning APL
In general programming I like to use a keyboard layout which allows typing APL glyphs with Right Alt: https://github.com/abrudz/Kbd
ok
- Trees
- Programming in K
- k on pdp11
-
Origins of J
This - https://github.com/JohnEarnest/ok - can also be used sometimes...
- Trees in K
-
Coding in the Shadows: Hidden Gems of Lisp, Clojure, and friends
If you want to try out K, there are some open source implementations, like John Earnest's oK which has a REPL and a calculator-like interface for mobile phones with a charting feature.
-
Why Lisp Syntax Works
and have the programmer use the word "barchart", they instead prefer to use the definition itself. The word "barchart" has a specific meaning (here, an ascii "bar chart" of 0s and 1s, showing the relative sizes of the values of input array x), but "{x>\:!|/x}" might be useful for more than just bar charts. This idiom contains smaller idioms like "count til max" (!|/) which in turn contains "max" (|/).
Being able to see the code makes it easier to explore and tweak to your specific needs. But more importantly, there are no "official" names for concepts like "count til max". That's just my personal name for it. A python programmer would call it "range". You could come up with your own name for (!|/) that makes perfect sense to you. But that name will probably be longer than its definition, and less flexible.
[1] https://github.com/JohnEarnest/ok/blob/gh-pages/examples/idi...
-
Animated unknown pleasures in 3 lines of K
check out oK[0] by John Earnest, who is the author of the content of this post
it is well-written manual and is a great jumping off point
there is a k-enthusiast element.io server[1] where you can ask any question you like. folks are friendly!
[0] https://github.com/JohnEarnest/ok
[1] https://matrix.to/#/#aplfarm-k:matrix.org
- APLcart – Find your way in APL
What are some alternatives?
BQN - An APL-like programming language. Self-hosted!
weblog - a weblog
kalamine - Keyboard Layout Maker
Co-dfns - High-performance, Reliable, and Parallel APL
pdp11.jl - PDP-11 Simulator written in Julia
Pilot - Orca's best friend.
dyalog-apl-extended - Dyalog APL Extended
brs - An interpreter for the BrightScript language that runs on non-Roku platforms.
aoc2017 - ngn/k
april - The APL programming language (a subset thereof) compiling to Common Lisp.
PDP_11_Simulator - PDP11 Simulator written in APL
hackernews - Hacker News web site source code mirror.