Dev Tools · 1h ago
TypeScript-to-Go Compiler tgo Hits Milestone with UUID, Async-to-Goroutines
The tgo compiler now compiles the UUID library (v12 and v13) and passes all unit tests natively in Go. It maps async/await to Go goroutines for parallel performance, and includes precompilation optimizations for faster dev loops. However, compiling Lodash has proven extremely difficult due to its heavy use of state and globals.
Meridian48 take
The project's early benchmarks show Go isn't always faster—Node beats it on float-heavy tasks—but typed BigInts and parallelism give Go the edge, highlighting the tradeoffs in cross-language compilation.
Read the full reporting
tgo Dev Log #2: Compiling UUIDs, Async Goroutines, and the Lodash Nightmare →
DEV Community
typescript-to-gocompiler