Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by jarpineh on Sunday March 05, 2017 @04:52PM
(#13798954)
With the Dyalog APL book going 800 pages I hope more won't be required to get feel of the language ;)
I tried meaning of life from FinnAplIdioms on TIO. Sadly it didn't produce any output...
Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by arcfide on Sunday March 05, 2017 @06:02PM
(#13799401)
I just looked at the meaning of life. That's unlikely to work with many "hosted" APLs because of the use of eval, which is a security concern in an online REPL.
However, if you remove the execute you can still get a string version:
⊖⍕⊃⊂|⌊-*+○⌈×÷!⌽⍉⌹~⍴⍋⍒,⍟?⍳0
42You can paste this into the REPL at TryAPL.org.
Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by jarpineh on Monday March 06, 2017 @05:17PM
(#13806561)
Well, it seemed interesting and I suspected it would result in 42, however else it would do its work :)
Perhaps that's one way t frame the Question.
Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by arcfide on Monday March 06, 2017 @07:13PM
(#13807300)
What's really interesting about the above is that it is "seeded" with a random number. :-)
Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by throwaway7645 on Sunday March 05, 2017 @09:37PM
(#13800322)
+5 bad@$$ points sir.
Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by arcfide on Sunday March 05, 2017 @05:20PM
(#13799146)
Remember that the FinnAPL library expects that you know your APL environment and are able to adapt the idioms to suit.
You should also consider "Notation as a Tool of Thought" by Kenneth Iverson (his Turing Award lecture) to be required reading.
Re:AMA: Explaining my 750 line compiler+runtime designed to ...
by jarpineh on Monday March 06, 2017 @05:09PM
(#13806501)
I think it's this: http://www.jsoftware.com/papers/tot.htm
I thought I had read it at some point, but now it doesn't ring a bell. Well, it's on the list now. It starts with Babbage quote and uses phrase "tool of thought" which coincides early computer history books I've been reading.
Other than that there are great book recommendations in the last APL data types thread on HN.