Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

44,506 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von David Blass
David Blassvor 1 Jahr

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

Profilbild von bhavit sharma
bhavit sharmavor 1 Jahr

this doesn't answer anything lol

Profilbild von David Blass
David Blassvor 1 Jahr

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.

Profilbild von Dillon Mulroy λ
Dillon Mulroy λvor 1 Jahr

checkmate

Profilbild von const name = Symbol(“Luiz G Rocco”)
const name = Symbol(“Luiz G Rocco”)vor 1 Jahr

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.

Profilbild von David Blass
David Blassvor 1 Jahr

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

Profilbild von Jamie Hicks 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Jamie Hicks 🏴󠁧󠁢󠁳󠁣󠁴󠁿vor 1 Jahr

No garbage collector, saved you 30 seconds

Profilbild von Tom Siwik
Tom Siwikvor 1 Jahr

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

Profilbild von Monk Zero
Monk Zerovor 1 Jahr

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 🥲

Profilbild von Tomasz Ducin 🇺🇦
Tomasz Ducin 🇺🇦vor 1 Jahr

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

Profilbild von David Blass
David Blassvor 1 Jahr

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.

Ähnliche Videos