frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

.name Termination

https://neil.fraser.name/news/2026/09/03/
648•pavel_lishin•3h ago•164 comments

Audacity 4.0

https://github.com/audacity/audacity/releases/tag/Audacity-4.0.0
868•ClydeN•7h ago•194 comments

K2 Horizon: Frontier Performance, Radically Open

https://ifm.ai/blog/k2/
137•karimf•2h ago•36 comments

Any Human Ever – One life, drawn at random from all who have ever lived

https://anyhumanever.com/
211•thinkingemote•3h ago•100 comments

New York Times and The Athletic workers demand company scrap Kalshi deal

https://newsguild.org/new-york-times-and-the-athletic-workers-demand-company-scrap-kalshi-deal/
204•ChrisArchitect•4h ago•139 comments

“We want it to really confuse people, but also really make people happy”

https://unsung.aresluna.org/we-want-it-to-really-confuse-people-but-also-really-make-people-happy/
15•zdw•4d ago•0 comments

Porting my 1993 Amiga game to Godot, with an LLM reading the 68000 assembly

https://babyloniantwins.com/blog/porting-a-1993-amiga-game-to-godot/
23•rabahs•3h ago•2 comments

Founding Creative Engineer – Gooseworks (YC W23) Is Hiring

https://www.ycombinator.com/companies/gooseworks/jobs/rfgY8La-founding-creative-engineer
1•shivsak•1h ago

Ask HN: Why are OpenAI, Claude, and Grok simultaneously down? Coincidence?

177•halcdev•3h ago•145 comments

Static Allocation, Constant Work

https://matklad.github.io/2026/09/02/static-allocation-constant-work.html
45•surprisetalk•1d ago•0 comments

Sony makes bold claim about game ownership

https://aginggamer.net/game-industry/sony-makes-bold-claim-about-game-ownership/
141•speckx•2h ago•174 comments

Google Antigravity TOS: 3rd party usage can get Google account suspended

https://twitter.com/GergelyOrosz/status/2095453567955968398
157•tosh•7h ago•104 comments

Launch HN: Mireye (YC S26) – Infrastructure for Physical World AI Agents

https://www.mireye.com
12•anshchokshi•1h ago•0 comments

Pre-Release of Polars 2.0

https://pola.rs/posts/announcing-polars-2/
350•komape•11h ago•110 comments

Winter 2026/2027 First Forecast: Super El Niño Drives a Major Weather Divide

https://www.severe-weather.eu/long-range-2/winter-2026-2027-first-forecast-super-el-nino-polar-vo...
3•barbazoo•10m ago•1 comments

The browser's main thread is expensive

https://kciter.so/posts/the-expensive-main-thread/en/
319•kciter•2d ago•103 comments

Usbsid-Pico: Bridging Real Commodore 64 Sound to Modern USB

https://smallrun.net/blog/loud/usbsid-pico-sids-on-usb
9•LouDNL•1h ago•0 comments

Nvidia to Acquire Hugging Face

https://www.cnbc.com/2026/09/03/nvidia-agrees-to-buy-hugging-face-for-almost-13-billion-ai-expans...
252•tosh•6h ago•77 comments

Invisible Companies

https://colossus.com/article/invisible-companies/
143•ltononro•2d ago•43 comments

VC isn't VC anymore – understanding the rise of Cancer Capital

https://www.anildash.com/2026/09/02/cancer-capital/
106•tlhunter•2h ago•35 comments

What I Learned from My Mom (1941-2026)

https://experimentalliving.substack.com/p/what-i-learned-from-my-mom-1941-2026
226•NaOH•4d ago•10 comments

Three schoolgirls in Kinsale pulled up a pea plant covered in warts (2014)

https://www.yahoo.com/news/16-old-girls-win-google-science-fair-simple-194434703.html
138•DamonHD•11h ago•58 comments

Sanders introduces bill to ban artificial superintelligence and pause AI

https://www.sanders.senate.gov/press-releases/news-sanders-casar-introduce-legislation-to-ban-art...
25•-_-•50m ago•10 comments

Instrument Clusters Are Now Paid Extras in Two Hyundai Models

https://www.caranddriver.com/news/a73583741/hyundai-instrument-cluster-paid-option/
13•WarOnPrivacy•44m ago•7 comments

Fish bad, sugar good and other medieval ideas about food

https://lithub.com/fish-bad-sugar-good-and-other-medieval-ideas-about-food/
88•mooreds•2d ago•65 comments

Intrusive linked lists (2019)

https://www.data-structures-in-practice.com/intrusive-linked-lists/
72•tripdout•3d ago•49 comments

Cheap Desktop 400GbE Switch MikroTik CRS804-4DDQ-HRM Review

https://www.servethehome.com/mikrotik-crs804-4ddq-hrm-review-marvell-annapurna-labs-400gbe/
15•speckx•1h ago•6 comments

Texas Data Center Map: See where data centers are operating or planned

https://www.kxan.com/news/texas/texas-data-center-tracker-see-where-600-projects-are-operating-or...
30•simonpure•2h ago•20 comments

Amazon Stonehenge: Parque Arqueológico do Solstício

https://en.wikipedia.org/wiki/Parque_Arqueol%C3%B3gico_do_Solst%C3%ADcio
41•nycdatasci•3d ago•11 comments

Grok outage

https://status.x.ai/
148•samaysharma•2h ago•136 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...)