5 ms·
Crafting Interpreters: Classes and Instances
- CDSlice 7y agoWhy is this dated 2017? This chapter just came out.
- azhenley 7y agoThis happened with the last chapter too. I’m not sure who changed it...
- deleted 7y ago[deleted]
- blondin 7y agoikr... tbf this book has been going on forever now :) can't blame the author though.
- reificator 7y agoLooks like just two chapters left though. I've been putting off reading it until it comes out so I'm glad I see the update progress here.
- dang 7y agoModerator mistake. Not sure why. Fixed now. Thanks!
- tripa 7y agoThe book has two parts, both of which can reasonably contain a chapter of that name.
- matheusmoreira 7y agoAn implementation of classes with prototypes: http://journal.stuffwithstuff.com/2010/08/01/class-in-the-front-proto-in-the-back/ http://journal.stuffwithstuff.com/2010/08/01/class-in-the-fr...
- deleted 7y ago[deleted]
- masklinn 7y ago> This is the best of both worlds: prototypes are easier for the language implementer to code and classes are easier for the user to use. Of course you also get the worst of both worlds: the performances of prototypes and the split world of classes.
- munificent 7y agoAlso true!
- jonnytran 7y agoCan you explain how this is so much different in terms of performance? Since users doesn't have direct access to the prototypes, they're not doing arbitrary manipulation or creating long chains of them.
- wool_gather 7y agoNote for completeness, that blog is by the author of this book.
- ketralnis 7y agoI've been following this book and I really enjoy it. The style is in a sweet spot for me between "here's all of the code, just read it" and "here's some theory, go do it yourself"
- nielsbot 7y agoI highly recommend Piumarta: https://www.piumarta.com/software/cola/objmodel2.pdf https://www.piumarta.com/software/cola/objmodel2.pdf A minimal, open-ended, end user programmable object runtime model. This paper really changed how I think about classes and objects and their implementation.