Better HN
topnewbestaskshowjobs
Log inSign up

narnarpapadaddy

130 karma · joined Sep 27, 2023 (3y ago) · 79 submissions

Submissions

comment 1w ago · link · parent

Consider the true scope of just this work for any given ecosystem:

> lack of widely adopted, effective, tooling & infrastructure to trust dependencies

How would I as an individual developer, or even a CTO at a small to midsize company, justify the investment to fix that? It would take buy-in from a Google-level entity to create and rollout such tooling for, say, Java.

Copying a few functions, or even recreating a whole HTTP server from scratch, is a smaller body of work. Sure, I could vendor and keep an eye out for CVEs, that’s a valid approach. But that’s me copying and taking ownership of an external codebase, not taking a dependency. Ownership is easiest for code that you’ve written, because you (or your team) also built the mental model to go along with it.

And if I have to vet a new codebase anyway, I’d rather it be the smallest subset that I actually use; not the full functionality of NGINX.

I can justify making the locally optimal decision (reimplement some functionality so I can truly own it) and that may result in a less than optimal global outcome. I can’t justify doing to the globally optimal thing at the expense of my company.

Ultimately, the incentives aren’t aligned. The activation energy to get from locally optimal to global optimal is too high, and that’s not going to change any time soon. In fact, it’s rapidly trending the other direction. AI makes it easy to reimplement the functionality you need. An idealized view of “if only people paid for high-quality dependencies this would be solved” is not one I can buy in to. That’s not the reality I live in, for better or worse. In a world where nobody wants to shoulder the burden of vetting dependencies, avoiding them is often the best alternative.

comment 1w ago · link · parent

That’s a long list of issues that go away or you gain control over if you choose not to take a dependency…

comment 1w ago · link · parent

It’s always entertaining to hear engineers ridicule inefficient government programs while simultaneously setting up a load balancer, backups, or a high-availability db cluster. Completely unable to generalize the lesson that redundancy and overhead aren’t necessarily bad, and that efficiency is in tension with other desirable attributes in every system, political, biological, computational, whatever.

comment 3w ago · link · parent

That one notch further on the spectrum that’s being described. Will “clear large chunks of dirt in the field” be found to have damaged information? Is there genuinely nothing to learn from the chunks of dirt? Or is it still too expensive to pay attention?

comment 4w ago · link · parent

Most undergrad CS students go through an algorithms course and understand a bubble sort is inherently slower than a quick sort, no amount of optimization will get you past the fundamental n^2 time complexity. You can generalize those same analysis principles to whole architectures and distributed systems. If you don’t recognize that the server interactions your solution requires boils down to an n^2 algorithm, you’re in for a bad time. Unlike a function a live, deployed system is typically harder to evolve. Sometimes constraints like backwards compatibility are such that you simply can’t fix it.

comment 1mo ago · link · parent

“Batch is the primitive”

comment 2mo ago · link · parent

Yeah, but what if we are at the point we don’t need machinists any more?

The rich get richer, even if you’re enriched solely with an above-average intelligence. The bar for break even just moved up. If the US thought 13 million unemployed/underemployed people was problem, just wait until it’s 30 million. They could afford a 10% drag on the economy, who wants to bet they can double it to 20%?

comment 2mo ago · link · parent

That relationship is (was?) a proxy for two mature superpowers. The dynamic between the mid-tier powers in the Middle East is not that similar, IMO. With the US realigning, I expect to see more activity in that conflict.

I can’t know the future, but if the model I’m proposing is correct we’ll see some NK/SK shake-ups soon. That won’t bode well for Iran.

comment 2mo ago · link · parent

It makes an invasion of Iran less likely, but it also probably means more conflict, not less.

Acquiring nukes rebalances the power between Iran and the US and its neighbors. Roughly equal pairs of states fight more than lopsided ones, historically. The probability for a win on either side is higher when on equal footing.

Nukes as a deterrent caps escalation. This emboldens the holder of the nukes in lower levels of conflict. See Russia with Ukraine (knowing NATO wouldn’t respond), Kargil after Pakistan got nukes, and NK sinking the Cheonan.

