25,479 karma · joined Jan 11, 2012 (14y ago) · 5,074 submissions
email: andrew at jarbox dot org
comment 4d ago · link · parent
comment 6d ago · link · parent
A reason the government contracts out munitions production is to isolate the production decisions from the influence and incentives of government employees.
comment 6d ago · link · parent
It is going to detonate. If we move fast enough, we may get to choose when and how, “horrific hazmat problem” is absolutely correct. The articles are vague about the details but I find it surprising that literal tons of primary explosives were stored in the same spot. They often parcel them out in manageable isolated chunks in case things go sideways.
comment 1w ago · link · parent
comment 1w ago · link · parent
All it takes is lost paperwork, a typo during data entry, etc. It may be many years before anyone notices. The people involved that might be able to figure out what happened may no longer work there.
8.
Quantum Physics Can Prove Where You Are(nature.com ↗)
3 points · by jandrewrogers · 1w ago · discuss
comment 1w ago · link · parent
This is helpful context to the reader. Many C++ programmers are unfamiliar with either idiomatic legacy or modern dialects and would have difficulty following the code.
There are arguably three different idiomatic dialects of C++ now: legacy, C++11, and C++20. We don't really have a common term for distinguishing between C++11 and C++20 even though the idiomatic code looks quite different.
It has been an interesting evolutionary strategy. C++ standards meticulously avoid breaking changes but will happily do a major redesign of how idiomatic code is written.
comment 1w ago · link · parent
Humans naturally form cults of personality around strong visionary leaders. It is downstream of the necessity of organizing endeavors in this way.
comment 2w ago · link · parent
C++ is as much a tool for building nice systems DSLs as it is a systems language. The heavy investment in compile-time expressiveness has really paid off for the language over time.
comment 2w ago · link · parent
There is something in it for the wife. The world is a bit more "House of Cards" than some people assume. Aside from the French and a few others, western cultures seem almost uniquely dishonest about the tacit assumption that successful men will have mistresses. This isn't a new thing. Warren Buffett was essentially married to two women most of his life and no one cared.
Many wives highly value the accrued status of being formally married to a high-status person. You can take half the money but the social status doesn't follow. No one cares about a billionaire divorcee with no status beyond a bank account.
comment 2w ago · link · parent
This is one of the real limits of formal verification. Defects or subtle inconsistencies in hardware are not that uncommon. This is mitigated to a some extent by using assertions in release builds but this has significant limitations.
15.
Dissolving the Fermi Paradox(arxiv.org ↗)
4 points · by jandrewrogers · 2w ago · discuss
comment 3w ago · link · parent
We had one dog growing up that liked to commune with a particular herd of cattle (in a friendly way) in a distant field on occasion, and nobody and nothing could stop it when it had that inclination. Dog on a mission.
comment 3w ago · link · parent
Most domesticated cats demonstrably have no issues thriving while feral. They are not well-adapted to every environment they’ve been introduced but they do pretty well in many. Their main issue in places like North America is prodigious predation in the wild, which is mitigated when living near humans.
comment 3w ago · link · parent
In some parts of the US outdoor cats are an essential bulwark against rodent invasion. It is healthy for the cats and very effective organic rodent control. They do get some birds but the bulk of their activity is rodents. There are places you can’t live without them.
Depending on the situation, outdoor cats can also live a long time. We had farm cats when I was growing up that spent a large part of their time outdoors during the day. They were smart, social, and typically lived 15-20 years before old age caught up with them.
Predation mostly impacts cats that are either obviously stupid or aggressively anti-social in my experience.
comment 3w ago · link · parent
No amount of bureaucracy and process theater gets around this fact. There is a vast and very expensive gap in software between "don't do stupid things" and "this is actually correct". The tooling to close this gap is severely deficient and not for lack of trying. In physical engineering we've had automated design checking for decades because it is a relatively trivial problem in those domains.
It would be great if compilers could generate proofs but after decades of research they can't even generate SIMD code in most contexts.
comment 3w ago · link · parent
Why would anyone that already ditched C asserts use C++ contracts when it can’t express what the alternatives already can? This isn’t a new problem. People were creating more expressive assertion replacements than contracts offers a decade ago.
C++ contracts are nerfed. It is less expressive and capable than what anyone that cares about these things already uses. So who is expected to use it?
comment 3w ago · link · parent
The idea that SIMD is only good for parallelizing operations over arrays of the same type is empirically false and seriously understates the capabilities of good SIMD implementations. Some SQL-ish implementations work this way on row-structured data.
Most devs seriously underestimate what good SIMD is capable of.
comment 3w ago · link · parent
Contracts were sold with the idea of aiding compile-time verification, a noble purpose. The combination of concepts + constexpr allows you to do deeper compile-time verification today by other means than contracts can check. It isn’t obvious that this will ever not be the case. This means contracts is relegated to being another flavor of C asserts.
C++26 contracts are arguably unnecessary because we can achieve the same results other ways, sometimes with stronger properties. I’m a proponent of features that clean up the syntax but C++ contracts look like a nod to people that still use legacy C asserts. That’s fine but it also perpetuates an inadequate model of what assertions should be capable of expressing.
People figured out how to do with C++20 better than what contracts promised.
comment 3w ago · link · parent
One thing I give the C++ feature gods credit for is recognizing material deficiencies in systems languages and unapologetically trying to fill those gaps starting with C++11. The addition of atomics, strict variadics, constexpr, lambdas, concepts, lifetime annotations, etc has been transformative for C++.
comment 3w ago · link · parent
The ability of compilers to use SIMD is no better than it was 20 years ago. Total stagnation for all practical purposes, and the reason is that compilers fundamentally lack the context and freedom to rewrite the code architecture appropriately for SIMD optimization (even if they could).
I think a point people miss is that highly optimized SIMD code is almost never about parallelizing loops. It is about deeply probing and manipulating arbitrarily complex data structures in parallel that involve collections of unrelated types. SIMD allows you to do this, and it is fantastically efficient, but a compiler has no conceivable way of understanding this.
For this reason, SIMD optimization has often been classified as an AI-Complete problem in computer science.
comment 3w ago · link · parent
Additionally, for pure performance requirements, C++ is still materially faster than Rust in practice. That may change some day. C++ has many issues but it is also objectively excellent at many things.
comment 3w ago · link · parent
I think the risk is that C++ contracts become an evolutionary dead-end that hang around forever in code bases because they were standardized. It wouldn’t be the first time this has happened.
comment 3w ago · link · parent
SIMD on different silicon is incompatible at layers of abstraction far above the codegen manipulation a compiler can do.
comment 3w ago · link · parent
Contracts notionally offer the ability to lift some runtime assertions to compile-time. That is how it was sold. Except they don’t in practice.
Meanwhile, concepts + constexpr if used artfully deliver that in practice, including for many cases that contracts were supposed to solve.
I push all verification to compile-time to the extent possible.
comment 3w ago · link · parent
One of the best features to be added to C++ in many years.
C++ contracts are an attempt to bring C asserts into the C++ age. The weakness of C++ contracts is that they are mostly syntactic sugar over C asserts. If you really care about this type of thing, you probably already have a custom C++ assertion framework that is at least as capable if not more.
The promise of C++ contracts is that they can aid formal verification, which would be great. As delivered, it can’t do much more than was already possible, which will inhibit adoption.