Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

The TypeScript rewrite would never have worked in Rust. Learn why in 30 seconds.

44,506 görüntüleme • 1 yıl önce •via X (Twitter)

11 Yorum

David Blass profil fotoğrafı
David Blass1 yıl önce

From @MiTypeScript's excellent interview with @ahejlsberg. You should should absolutely watch the whole thing 🔥

bhavit sharma profil fotoğrafı
bhavit sharma1 yıl önce

this doesn't answer anything lol

David Blass profil fotoğrafı
David Blass1 yıl önce

It absolutely does. It's always been clear to people who understood the ecosystem and the quirks of the language that a 1:1 translation was needed. Translating JS to Rust is the farthest thing from 1:1.

Dillon Mulroy λ profil fotoğrafı
Dillon Mulroy λ1 yıl önce

checkmate

const name = Symbol(“Luiz G Rocco”) profil fotoğrafı
const name = Symbol(“Luiz G Rocco”)1 yıl önce

Watching the full interview gives you more than enough reasons to know why they made that choice, everyone arguing about this are just too lazy to watch it.

David Blass profil fotoğrafı
David Blass1 yıl önce

Sure, but to be fair the target audience for a 30 second excerpt is exactly the people who wouldn't watch the full interview😅

Jamie Hicks 🏴󠁧󠁢󠁳󠁣󠁴󠁿 profil fotoğrafı
Jamie Hicks 🏴󠁧󠁢󠁳󠁣󠁴󠁿1 yıl önce

No garbage collector, saved you 30 seconds

Tom Siwik profil fotoğrafı
Tom Siwik1 yıl önce

One of my favourite libs (oxc) still hasn't shipped ts transpilation... thanks to Rust. Maybe this will speed up the process

Monk Zero profil fotoğrafı
Monk Zero1 yıl önce

TLDR Rust is bad choice of porting(copying) an existing JavaScript code base. I mean isn’t that obvious by nature🙄, kinda sad this is used as fuel for a dick contest. “Mybag is better than your bag” syndrome is even more intolerable in techfi 🥲

Tomasz Ducin 🇺🇦 profil fotoğrafı
Tomasz Ducin 🇺🇦1 yıl önce

Interesting. What's that rusty thing that would make it a poor choice - that other languages don't have?

David Blass profil fotoğrafı
David Blass1 yıl önce

AFAIK stuff like the borrow checker imposes significant restrictions on your code. They may be very valuable for safety but this is the kind of thing that can quickly become unmanageable if the goal is to guarantee identical behavior in a complex system.

Benzer Videolar