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. 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
  2. …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
  3. …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)
  4. …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.
  5. 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
  6. 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.
  7. …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…
  8. …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…
  9. …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?
  10. …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
  11. …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
  12. …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
  13. …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
  14. …(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
  15. 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
  16. …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.…
  17. …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
  18. 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
  19. …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
  20. …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
  21. …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
  22. …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…
  23. 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
  24. Fun for interview questions: https://github.com/JohnEarnest/ok/blob/gh-pages/examples/str...
  25. 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