Re:Stranger Strings: An exploitable flaw in SQLite
by chmaynard on Tuesday October 25, 2022 @09:56AM
(#33330513)
Just curious, what language was used to write the Rust compiler?
[ Parent
| on HN ]
Re:Stranger Strings: An exploitable flaw in SQLite
by jraph on Tuesday October 25, 2022 @10:19AM
(#33330785)
Fair point, but the Rust compiler is not there at runtime. It also only needs to be written once for all the Rust programs, so assuming Rust is safer, you restrict the unsafety to the compiler (and the unsafe constructions of Rust, which are clearly marked as unsafe if memory serves).
(the Rust compiler is written in Rust, but the LLVM backend it uses (and soon GCC, IIRC), is still written in C++)
Re:Stranger Strings: An exploitable flaw in SQLite
by nequo on Tuesday October 25, 2022 @10:15AM
(#33330726)
Originally OCaml, and now Rust:
Re:Stranger Strings: An exploitable flaw in SQLite
by _flux on Tuesday October 25, 2022 @10:14AM
(#33330714)
Like C was used to write C and OCaml was used to write OCaml, Rust is written in Rust. Mostly, anyway, the GitHub repository seems to have also JavaScript, Python and Shell.
Though to actually get binaries out of it LLVM is used, which itself is written in C++.