I really couldn't see this before, but Rust is a replacement for C/C++, a clean replacement.
Here is Redox OS:
Redox is a Unix-like Operating System written in Rust, aiming to bring the innovations of Rust to a modern microkernel and full set of applications.
And Wasmer is pretty promising for the web world:
Wasmer is a blazing fast and secure WebAssembly runtime that enables incredibly lightweight containers to run anywhere: from Desktop to the Cloud, Edge and your browser.
- Secure by default. No file, network, or environment access, unless explicitly enabled.
- Pluggable. supports WASIX, WASI out of the box.
- Incredibly Fast. Run WebAssembly at near-native speeds.
- Embeddable anywhere via Wasmer SDKs
Install Wasmer
curl https://get.wasmer.io -sSfL | sh
Other installation options (Powershell, Brew, Cargo, ...)
Wasmer can be installed from various package managers. Choose the one that fits best for your environment:
- Powershell (Windows)
iwr https://win.wasmer.io -useb | iex
-
Homebrew (macOS, Linux)
brew install wasmer
-
Scoop (Windows)
scoop install wasmer
-
Chocolatey (Windows)
choco install wasmer
-
cargo binstall wasmer-cli
-
Note: All the available features are described in the
wasmer-clicrate docscargo install wasmer-cli
Looking for more installation options? See the
wasmer-installrepository to…
Even it might takeover current big C/C++ implementations like this one:
RustPython
/
RustPython
A Python Interpreter written in Rust
A Python-3 (CPython >= 3.14.0) Interpreter written in Rust 🐍 😱 🤘.
Usage
Check out our online demo running on WebAssembly.
RustPython requires Rust latest stable version (e.g 1.67.1 at February 7th 2023). If you don't currently have Rust installed on your system you can do so by following the instructions at rustup.rs.
To check the version of Rust you're currently running, use rustc --version. If you wish to update
rustup update stable will update your Rust installation to the most recent stable release.
To build RustPython locally, first, clone the source code:
git clone https://github.com/RustPython/RustPython
RustPython uses symlinks to manage python libraries in Lib/. If on windows, running the following helps:
git config core.symlinks true
Then you can change into the RustPython directory and run the demo (Note: --release is
needed to prevent stack overflow on Windows):
$ cd RustPython
$ cargo run --release demo_closures.py…



Top comments (8)
I'd like to see a Rust/Gecko/Quantum/SpiderMonkey implementation of Electron (replacing C++/Chromium).
I really hope so 🙏
Checkout servo.org/
I'm preatty new to Rust, so the obvious question (for me) is: "why Rust over Golang in these cases"?
Golang won't work for these cases. A garbage collector is like a layer on which the rest of the program runs. It's very unstable to bootstrap the GC in an OS kernel BEFORE the kernel runs. Aka you need a kernel first to run a GC, and with Golang you will need the GC first to run the kernel. Similar thing applies to many other systems, the extra GC layer is a continual pain point.
Besides what @nielvandw and @buinauskas have already mentioned.
Before writing the post, I've done some research and found that Rust and Go are not competitors.
And I would also wanna add that Go is very very use-case-specific to Google-like products (scalable solutions made by tech gaints like Digital Ocean or Docker).
AFAIK Rust is faster and is designed to be a systems programming language.
Go, on the other hand, is designed for microservices, web based tasks for high concurrency, easy vertical and horizontal scaling.
no way ! C++ was the new C ! :)