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

> - A Go program runs single-threaded, unless you explicitly tell it not too, so I don't quite see that as a plus for Typescript.

I don't think this is a fair comparison. Almost all software needs some kind of concurrency, and multi-threading is the only way to do concurrency in Go. For example, the http server in Go's stdlib runs each request in its own goroutine, which I guess you technically asked for, but also can't be avoided.



That means you think it's a good idea that a JS/TS server handles everything on a single thread, which doesn't sound like an advantage.

BTW, you can also start multiple processes in go instead of go routines. There's probably a Worker-like library for it.




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

Search: