Hacker News new | ask | show | jobs
by parliament32 2401 days ago
>Go achieved the second-best performance at 140,000 requests per second. This number wasn’t far off from the top performer, which clocked in at 167,000 requests per second.

I wonder what the top performer was... I bet it was C.

If you're doing just binary to string conversion there's no need for a features-language like Java or Node. C probably would've been a better option.

1 comments

C/C++ are never better options because of the number and sheer variety of undefined behaviors, manual memory management and ways to shoot onself on the foot. It's something to use when there's no other choice (legacy code base, embedded systems - though this is also moving to higher level languages).
I promise you they are. There's a reason why over 90% of the programs you invoke or interact with on a daily basis are written in C.
Yes. Most of them are evolutions of legacy code bases and that's why they're also security nightmares.

If you're building anything new it's very hard to make a valid case for coding in C. You're almost always better off working in Rust, Java, Swift or Go