Hacker Newsnew | past | comments | ask | show | jobs | submit | more lambdaone's commentslogin

The U.S. government could have required all new software for any government-procured system to be written memory-safe languages, thus making it ubiquitous. This could have been phased in slowly with a few years of on-ramp time to allow for industry to acquire the relevant skills.


The DoD tried that with Ada and largely failed. That was with defense contractors whose primary customer mandated it. That was despite Ada being proven to work in its first projects.


The U.S. government had pushed Ada for years and it never worked out. The government was forced to accept C++ because industry was rebelling against ADA, even though ADA was memory safe. Well, Ada did have the ability to be memory unsafe. It was much better by default.


But even in memory-safe languages, compiler bugs are still an issue. The theory is perfect but the implementation is flawed. In such case once the compiler bugs are found, the software would have to be rewritten to compile. For example an 11 year old memory bug was discovered recently in the rust compiler: https://www.penligent.ai/hackinglabs/rust-borrow-checker-bug....

Memory safe languages are not a silver bullet either.


Definitely not a silver bullet (consider also that memory management isn'the only source for vulns), but still much better than C/C++.


I think we'll have flying cars before we have to start focusing on compiler bugs. Most software is already written in memory safe languages and their vulnerabilities are unrelated to memory safety, they're just plain old logic bugs.


No, you are wrong. Rust compiler bug uncovered this month was aboıt memory safety: https://www.penligent.ai/hackinglabs/rust-borrow-checker-bug....

Basically, the borrow checker allowed writing memory unsafe programs without using the keyword unsafe.

Compilers for C, C++ etc. are well established but Rust is a relatively new language. There are many bugs to come just like this.

Using a memory safe language is not a silver bullet for writing memory safe code. The implementation of the memory safe language introduces bugs as well.


You misunderstood, I'm not saying that compiler bugs don't exist or that they're unrelated to memory safety.

I'm saying that these compiler bugs are extremely low on our list of priorities. If we want to eliminate all vulnerabilities in all of software we have about a century worth of logic bugs that are likely more critical and easily exploitable than compiler bugs.


The DoD have even created their own language: ADA. Massive contracts power, but different markets to incentivize.

The distance between the usual consumer/b2b tech startup and the kind of company that sells software to the air force is even bigger than the distance between Google and the kind of company who hires Accenture.


The general interpretation of laws in countries with British-derived legal systems is that firstly, words have the meaning given referenced by the legislation itself, or failing that by a standard legal definition; otherwise words have their literal meaning unless they are ambiguous. If they are ambiguous, then the meaning is usually taken to be that understood by the notional "reasonable man" (and I should also add the meta-note that in most legal contexts, "man" is regarded as meaning "man or woman", except where it explicitly isn't, etc. etc.)

In this case, "vehicle" is defined by Wikipedia (and most other reference works) as "a machine designed for self-propulsion, usually to transport people, cargo, or both", but even that is ambiguous, as is "in the park", so at that point we look for the opinion of the "reasonable man". Whether skateboards, toy cars, horse, surfboards, aircraft above the park, drones etc. meet these definitions is the kind of ambiguity the quiz is looking for.


The problem I'm pointing out here is that it fails to actually explore that ambiguity. The majority cleanly decide that the 3 automobiles are out and everything else is in. There is interesting ambiguity, but it gets thrown out by the context; the context dictates things that are unambiguously vehicles, like boats and bicycles, are actually not violating the rule, because the rule in context actually means automobiles. You cannot explore the ambiguity around the meaning of "vehicle" with a context that dictates you actually meant automobile. At most you can make a point about type theory and type inference, but that was not the point the game was trying to make.

I would also note that the game is not formulated as a law. It is formulated as a colloquial rule - a law would never be presented as "no vehicles in the park". This lends itself to the contextual inference that narrows imprecise wording. If it were instead presented as "Article 5, Section 3: Vehicles are not permitted in the park. [Subsection: definition of vehicle]" it would likely do a better job of getting results that explore the ambiguous bounds of the definition rather than, as it currently does, getting results that clearly delineate at what is unambiguously an automobile rather than at what is unambiguously a vehicle.


I wonder if there is a correlation between "soft-hearted" and "hard-hearted" voters and their answers to the questions. I regard myself as soft-hearted, but answered the questions as literally as I could as that was given explicitly as part of the rules of the game.


I don't think heartedness is particularly relevant, I think it comes down to whether you are able to evaluate logical propositions dispassionately.

I think calling it a "rule" with a "violation" is bringing in some emotional baggage that some people can't see past.

If instead of "does this violate the rule?" the game simply asked "is this a vehicle in the park?" the disagreement would be resolved.

Some people seem to interpret "does this violate the rule?" as asking something more like "is this a vehicle that shouldn't be in the park?", even though the rule doesn't say anything about "should".


> If ... the game simply asked "is this a vehicle in the park?" the disagreement would be resolved.

But the question is not "is this a vehicle in the park," it's "whether or not this situation constitutes 'a vehicle in the park' for the sole purpose of what was the lawmakers' intent when they made a 'no vehicles in the park' rule."

A toy vehicle in the park most definitely is "a vehicle in the park." But prohibiting toys in the park most definitely wasn't the lawmakers' intent.


A toy vehicle is not a vehicle though.

If you think a toy vehicle is a vehicle then you should have answered that the toy car violated the rule.


Nope, I think that toy vehicle is a vehicle, but it does not violate the intent of the rule.


But nothing in the game asks about intent.


More generally, I think that this game is about jurisprudence in general, and interpretation of laws in particular. It’s not about mathematics or group theory. If it was framed as “in preparation for your PhD in statistics, you need to count 1 for each instance of ‘vehicle in the park’ group” I would count 1 for toy vehicle in the park. And for many more, too.

The way the game is framed as “interpretation of the law,” it includes the supposed intent of the law.


The game does not say "motorized" or "emergencies". But then it does not say "functional" or "full-size", or several other things, either.


I've only pointed out that GP created a new ambiguity as a result of their effort to resolve all ambiguities.


You have not knowingly seen an exploit in the wild. Competent attackers can be right inside your OS, and many other devices containg within the same network as a result, without you knowing it; persistenly so if they want to.


My home router is managed by my ISP. They can, and do, remotely upgrade routers in the middle of the night.


This is a total failure by the vendors of these freezers.

If you charge money for something that is critical national infrastructure - and the food delivery pipeline is absolutely CNI - and you connect it to the Internet, you should also be responsible for keeping it secure - or at the very minimum at least trying to do so.

The same goes for other CNI such as telecoms (including home routers and phones), broadcasting (including "smart" TVs at the eyeball end), banking and payment processing infrastructure, cloud computing, electricity, gas and water supply, traffic signalling... all modern economies are now almost totally dependent on so many different interlocking internet-connected systems. I've got a stash of food and water at home, a battery powered radio, candles, blankets to keep warm and so on, but that's only really enough to deal with a short-term emergency, not the collapse of technological civilization.

Failure to understand this is not an excuse. Sadly, the only way to deal with this is legislation.


Or simply don't care.


It's one of the major selling points of Linux that Linux admins can do this even if their OS vendor won't, but the whole point of having a distro is to stop you from needing to roll your own solutions, or to have to maintain constant vigiliance to be even remotely secure.


At this point, just the failure to patch this single vulnerability is enough to make me write Ubuntu off as a viable distribution. Volunteer-run distros can fix this, why not a well-resourced company? It's not as if they haven't had the time to fix it, or that porting the fix to their current kernels would be particularly difficult.


This is the final nail in the coffin. I already order my new vservers with debian. I'll keep the existing ones on ubuntu for now, but will not consider ubuntu for anything server side in the future. My reasoning was "Debian is volunteers, they probably won't release fixes as fast as a commercial entity" - obviously the reasoning is backwards.

But I also must say, I am not giving a single dollar to ubuntu nor did I ever do so, so it is also perfectly valid for Ubuntu to not give a damn about me.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: