Better HN
topnewbestaskshowjobs
Log inSign up

jandrewrogers

25,479 karma · joined Jan 11, 2012 (14y ago) · 5,074 submissions

Designer of bespoke analytical database engines for applications with unusual performance and scale requirements. Knows a lot about geospatial and sensor data. Went to school for chemical engineering.

email: andrew at jarbox dot org

Submissions

comment 4d ago · link · parent

Many people are in regular contact with spy agencies who are not spies or cutouts. There are plenty of boring reasons for these interactions to exist. Spy agencies necessarily have extensive commercial engagements, for example, because they mostly don’t build their own tech.

comment 6d ago · link · parent

Unfortunately, the US government has a history of epic bungles when they’ve tried to handle munitions production themselves. Often due to unqualified bureaucrats inserting themselves into the process for various reasons.

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

I think it is difficult to imagine the character of primary explosives if you haven’t worked with them. Nothing in nature has those properties because thermodynamics largely doesn’t allow it. While people usually don’t think of them this way, primary explosives are a very synthetic and unnatural chemical construct.

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 6d ago · link · parent

The fabric would be shredded by large chunks of concrete, steel, etc accelerated to supersonic speeds.

comment 1w ago · link · parent

Lead azide was phased out in the 1990s. This was product they never planned to use. That site was likely selected because they had bunkers that satisfied the regulatory requirements for storing bulk primary explosives while the government decided how to dispose of them.

comment 1w ago · link · parent

The kinds of problems happen routinely in large bureaucracies. Losing or misplacing inventory happens in every large organization I've worked for. It happens even with very expensive controls in place.

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.

comment 1w ago · link · parent

Many munitions plants are next to major cities. Most of the sites were built in WW2 on the outskirts of cities that were major logistical hubs. These are all much bigger cities today.

Even chemical weapon manufacturing plants were sited near major cities.

8.

Quantum Physics Can Prove Where You Are(nature.com ↗)

3 points · by jandrewrogers · 1w ago · discuss

comment 1w ago · link · parent

In the case of C++, "modern" conventionally denotes "C++11 or later". Idiomatic code between "legacy" and "modern" dialects of C++ that they almost look like different languages. C++11 was a breaking change to the idioms of older C++.

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

Regardless, you need someone to own the vision in its totality for the organization to be effective. Visionary leadership is critical for organizations like this. You can't do vision by committee.

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

I've essentially done much the same. One of the more under-rated features of C++ is being able to build a new language environment based on a different set of composable idioms from the low-level primitives on up.

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

I can explain it.

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

A challenge in high-reliability software is that the systems they are running on top of have few reliable properties. Even if you formally verify some code, you have to write vastly more code to deal with the possibility that the invariants suddenly change at runtime due to an idiosyncratic failure of the environment where that formally verified code runs.

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.

comment 2w ago · link · parent

IIRC, PDEP/PEXT are generalizations of shifter networks.

15.

Dissolving the Fermi Paradox(arxiv.org ↗)

4 points · by jandrewrogers · 2w ago · discuss

comment 3w ago · link · parent

In the earliest days it required expensive GPUs to run well.

comment 3w ago · link · parent

Dogs are smart, curious, and capable. They also understand boundaries. If you have a large property it is surprisingly difficult to prevent a motivated dog from leaving it. Some dogs have a strong desire to go on a walkabout on occasion. Chaining a farm dog defeats their purpose, and is arguably inhumane, so for some of them it just comes with the territory.

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

In a lot of ways typical farm cats are more natural than dogs. The distance between those cats and the undomesticated variety isn’t that wide.

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

Cats are a part of nature.

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

The state space of what you must check to ensure correctness in physical engineering is infinitesimal compared to ensuring correctness in software. Correctness in software is qualitatively more difficult by nature and an open problem at a theoretical level.

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

I have no issues with people check invariants at runtime. It is unavoidable. C++ contracts is a mediocre way of doing it. Many C++ code bases don’t use any macros at all for assertions and haven’t for a long time. Their models are much more nuanced than C++ contracts allows.

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

SIMD is often used to evaluate complex data structures in parallel. A common case is given a row with an arbitrary mix of data types and a query with an arbitrary mix of independent constraints on those data types, to evaluate all of the constraints in parallel in the same SIMD instruction(s).

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

The issue is that contracts are less flexible than the existing capabilities in practice, it is limited syntactic sugar.

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

I think you are right to position atomics and variadic templates as among the most consequential features of C++ in the last couple decades. It made an enormous number of things possible.

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 subset of SIMD that translates is so narrow that it is almost useless in real code. That’s the problem. Additionally, it is invalid for the compiler to redesign your data structures.

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

Essentially all high-end systems code for high-performance and high-reliability systems is still written in modern C++. That language has many attractive properties, including safety features that Rust does not currently support.

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

To be clear, I have a lot of issues with the contracts proposal. I probably wouldn’t use despite living out on the standards frontier. I don’t even use C asserts already because they are not expressive enough in important ways. This proposal kind of reifies the inadequacies.

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 cannot be solved at the compiler level. The capabilities of silicon SIMD implementations are fundamentally so disjoint that code using SIMD requires contextual and platform-specific data structures and algorithms.

SIMD on different silicon is incompatible at layers of abstraction far above the codegen manipulation a compiler can do.

comment 3w ago · link · parent

That’s exactly my point.

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

C++ concepts evaluate the properties of types at compile-time. You can inject arbitrary constraints on type properties anywhere in the code including conditional codegen. It is a way of asking if a type “can express this complex set of abstract things or has this enumerated set of properties” with almost arbitrary detail. They are extremely powerful in terms of expressiveness and specialization of code. Insanely good for performance and reliability engineering.

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.

12345
170