K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
21–30 of 93 posts
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#22This looks like a cult I would happily dive into. Does anyone care to ELI5? I tried to read the code but did not understand a single line
AW is known for kdb+ which is often used in finance due to its extreme performance properties and ability for quants to quickly explore ideas.
Personally, to get a better handle on how array languages worked, I implemented KlongPy which is a python implementation of Klong, which descends from K (which AW wrote).
You have to play with this stuff to understand it intuitively.
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#23Did anything ever come of kOS?
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#24This looks like a cult I would happily dive into. Does anyone care to ELI5? I tried to read the code but did not understand a single line
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#25[flagged]
Ha! The guy who wrote this is the same guy who invented ~~APL~~ a number of APL inspired languages (Edit: He did not invent APL. Thanks for the corrections!), so I suspect he may just be built different. https://www.jsoftware.com/ioj/iojATW.htm Have you seen anything written in K itself? Here's a program to calculate primes: 2_&{&/x!/:2_!x}'!R
I was not convinced of the readability of APL, but compared to its successors which tried to stick to ASCII, I've learned to appreciate the merits of an extended character set.
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#26[flagged]
Ha! The guy who wrote this is the same guy who invented ~~APL~~ a number of APL inspired languages (Edit: He did not invent APL. Thanks for the corrections!), so I suspect he may just be built different. https://www.jsoftware.com/ioj/iojATW.htm Have you seen anything written in K itself? Here's a program to calculate primes: 2_&{&/x!/:2_!x}'!R
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#27Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#28Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#29The K language seems to be limited to CPU only. Yes, it can call out to GPU ( https://code.kx.com/q/interfaces/gpus/ ) but K only runs on the CPU. This strikes me as odd for an array language.
Re: K/simple: a tiny K interpreter for educational purposes by Arthur Whitney
#30This looks like a cult I would happily dive into. Does anyone care to ELI5? I tried to read the code but did not understand a single line
But seriously, if you haven’t given it a try you should. You won’t be disappointed.