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

Well, go preempts at function calls, does it not? So a CPU-heavy inner loop calculating everything will fail to preempt in both languages - is this really a hill worth dying on?

Quite obviously the meaningful distinction is from manually inserted preempt points, like async/await languages.

 help



> So a CPU-heavy inner loop calculating everything will fail to preempt

They fixed that in Go a while ago.

https://go.dev/doc/go1.14#runtime




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

Search: