3 ms·
> I was curious if the Klong book just covered an intro to array programming in Klong, or if it also covered how you implemented it in C or your high level C li
by nils-m-holm 7y ago
> I was curious if the Klong book just covered an intro to array programming in Klong, or if it also covered how you implemented it in C or your high level C like language?
The Klong book is just an introduction to array programming. The Klong compiler is a rather simple recursive descent parser emitting ad-hoc abstract machine code and the execuction model is basically some glue between the functions implementing the verbs of the language. I did not think that its implementation is particularly interesting and therefore did not cover it in the book.
I hope you find the time for your studies and implementing your own array language!
- 6thaccount2 7y agoAh, regardless it sounds useful and a good way to get up to speed on array programming concepts. One of the problems I've always had with niche languages is that they're so alien compared to my background with scripting languages (Ex: Lisp, APL, Prolog, Forth, Smalltalk, Haskell...etc) and thus harder to figure out how to idiomatically do something. Btw, there is a neat book for Prolog (black cover) on programming text adventures in Prolog. I found it was the only thing that made it start making sense to me as in how I can start to think in Prolog like I do Python. You might enjoy it as well, but you may be past it by now. I'll have to check out your Klong code at some point. It might be a nice start for me. I think I know how to pass things around, but I'm sure there are pitfalls to get passed. Forth might be a good subject for you to cover at some point further in the future too. Thanks!!