frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

.name Grandfathered

https://neil.fraser.name/news/2026/11/10/
441•p4bl0•3h ago•86 comments

Smart home devices should work without the internet

https://docodethatmatters.com/home-automation-overnight-success/
393•skittleson•4h ago•157 comments

Synaptics patent claims stop work on DisplayLink drivers

https://lwn.net/SubscriberLink/1102549/acbc92e00cee3a3f/
128•speckx•2h ago•55 comments

Val Town is winding down

https://blog.val.town/winding-down
161•tosh•2h ago•46 comments

AlphaProof Code

https://deepmind.google/blog/introducing-alphaproof-code/
514•ilreb•8h ago•164 comments

Claude Whiteboards, Claude Sheets, and Claude Data

https://claude.com/resources/articles/sheets-whiteboards-data
64•Yorothegoat•2h ago•29 comments

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

https://github.com/GoogleChrome/modern-web-guidance
104•paulirish•2h ago•33 comments

AMD's Zen 6 Family: Feeding the Beast

https://chipsandcheese.com/p/amds-zen-6-family-feeding-the-beast
108•pixelpoet•3h ago•35 comments

What objective is reasoning solving?

https://alexwang.ai/posts/reasoning-as-pathfinding/
17•gmays•55m ago•3 comments

A comprehensive study of how fingerprintable users are

https://fingerprinting.study/
15•tomrittervg•1h ago•0 comments

Starlink Mini 2

https://starlink.com/mini-2
136•robertjfclarke•1h ago•127 comments

Saltline: First-person shooter built by Fable 5.2

https://claude.ai/artifact/BGY1SztrAYcJQHSsnHHGmp
12•dr00tb•1h ago•9 comments

I deleted all my SSH keys

https://blog.infected.systems/posts/2026-11-03-i-deleted-all-my-ssh-keys/
143•speckx•5d ago•55 comments

Blender 5.3 released with Gaussian Splat support

https://www.blender.org/download/releases/5-3/
327•amlib•4h ago•45 comments

Process Explorer for macOS

https://github.com/microsoft/Procexp-Mac
62•ingve•21h ago•27 comments

Ableton Live 13

https://www.ableton.com/en/live/
210•phaser•7h ago•237 comments

An Open Field Guide to Inference Engineering

https://docs.modelplane.ai/guides/inference-guide
25•d-ramdass•2h ago•1 comments

Show HN: Valencia, Spain in Sim City/Isometric View

https://tinyvalencia.com/
114•leugim•5h ago•33 comments

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

https://strandsagents.com/blog/amazon-saves-millions-replacing-sonnet-with-strands-decider/
657•aloukissas•14h ago•229 comments

The planet Vulcan: a cautionary tale

https://kevinboone.me/vulcan.html
13•andsoitis•3d ago•0 comments

What's new in the .NET 11 runtime

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-11/runtime
181•stevefan1999•8h ago•132 comments

Twelve things you could build on a live index of internet radio

https://tuneping.com/notes/twelve-things-to-build-on-a-live-radio-index/
16•victorbuilds•3d ago•4 comments

The Hardest Tarball?

https://stoppels.ch/2026/11/07/the-hardest-tarball.html
131•thatslast•5h ago•26 comments

AI usage generates a fragile codebase

https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/
245•plun9•9h ago•292 comments

NetBSD 11 desktop on a Raspberry Pi 4

https://neongd.com/articles/netbsd11-rpi4.gmi
111•jaypatelani•2d ago•67 comments

Variable-width Bézier curves (2025)

https://luthert.web.illinois.edu/blog/posts/775.html
20•leduyquang753•1d ago•7 comments

What constant surveillance is doing to children and parents

https://www.theatlantic.com/magazine/2026/12/location-tracking-apps-parental-surveillance/689031/
156•FinnLobsien•9h ago•143 comments

Taking another shot at the cheap IP camera, part 2

https://ericswpark.com/blog/2026/2026-11-09-ip-camera-pt2/
101•ericswpark•1d ago•35 comments

Queens Public Library under ransomware attack

https://connect.queenslibrary.org/
178•rustyhancock•11h ago•102 comments

M John Harrison becomes first science fiction author to win the Booker

https://www.theguardian.com/books/2026/nov/09/m-john-harrison-the-end-of-everything-wins-2026-boo...
95•sorokod•12h ago•79 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...)