JohnEarnest/ok
View on GitHub ↗ ★ 654 JavaScript
An open-source interpreter for the K5 programming language.
89 mentions on Hacker News by 37 people: 14 stories, 75 comments · first 2015-02-13 · latest 2026-07-29
20082026
-
https://github.com/JohnEarnest/ok https://github.com/ngn/apl
comment by geocar · 2018-04-10 · in The BEAM needs an APL-y language -
https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Fromk5T... : Padding Can Truncate (Done) In k5, padding was treated as a minimum size for the output string: 2$"abcde" "ab" 6$"abcde" "abcde " In k6, as in older Ks, padding will produce…
comment by feelin_googley · 2018-03-03 · in K programming language (2005) -
…mortals[1] - Q is a syntactic-sugar version of K4, though still the same language underneath. [0] https://github.com/JohnEarnest/ok [1] http://code.kx.com/q4m3/
comment by beagle3 · 2018-03-03 · in K programming language (2005) -
…two back which suggests that K7 could be on its way. For playing around with the basic constructs, https://github.com/JohnEarnest/ok is nice (and itself pleasingly concise). Currently targeting the K6 dialect, I think. It doesn't really…
comment by dasmoth · 2018-03-03 · in K programming language (2005) -
There’s also a JavaScript impl of K, one of the ASCII APL-like languages: https://github.com/JohnEarnest/ok
comment by dasmoth · 2018-02-18 · in Node-APL: APL interpreter written in JavaScript -
…http://t3x.org/klong/ kuc (C++, JITted): http://althenia.net/kuc oK (JS, interpreter): https://github.com/JohnEarnest/ok (see also iKe by John Earnest) cousins: J (C, interpreter) http://jsoftware.com/ A+ (C, interpreter, unmaintained):…
comment by beagle3 · 2017-12-12 · in The Q Language -
…[1] but otherwise I've only been able to find the free for personal use 32 bit Q distribution. [1] https://github.com/JohnEarnest/ok
comment by grayrest · 2017-08-19 · in “What next?” -
…was implemented in iKe, a browser-based livecoding environment I built on top of my interpreter: https://github.com/JohnEarnest/ok/tree/gh-pages/ike The concision and flexibility of K is a huge boon for this kind of interactive…
comment by RodgerTheGreat · 2017-07-12 · in Counterintuitive problem: People in a room keep giving dollars to random others -
…along with a usage example- a complete parser for the bittorrent "Bencode" data interchange format: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/par... Not particularly efficient, but fairly concise.
comment by RodgerTheGreat · 2017-06-21 · in What the heck is a parser-combinator? -
Check nsl.com and https://github.com/JohnEarnest/ok for playing around with examples. Ofcourse if you want all facilities, you'll need kx. You can play with 32 bit version.
comment by tluyben2 · 2017-05-02 · in Esoteric programming paradigms -
…tests, in a given PL, you can then run any Shen program on that platform [3]. [0] jsoftware.com [1] https://github.com/JohnEarnest/ok [2] http://johnearnest.github.io/ok/index.html [3] http://www.shenlanguage.org/
comment by eggy · 2017-02-01 · in Show HN: A Lispy, embedded Forth -
Some other k-inspired languages to have a look at: - https://github.com/johnearnest/ok - https://github.com/zholos/kuc - https://github.com/ngn/k - http://t3x.org/klong/ - https://github.com/tlack/xxl
comment by srpeck · 2017-01-25 · in 1.1B Taxi Rides on Kdb+/q and 4 Xeon Phi CPUs -
…constructs as well as give you job opportunities you would not think of possibly later on. Edit2: https://github.com/JohnEarnest/ok is interesting for playing around by the way
comment by tluyben2 · 2017-01-22 · in 'Q for Mortals' Version 3 book available online -
…for doing web scraping with it, but I have found it pleasant to use so far. Docs can be found here: https://github.com/JohnEarnest/ok#mobile
comment by RodgerTheGreat · 2016-12-17 · in Notation as a Tool of Thought (1979) -
…dense style by JavaScript standards, but perhaps you'll find it less impenetrable than others? https://github.com/JohnEarnest/ok/blob/gh-pages/oK.js I'd be happy to try to answer any questions you might have about it.
comment by RodgerTheGreat · 2016-10-25 · in Ask HN: What cool development languages/tools changed your career? -
Non-mobile: http://johnearnest.github.io/ok/ Repo: https://github.com/JohnEarnest/ok
comment by tetrep · 2016-10-19 · in OK mobile, a K interpreter -
The K implementation isn't done in one long line and has indentation and spacing: https://github.com/JohnEarnest/ok/blob/gh-pages/oK.js I'm confused.
comment by redtrucker · 2016-10-16 · in OK: An open-source interpreter for the K5 programming language -
…which makes it possible to write interactive graphical programs in K and easily share them: https://github.com/JohnEarnest/ok/tree/gh-pages/ike For example, recently I wrote this program which generates abstract art every time you press a…
comment by RodgerTheGreat · 2016-10-16 · in OK: An open-source interpreter for the K5 programming language -
▲ 60
OK: An open-source interpreter for the K5 programming languagestory by sndean · 2016-10-15 · 11 comments
-
…docs in John Earnest's ('RodgerTheGreat) oK interpreter a succinct, example-focused introduction: https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... Plus using his browser-based REPL ( http://johnearnest.github.io/ok/index.html…
comment by srpeck · 2016-06-18 · in Data Analysis with Vector Functional Programming [video] -
…and http://johnearnest.github.io/ok/ike/ike.html?gist=b741444d04... https://github.com/JohnEarnest/ok/tree/gh-pages/ike https://github.com/JohnEarnest/ok And related APL/J/K subreddit: https://www.reddit.com/r/apljk/
comment by srpeck · 2016-05-10 · in Time Series, the new shiny? -
…drop a plug for iKe, a sandbox for writing interactive, graphical sketches in your browser using K: https://github.com/JohnEarnest/ok/tree/gh-pages/ike
comment by RodgerTheGreat · 2016-04-25 · in The K Language -
…with blanks p: {`0:" > ";*0:`}; / prompt for a letter {~&/c[x]}{`0:b[x]; x,p[]}/"__"; `0:w,"\n"; https://github.com/JohnEarnest/ok/blob/gh-pages/examples/han...
comment by RodgerTheGreat · 2016-02-07 · in Show HN: Hangman in 3 lines of Python -
…called oK[2], which targets K5. Good hunting! [1] https://github.com/kevinlawler/kona [2] https://github.com/JohnEarnest/ok
comment by RodgerTheGreat · 2015-12-18 · in Beginnings of K interpreter written in OCaml -
…There's a manual, and a guide to some programming techniques here: https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Program... Examples and more discussion c
comment by RodgerTheGreat · 2015-11-19 · in Klong – a simple array language -
…(and am working on) a K interpreter in JavaScript called "oK". Might be useful to compare notes: https://github.com/JohnEarnest/ok I'll have a deeper look at Klong's implementation when I have time to see if there are tricks worth…
comment by RodgerTheGreat · 2015-11-18 · in Klong – a simple array language -
▲ 2
iKe/oK/k5 Livecoding Demostory by srpeck · 2015-11-18 · 1 comment
-
The github for the project itself, along with the manual, is here: https://github.com/JohnEarnest/ok/tree/gh-pages/ike
comment by RodgerTheGreat · 2015-10-01 · in iKe: Browser-based k-family language IDE -
…oK.js, the funky, bright JavaScript implementation that is quickly becoming a busy place on Github: https://github.com/JohnEarnest/ok Sadly, the brilliant Kevin Lawler's Kerf begins to look less interesting once one considers the license.…
comment by tlack · 2015-09-19 · in Tell HN: Q/Kdb 32-bit no longer free for commercial use -
…fairly easy to a system like this. Other good candidates include JSForth[2] and NGN APL[3]. [1] https://github.com/JohnEarnest/ok [2] http://home.diphi.com/users/jeffr/forth/jsforth.html [3] https://github.com/ngn/apl
comment by RodgerTheGreat · 2015-09-11 · in Show HN: A playground for in-browser interpreters -
In iKe's case, the output of draw is used by JavaScript to render to an HTML5 Canvas tag. https://github.com/JohnEarnest/ok/blob/gh-pages/ike/ike.html... "draw" specifically returns a list of tuples which each consist of a position (or a…
comment by RodgerTheGreat · 2015-08-16 · in A card game implemented in APL -
…not an SDL wrapper- it's all javascript and HTML 5. It is called iKe and it is indeed open-source: https://github.com/JohnEarnest/ok/tree/gh-pages/ike I was suggesting that it might be possible to use some graphics library (such as SDL) to…
comment by RodgerTheGreat · 2015-08-16 · in A card game implemented in APL -
…a different syntax (JSON+SQL+more). John Earnest has a Javascript implementation of K5 called oK at https://github.com/JohnEarnest/oK Andrey Zholos has a JITing implementation of a K-like language at https://github.com/zholos/kuc
comment by beagle3 · 2015-06-26 · in Ask HN: APL family instead of R for data analysis? -
…I've written a (buggy, incomplete!) K interpreter I call oK which similarly runs in your browser: https://github.com/JohnEarnest/ok Here's a nice little program which calculates terms of the "look-and-say" number sequence:…
comment by RodgerTheGreat · 2015-06-25 · in Try APL in your browser -
…order as a DFS scan) is written ",//" "decode run length decoding" is written ",/#/'" (courtesy of https://github.com/JohnEarnest/ok/blob/gh-pages/examples/run... Now, these 3-char and 5-char examples are not predefined in any way; They…
comment by beagle3 · 2015-02-28 · in Show HN: Persistent Group Chat in kdb+/k/q -
I was just tinkering with a tic tac toe game: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/tic... I think I can still make a number of simplifications and generalizations, and I'd like to have a stab at an alpha-beta AI…
comment by RodgerTheGreat · 2015-02-27 · in Show HN: Persistent Group Chat in kdb+/k/q -
Fun for interview questions: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/str...
comment by Scaevolus · 2015-02-14 · in OK: An implementation of the K5 programming language -
▲ 54
OK: An implementation of the K5 programming languagestory by RodgerTheGreat · 2015-02-14 · 9 comments
-
Sure, here's the repository: https://github.com/JohnEarnest/ok I don't have a rigorous approach for testing compatibility at present; My starting point was the K2 manual, and I've tried to get as many examples from that working as…
comment by RodgerTheGreat · 2015-02-13 · in The Rewards of Creating a Programming Language