Re:Crafting Interpreters with Rust: On Garbage Collection
by ltungv on Wednesday July 31, 2024 @07:21PM
(#41124578)
haha, glad to know that I'm not the only one
[ Parent
| on HN ]
Re:Crafting Interpreters with Rust: On Garbage Collection
by munificent on Wednesday July 31, 2024 @09:46PM
(#41125454)
I get tripped up by variance too and thinking about that stuff is literally my job. If it helps, I wrote a blog post recently about Go's type system and it happens to touch in variance in a way that might help it click:
https://journal.stuffwithstuff.com/2023/10/19/does-go-have-s...
Re:Crafting Interpreters with Rust: On Garbage Collection
by spinningslate on Thursday August 01, 2024 @04:07AM
(#41127105)
The very first sentence of that article got me excited:
>I’ve been noodling on a static type system for my current hobby language.
As an inveterate language tinkerer for decades, Crafting Interpreters is like the intersection of Class A narcotic addiction, Feynman level understanding and religious enlightenment. It's in my top 3 favourite books of all time.
If you were to /happen/ to write an extension/follow up book that addressed static typing, then I can personally guarantee at least one sale.
Independent of that, thanks for the work as it stands. My copy is healthily dog-eared and still gets lugged around on holidays for refresh reading.
Re:Crafting Interpreters with Rust: On Garbage Collection
by ltungv on Thursday August 01, 2024 @04:53AM
(#41127271)
Thanks for sharing. I've enjoyed every single piece of your writing so far. This will be in the arsenal of materials I'll use when I again get confused about variance.
Re:Crafting Interpreters with Rust: On Garbage Collection
by bigstrat2003 on Thursday August 01, 2024 @01:43AM
(#41126466)
Definitely not the only one. I am not a stupid person*, but every single time I read the section on variance in the Nomicon I feel like an utter moron.
*source: trust me bro