Loading video...

Video Failed to Load

Go Home

Everyone is writing the TypeScript compiler in rust. I wrote the rust compiler in TypeScript. Introducing “cargovroom” a rust compiler built fully in typescript.

63,385 views • 7 days ago •via X (Twitter)

33 Comments

Neesh 🥭's profile picture
Neesh 🥭7 days ago

now rewrite it in rust and then compile it again

Noah's profile picture
Noah7 days ago

Blasphemy

Neil Chudleigh's profile picture
Neil Chudleigh7 days ago

now make it slower

maria's profile picture
maria7 days ago

does it compile faster?

Noah's profile picture
Noah7 days ago

yes somehow

PaulPlay's profile picture
PaulPlay7 days ago

Now run it through scriptc, and maybe it's faster than the original ;)

Can Vardar's profile picture
Can Vardar7 days ago

but can it cook for me?

Pranjal Paliwal's profile picture
Pranjal Paliwal7 days ago

you must be fun at parties

Yuri's profile picture
Yuri7 days ago

does it have borrow checker?

BreezeOg's profile picture
BreezeOg7 days ago

the reverse uno 😭

Justin Torre's profile picture
Justin Torre7 days ago

Lolol

Cupsey's profile picture
Cupsey7 days ago

a rust compiler in typescript. the circle is complete

0xDE, 0xAD, 0xBE, 0xEF's profile picture
0xDE, 0xAD, 0xBE, 0xEF7 days ago

I’m so poor bro 😭

Parth Bhosle's profile picture
Parth Bhosle7 days ago

I mean u could've just did exec(`cargo ${subcommand}`)

Daniel Vélez's profile picture
Daniel Vélez7 days ago

where's the repo?

dpc's profile picture
dpc7 days ago

Can it compile Rust itself? Unironically could be useful for bootstrapping.

Greg Schier 👨🏼‍💻🇨🇦's profile picture
Greg Schier 👨🏼‍💻🇨🇦7 days ago

Can't be slower than it is already

Dimava's profile picture
Dimava7 days ago

Does it just compile or typechecks as well?

UPDOG 🇬🇧🇯🇵's profile picture
UPDOG 🇬🇧🇯🇵7 days ago

astounding

Arihant's profile picture
Arihant7 days ago

hell yeah

Jephthah Mbah's profile picture
Jephthah Mbah7 days ago

This is getting out of hand

fiona's profile picture
fiona7 days ago

Kys

Amar AlAzizy's profile picture
Amar AlAzizy7 days ago

Is it rust or go or native ts?

shїneq 🇵🇱🇺🇦🇵🇸🇬🇪's profile picture
shїneq 🇵🇱🇺🇦🇵🇸🇬🇪7 days ago

Cursed

Arpit's profile picture
Arpit7 days ago

Time to write everything back to ts....

OthmanHaba's profile picture
OthmanHaba7 days ago

the most rusty thing i ever saw 🦀

Aaron's profile picture
Aaron7 days ago

lmao

Andhrimnir @ Lan Game Studios's profile picture
Andhrimnir @ Lan Game Studios7 days ago

if gpus had feelings they would be very upset right now

Hong Truong's profile picture
Hong Truong7 days ago

Can it compile bun?

Sumit Datta's profile picture
Sumit Datta7 days ago

But, are you using tsrs to compile the Typescript code? Loop-di-loop

Cyberistic's profile picture
Cyberistic7 days ago

awesome name

Riley David Jesus Seaburg's profile picture
Riley David Jesus Seaburg7 days ago

Please tell me this is a joke how do people have the time or money to do this?

Fahreza's profile picture
Fahreza7 days ago

Therefore the downside in rust development is no more?

Related Videos

Why is Rust different than many/most programming languages? Alice Ryhl works on Google's Android Rust team, is a Rust language team advisor, and is a core maintainer of Tokio (the most widely-used async runtime in Rust) Timestamps: 00:00 Intro 04:09 Tokio: an overview 05:11 What Alice likes about Rust 12:48 Rust for TypeScript engineers 13:51 Moving from C++ to Rust 14:34 Memory safety 18:12 Garbage collection tradeoffs 21:46 Ownership, references, and borrowing 26:59 Unsafe in Rust 31:21 Crates and Cargo 35:55 Language design and RFCs 43:02 Building new features 46:30 Editions vs. versions 49:47 Getting paid to work on Rust 51:27 Contributing to Rust 53:03 Rust in the Linux kernel 55:45 AI use cases for Rust 1:01:35 Learning Rust 1:03:54 Book recommendation Brought to you by: • Antithesis – verify your system’s correctness without human review or traditional integration tests – and avoid bugs or outages. • Sentry – application monitoring software considered “not bad” by millions of developers Three things worth knowing about Rust: 1. Rust was designed to turn implicit failures into compile errors. Where other languages allow you to forget something, Rust makes an omission into a compilation error for things like null checks, uninitialized variables, or error propagation with the ‘?’ character. If you mess something up, it’s almost certain your program will not compile. If it does, at the very least you should see a lint warning. 2. Refactoring in Rust is safe and easy, thanks to the compiler. Alice: “I change a return type or struct field, then just fix the compiler errors until the compiler stops shouting. And then once I’ve done that, I’ve updated every place I need to update.” Rust’s focus on correctness makes refactoring it more straightforward than dynamically-typed languages and Java-style typed ones are to refactor. 3. “Editions” allow Rust to make breaking changes without ‘breaking’ anyone’s code. Rust editions (2015, 2018, 2021, 2024) can be mixed freely across crates. A library on the 2021 edition works seamlessly with a binary on the 2024 edition. This is how Rust evolves syntax (like adding async/await as keywords) without forcing an ecosystem-wide migration. Thanks a lot, Alice for this great discussion! And for your work on Rust.

Gergely Orosz

52,449 views • 5 months ago