Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Tell HN: C and C++ are absolute beasts when it comes to performance efficient
4 points by delduca 5 months ago | hide | past | favorite | 1 comment
C and C++ are absolute beasts when it comes to performance and efficient resource usage.

Want proof? Recently, I spent just a few minutes crafting an HTTP server using Boost.Beast. Each request can send Lua code, and for every request, a new Lua VM is instantiated, the code is executed, and the result returned.

Think of it like AWS Lambda — but without Firecracker’s isolation.

I ran benchmarks with over 10,000 parallel requests — that is, 10,000 isolated Lua VM instances orchestrated on just 8 physical cores, with a latency of around 15ms.

And that was using code written by ChatGPT. If I dove into aggressive optimizations and coroutines, I could probably reach 100K simultaneous clients — assuming the kernel allows it.



Could also be that anything else that's lower-performing is simply lacking beastliness :)

Once a certain performance benchmark is reached on commodity hardware, doesn't it really make the most sense if newer languages never fail to drop below that benchmark on identical hardware?




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

Search: