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/JohnEarnest/ok https://github.com/ngn/apl
    comment by geocar · 2018-04-10 · in The BEAM needs an APL-y language
  2. 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)
  3. …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)
  4. …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)
  5. There’s also a JavaScript impl of K, one of the ASCII APL-like languages: https://github.com/JohnEarnest/ok
  6. …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
  7. …[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?”
  8. …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…
  9. …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?
  10. 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
  11. …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
  12. 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
  13. …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
  14. …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)
  15. …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.
  16. 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
  17. 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.
  18. …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…
  19. ▲ 60
    OK: An open-source interpreter for the K5 programming language
    story by sndean · 2016-10-15 · 11 comments
  20. …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…
  21. …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?
  22. …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
  23. …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
  24. …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
  25. …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
  26. …(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
  27. ▲ 2
    iKe/oK/k5 Livecoding Demo
    story by srpeck · 2015-11-18 · 1 comment
  28. 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
  29. …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.…
  30. …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
  31. 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
  32. …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
  33. …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
  34. …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
  35. …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…
  36. 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
  37. Fun for interview questions: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/str...
  38. ▲ 54
    OK: An implementation of the K5 programming language
    story by RodgerTheGreat · 2015-02-14 · 9 comments
  39. 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