@nixCraft
Everything is written in C, including C++ and Rust.
Not everyone realises the revolution K&R caused.
@megatronicthronbanks @nixCraft I thought rust was written in rust?
@QuadRadical the rust compiler is written in rust, but it generates bytecode instead of machine code. That bytecode is fed to LLVM (C++) to generate the final binary. It can also target cranelift, but that codegen backend is not production ready.
@ekuber interesting thanks!
@ekuber @QuadRadical To expand on this point: Cranelift is written in Rust and produces native machine code for four architectures. So within the scope where it's usable, it's possible to have Rust almost all the way down. I assume there are still bits of C used here and there, such as whatever libc dependencies there may be in Rust's standard library, but in principle I think all the C in that stack could be replaced.
I'm not suggesting that would be worth doing, necessarily, as I've written about before (https://jamey.thesharps.us/2017/01/03/which-projects-should-convert-to-rust/), but I do think it's interesting how close it already is.
@megatronicthronbanks @nixCraft No, it is not. Never was.
Pascal, Oberon, Modula-2, all the Wirthian languages.
Smalltalk, Squeak, Self, Newspeak.
APL, K, J, APlus.
Forth, Colorforth.
Lisp, Scheme, PLOT, Dylan, Racket, Arc, Clozure.
Haskell, OCaml, Occam.
There are whole other worlds out there. Just because you don't know about them makes them no less real.
https://www.theregister.com/2022/03/29/non_c_operating_systems/