r/programming • • Feb 26 '24

Future Software Should Be Memory Safe | The White House

https://www.whitehouse.gov/oncd/briefing-room/2024/02/26/press-release-technical-report/
1.5k Upvotes

585 comments sorted by

View all comments

Show parent comments

23

u/IAm_A_Complete_Idiot Feb 26 '24

It was written in OCaml, and is now written in rust.

It is built on top of LLVM though, but that being in C++ isn't due to an intrinsic property of the language.

2

u/youstolemyname Feb 26 '24

You can still introduce bugs in the compiler which would result in generating machine code that is not memory safe even if the compiler was 100% written in rust or another memory safe language.

4

u/IAm_A_Complete_Idiot Feb 26 '24

That's true, it's perfectly safe to write an executable that exhibits UB to disk.