[Rust Programming] Crafting Interpreters: Day 19, Chapter 14

preview_player
Показать описание
In this video we continue to look at the Crafting Interpreters book, and learn how to port it to Rust. Since I'm a Rust beginner, the intent is that it will help me learn the language more in-depth than before.

Started working on the bytecode version of the Lox interpreter. Defined what chunks are, defined values, and determined how to store line number information.

#rust #rustlang #CraftingInterpreters
Рекомендации по теме
Комментарии
Автор

Heyyo! I know this video is a bit old, and this may be known information to you know, but for anyone that isn't aware:

If you are looking at source for Rust internals (like at 39:32), in the upper left there is an arrow pointing out. If you click on it, it will expand to show the relevant modules and crates. In this case, expanding that tab shows the mod 'raw_vec' which contains the source code for RawVec::reserve_for_push

elijahhartvigsen
Автор

Thanks for your series man. May I ask if this chapter implements a compiler? Does VM and compiler can be used interchangeably as terms? The terminology confuses me a tiny bit.

Blure