News for hackers. Stuff that matters.
Re:Crafting Interpreters: Classes by munificent on Monday October 30, 2017 @01:49PM (#15587235)
> Do you also will do multi-methods?

No, the book will only go into implementing single dispatch. I'd love to talk about implementing multimethods, but I don't know how to implement them very well either. :) I've read a few papers on it, but there doesn't seem to be a lot of literature. Maybe it's mostly locked up in tribal knowledge and you have to be in the right room with the right people to learn it.

Re:Crafting Interpreters: Classes by unnikked on Monday October 30, 2017 @05:01PM (#15588853)
> Maybe it's mostly locked up in tribal knowledge and you have to be in the right room with the right people to learn it.

This is sad.

Re:Crafting Interpreters: Classes by munificent on Monday October 30, 2017 @08:35PM (#15590263)
Tell me about it. As someone who works in programming languages professionally but has no academic background in it, it's maddening how much stuff is impossible to learn because "you can't publish a paper on it because everyone knows it already".
Re:Crafting Interpreters: Classes by mncharity on Monday October 30, 2017 @11:10PM (#15590855)
Years ago I dreamed that Lambda the Ultimate had added a wiki, so language implementation was quickening. Waking up... :(
Re:Crafting Interpreters: Classes by mncharity on Monday October 30, 2017 @10:55PM (#15590808)
Similarly in the sciences, the gaps can be surprisingly large between insightful discussion among principals at conferences, and "you have to know the people involved to evaluate them" narrow papers, and misleading texts, and at great remove, introductory material.
Re:Crafting Interpreters: Classes by fasquoika on Monday October 30, 2017 @05:15PM (#15588969)
I'm assuming that you've seen this then? http://people.csail.mit.edu/jrb/Projects/pd.pdf
Re:Crafting Interpreters: Classes by mncharity on Monday October 30, 2017 @10:32PM (#15590728)
https://github.com/googoogaga/goo continued for a bit, then didn't.

OT: With Google Chrome's new Turbofan, and its altered inlining budgeting, there now seems a chance of inlining dispatch trees. Combined with PICs, and cpu branch prediction and speculation... there seems hope for wizzy multiple dispatch in javascript. Maybe. I don't know of anyone pushing on it.

Re:Crafting Interpreters: Classes by munificent on Monday October 30, 2017 @06:44PM (#15589646)
No, I haven't. Thanks for the reference!
Re:Crafting Interpreters: Classes by junke on Monday October 30, 2017 @06:45PM (#15589656)
You mention CLOS in your article; to dive deeper into implementation issues, see also https://en.wikipedia.org/wiki/The_Art_of_the_Metaobject_Prot....
Re:Crafting Interpreters: Classes by munificent on Monday October 30, 2017 @07:48PM (#15590031)
Yup, I read AMOP several years ago. But as I recall, it doesn't talk too much about low-level implementation shenanigans.
Re:Crafting Interpreters: Classes by junke on Tuesday October 31, 2017 @03:53AM (#15591650)
What I liked about it is the discussion about design decisions: where and how to let the protocol be open to extensions, etc. (btw, sorry about the pedantic tone of the previous comment).
Re:Crafting Interpreters: Classes by mamcx on Monday October 30, 2017 @08:59PM (#15590367)
Also: Any idea why multi-methods are resolved on runtime? Is not possible for a static compiler?