Better HN
topnewbestaskshowjobs
Log inSign up

RossBencina

2,094 karma · joined Dec 11, 2014 (11y ago) · 787 submissions

Submissions

comment 1d ago · link · parent

It's hard for me to believe that the haptic motor and drive electronics is cheaper to manufacture than a mechanical switch (but someone please feel free to educate me). On the other hand, it is plausible that the haptic solution has a longer MTBF (but mechanical switches can be really reliable.) I'd favor the theory that Apple added it to Mac as part of the iPhone/Mac ui convergence strategy.

comment 1d ago · link · parent

Interesting that Apple's API uses a sum-of-sines representation for controlling the motor. I wonder whether this is to avoid accidentally burning the motor out, to make it easier to compensate the actuator dynamics using simple feed-forward per-partial amplitude and phase correction, or to provide a low-bandwidth encoding that can be sent across USB/HID efficiently. Maybe all of the above?

It would be interesting to see what the USB stream looks like when running Nospeaker on a Magic Trackpad 2.

comment 1d ago · link · parent

While unsuccessfully searching for the Tempo source code I found LLPE, a partial evaluator for LLVM bitcode: https://www.llpe.org/

comment 1d ago · link · parent

So i210 is still the best option?

comment 5d ago · link · parent

> I'm not too familiar with LLM memory access patterns

Dense architectures hit every byte of the model for every token. It's the ultimate memory bandwidth nightmare.

MoE models use subsections for each token and are more amenable to keeping parts in secondary storage, and indeed there are some local llm engines that do this.

comment 1w ago · link · parent

I think the parent is referring specifically to Docker Sandboxes (the product) aka sbx: https://docs.docker.com/ai/sandboxes/

comment 1w ago · link · parent

Here you go: https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...

comment 1w ago · link · parent

I don't want to speak for nomilk, but for those not familiar with the Australian vernacular: the idiom "a bit of a joke," in this context, is a low-key understatement best translated as "a complete and utter shitshow of epic proportions."

comment 2w ago · link · parent

Yes, furthermore in practice auto mode does not appear to provide anything approaching deterministic gating:

"Measuring the Permission Gate: A Stress-Test Evaluation of Claude Code's Auto Mode" https://arxiv.org/abs/2604.04978

