Better HN
topnewbestaskshowjobs
Log inSign up

AlotOfReading

15,497 karma · joined Jun 8, 2017 (9y ago) · 4,691 submissions

Submissions

comment 4h ago · link · parent

You would just have a delivery vehicle bring them. Commercial vehicles are always handled differently, and usually not outright banned. Garbage trucks and emergency services are important after all.

comment 1d ago · link · parent

These sorts of issues are common in aftermarket components. The companies are often full of enthusiasts who want to make products they'd use themselves, but wouldn't know an FMEA analysis if it bit them. And unlike metal, there's no easy way to make software stronger by overbuilding it.

comment 1d ago · link · parent

That's remarkably similar to naive iteration in datalog. I wonder if there's an optimization equivalent to semi naive iteration.

comment 1d ago · link · parent

    C is not memory safe and will never be
On the contrary, C is far more easily made memory safe than C++, because it's a much simpler language with almost entirely explicit control flow. You have fil-c, CMBC, TIS that all work today, not to mention the profusion of annotation-based tools that have existed for years. Galois is working on C2Rust and other tools, though they're not fully safe/general yet.

Your options for C++ essentially amount to sanitizers, less-accurate static analysis work, and paying experts like TIS for manual verification. C++ is also choosing to actively make the problem worse when it deliberately refrains from adopting C's verifiability improvements, like prohibiting time-traveling UB. It's not like this is solely a problem of legacy standards either. std::span could have been safe (as gsl::span is), but the decision was made to deliberately sacrifice safety for other considerations.

comment 2d ago · link · parent

Many car features are included for similar reasons. It's not that most customers want them, but some people won't purchase if they're absent. It leads to mediocre products when no one cares about having a good product instead of one that isn't offensively bad. And even that low bar is still challenging for many product teams.

comment 5d ago · link · parent

The difficulty of a given problem changes depending on the perspective you're looking at it from. That's why understanding different models helps.

Optimizing deeply enough will eventually make any abstraction leaky though, so you'll never fully escape mechanical sympathy.

comment 6d ago · link · parent

Posit multiplication/division isn't faster in the typical case. It has some additional CLZ steps to decode the regime field, etc. It's pretty much the same process as floats after that and the first paper actually uses the same backend for both implementations. I assume the other paper is talking about edge cases like denormals, which you can usually disable.

comment 6d ago · link · parent

The story I've heard is that the IRS had pretty unusual verification requirements and a tight timeline that login.gov couldn't meet in time given all the other agency wrangling on their plate. ID.me was willing to meet the timeline, to all of our detriment.

comment 1w ago · link · parent

I noticed some prior art when I wrote a similar library in C++ earlier this year, but unfortunately it's pretty much all deeply theoretical. The magic search term is "monadic unions of conjunctive queries", which is the class of queries this kind of system can express.

I'm still surprised there aren't more implementations out there, because it's a very useful class in application programming. For example, gameplay tags in unreal engine are queries in this class [0], and Intel ships a library using them for binary message parsing. It can also be done almost completely in SIMD, which is the route my shitty library takes. If you add recursion on top, you get queries that can express regular languages / monadic datalog.

My library quickly bottlenecked on memory bandwidth though. It doesn't seem like you're ordering joins by selectivity or a bitmap index to avoid reading unnecessary memory, so is this a direction you plan to explore more in the future?

[0] https://dev.epicgames.com/documentation/unreal-engine/using-...

comment 1w ago · link · parent

Posits also require [min, max] interval arithmetic, so I'm not sure there's as large a difference as you're imagining. Are you thinking of type I and II unums instead?

But yeah, none of these papers discuss interval arithmetic and frankly I've only rarely met anyone using it. Kahan has a blog post somewhere about how unums encounter most of the same issues with monsters, and it came up during the Kahan/gustafson debate iirc.

comment 1w ago · link · parent

Sure, here's a review article from last year [0]

    Regarding delay, area, and power, under the same precision the posit arithmetic units are not competitive against their floating-point counterparts.
That paper was followed by a paper [1] published this year finally showing a posit variant implementation somewhat competitive with a mediocre float implementation, hurray. In order to achieve that, it had to give up most of the properties that Gustafson liked about posits and it only maintains a better precision than floats up to 2^10, at the cost of absolute relative precision.

We even have systems that improve upon posits at the things they're good for, like takums [2]. And just for fun, a couple of papers comparing floats and posits:

    On the other hand, 32-bit posit are not exhibiting spectacular improvements in terms of efficiency over FP32. While they achieve the same or higher accuracy and can speedup the execution when the program has multiplications and divisions, they need around 30% more FPGA resources and use 6% more power compared to FP32. [3]

    The results confirm posit arithmetic’s strong performance at low precision, with takum following closely behind. Posits show stability issues at higher precisions, while OFP8 formats are unsuitable and bfloat16 underperforms compared to float16 and takum. [4]
[0] https://dl.acm.org/doi/pdf/10.1145/3772284

[1] https://arxiv.org/pdf/2603.01615

[2] https://arxiv.org/pdf/2404.18603

[3] https://arxiv.org/pdf/2109.08225

[4] https://arxiv.org/pdf/2504.21197

comment 1w ago · link · parent

The native ecology of the area those cattle are in is a mixed woodland. Other large ranches are located just a few miles away on the coastal hills, where grass grows just fine under the trees.

comment 1w ago · link · parent

