Тёмный
No video :(

Writing a Compiler and Interpreter in Rust - Part 1 

Lion
Подписаться 787
Просмотров 8 тыс.
50% 1

In this series, we write a compiler and interpreter for my stack based language "MCL" (a programming language I designed) in Rust. Originally written in C++, we investigate how it works, rewrite it in Rust, and optimize the hell out of it.
In this episode, we look at the old code, and then get into actually writing some Rust! Exciting.
The codebase will be on GitHub, but in this video we don't produce enough code to push anything yet. The original mcl is at github.com/lio...

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 3 месяца назад
Everyone has the idea to create own language, a compiler, an interpreter and so on. Certainly, I did it too. I am glad that someone is willing to share the idea. My way was a bit different, originally my language was written in Java and then I rewrote it in Rust.
@lionkor98
@lionkor98 3 месяца назад
It's a wonderful challenge, especially when you go more in depth than "just" a stack based language like we do here
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 3 месяца назад
@@lionkor98 Sure.
@mathmo
@mathmo 3 месяца назад
Looks promising! You should create a playlist for these videos.
@lionkor98
@lionkor98 3 месяца назад
Done!
@lukebrichey
@lukebrichey 2 месяца назад
Was hoping to write an interpreter and learn Rust so this is precisely what I was looking for! Excited for the series
@lionkor98
@lionkor98 2 месяца назад
Hope you enjoy it! Taking a few weeks break for my thesis, but then I'll be right on episode 8 -- so in a few days probably. Interpreters are very fun to build, I encourage you to try it yourself!
@aayushashokkashyap
@aayushashokkashyap 3 месяца назад
These days my feed has gotten a lot better with people like him appearing.
@linkernick5379
@linkernick5379 3 месяца назад
You've got really appealing ASMR-like voice 🙂‍↔️ But the content is good too, looking forward to see how LLVM works, I hope you'll use it for codegen.
@lionkor98
@lionkor98 3 месяца назад
Hi, we're probably gonna write our own shitty JIT first to see how far we can go, and then switch to something serious
@romangeneral23
@romangeneral23 2 месяца назад
We must view compiler as enemy!!!
@miketag4499
@miketag4499 Месяц назад
Using a mouse? Hmmm i should reconsider subscribing to this channel Amazing job, thanks for sharing
@lionkor98
@lionkor98 Месяц назад
Hahaha I actually got that before - But really, I use (neo)vim because it's convenient. If scrolling or showing stuff with my mouse is convenient, I'll do that :D At work I still have to use Visual Studio so it may also be that. Glad you enjoyed :) The series is continuing soon
@eineatombombe
@eineatombombe 4 месяца назад
cool stuff
@slendi9623
@slendi9623 3 месяца назад
hes just like me fr
@vanillarodent
@vanillarodent 4 месяца назад
heard we switching to rust
@lionkor98
@lionkor98 3 месяца назад
we have to, its very hip and very cool!
@vectorlua8081
@vectorlua8081 3 месяца назад
I'd honestly rather write stuff in C++, but cargo is simply built different.
@blueghost3649
@blueghost3649 3 месяца назад
Why C++?
@vectorlua8081
@vectorlua8081 3 месяца назад
@@blueghost3649 I just prefer C++, to my monkey brain it just reads easier, and I'm not referring to most C++ 20 features, stuff is living, breathing, nightmare fuel. (specifically std::ranges)
@lionkor98
@lionkor98 3 месяца назад
I agree for the most part, C++ is quite nice and it's still what I mostly write, but rust + cargo are just too easy to not use ;)
@lack_of_awareness
@lack_of_awareness 3 месяца назад
Why would u want to miss out on traits & algebraic enums? I heavily use them to model language for compilers
@lionkor98
@lionkor98 3 месяца назад
@@lack_of_awareness exactly
@khanra17
@khanra17 3 месяца назад
Audio quality is wack & over edited
@lionkor98
@lionkor98 3 месяца назад
Hi! I didn't edit the audio at all, I just sound like that. If you mean it cutting out here and there, that's RNNoise noise suppression.
@esiarpze7908
@esiarpze7908 3 месяца назад
I like the audio, it’s lovely
Далее
programming daily #12 - 2024  09 04
35:00
Просмотров 12
La Tierra Robó El Anillo De Saturno #planetballs
00:14
9 Rust Best Practices with Real Lib (part 1/3)
27:11
Compilers, How They Work, And Writing Them From Scratch
23:53
I Designed My Own 16-bit CPU
15:46
Просмотров 2 млн
Rust: When C Code Isn't Enough
8:26
Просмотров 159 тыс.
C++ vs Rust: which is faster?
21:15
Просмотров 391 тыс.
My 2 Year Journey of Learning C, in 9 minutes
8:42
Просмотров 600 тыс.
Teaching myself C so I can build a particle simulation
11:52
Writing My Own Database From Scratch
42:00
Просмотров 218 тыс.
The Star Language that will outshine Rust? Gleam
10:33
2 Years Of Learning C | Prime Reacts
22:24
Просмотров 279 тыс.