(Shared by hkalbert71 the other day in: https://news.ycombinator.com/item?id=50387838)

comment 2w ago · link · parent

Calling them guardrails scares me. I want to hear about deterministic safety interlocks.

Can anyone recommend a reliable 3rd-party audited guide that describes Claude Code's built-in capability gating infrastructure?

Whenever I ask users of claude code how claude controls actions they don't seem to be able to distinguish between what just goes into LLM context (e.g. as a "don't do X" system prompt) and what is gated behind a deterministic capabilities layer.

comment 3w ago · link · parent

Would like to hear more about the performance characteristics. Do you perfect hash to a contiguous range and then use a jump table, or do you perfect hash directly to relative offsets to basic blocks?

comment 4w ago · link · parent

But misspelled Plücker coordinates in the abstract.

comment 4w ago · link · parent

You could try a search over network switching research, e.g. some consider ADHD a problem with switching between (or concurrent activation of) default mode network and task-focused network. Not sure how many other networks have been identified.

comment 1mo ago · link · parent

For a long time Microsoft's strtod implementation was broken, I'd think most people would be using netlib or one of the newer algorithms.

https://www.exploringbinary.com/visual-c-plus-plus-strtod-st...

https://lemire.me/blog/2026/02/01/converting-floats-to-strin...

comment 1mo ago · link · parent

You have been able to return a struct by value in C since at least C89:

    typedef struct {
        double d;
        int err;
    } Ret;

    Ret foo(void) {
        Ret r = { 0.0, 43};
        return r;
    }

    int main() {
        Ret r = foo();
    }
You can't return a bare fixed-size array though.

comment 1mo ago · link · parent

It's a niche use, but if backlit screens trigger migraines (as they do for mine), then high-speed e-ink is almost a pre-requisite for using traditional interactive UI. At ~15fps typing is OK but using a mouse cursor sucks. Outdoor use is a bonus. RLCD is another option.

comment 1mo ago · link · parent

I think the standard drivers take temperature into account.

comment 1mo ago · link · parent

Awesome work. I wonder whether the four grey-level calibration could have been fully automated rather than keeping human in the loop.

comment 1mo ago · link · parent

Here's my technically grounded response:

As far as I understand, inspecting the compiled binaries in any way would violate clean-room principles. At a minimum you'd need (A) one set of agents documenting the behavior of the executing binaries, e.g. manipulating the UI, and reviewing documentation and training manuals, and (B) a second set of agents whose only input is the output of the first set of agents. I'm not sure whether testing the real and AI generated agent side by side with equivalent inputs would constitute clean-room, although it might be legal.

I agree that a large part of the value of a product stems from "thousands of tiny design, engineering, and product decisions." But I don't agree with your conclusion. If the goal is to replicate the behavior of an existing piece of software then all you need to do is observe the behavior and replicate it. You don't need to engineer it in the same way, or arrive at it by making the same engineering and design decisions. Of-course in the end all you have is the replica, not the engineering and design heritage, product management, or the teams to carry the work forward. But that is the same problem open source "clones" of commercial products have often suffered from.

comment 1mo ago · link · parent

> most devs don't want to do formal verified system development.

That may be true. Serious question though: even if most devs wanted to develop formally verified code, do you think that it is reasonable to suggest that the typical systems developer could do it with today's tools? I don't mean verified protocols (TLA+) or verified algorithms (SPIN) I mean end-to-end verified code, a-la seL4. I got the impression that this is still very specialised work. Perhaps things have advanced since I last checked.

comment 1mo ago · link · parent

You got me thinking about C/C++ style guides of my youth...

I think Indian Hill (C, not C++) was the first one I ever read: https://www2.cs.arizona.edu/~mccann/cstyle.html

Looks like there is an updated version (1997) here: https://www.cs.cornell.edu/people/egs/comp303/tutorials/csty...

Paul Haeberli's "The SGI C Source Compliance Requirements" is hard to forget: https://www.graficaobscura.com/ccode/index.html

I wonder whether there is a centralised historical archive of C/C++ style guides?

The modern staples are covered here, I guess:

https://github.com/kciter/awesome-style-guide#cpp

comment 1mo ago · link · parent

Numerical Recipes in C does that.

comment 1mo ago · link · parent

As far as I know Aaron never distributed that which was collected in the MIT data closet.

comment 1mo ago · link · parent

The first thing to note is that papers vary wildly in terms of their information density and in terms of their accessibility and relevance to you as a reader. I can easily imagine reading some papers many times because I really want to understand all the details.

That said, the depth that I read at mostly depends on why I am reading something. Most papers I don't read in depth, but whether I initially only read the abstract or skim the whole paper depends a lot on a lot of factors (paper content, length, ease of access to full text, whether I am triaging a lot of papers at once, how interested I am in the specific paper (usually based on the title and/or authors, maybe the abstract), etc.).

I read in multiple passes of increasing depth. Zeroth reading is more-or-less triage: is the paper worth reading at all? First reading would generally be start-to-finish. I underline and/or mark up the margins with particularly interesting/important sections and also star key references based on the author's commentary.

If it's an algorithm or math-heavy paper either I only care about the gist and I don't go deeper, or I dig in with further readings and study to properly understand the details. That could be relatively quick, or it could be a whole rabbit hole if I need to learn some background. Sometimes it takes a while for the importance of a paper to dawn on me, in which case I come back later and read in more depth.

With the references I generally only follow those with relevance to my research goals. For example the authors might have detailed a technique in an earlier paper, or they might have cited other relevant work that I was not aware of.

comment 1mo ago · link · parent

An abstract and an introduction are two different things. For me, as a reader, the main role of the abstract is to help me to decide whether to even look at the rest of the paper, let alone read it. I want to know what is in the paper that I will not find in other papers that are competing for my time. Everything should be very clear: the context, the main research contributions and/or findings, novel aspects of the approach, limitations; plus any other information that in the author's view should motivate me to read the paper. Then if I do read the paper, there should not be any surprises: the content that the abstract promised should be present and, ideally, all of the valuable content in the paper should have been advertised in the abstract.

Different fields use different standard forms or styles for abstracts. If you have not already done so you can get a feel for this by looking at a random sample of the top 100 most-cited papers in your field (or your target conferences, journals, arxiv categories) and quickly compare to top 100 in a couple of disparate fields (e.g. biochemistry, economics, anthropology, mathematics).

Of course, there are good reasons to read a paper besides the quality and content of the abstract. Consequently, there are well known papers with non-standard abstracts. I recommend mastering the basics first.

comment 1mo ago · link · parent

AI can make decisions all it likes. I if you don't integrate it with the drone strike MCP server it's as impotent as a JVM without any code to execute.

comment 2mo ago · link · parent

I can recommend "Shared Memory Synchronization," by Michael L. Scott for an introduction to nuts-and-bolts level detail.

comment 2mo ago · link · parent

I was expecting to see mention of Microsoft/Apple executable code-signing in the examples. I know key lengths are well beyond 1024 now, but on the Microsoft side it was (is?) possible for USB tokens to be distributed in the mail. What I don't know is whether the tokens could be used as oracles in this attack.

comment 2mo ago · link · parent

An operating system kernel is the last place you want an unsafe language, if you can help it.

comment 2mo ago · link · parent

It would be helpful if you named the falsehood for those of us following along.
12345
27