this post was submitted on 14 Mar 2025
47 points (100.0% liked)
Programming
19139 readers
40 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 [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Eh, not entirely. Typescript will build faster and the text editor can parse it quicker but once it hits the browser no speed is gained. It's kinda stated in the article but it dances around it quite well I wouldn't blame you for missing it.
This just makes transpilation quicker along with some other benefits while working with it in editor. It's still just JavaScript in the end this just gets it there quicker. Still very cool though.
I feel this should be obvious to anyone who knows anything about programming, because typescript is just a development tool not a runtime.
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.
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?
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.
No idea! :)
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.
Nice! Thanks for sharing