The code won't compile on modern C compilers due to some antiquated syntax. <a href="https://github.com/tangentstorm/j-incunabulum" rel="nofollow">https://github.com/tangentstorm/j-incunabulum</a> has a translation that should work on modern compilers.<p>The original code is worth investigating if you're into CS archeology. J is as interesting of a language as Lisp and I was amazed by the tiny implementation. However, the original code is buggy and will crash on slightly malformed input.
For the ones that don't know, incunabulum is a book printed before 1501 [0].<p>I find the story behind incunabula really fascinating. Also, for what it's worth, incunabulum / incunabula sounds quite odd in Italian (it resembles some dirty words), and the few times it got mentioned here and there, most people don't know what it means and assume the worst.<p>[0]: <a href="https://en.wikipedia.org/wiki/Incunable" rel="nofollow">https://en.wikipedia.org/wiki/Incunable</a>
The Legend of The Hui[0] also digs into this code a bit in a silly way.<p>[0]:<a href="http://www.jsoftware.com/pipermail/chat/2020-March/008507.html" rel="nofollow">http://www.jsoftware.com/pipermail/chat/2020-March/008507.ht...</a>
I did some APL coding like 40 years ago....
I did like it at the time, but this family of languages
provokes WRITE ONLY coding style....
While you actively working on some code, it's ok... but when
you come back to a code written couple of month ago or written by someone else you're pulling you hair out trying to understand it
anyone tried to compile it?<p>I'm getting this when trying to run it:<p><pre><code> $ cc main.c
... lots of warnings ...
$ ./a.out
1
1
2*2
Segmentation fault (core dumped)</code></pre>