3 ms·
> Can you imagine if governments regulated something like if your code touches important data, it must either be written in a verified safe language like Rust?
by vineyardmike 4y ago
> Can you imagine if governments regulated something like if your code touches important data, it must either be written in a verified safe language like Rust? How would people feel about that?
Considering the history of memory-not-safe bugs and exploits and the efforts to rewrite critical things in rust due to memory safety I imagine this could be a real debate.
In the “real world” we have requirements for materials and tools and practices because some are less safe. Imagine if a building was welded with a technique that could fail? We’d legislate away from that technique. Even when people say “there are ways to make unsafe welding ‘safe enough’”.
Software could maybe use some rigor even if it means “go slow and don’t break things”.
- Gigachad 4y agoI think regulating against unsafe languages like C might be one of the few agreeable rules. But I'd be concerned it would end up regulating in a mountain of useless design patterns and bloat which could freeze the state of software development. If these laws came out 20 years ago I'd imagine we'd still all be using Java with UML diagrams legally required.