rust-hosted-langs / book

Writing Interpreters in Rust: a Guide
https://rust-hosted-langs.github.io/book/
Creative Commons Attribution 4.0 International
479 stars 27 forks source link

Explain why a custom allocator is needed at start of the book #45

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, thanks for the book It is very helpful.

I don't get the rationale for having a custom allocator though, shouldn't it be explained at the start? Wouldn't default rust allocator be good for this?

pliniker commented 3 years ago

Yes, thank you, it does seem I need to explain better in the text why I have taken this approach.

An explanation:

ghost commented 3 years ago

thanks for the explanation