Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Well, it is your opinion but Rust can be as fast or faster than C, you just need to know what you are doing, if you know every trick of C and try to compare to Rust it is clear what will happen but because Rust it is a more complex lang it can perform better code optimizations, dont blame the tool if you cant achieve the same performance, to really get performance you need to know the https://doc.rust-lang.org/nomicon/ and beyond, the free book it is fine for an entry point, dont expect to become an expert only with it
Another point is that you may want to compile the C code with clang, so that you will compare both with the same backend. (there's an experimental GCC backend for the Rust compiler but it isn't usable yet)
For working software, literally no one is arguing this. For buggy, error prone important libraries written in C, like OpenSSL, yeah, maybe we should consider rewriting incrementally in a memory safe language, like Rust. See: https://github.com/briansmith/ring
³ For example error handling with Result, parallel iteration using [rayon](https://crates.io/crates/rayon)s par_iter(), walking the file system using the various modules in std::fs, etc.
Many common C++ utils are rather small header only things that are easily integrated and don't pull in a full tree (or forest ;)) of dependencies. Like the awesome https://github.com/nlohmann/json
Try some refactoring practice, maybe?
Related posts
- Müsli - An experimental binary serialization framework with more choice
- Why are so many important features not in standard library yet?
- Dioxus 0.5: Web, Desktop, Mobile Apps in Rust
- Bertie – A minimal, high-assurance implementation of TLS 1.3 written in hacspec
- Bebop v3: a fast, modern replacement to Protocol Buffers