Hi, my name is Ahmed, call me asoli. I'm an ex-Meta and ex-Stripe staff engineer. I've been in tech for ~20 years. I'm hybrid software/SRE engineer, a cook, and engineering nerd. Nothing is affiliated to my employer(s).
I am planning on writing a new kernel on rust at the moment the project is on its earliest stage. Once I have the basics stuff created and able to run something like the bash terminal plus other system tools on qemu which might seems a bit ambitious but doable I would then share the GitHub link. I am also thinking of creating a fault tolerance file system. This is really just about understanding OS design and low level stuff if you feel this interest you let me know and we can work something out. Choosing rust for the sake of memory safety and other rich features that rust offers.
This works differently. In GCC this is more of a linting rule than the compiler using the language constructs to enforce the formatting. It’s also fairly limited in what it can catch in comparison.
Excellent as always, Just one note in 1:54:40 the lock will be dropped at the end of each iteration, which means it will wait for 2 seconds each time then it will release the lock, more efficient approach would be like this: loop { // Acquire the lock, check the condition, then drop at the end of if scope if *shutdown_cloned.lock().unwrap() { break; } println!("Hello from the second thread"); std::thread::sleep(Duration::from_secs(2)); }
C++ contracts makes temlates more like in rust(add condition `need T to have conds to compile`) ``` template<class T> constexpr bool is_addable() { return true; }```