Live data from Hacker News

K/simple: a tiny K interpreter for educational purposes by Arthur Whitney

github.com

1–10 of 93 posts

Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney

#3
post #2

I was surprised at how verbose and commented the code was. Then I read the note saying that Whitney's original code was in `ref/` and the two files in the root were annotated by other kparc members.

Ah, thank you for clarifying this. I was confused why it said "by Arthur Whitney" when the contributors do not seem to be Arthur Whitney.

Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney

#9
post #7
post #4

What do they mean by "atw-style" ?

I'm guessing it's his initials; Arthur T. Whitney or perhaps ArThur Whitney, and possibly his account name.

Sounds right.

Additional examples at

https://github.com/louyx/aplus/blob/master/src/a/k.h

https://code.jsoftware.com/wiki/Essays/Incunabulum

How would you characterize that?

Heavy use of the C preprocessor and C defaults to embed a functional programming language. Language with a small number of core functions and ability to apply functions to lists of atoms. Aesthetically favoring short identifiers and minimal whitespace to create high semantic density. Eschew comments.

Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney

#10
post #2

I was surprised at how verbose and commented the code was. Then I read the note saying that Whitney's original code was in `ref/` and the two files in the root were annotated by other kparc members.

Whitney is an unrealized IOCCC champion.
Post reply on HN