frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

After 7 months, Glasswing overwelms maintainers with underwhelming findings

https://www.vulncheck.com/blog/anthropic-glasswing-november-update
265•panic•4h ago•111 comments

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

https://blog.moertel.com/posts/2013-12-14-great-old-timey-game-programming-hack.html
11•palsecam•33m ago•0 comments

.name Grandfathered

https://neil.fraser.name/news/2026/11/10/
695•p4bl0•9h ago•162 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/
343•NaOH•6h ago•255 comments

Smart home devices should work without the internet

https://docodethatmatters.com/home-automation-overnight-success/
728•skittleson•11h ago•258 comments

Six Math Essentials by Terence Tao

https://teorth.github.io/tao-web/six-math-essentials.html
140•digital55•5h ago•26 comments

Synaptics patent claims stop work on DisplayLink drivers

https://lwn.net/SubscriberLink/1102549/acbc92e00cee3a3f/
305•speckx•8h ago•166 comments

Starlink Mini 2

https://starlink.com/mini-2
259•robertjfclarke•8h ago•263 comments

Hacking the Meta Ray-Ban smartglasses

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

Val Town is winding down

https://blog.val.town/winding-down
313•tosh•8h ago•82 comments

AlphaProof Code

https://deepmind.google/blog/introducing-alphaproof-code/
582•ilreb•14h ago•177 comments

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

https://github.com/GoogleChrome/modern-web-guidance
271•paulirish•8h ago•79 comments

Pinot Noir: inside the criminal gangs making fake wine

https://www.economist.com/interactive/2026/11/06/pinot-noir-inside-the-criminal-gangs-making-fake...
34•axiomdata316•2d ago•7 comments

The DRAM interface and the PHY (why a DDR3+ interface must be tuned at boot)

https://github.com/enjoy-digital/litedram/blob/master/doc/manual/03_dram_interface.md
21•peter_d_sherman•2h ago•3 comments

LLMs Play Zachtronics' TIS-100

https://tis-100.wincon.dev/
10•fairestvalue•1h ago•0 comments

AI is an information gateway. Audiences still don't want it making their news

https://www.niemanlab.org/2026/11/ai-is-becoming-an-information-gateway-audiences-still-dont-want...
13•rdmuser•2h ago•1 comments

What objective is reasoning solving?

https://alexwang.ai/posts/reasoning-as-pathfinding/
110•gmays•7h ago•49 comments

$30M Raised to Redo the CPU

https://tendrils.co/blog/2026-11-10/30m-raised
35•shioyama•4h ago•22 comments

AMD's Zen 6 Family: Feeding the Beast

https://chipsandcheese.com/p/amds-zen-6-family-feeding-the-beast
188•pixelpoet•9h ago•70 comments

A comprehensive study of how fingerprintable users are

https://fingerprinting.study/
78•tomrittervg•7h ago•36 comments

Research taste in history: the importance of learning Babylonian math

https://resobscura.substack.com/p/research-taste-in-history-the-importance
13•benbreen•6h ago•0 comments

Ableton Live 13

https://www.ableton.com/en/live/
278•phaser•13h ago•301 comments

Process Explorer for macOS

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

Sherman Anti-Trust Act (1890)

https://www.archives.gov/milestone-documents/sherman-anti-trust-act
75•hashmap•5h ago•45 comments

Why I wrote the BEAM book (2025)

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

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

https://tinyvalencia.com/
200•leugim•11h ago•51 comments

AI usage generates a fragile codebase

https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/
394•plun9•16h ago•417 comments

Simon Winchester has died

https://www.nytimes.com/2026/11/04/obituaries/simon-winchester-dead.html
73•benbreen•2d ago•25 comments

What's new in the .NET 11 runtime

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-11/runtime
242•stevefan1999•14h ago•177 comments

Show HN: Aircad – Professional drafting and 3D modeling in the browser

https://aircad.com
20•peetle•11h ago•11 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...)