Iran getting a bomb probably triggers Saudi Arabia to follow suite, possibly Turkey and Egypt too. Many of the conflicts in the area aren’t (solely) defined by US presence. The Iran–Saudi, Sunni–Shia, and Israel–Iran rivalries to name a few.

It’s possible the dynamics shake out differently, but color me skeptical.

comment 2mo ago · link · parent

For humans hallucinations are a particular class of error, so I find hallucination more descriptive than either error or bug.

I also think it’s relevant because a hallucinator often doesn’t recognize that the hallucination isn’t real. That’s more accurate for the LLM than either lie or confabulation, IMO. They algorithm is trained to produce strings of text that have semantic meaning based on some statistical likelihood of tokens appearing next to each other. The LLM algorithm is working as intended.

Hallucinations are also often emergent from a particular state or situation, which reflects the generative aspect of LLMs.

Hallucinations are sometimes resolved in humans by grounding exercises. “Touching grass.” The same is true for LLM hallucinations. Inaccuracies are found by cross-checking the output against an internet search or another LLM.

comment 2mo ago · link · parent

No disagreement here; I felt countless smaller problems leading up to the final blow was implied.

comment 2mo ago · link · parent

I think this is the correct take. And until we have an AI Hiroshima it’ll be difficult to get the international community to work together. It’ll take rogue AI (or AI-powered group) disabling a significant world power before everyone comes to the table. Otherwise, it just looks like MAD and the equilibrium holding to the powers that be.

comment 2mo ago · link · parent

The “elements for randomness” are carve-outs for the parts of territory the map can’t contain. The more granular the map, the larger relative proportion that falls into that set. Nobody can predict the layout of my basement from a globe of the world.

We know with a high degree of certainty the universe contains things we can’t predict or observe, see Bell’s Theorem.

“Truth” doesn’t exist outside reality. There’s no substrate to hang it in. Information theory is likewise a subset of the territory, part of the universe, not apart from it. For these things to exist independently, you need something other than or bigger than the universe to put them in. If such a thing existed, sure, from that perspective maybe a lossless compression could exist. But that’s a metaphysical argument.

comment 2mo ago · link · parent

The currently accepted answer to that is “the territory appears to be randomized” (quantum mechanics)

comment 2mo ago · link · parent

Trust as delegation is an interesting angle; if you’ve not read Team Topologies I’d recommend it. These topics are treated pretty well.

comment 2mo ago · link · parent

> is advocating for and what doesn't tend to happen in dysfunctional organizations.

Agreed the observations are interesting, and that’s what is being advocated for, I just don’t think top-down vs bottom-up is the axis that impacts that as much as disturbed vs… I said “centralized” but probably “localized” is a better term.

comment 2mo ago · link · parent

An aspect that’s missing from this analysis is distributed vs centralized decision authority. In militaries and in tech startups a “squad” or “two-pizza team” are empowered to make decisions for their local domain because they have the real-time context. The decentralized decision authority that happens with matrix-style management is a much higher contributor to coordination overhead than the top-down or bottom-up axis described here.

An autonomous team that does what they are told or an autonomous team is free to pursue opportunities as they see fit are both useful and can react quickly. The question is how much scaled alignment you need to execute a particular goal.

You can’t invade a country with one squad of 10,000 soldiers or 1,000 squads of 10 that do as they please. You need to delegate execution authority to small teams who are aligned to a shared goal.

Similarly, you can’t expect one group 10,000 devs with no internal structure to explore and find interesting opportunities to explore; you’ll just get noise. Nor can you try to manage 10,000 devs directly. You won’t be able to grok the context.

Complexity management in organizations follows the same patterns as in code. Single responsibility, don’t repeat yourself too much, encapsulation, etc.

It’s really a function of information theory, the more people you have to ramp up or keep current on context, the lower your ability to make and stick to decisions.

comment 3mo ago · link · parent

So the wiggle room for efficiency is in the mechanism for counteracting yaw? Either the weight or energy expense of running a tail rotor or quadrotors or variable pitch mounts (or some other clever mechanism)?

comment 3mo ago · link · parent

