Re:Why Is SQLite Coded in C and not Rust
by refulgentis on Tuesday October 14, 2025 @08:46PM
(#45586749)
Yeah sounds too clever by half, memory safe languages are less safe because they have bounds checks...maybe I could see it on a space shuttle? Well, only in the most CYA scenarios, I'd imagine.
[ Parent
| on HN ]
Re:Why Is SQLite Coded in C and not Rust
by manwe150 on Tuesday October 14, 2025 @09:08PM
(#45586946)
Critical applications like that used to use ADA to get much more sophisticated checking than just bounds. No certified engineer would (should) ever design a safety critical system without multiple “unreachable” fail safe mechanisms
Next they’ll have to tell me about how they had to turn off inlining because it creates copies of code which adds some dead branches. Bounds checks are just normal inlined code. Any bounds checked language worth its salt has that coverage for all that stuff already.
Re:Why Is SQLite Coded in C and not Rust
by evil-olive on Tuesday October 14, 2025 @10:16PM
(#45587369)
> maybe I could see it on a space shuttle?
"Airbus confirms that SQLite is being used in the flight software for the A350 XWB family of aircraft."
Re:Why Is SQLite Coded in C and not Rust
by sgarland on Tuesday October 14, 2025 @09:04PM
(#45586906)
Bear in mind that SQLite is used in embedded systems, and I absolutely wouldn’t be surprised to learn it’s in space.
Re:Why Is SQLite Coded in C and not Rust
by skywhopper on Wednesday October 15, 2025 @06:56AM
(#45590567)
SQLite is used in a lot of hypercritical application areas. I’d almost be surprised if it’s not part of some if not all modern spaceflight stacks.