My first days with Rust from the perspective of an experienced C++ programmer
My main focus is bare metal applications. No standard libraries and building RISC-V RV32I binary running on a FPGA implementation.
day 0: Got bare metal binary running echo application on the FPGA emulator. Surprisingly easy doing low level hardware interactions in unsafe mode. Back and forth with multiple AI's with questions such as: How would this be written in Rust considering this C++ code?
day 1: Implementing toy test application from C++ to Rust dabbling with data structure using references. Ultimately defeated and settling for "index in vectors" based data structures.
Is there other way except Rc<RefCell<...>> considering the borrow checker.
day 2: Got toy application working on FPGA with peripherals. Total success and pleased with the result of 3 days Rust from scratch!
Next is reading the rust-book and maybe some references on what is available in no_std mode
Here is a link to the project: https://github.com/calint/rust_rv32i_os
If any interest in the FPGA and C++ application: https://github.com/calint/tang-nano-9k--riscv--cache-psram
Kind regards