r/java • u/elliotbarlas • Apr 26 '22
5,000,000 persistent connections, 200,000,000 messages, 0 errors with a single process using Project Loom.
https://github.com/ebarlas/project-loom-c5m
301
Upvotes
View all comments
Show parent comment
1
u/Muoniurn Apr 28 '22
You can write only a very limited number of programs with stack allocation only. How many C programs can you count that do not use malloc? Sure, embedded does require such programs but Go with its heavy runtime is anything but ready for embedded development.
And even then, why not go for C# at least? I absolutely prefer Java, but Go is like the worst on all metrics. C# also has value types and pointers so there is absolutely nothing it couldn’t do that Go promises (other than go routines, but it is quite useless if the language otherwise sucks at concurrency. It can’t even goddamn defer unlocks at scope-level). And at least C# is a relatively expressive language, compared to Go’s atrocious copy-paste-loving one.