Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by astonex on Thursday November 28, 2024 @06:11PM
(#42269288)
Just give me a modern C++ like language with fast compilation, easy to pull in packages, and build tooling. Basically Go with no GC.
[ Parent
| on HN ]
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by pjmlp on Thursday November 28, 2024 @06:13PM
(#42269296)
Check Odin.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by joshlemer on Thursday November 28, 2024 @06:33PM
(#42269424)
The language seems to be heavily branding itself as "data-oriented", mentioning it front and center on the website and repo, but never mentions in the docs what makes it data-oriented, or what it even means by that. Is it data-oriented in the Clojure sense, in contrast to "place-oriented"? Or is it data-oriented as in programming with tables of rows, or something else?
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by throwaway2037 on Thursday November 28, 2024 @10:04PM
(#42270435)
How is fast compilation possible with C++-like templates? That seems impossible.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by jayd16 on Thursday November 28, 2024 @11:29PM
(#42270805)
So redo the templates.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by AlotOfReading on Friday November 29, 2024 @12:14AM
(#42271027)
They did, hence concepts and constexpr. Rust has more powerful versions of both in traits and macros.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by jayd16 on Friday November 29, 2024 @12:33AM
(#42271113)
Aren't Rust compiles slow as well? I'm suggesting they take a different approach. Are these systems really needed seeing as other languages do without?
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by AlotOfReading on Friday November 29, 2024 @02:32AM
(#42271727)
Other languages don't do without them, the costs are just worse in Rust (and C++). Go for example consciously tried to avoid shipping generics and was forced to implement them by community pressure. They now pay the same kinds of monomorphization costs as C++ and Rust because the alternatives have greater runtime costs. Go is simply a faster-compiling language overall though and the problem is less noticeable. Macros are similarly ubiquitous in other functional languages, but most of them aren't compiled or meaningfully optimized.
Rust is complex, highly expressive, and does a lot of optimization. None of that's good for compile times. C++ is even worse because of how awful the template abuse gets and the amount of duplicated code that's fed into the compiler from how #includes work.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by pjmlp on Friday November 29, 2024 @02:33AM
(#42271733)
C++ modules, in VC++ and clang/CMake/ninja today.
Add to the potion, binary libraries and extern templates for the common types.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by cemdervis on Friday November 29, 2024 @04:42AM
(#42272596)
Swift
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by vips7L on Friday November 29, 2024 @08:28AM
(#42273703)
Arc is a GC.
Re:Goodbye, Rust. I wish you success but I'm back to C++ (so...
by tonyedgecombe on Saturday November 30, 2024 @02:34AM
(#42280167)
So is RAII if you squint hard enough.