Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This kinda begs the question: should we port all backend Typescript code to Go (or Rust) to get a similar runtime performance improvement? Is Typescript generally this inefficient?


You could profile it and find out.

Another commenter pointed out that compilers have very different performance characteristics to games, and I'll include web servers in that too.

tsc needs to start up fast and finish fast. There's not a ton of time to benefit from JIT.

Your server on the other hand will run for how long between deployments?


If your backend is JS and it's too slow for you, then obviously porting it to a machine code binary will speed it up significantly. If you are happy with your backend performance, then does it matter?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: