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

Why no C++ version?


Because C/C++ would kick ass, exposing the rest of the hipster technologies as lame.


Pfft doubtful. Rust, C and C++ all have very similar performance. And apparently a javascript framework is currently beating all of those languages in the composite score on techempower, though that seems a bit weird to me:

https://www.techempower.com/benchmarks/#section=data-r21&tes...

C doesn't have a built in, optimized async execution engine of any sort. C with threads would lose to any of the async runtimes here (including javascript).

C++ has async now. By all means, write up an async C++ example and compare it. I suspect a good C++ async executor would perform about as well as tokio, but it'd be nice to know for sure.

I'd also be interested to see how hard it is to write that C++ code. One nice thing about Rust and Go is that they perform very well with naively written code. (Ie, the sort of thing chatgpt, or most of your coworkers would write.) Naive C would use kernel threads, so if we're comparing average C code to average Go code at this test, the average go code will end up faster.

(This isn't always true of rust. I've seen plenty of rust code which uses Box everywhere that runs crazy slow as a result.)


> And apparently a javascript framework is currently beating all of those languages in the composite score on techempower, though that seems a bit weird to me:

Just-js was essentially built to run the techempower benchmark. It's not a real stack you can use. An exercise in "what is possible".


They would also kick memory safety in the ass, unless you’re the kind of dev who doesn’t make those kinds of silly mistakes



`unsafe` doesn't mean that it's not safe, just that the compiler can't prove that it's safe so the human has to do it manually.


Are you trying to say that you can write from scratch a code just as safe or better than one of the most peer reviewed crate of Rust? Congrats, the world has been waiting for you, but nonetheless, that's why commoners prefer to stick to what's safer for them


Haskell imo is the most glaring omission. Famous for its green threads long before Go was around.




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

Search: