344 karma · joined Apr 1, 2017 (9y ago) · 146 submissions
comment 9y ago · link · parent
On #1, having just stumbled across a deserializer that can be commanded to allocate a 2^63 byte buffer, I agree 110%.
On #2, the problem is that the standard says things like "walking off the end of an array is undefined behavior" and "use after free is undefined behavior" yet we don't seem to have any programmers who can be trusted to reliably avoid these problems with zero runtime checking.
comment 9y ago · link · parent
[2] is a product design decision, not a programmer's ignorant error. "A product should side with a child against their legal guardian who actually paid for the product" is by no means the consensus across all cultures.
comment 9y ago · link · parent
That's what programming was like before these people chasing big paychecks invaded.
comment 9y ago · link · parent
comment 9y ago · link · parent
We have decades of coredumps and exploits to convince us that nobody can. How many well-known apps can you name that have never blown up randomly? I can't think of a single one. How much more failure until it's reasonable to think that C requires an inhuman level of perfection and almost any alternative would be an improvement?
I hear good things about seL4 but that wasn't written so much as translated from Haskell during a formal process that makes Rust look like finger painting.
comment 9y ago · link · parent
http://philip.greenspun.com/flying/unions-and-airlines is a compelling explanation of why the pilot's unions have the industry by the throat. I can't imagine investing in a business where every labor negotiation is an unconditional surrender because saying no means you have to shut down indefinitely.
comment 9y ago · link · parent
Still hard to beat for creating domain-specific languages, though, and a carefully designed DSL can rule out nondeterminism and side effects.
comment 9y ago · link · parent