Skip to content
0:00 / 0:00

#typescript#go#compiler

A 10x faster TypeScript

Microsoft Developer

700K subscribers • 17 videos on Hallway

YouTube
  • Recommended by 2 people: 2 on Hacker News.
  • Presented by Anders Hejlsberg, lead architect of TypeScript
  • Linked in the descriptionmicrosoft/typescript-go
  • Made by the vendor. The company whose product it covers made or sponsored it.

Intermediate. Assumes working knowledge.

608K views1 year ago2 recommendations

Programming languagesSystems programmingTypeScriptCompilers and interpretersPerformance and optimization

Anders Hejlsberg introduces a native port of the TypeScript compiler written in Go, explaining how concurrency and immutable data structures achieve a 10x speedup.

Anders Hejlsberg, lead architect of TypeScript and Technical Fellow at Microsoft, introduces a new port of TypeScript that will deliver the next generation of high-performance developer tooling. Learn More Here ➡️ devblogs.microsoft.com/typescript/typescript-native-port/ Build and Run the Go code from this repo ➡️ github.com/microsoft/typescript-go

Why it's here

2 people recommend this

What people say. Engineers point to this video to understand the performance gains and architectural decisions behind the Go port of TypeScript.

odyssey7on Hacker News • Recommends

On “A 10x Faster TypeScript”

The key: > immutable data structures --> "we are fully concurrent, because these are what I often call embarrassingly parallelizable problems" The relationship of their performance gains to functional programming ideas is explained beginning at 8:14 link to this video

yomismoaquion Hacker News • Recommends

On “Show HN: Doom port to pure Go – Gore”

…escript, Delphi & Turbo Pascal shows how a real engineer takes a decision of this magnitude. Is Go the best decision for every SW project? No, but in this case the arguments (and the tests they did during their evaluation) check out. And no, picking F# simply because you love the language is not a mature decision. You can check his arguments here: link to this video…

dcreon Hacker News • Mentions

On “A 10x Faster TypeScript”

In the embedded video they show some of the code side by side and it is just a ton of if statements. link to this video

dataviz1000on Hacker News • Mentions

On “A 10x Faster TypeScript”

Not sure if it does but the video linked in the post might answer your question? I think he is compiling vscode which includes Monaco editor which is where they are getting 10x faster stat. (I might be wrong here.) 0 0 link to this video

kristianpon Hacker News • Mentions

On “Show HN: I rewrote my Mac Electron app in Rust”

Here's the FAQs, where they explain the decision to go with Go and not, say, rust. link Hejlsberg also says in this video, about 3.3x performance is from going native and the other 2-3x is by using multithreading. link to this video

u/devitatein r/typescript • Mentions

On “Recent TSGO developments”

Hear it from the project lead - [video

u/AmSoMadin r/typescript • Mentions

On “New to Typescript, it's crazy slow...”

You're not (really) saying TypeScript is slow (although the TS compiler and toolset is built in TS); you're saying the TypeScript language server and/or linter is slow, which is a common complaint. This, in part, is why MS is porting TypeScript to Go. There are other ways to speed up the current TS language server. There's a few settings and tweaks you can make to your tsconfig (you'd need to look it up). You could switch to something like Biome, which is quite a bit faster. It's also a hardware matter. I'm on a 4-year-old ThinkPad, and the TS linter/language-server is pretty fast, even in large code-bases. Not INSTANT or PERFECT, but it's not horribly slow. If it's too slow for you, yo…

u/user_393in r/dotnet • Mentions

On “The TypeScript team porting TypeScript to Go”

See also this demo for some explanation why they chose Go: [video