5

Do you use Rust and C++ and why ?

Comments
  • 2
    As in both?

    But Rust <3
    Never want to work in another language
  • 1
    C++, blowing your foot off even faster.

    But seriously, the C++ code base I used to work on had been around longer than rust.
  • 0
    @atheist LOL what is your experience with it ? I really want to use it more
  • 1
    @12bitfloat So you stick with Rust ?
  • 0
    @thefrobyte 🤷‍♂️ it's a programming language. I've used like, 10 professionally. C++ ain't that different to python.
  • 0
    @thefrobyte I'd marry this language if I could
  • 2
    Writing C++ for work now, I miss Rust every second..
  • 1
    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.
  • 0
    I write C++, gotta go fast...
  • 2
    Rust ❤️

    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
  • 1
    @Geoxion This man has obtained enlightenment
  • 1
    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.
  • 3
    @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.
  • 0
    Neither, because I rather write a new programming language replacing Rust and C++ than using them.
  • 0
    @BlackCenti you know Rust released 1.0 in 2015, right? I'd call that pretty new 😅
  • 0
    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++.
  • 0
    @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.
Add Comment