News for hackers. Stuff that matters.
Re:I stopped everything and started writing C again by dgacmu on Wednesday March 12, 2025 @09:26AM (#43343014)
There are! But composability is easier in the languages that have generics/templates/etc. There's less passing around of function pointers and writing of custom comparator functions, using something like binary search or sort as an example, and the fact that those comparators can be inlined can often make the rust or C++ version faster than the "as simple to write" C version.

Obviously, all of these languages are capable of doing anything the others can. Turing complete is turing complete. But compare the experience of writing a multithreaded program that has, as part of it, an embedded HTTP server that provides statistics as it runs. It's painful in C, fairly annoying in C++ unless you match well to some existing framework, pretty straightforward in Rust, and kinda trivial in Go.

Re:I stopped everything and started writing C again by johnisgood on Wednesday March 12, 2025 @09:39AM (#43343152)
When it comes to multithreaded programs, I much prefer Go over C, too. :)
Re:I stopped everything and started writing C again by johnisgood on Wednesday March 12, 2025 @12:13PM (#43344768)
I also like Ada, it has built-in concurrency support, but I typically pick Go (and Elixir) these days. It used to be Ada and Erlang before.