News for hackers. Stuff that matters.
Re:Bare minimum atw-style K interpreter for learning purposes by tromp on Wednesday January 17, 2024 @02:11PM (#39032022)
I'm guessing it's his initials; Arthur T. Whitney or perhaps ArThur Whitney, and possibly his account name.
Re:Bare minimum atw-style K interpreter for learning purposes by nuclearnice3 on Wednesday January 17, 2024 @02:17PM (#39032105)
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:Bare minimum atw-style K interpreter for learning purposes by gipp on Wednesday January 17, 2024 @02:31PM (#39032274)
You know how when you first start learning to code, the kids who really "get it" right away start off thinking shorter code = smarter code = better code?

k always seemed like a bunch of those kids managed to become highly accomplished and brilliant engineers without ever breaking that terrible habit. Is there actually a reason to write these array languages (and interpreters for them, apparently) this way, or is it just a cultural difference?

Re:Bare minimum atw-style K interpreter for learning purposes by steveBK123 on Wednesday January 17, 2024 @02:48PM (#39032493)
less code less bug
Re:Bare minimum atw-style K interpreter for learning purposes by tom_ on Wednesday January 17, 2024 @05:37PM (#39034572)
An occasional HN poster did a presentation a few years ago about his compiler, written in a similar sort of style: https://news.ycombinator.com/item?id=13638086
Re:Bare minimum atw-style K interpreter for learning purposes by lmm on Wednesday January 17, 2024 @09:00PM (#39036559)
> k always seemed like a bunch of those kids managed to become highly accomplished and brilliant engineers without ever breaking that terrible habit. Is there actually a reason to write these array languages (and interpreters for them, apparently) this way, or is it just a cultural difference?

They're more readable and less buggy that way. But unfortunately most programmers would rather spend 10 days reading 100,000 lines than 4 days reading 1,000 lines.

Re:Bare minimum atw-style K interpreter for learning purposes by 5jt on Friday January 19, 2024 @07:01AM (#39054463)
Whitney and I both worked in the 1970s for I.P. Sharp Associates, which used an email system written beautifully in APL by Leslie Goldsmith. Most user names were simply our initials. Ian Sharp was IPS, Leslie LHG, and Arthur ATW. (Middle name Taylor.) I’ve been SJT ever since (including to two wives) but was not smart enough to grab the domain: see 5jt.com.