Gustafson's arguments haven't held up well to further development, in my opinion. As originally designed they aren't faster, they don't "solve" numerical analysis, and a lot of the issues people have with floats don't go away.

They get a few things right like eliminating NaNs, but the reality is just so underwhelming compared to Gustafson's grandiose claims.

comment 1w ago · link · parent

It's a low volume product sold mainly to companies/professionals that's managed to bill itself as premium. It's amazing it isn't more expensive.

comment 1w ago · link · parent

Manufacturers are selling DC bulb systems these days. Unfortunately, the ones I've seen sell the accompanying rectifiers (which need maybe $50-100 of power electronics inside) for multiple thousands of dollars, and they're DRM locked to the more expensive bulbs by proprietary protocols.

I find the inefficiencies of the old system more manageable.

comment 1w ago · link · parent

When I worked for the American branch of a Japanese megacorp, we'd take visiting engineers for hot wings the first day. Never failed.

They were still disappointed by BART though.

comment 1w ago · link · parent

That's because Clang has a mountain of sugar to sweeten the developer experience. Between invoking the program from shell and printing the version, it's executing thousands of lines that set up error handlers, initialize all of the hundreds/thousands of possible args, do basic driver setup, probe different parts of the filesystem, and so on.

comment 1w ago · link · parent

If Google's switch promises to disable the use of all "AI" techniques down to the implementation level, that would imply it also disables spam filtering in gmail. I haven't seen that reported and it isn't in the original announcement post, so it probably isn't how they're thinking.

comment 1w ago · link · parent

Have you ever written a system that's provably secure? Can you point to anyone else that has?

Even sel4 has easily invalidated assumptions built into its proof model.

comment 1w ago · link · parent

They're not different in any fundamental way, except for function symbols. Cut is obviously irrelevant, so let's talk about the semantics and execution. There's only two important aspects there: infinite recursion and top down/bottom up. Infinite recursion is pretty easy to deal with. We just use tabling (and tabled prolog is still a prolog). Once we've done that, top down and bottom up are equivalent in the absence of function symbols. Then all we have to sort out is the negation semantics. Datalogs typically require restricted negation, so they get 2-valued negation. Prologs don't usually restrict negation, so they usually assume 3-valued WFS. Neither one of these is required though. WFS datalog exists, as do prologs with restricted negation.

Unification is a bit different, but not that important here. It's more important to note that a datalog program will compute the same results in prolog and thus, my previous statement that datalog is essentially prolog without function symbols.

comment 1w ago · link · parent

I would be very surprised if LLMs were adequate for doing archaeological lit review. My experience is that you often find sites documented halfway through a stack of undigitized records in a physical archive somewhere, and it's usually a verbal description that's difficult to localize to a specific location. Heck, I've even contributed to the problem by finding new sites as we're packing up camp, when I didn't have time to properly document them outside field notes.

comment 1w ago · link · parent

Datalog (i.e. prolog without function symbols) still has a lot of practical applications for as a relational language and for logic programming. The polonius borrowchecker for rust originated as a datalog program, for example.

comment 1w ago · link · parent

Looters will absolutely destroy a site to find valuables that may or may not even be there. Ai-khanoum is a classic example, with the vast majority of the site having been filled with pits on the off chance there were valuables. Nowadays they use bulldozers and excavators to loot at an industrial scale. It's pretty difficult to do archaeology on a pile of sifted dirt.

comment 1w ago · link · parent

The XDNA NPU is a small dataflow processor. Originally derived from xilinx IP.

comment 1w ago · link · parent

If software stacks and compatibility didn't matter, AMD GPUs would be in nearly the same demand as Nvidia's. But we know they aren't and that's despite the fact that porting between GPUs is much easier than what we're talking about here.

comment 1w ago · link · parent

This feels a decade late. I don't really see the value prop for customers in 2026 (or realistically, 2030+). Let's say I'm willing to rewrite all my software to a language that compiles down into interaction nets. Why don't I use HVM2 instead and buy GPUs from Nvidia? If I just want to use an exotic architecture, AMD is shipping dataflow processors at scale today, and they'll license related IP. And if I just want a massively parallel architecture to run my existing ML code on, I could just rent google cloud TPUs instead.

Who's the customer that wants an exotic architecture on an old process node running a custom programming language half a decade from now?

comment 2w ago · link · parent

I don't know where you could work that this policy isn't at least nominally in force, outside very small companies. Common certifications like ISO:27001 and SOC2 basically require systems to be running only "authorized" software. It usually isn't actively enforced on developers, but IME virtually all companies have it as an official policy alongside a rarely used process to get approval for unauthorized applications.

comment 2w ago · link · parent

I figured it was assumed I was including that? It's been fine as long as I break tasks up into reasonably sized chunks, which is fine because I think you should only be generating as much as you can comfortably review at a time.

comment 2w ago · link · parent

Don't know what you're doing, but it's good enough for the reasonably sized tasks I give LLMs. It's also a much better price. My browser stopped rendering the UI frame recently because I messed up permissions on /usr/share/icons. Took DS 4.1 flash about 3 minutes and a few cents to diagnose it. Same harness with opus 5 took twice as long and several dollars.

Moreover, the months I've used anthropic/OAI exclusively my API token costs are in the hundreds (or sometimes thousands). With DS flash as the first agent I reach for, I rarely exceed $40/mo.

12345
157