frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Protecting SSH Keys with macOS Secure Enclave

https://gatezh.com/posts/macos-secure-enclave-ssh-keys/
208•js2•6h ago•79 comments

Smart home devices should work without the internet

https://docodethatmatters.com/home-automation-overnight-success/
965•skittleson•19h ago•346 comments

.name Grandfathered

https://neil.fraser.name/news/2026/11/10/
850•p4bl0•18h ago•184 comments

Scion is back and is going to sell a kei truck in America

https://www.theautopian.com/scion-is-back-and-its-going-to-sell-a-freaking-kei-truck-in-america/
479•NaOH•14h ago•315 comments

Greg Kurtzer's Ginux is now a userspace kernel

https://github.com/gmkurtzer/ginux
74•d3Xt3r•5h ago•36 comments

Plane lifted into back garden as bunker takes shape

https://www.bbc.co.uk/news/articles/cqkgjv4pj023o
11•edward•1d ago•0 comments

A great old-timey game-programming hack (2013)

https://blog.moertel.com/posts/2013-12-14-great-old-timey-game-programming-hack.html
171•palsecam•8h ago•34 comments

Apple has new Mac app coming to make running local AI models easy

https://9to5mac.com/2026/11/10/apple-has-new-mac-app-coming-to-make-running-local-ai-models-easy/
265•linolevan•13h ago•223 comments

To deter bioterrorism, U.S. imposes new rules on ordering synthetic DNA

https://www.science.org/content/article/deter-bioterrorism-u-s-imposes-new-rules-ordering-synthet...
104•Metacelsus•7h ago•65 comments

Six Math Essentials

https://teorth.github.io/tao-web/six-math-essentials.html
253•digital55•13h ago•45 comments

Why I wrote the BEAM book (2025)

https://happihacking.com/blog/posts/2025/why_I_wrote_theBEAMBook/
99•zenincognito•1d ago•16 comments

Synaptics patent claims stop work on DisplayLink drivers

https://lwn.net/SubscriberLink/1102549/acbc92e00cee3a3f/
407•speckx•16h ago•229 comments

Starlink Mini 2

https://starlink.com/mini-2
421•robertjfclarke•16h ago•424 comments

AlphaProof Code

https://deepmind.google/blog/introducing-alphaproof-code/
640•ilreb•22h ago•185 comments

A Compendium of Abandoned Greenhouses

https://www.messynessychic.com/2015/01/15/a-compendium-of-abandoned-greenhouses/
47•ohjeez•2d ago•2 comments

Why Amstrad chose the 3" drives

https://www.cpcwiki.eu/forum/amstrad-cpc-hardware/why-amstrad-chose-the-3-drives/
42•Skyfall106•4d ago•8 comments

Val Town is winding down

https://blog.val.town/winding-down
387•tosh•17h ago•96 comments

Show HN: Black Ops II statically recompiled to native ARM64 macOS

https://github.com/adrbn/bo2-mac
26•adrbn•5h ago•2 comments

A ZIP-style Prolog VM for trilog

https://github.com/no382001/zipc
16•triska•1d ago•4 comments

Tracking Anthropic-discovered vulnerabilities

https://www.vulncheck.com/blog/anthropic-glasswing-november-update
402•panic•12h ago•192 comments

Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives

https://github.com/GoogleChrome/modern-web-guidance
371•paulirish•16h ago•112 comments

Hacking the Meta Ray-Ban smartglasses

https://p0pcycle.com/2026/11/06/hacking-the-meta-ray-ban-smartglasses/
120•moooooky•3d ago•41 comments

Claude Whiteboards, Claude Sheets, and Claude Data

https://claude.com/resources/articles/sheets-whiteboards-data
231•Yorothegoat•16h ago•165 comments

AI usage generates a fragile codebase

https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/
561•plun9•1d ago•530 comments

"Jumping genes" helped ants evolve after the extinction of the dinosaurs

https://www.uni-muenster.de/news/view.php?cmdid=15659&utm_source=join1440&utm_medium=email&utm_pl...
13•gmays•2d ago•0 comments

LLMs Play Zachtronics' TIS-100