I think performance generally trades along a different axis: open-world vs closed-world assumptions. There are many cases where closed-world assumptions may confer performance benefits, such as tree-shaking, whole program optimization, and using switch statements rather than a class hierarchy. Whereas designing for extensibility necessarily precludes some of those choices (though it doesn’t necessarily require OOP, for example registering a handler in a table). In other words, it’s easier to optimize a problem that is fixed and well-understood, versus one flexible and unknown. Take that ideas to the extreme and end up at ASIC bitcoin miners.

comment 4mo ago · link · parent

> This is about guiding principles, about personal liberty, and about freedom from tyranny.

The point he’s trying to make, as I understand it, is that states adapt. They don’t just throw up their hands and say “guess we can’t do anything about that encrypted traffic.”

The response to distributed kinetic kill capability in the US, for example, is for police to become more militarized and treat every encounter as a potentially lethal one.

> There's private, and there's not private. There is nothing in between

It’s not an argument about privacy per se, it’s highlighting that the stronger the protections against state surveillance and intervention, the stronger the state becomes. By taking an absolutionist stance, we push our institutions to towards the same in response.

I’m not making an argument or against encryption or privacy, just pointing out the systemic effects.

comment 4mo ago · link · parent

No disagreement in principle; in practice taking that approach in Zig is safer than in Rust, because in Rust it’s “all or nothing.”

comment 4mo ago · link · parent

I agree that it’s not inherent to emitting machine code but I do think it reflects a different set of priorities.

In extremely high performance code you use different data structures and algorithms and change your approach to memory allocation. TigerBeetle famously does all memory allocation once on startup.

Roc is attempting to make a similar set of trade-offs in their compiler as Zig, so it makes sense that the author finds many shared patterns.

comment 4mo ago · link · parent

It’s probably too little too late in the age of Claude…

C# grew all those features over time. It had to leave syntax to support old patterns to preserve backwards compatibility. Thus, the syntax has grown a bit noisy over time to support all those features. This is reboot keeping the newer ergonomics and streamlining the syntax.

I probably wouldn’t adopt it for existing projects or use .Net for any future project, but it looks really nice for what it is.

comment 4mo ago · link · parent

No, I’m not. I’m explicitly differentiating between those two perspectives and which corporations care about. “Blame” doesn’t exist in most corporate vocabularies.

comment 4mo ago · link · parent

It’s possible.

Effects allow more aspects of computation to be represented/generalized, but as the author has noted concrete implementations have already been tried in some cases. Rust’s ownership, Java’s exceptions, Typescript’s async are all instances where the language made a choice about and provided syntax for some effect.

Generalized effects are not yet proven (IMO) to improve developer ergonomics for rank-and-file devs. It may be the case that most devs need most decisions to be made for them, and the power of effects is just lost to them. That may also apply to agents. They don’t _need_ to encode the constraint. The constraint was decided when the language was picked.

comment 4mo ago · link · parent

Because it’s their job to fix it. If they don’t, the axe falls again.

Humans often think in terms of deontological ethics. Corporations operate in terms of consequentialist ethics, and the only consequence that matters is that the numbers go up.

comment 4mo ago · link · parent

I feel the author’s pain. LLMs take over right as we’re finally figuring out the unifying models and algorithms for programming languages.

Some time back I went on a tour of the fort at Dry Tortugas. Largest brick masonry fort in the world. Many innovations of the form. It was abandoned right as it was completed because barrel rifling had just been invented, dramatically increasing the penetrating power of artillery, rendering brick masonry forts obsolete virtually overnight.

This project evokes a similar feeling.

comment 4mo ago · link · parent

I buy that markets are like a traveling salesman problem. “Impossible” in the general case, but good enough could algorithms exist. Where’s the economist formulation of that algorithm? What are the policy implications that fall out of that?

I admit I’m not particularly well versed in this space, but I’ve never come across that formulation, only the “pure” one the original researcher says is internally inconsistent. I don’t necessarily buy “it’s close enough it doesn’t matter” given what I perceive as many notable exceptions.

comment 4mo ago · link · parent

Rules are only “good” or “bad” in the context of the alternatives. What’s the alternative?
123