Hacker GitHub

← All repos

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

Mentions per year 89 mentions · busiest year 2015 (16)
20082026
  1. …https://github.com/ktye/i k6 ngn/growler (C): https://codeberg.org/growler/k oK (JavaScript): https://github.com/JohnEarnest/ok kiwi (Zig): https://github.com/kiwi-array-lang/kiwi k3 kona (C): https://github.com/kevinlawler/kona gk (C):…
    comment by tosh · 2026-05-23 · in Thinking in an array language (2022)
  2. ty, I made a pull request: https://github.com/JohnEarnest/ok/pull/111
    comment by tosh · 2026-03-02 · in Programming in K
  3. …"iKe", a visual livecoding environment. ngn/k and oK have diverged a bit, but are largely similar: https://github.com/JohnEarnest/ok Q is a K-derived language built into kdb+; this is probably the most commercially viable dialect to learn,…
    comment by RodgerTheGreat · 2025-11-12 · in Array-programming the Mandelbrot set
  4. …interpreter [0] which has a graphical env to play around with as well. Lil takes a lot from it. [0] https://github.com/JohnEarnest/ok
  5. …reasonably comprehensive open-source k implementations: https://github.com/kevinlawler/kona (k3) https://github.com/JohnEarnest/ok (k6, js-based) https://codeberg.org/ngn/k (k6, c-based) even today, many k programmers learn from the k2…
    comment by RodgerTheGreat · 2024-01-08 · in k on pdp11
  6. This - https://github.com/JohnEarnest/ok - can also be used sometimes...
    comment by avmich · 2024-01-04 · in Origins of J
  7. …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...
    comment by hoosieree · 2023-06-06 · in Why Lisp Syntax Works
  8. …the author is active in the above element server, and still patches bugs and makes updates. [0] https://github.com/JohnEarnest/ok [1] https://matrix.to/#/#aplfarm-k:matrix.org [2] https://ngn.codeberg.page/k/#
  9. …It has a repl as well in: https://johnearnest.github.io/ok/ you can find source here: https://github.com/JohnEarnest/ok and manual here: https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... If this is the entirety of K -…
  10. …are some open source clones like: https://codeberg.org/ngn/k https://github.com/kevinlawler/kona https://github.com/JohnEarnest/ok , and inspired languages: http://t3x.org/klong/
    comment by t-3 · 2023-04-01 · in APLcart – Find your way in APL
  11. …https://github.com/kevinlawler/kona alto a javascript implementation even with a graphics library : https://github.com/JohnEarnest/ok edit : assuming you were talking about k and not freq
    comment by maximus-decimus · 2023-03-31 · in K: We need to talk about group
  12. …and graphics and sound primitives. Amazing and fun stuff! [1] https://beyondloom.com/decker/ [2] https://github.com/JohnEarnest/ok
  13. …should work identically on both. Q: https://code.kx.com/q/ ngn/k: https://codeberg.org/ngn/k oK: https://github.com/JohnEarnest/ok/
    comment by hoosieree · 2022-12-08 · in Advent of q 2022
  14. …attempt, but there's still a lot of it that I regret. [0]: https://github.com/HoangTuan110/owu [1]: https://github.com/JohnEarnest/ok
  15. …which has a similar style, although more clean and a little bit more readable IMO than LIL. [0]: https://github.com/JohnEarnest/ok
    comment by memorable · 2022-11-05 · in Decker: A Multimedia Sketchpad
  16. Ah! Another jewel from the creator of oK [0]! [0] https://github.com/JohnEarnest/ok
  17. https://github.com/JohnEarnest/ok/tree/gh-pages/ike https://beyondloom.com/tools/specialk.html
    comment by RodgerTheGreat · 2022-07-09 · in APL and Array Programming
  18. …the best one-stop shop for an overview of k6's primitives (both ngn/k and oK are based on k6). https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... The best intro examples are in John Earnest's k editor iKe - there's a dropdown…
  19. …etc. In practice it is needed very rarely. There's a complete list of adverb forms for k6 here: https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual....
    comment by RodgerTheGreat · 2021-11-26 · in Loopless Code (2006)
  20. …less, I'd say it's great as a beginner language. With the existence of new docs like the oK docs( https://github.com/JohnEarnest/ok/blob/gh-pages/docs/ ) and the wiki( https://k.miraheze.org/ ), it is getting much easier to learn K.
    comment by razetime · 2021-09-13 · in I got the J language working on OpenBSD
  21. Where to start reading: https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... maybe If you ever feel like trying it again, and get stuck on something, https://chat.stackexchange.com/rooms/90748/the-k-tree is the place to ask :)
    comment by rak1507 · 2021-08-10 · in Stages of Denial
  22. (For reference: https://github.com/JohnEarnest/ok )
    comment by exikyut · 2021-04-21 · in Lisp in Forth
  23. …tech in a novel, unexpected way. [1] https://extemporelang.github.io/ [2] https://nannou.cc/ [3] https://github.com/JohnEarnest/ok [4] https://github.com/JohnEarnest/ok/tree/gh-pages/ike
    comment by eggy · 2020-12-17 · in Creative Code-Generated Art
  24. …I had more to offer, but here's one neat implementation of K that I found through HN a while back: https://github.com/JohnEarnest/ok I love the little Web UI this guy wrote along with it as well.
    comment by arthurcolle · 2020-11-03 · in Ask HN: Alternatives to q/kdb?
  25. This is why I wrote a cell-phone-friendly frontend for my K interpreter: https://github.com/JohnEarnest/ok#mobile I agree, though- dedicated tactile buttons will always be nicer for a calculator.
    comment by RodgerTheGreat · 2020-09-27 · in DM41x: a modern take on the HP-41CX
  26. …non-commercial use). 1: https://github.com/jsoftware/ 2: https://bitbucket.org/ngn/k/src/master/ 3: https://github.com/JohnEarnest/ok 4: https://github.com/kevinlawler/kona 5: https://www.gnu.org/software/apl/
    comment by moonchild · 2020-04-10 · in Ode to J
  27. …seem to be with databases (not math), but it's also pretty great for interactive graphics: https://github.com/JohnEarnest/ok/tree/gh-pages/ike I work at the same company as the author, and we use K3 for all kinds of things -- system…
    comment by tangentstorm · 2020-03-11 · in Stages of denial in encountering K
  28. APL and K does fit mine, J doesn't. Perhaps it would help you to start with K (e.g. https://github.com/JohnEarnest/ok is free, has a web repl with interactive graphics and stuff) In a way, K is a cross of C and APL; K is the essence of APL…
    comment by beagle3 · 2020-02-17 · in A Paper Algorithm Notation (2014)
  29. …a number of interesting toy interpreters on his site[2], particularly concatenative languages. [0] https://github.com/JohnEarnest/ok/blob/gh-pages/oK.js [1] https://github.com/JohnEarnest/Mako/blob/master/demos/FiDo.f... [2] http://nsl.com
  30. …little more than bindings that supply appropriate IO capabilities, you can even write games in K: https://github.com/JohnEarnest/ok/blob/gh-pages/ike/examples... https://github.com/JohnEarnest/ok/blob/gh-pages/ike/examples...
    comment by RodgerTheGreat · 2020-01-10 · in ngn/k, an AGPL K interpreter
  31. > k doesn't have Yes it has. https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... for OK (the K interpreter in iKe)
    comment by lelf · 2019-12-26 · in iKe: a browser-based sandbox for K
  32. More context/explanation, and a little livecoding demo, can be found on the github page: https://github.com/JohnEarnest/ok/tree/gh-pages/ike And here's another demo, showing the creation of a voronoi diagram from points. This might better…
    comment by RodgerTheGreat · 2019-12-26 · in iKe: a browser-based sandbox for K
  33. …I translated some of Aaron Hsu's APL ideas into k5. With a little massaging they work just as well: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/key...
    comment by RodgerTheGreat · 2019-12-02 · in Bryan Cantrill interviews Arthur Whitney (2009)
  34. …also details how trees are handled in K (an array based language invented by Arthur Whitney). https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Trees.m...
  35. …it in your browser and the documentation is pretty good. http://johnearnest.github.io/ok/index.html https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Manual.... https://github.com/JohnEarnest/ok/blob/gh-pages/docs/Program...
    comment by ksherlock · 2019-08-10 · in Build Your Own Text Editor
  36. Just in case you want to look at the sources of something similar, here is a good one: https://github.com/JohnEarnest/ok
    comment by avmich · 2019-04-15 · in K7 Tutorial
  37. A more up to date version: https://github.com/JohnEarnest/ok
    comment by sansnomme · 2019-03-27 · in Arthur Whitney's 'B' Language
  38. …(after the K2 manual). But if you are interested in it, John Earnest wrote a nice documentation: https://github.com/JohnEarnest/ok/tree/gh-pages/docs
    comment by pvitz · 2019-03-18 · in K7 Tutorial
  39. I take a look at https://github.com/JohnEarnest/ok/blob/gh-pages/oK.js and is still dense. Is possible to trace things but the important stuff is understand why things are done that way. I read also https://sblom.github.io/openj-core/ioj.ht…
  40. https://github.com/JohnEarnest/ok https://github.com/ngn/apl
    comment by geocar · 2018-04-10 · in The BEAM needs an APL-y language
  41. 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)
  42. …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)
  43. …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)
  44. There’s also a JavaScript impl of K, one of the ASCII APL-like languages: https://github.com/JohnEarnest/ok
  45. …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
  46. …[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?”
  47. …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…
  48. …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?
  49. 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
  50. …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