https://tis-100.wincon.dev/
71•fairestvalue•10h ago•12 comments

$30M Raised to Redo the CPU

https://tendrils.co/blog/2026-11-10/30m-raised
105•shioyama•12h ago•108 comments

AMD's Zen 6 Family: Feeding the Beast

https://chipsandcheese.com/p/amds-zen-6-family-feeding-the-beast
240•pixelpoet•17h ago•95 comments

Process Explorer for macOS

https://github.com/microsoft/Procexp-Mac
210•ingve•1d ago•66 comments

Announcing .NET 11

https://devblogs.microsoft.com/dotnet/announcing-dotnet-11/
194•runesoerensen•18h ago•247 comments
Open in hackernews

The Scalar Select Anti-Pattern

https://matklad.github.io/2025/05/14/scalar-select-aniti-pattern.html
47•goranmoomin•1y ago

Comments

castratikron•1y ago
As long as processing one event does not affect any of the other events in the batch. E.g. events are file IO, and processing one event causes another event's descriptor to get closed before that event can be processed.
wahern•1y ago
If the close routine on an event source, or the low-level (e.g. epoll) registration, deregistration, and dequeueing logic doesn't know how to keep polling and liveness state consistent between userspace and the kernel, they've got much bigger problems. This looks like Rust code so I would hope the event stream libraries are, e.g., keeping Rc'd file objects and properly managing reference integrity viz-a-viz kernel state before the application caller ever sees the first dequeued event in a cycle. This is a perennial issue with event loop libraries and buggy application code (in every language). One can't just deal with raw file descriptors, call the close syscall directly, etc, hoping to keep state consistent implicitly. There's an unavoidable tie-in needed between application's wrappers around low-level resources and the event loop in use.
taeric•1y ago
I'm not entirely clear on what the proposal is at the end? Seems that the long term answer as to "which of these implications to pursue" is "all of them?" Simply taking in a batch of instructions doesn't immediately change much? You still have to be able to do each of the other things. And you will still expect some dependencies between batches that could possibly interact in the same ways.

In a sense, this is no different than how your processor is dealing with instructions coming in. You will have some instructions that can be run without waiting on previous ones. You will have some that can complete quickly. You will have some that are stalled on other parts of the system. (I'm sure I could keep wording an instruction to match each of the implications.)

To that end, part of your program has to deal with taking off "whats next" and finding how to prepare that to pass to the execution portion of your program. You can make that only take in batches, but you are almost certainly responsible for how you chunk them moreso than whatever process is sending the instructions to you? Even if you are handed clear batches, it is incumbent on you to batch them as they go off to the rest of the system.

lmz•1y ago
I guess the proposal is "instead of fetching and acting on one event at a time, consider fetching all available events and look for opportunities to optimize which ones you process (e.g. by prioritization or by skipping certain events if superseded by newer ones)".
taeric•1y ago
I mean, I got that. But you could as easily say "instead of fetching and acting on one event at a time, fetch and triage/route instructions into applicable queues."

In particular, there is no guarantee that moving to batches changes any of the problems you may have from acting on a single one at a time. To that end, you will have to look into all of the other strategies sooner or later.

Following from that, the problem is not "processMessage" or whatever. The problem is that you haven't broken "processMessage" up into the constituent "receive/triage/process/resolve" loop that you almost certainly will have to end up with.

malkia•1y ago
in CPU's - pipelining!
jchw•1y ago
I believe something similar is going on internally in Windows with event queues. It coalesces and prioritizes input events when multiple of them pile up before you're able to pop new events off of the queue. (For some events, e.g. pointer events, you can even go and query frames that were coalesced during input handling.) On the application/API end, it just looks like a "scalar select" loop, but actually it is doing batching behavior for input events!

(On the flip side, if you have a Wayland client that falls behind on processing its event queue, it can crash. On the whole this isn't really that bad but if you have something sending a shit load of events it can cause very bad behavior. This has made me wonder if it's possible, with UNIX domain sockets, to implement some kind of event coalescing on the server-side, to avoid flooding the client with high-precision pointer movement events while it's falling behind. Maybe start coalescing when FIONREAD gets to some high watermark? No idea...)