Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
atheist98053yC++, blowing your foot off even faster.
But seriously, the C++ code base I used to work on had been around longer than rust. -
atheist98053y@thefrobyte 🤷♂️ it's a programming language. I've used like, 10 professionally. C++ ain't that different to python.
-
Both, for writing software that talks to FPGAs and also for system/hardware simulators. It's mostly C++, but Rust is slowly eating its way into the codebase.
-
Geoxion9023yRust ❤️
Embedded mostly, but it's then also nice to have the device server in Rust to share code.
But once the server is in Rust, why not make the frontend with it as well?
WASM to the rescue!
Extreme full stack in Rust -
I haven't used C++ much in my life.
I'm using Rust to replace parts of a PHP web backend, for scaling & safety reasons.
PHP (+Laravel) works quite well regarding hiring & development velocity, but the monolith is 30-something-million lines of code.
Parts of that monolith govern highly sensitive and mission critical data, like handling identification documents, credit and banking details. Other parts need to both "warm up" and serve complex personalized results from Redis/Elastic caches, and benefit from decreased processing times and web framework overhead.
Currently, we're at less than 2% Rust, vs 98% PHP (disregarding Go, JS, Python, etc that's not directly backend related), but that's still over half a million lines of Rust, most of it in our financial applications 🤷♀️
We currently have 84 PHP backend developers (down from 100+, pre-corona), against 6 Rust-capable devs. -
@RocketSurgeon
Advantages of Rust, for me:
1. A complete & safe type system, almost Haskell-like correctness, but with a more familiar syntax. This prevents a lot of accidents around concepts like "null", and decreases the amount of tests needed.
2. No garbage collection. This prevents weird performance spikes in things like caching management layers and other high-throughput applications.
3. Because there's no runtime/GC, you can compile to WebAssembly, use Rust for performance-critical frontends.
Especially because of 1, I often notice that Rust helps develop faster (despite the learning curve & complexities!) when the real life requirements are complex.
Things like financial backends, recommendation engines, microservice plumbing, etc -- The stuff which gets nasty to map out in your head, and error-prone to deploy, even with high test coverage. -
Neither, because I rather write a new programming language replacing Rust and C++ than using them.
-
I use C++ everyday at work. I enjoy it and it is used in most of the work I do for fun. Most game engines are written in C++ so it useful for my hobbies. The game engine I have been playing with has the ability to use Rust and C++ for native development. I plan on learning more about Rust and comparing that to C++.
-
@BlackCenti , just an FYI. If you use the downvote too often they will revoke your downvote privileges. Once they do it seems to be permanent. It is generally used for spam and the like. But even for that you can lose the privilege if you do it too often.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Do you use Rust and C++ and why ?
question
rust
c++
unsafety-is-cool