frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

In Hilbert space, all things are quantumly possible

https://www.quantamagazine.org/in-hilbert-space-all-things-are-quantumly-possible-20260826/
22•unprovable•1h ago•5 comments

Show HN: SimCity, but with Permits

https://permit.petercai.com/
624•pcai•8h ago•312 comments

The Future of CSS

https://www.joshwcomeau.com/css/interop-2027/
44•soheilpro•1h ago•6 comments

Feds suspect ransom negotiator ran ShinyHunters extortion site

https://krebsonsecurity.com/2026/10/feds-suspect-ransom-negotiator-ran-shinyhunters-extortion-site/
122•Bender•5h ago•47 comments

Good type against all odds

https://unsung.aresluna.org/good-type-against-all-odds/
32•firloop•1h ago•4 comments

Voxtral 3

https://mistral.ai/news/voxtral-3/
551•ilreb•11h ago•145 comments

Google open-sources TorchTPU, a native PyTorch back end for TPUs

https://github.com/google-pytorch/torch_tpu
278•ilreb•10h ago•64 comments

Emudhra intermediate ca compromise

https://emudhra.we-have-a-problem.com/
697•galadran•13h ago•346 comments

What shall I teach my son?

https://stevekrouse.com/ends
298•Curiositry•10h ago•364 comments

SlopCodeBench 10/2026 – Opus 5.5, Astra wins overall, xhigh considered harmful

https://github.com/humanlayer/advanced-context-engineering-for-coding-agents/blob/main/benchmarki...
194•dhorthy•5d ago•83 comments

Apple broke an essential presentation feature of iPads

https://teddysvoronos.com/2026-10-19-apple-broke-an-essential-presentation-feature-of-ipads/
507•evanb•15h ago•264 comments

Sixteen Years After Deepwater Horizon, Deep Sea Life Shows Few Signs of Recovery

https://e360.yale.edu/digest/deepwater-horizon-deep-sea-recovery
217•speckx•11h ago•127 comments

The Other Epidemic: Trying to get off benzodiazepines

https://www.thebeliever.net/the-other-epidemic/
89•gaplong•4h ago•61 comments

DeepInfer: High-performance inference framework for DeepSeek models

https://github.com/deepseek-ai/DeepInfer
2160•ggcr•18h ago•839 comments

Ofcom concedes defeat in 4chan case

https://prestonbyrne.com/2026/10/20/ofcom-concedes-defeat/
345•iamnothere•12h ago•262 comments

ZX Spectrum Next Laptop

https://www.dorchester3d.com/printing/blog/2020/11/zx-spectrum-next-laptop-version-2
6•utopcell•2d ago•0 comments

Upcoming Critical PHP Security Release

https://news-web.php.net/php.announce/509
143•xd•7h ago•42 comments

To Make, or to Buy: The Economics of Decision Models

https://pncnmnp.github.io/blogs/economics-decision-models.html
12•pncnmnp•2d ago•0 comments

Tsrs: A Port of TypeScript to Rust

https://blog.cloudflare.com/typescript-rust-port/
359•hnisjafx40•14h ago•175 comments

Google Cloud outage affects almost all banking and other operations in Europe

https://www.neowin.net/news/google-cloud-outage-takes-down-hsbc-revolut-bank-of-scotland-llyods-e...
351•paweladamczuk•16h ago•175 comments

Benchmarking Bot Detection Systems Against Modern AI Agents in 2026

https://research.poh.org/bot-benchmarking-2026/
33•mdahardy•10h ago•2 comments

Learning to live with Waymos

https://www.newyorker.com/magazine/2026/10/19/were-learning-to-live-with-waymos-its-going-weird
27•njrc•1h ago•51 comments

Making Solar Panels with a Microwave [video]

https://www.youtube.com/watch?v=zcWkApGjyGM
49•jackdoe•2d ago•6 comments

PingCap TiDB Leaks

https://fulcrumsec.vg/pingcap/
41•swyx•4h ago•3 comments

How I got over 300 Tor exit nodes removed

https://kaba.cx/posts/20261020_Tor/
334•kabakabakaba•13h ago•79 comments

IKEA – 3D Guide

https://sael.net/flatpack/
153•punnerud•11h ago•55 comments

What the heck is /pkg?

https://anderegg.ca/2026/10/18/what-the-heck-is-pkg
69•GavinAnderegg•2d ago•16 comments

Meta's GB{2,3}00 Cluster

https://engineering.fb.com/2026/10/19/data-center-engineering/inside-prometheus-meta-gigawatt-sca...
73•stokedmartin•1d ago•27 comments

Show HN: Dovepass – can I legally fly a drone along this exact path in SF?

https://dovepass.com
17•nimitmehra•1d ago•2 comments

My Friend Bob Cringely

https://tyma.com/my-cringe-story/
176•zinxq•13h ago•49 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...)