3 ms·
Really different and fascinating video, thanks! Two surface level questions: 1) The "trains" design pattern you mention, do you have a link (to wikipedia or so
by breck 10y ago
Really different and fascinating video, thanks!
Two surface level questions: 1) The "trains" design pattern you mention, do you have a link (to wikipedia or something) with more info? i might know the pattern by a different name 2) I liked the tree printout seen at 1:42. Is there a library or algo you used for that?
- arcfide 10y ago1. http://www.jsoftware.com/papers/fork.htm http://www.jsoftware.com/papers/fork.htm See Hook and Fork. This was the first introduction of Trains programming in APL, I think. You can see help.dyalog.com for more information of the current implementation in Dyalog. 2. I think the tree printout of trains is a built in library feature of Dyalog APL. The dfns library (dfns.dyalog.com) has a tree printing dfns that may be of use in implementing it, and I think you can read the actual source code for that in the user command for display or the like. I may implement a version of this for my ASTs to augment the Xml and px utilities, as it is a nice format and one that might be of use for printing out the AST of the compiler. I have not had need of it yet, though, so I'll probably get to it the next time I have to do a fancy demo for which I can prepare more adequately.
- breck 10y agoEdit: Oops, typo. I meant 1:24 (https://youtu.be/gcUWTa16Jc0?t=5210 https://youtu.be/gcUWTa16Jc0?t=5210).