this post was submitted on 14 Mar 2025
36 points (84.6% liked)

Programming

19016 readers
133 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Bigger TypeScript projects should now become much more manageable in all code editors

you are viewing a single comment's thread
view the rest of the comments
[–] aleq@lemmy.world 24 points 5 days ago (2 children)

I feel this should be obvious to anyone who knows anything about programming, because typescript is just a development tool not a runtime.

[–] Dark_Arc@social.packetloss.gg 11 points 5 days ago (2 children)

I... Don't know about that. I mean, you could implement a browser or even a runtime library that used typescript (or a subset thereof) to directly write LLVM; it would take a lot of work, but typescript doesn't have to just be for transpiling.

[–] aleq@lemmy.world 3 points 5 days ago (2 children)

But there is no such implementation AFAIK? How is it making Typescript faster if it's a completely new implementation?

But certainly, in theory it could become unshackled from JavaScript. Have there been any serious attempts to do so though?

[–] arendjr@programming.dev 5 points 5 days ago (1 children)

There is a serious attempt for that actually: https://www.assemblyscript.org/

It doesn’t offer full compatibility with the regular TypeScript though, despite being very similar.

[–] Dark_Arc@social.packetloss.gg 2 points 5 days ago

Nice! Thanks for sharing

[–] Dark_Arc@social.packetloss.gg 5 points 5 days ago* (last edited 5 days ago)

But there is no such implementation AFAIK? How is it making Typescript faster if it's a completely new implementation?

Well a new implementation running TypeScript could be 10x faster than the traditional e.g., NodeJS implementation or something; it's not unusual for things to be compared in such a way.

But certainly, in theory it could become unshackled from JavaScript. Have there been any serious attempts to do so though?

No idea! :)

[–] FizzyOrange@programming.dev -1 points 5 days ago

That would be very difficult because Typescript isn't sound.

[–] BatmanAoD@programming.dev 8 points 5 days ago

TypeScript is a language, and traditionally languages are considered separate from their implementations. When I first saw the headline I hoped maybe it meant a non-JS runtime for compiled TS, and I'm well aware of the difference. Yes, that would be a much larger undertaking than porting the compiler to a new language, but the headline doesn't indicate how large a project this is, and Microsoft certainly has the resources to write a new backend (even a native-code one) for the TS compiler.