Does someone know of a tutorial on making a smalltalk-like language in racket?
Not per se. But if you follow one of the other tutorials - and then look at an “how to implement objects” tutorial in combination.
Have you seen the section on implementing objects in SICP? (and is it the same type of object system)
never got to it to be honest..!
Haven’t had the time :sweat_smile:
Maybe I’ll have a look, I’ve skipped some chapters in SICP and managed to understand some further on anyways (with the help of the MIT + Berkeley videos)! But in SICP they don’t really touch on classes though do they?
I think section 2.4 is the one I was thinking of: https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book-Z-H-17.html#%_sec_2.4
I don’t know that one, which is it?
Also Queinnec has written some papers on Objects: https://pages.lip6.fr/Christian.Queinnec/WWW/Objects.html
I started looking at his chapter in Lisp in Pieces
on Meroon
That’s a good place to start!
Meroonet
actually
If you decide to follow into the rabbit hole: https://github.com/scheme-and-computer-science/library.readscheme.org/blob/master/page4.md
But I was wondering how a more typical single-dispatch class-based language like smalltalk would be implemented using lisp
that’s a wide and deep rabbit hole :sweat_smile:
I’ll check it out thanks :slightly_smiling_face:!
Here’s ~50 line core of an object language in Racket. No syntactic sugar. https://gist.github.com/samdphillips/5a15e6462bc737f2fee83935b900a634
There are more interesting things that can happen with names that the Racket class language does that eliminates using special send and field access forms within class forms.
@maxim_jaffe ^
@robbiehk131 has joined the channel
Can you give an example? Wonder what it would look like.