Загрузка видео...

Не удалось загрузить видео

На главную

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

44,506 просмотров • 1 год назад •via X (Twitter)

Комментарии: 11

Фото профиля David Blass
David Blass1 год назад

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

Фото профиля bhavit sharma
bhavit sharma1 год назад

this doesn't answer anything lol

Фото профиля David Blass
David Blass1 год назад

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 λ
Dillon Mulroy λ1 год назад

checkmate

Фото профиля const name = Symbol(“Luiz G Rocco”)
const name = Symbol(“Luiz G Rocco”)1 год назад

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
David Blass1 год назад

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 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Jamie Hicks 🏴󠁧󠁢󠁳󠁣󠁴󠁿1 год назад

No garbage collector, saved you 30 seconds

Фото профиля Tom Siwik
Tom Siwik1 год назад

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

Фото профиля Monk Zero
Monk Zero1 год назад

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 🇺🇦
Tomasz Ducin 🇺🇦1 год назад

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

Фото профиля David Blass
David Blass1 год назад

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.

Похожие видео