frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: FablePool – pool money behind a prompt, and Fable builds it in public

https://fablepool.com
124•matthewbarras•1h ago•47 comments

Show HN: Homebrew 6.0.0

https://brew.sh/2026/06/11/homebrew-6.0.0/
876•mikemcquaid•9h ago•206 comments

The unreasonable effectiveness of simple HTML

https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiveness-of-simple-html/
40•luispa•54m ago•5 comments

MiMo Code is now released and open-source

https://mimo.xiaomi.com/mimocode
397•apeters•8h ago•222 comments

Petition to Withdraw Canada's Bill C-22

https://www.ourcommons.ca/petitions/en/Petition/Sign/e-7416
302•hmokiguess•7h ago•108 comments

Travel Locally, Where You Are

https://www.ssp.sh/brain/travel-where-you-are/
72•zazuke•3h ago•39 comments

Show HN: Boo – screen-style terminal multiplexer built on libghostty

https://github.com/coder/boo
28•kylecarbs•2h ago•7 comments

Ear Training Practice Exercises

https://tonedear.com/
116•mattbit•3d ago•66 comments

The RCE that AMD wouldn't fix

https://mrbruh.com/amd2/
198•MrBruh•7h ago•83 comments

Shall we play a game? – LLMs use tactical nukes in 95% of simulations

https://www.kennethpayne.uk/p/shall-we-play-a-game
145•nick238•3h ago•144 comments

Emacs appearances in pop culture

https://ianyepan.github.io/posts/emacs-in-pop-culture/
217•ggcr•1d ago•49 comments

macOS 27 Beta breaks the ability to boot Asahi Linux

https://www.phoronix.com/news/macOS-27-Beta-Breaks-Asahi
202•josephcsible•2d ago•92 comments

Developer gets Half-Life running at 30 FPS on a Nokia N95

https://www.tomshardware.com/video-games/handheld-gaming/developer-gets-half-life-running-at-30-f...
194•ljf•3d ago•57 comments

OpenAI Prepping for On-Prem Product?

https://ledger.somantix.ai/posts/open-ai-lays-groundwork-for-on-prem-product/
8•bdroopy•44m ago•3 comments

Waymo Premier

https://waymo.com/blog/2026/06/waymo-premier/
135•boulos•7h ago•355 comments

Why I'm Forced to Say Farewell: Google Management Has Lost Its Moral Compass

https://www.mayrhofer.eu.org/post/leaving-google/
131•timedude•2h ago•63 comments

Software Is Made Between Commits

https://zed.dev/blog/introducing-deltadb
180•jeremy_k•6h ago•115 comments

Apple didn't revolutionize power supplies; new transistors did (2012)

https://www.righto.com/2012/02/apple-didnt-revolutionize-power.html
59•geerlingguy•5h ago•6 comments

A worm in my Erlang cluster, and adventures in microfluidics

https://lucassifoni.info/blog/a-worm-in-my-erlang-cluster-and-adventures-in-microfluidics/
5•chantepierre•2d ago•0 comments

Open Reproduction of DeepSeek-R1

https://github.com/huggingface/open-r1
183•yogthos•9h ago•16 comments

Lines of code got a better publicist

https://curlewis.co.nz/posts/lines-of-code-got-a-better-publicist/
338•RyeCombinator•10h ago•238 comments

Claude Fable 5: mid-tier results on coding tasks

https://www.endorlabs.com/learn/claude-fable-5-mythos-grade-hype
173•bugvader•7h ago•72 comments

Gram Newton-Schulz: A Fast, Hardware-Aware Newton-Schulz Algorithm for Muon

https://tridao.me/blog/2026/gram-newton-schulz/
10•jxmorris12•2d ago•0 comments

Discovery of Cold War-era rare Eastern Bloc computers in a German hangar

https://computerhistory.org/stories/explorers-of-the-lost-computers/
93•andrewstuart•5d ago•19 comments

Solar generates more energy in US than coal for first time

https://www.theguardian.com/us-news/2026/jun/11/solar-energy-us-coal
384•neilfrndes•7h ago•185 comments

Who Runs the Ransomware Group 'The Gentlemen?'

https://krebsonsecurity.com/2026/06/who-runs-the-ransomware-group-the-gentlemen/
46•Bender•3h ago•4 comments

FPS.cob: A first person shooter in COBOL

https://github.com/icitry/FPS.cob
91•MBCook•7h ago•55 comments

Doing nothing at work

https://www.seangoedecke.com/doing-nothing-at-work/
334•Sukram21•3d ago•116 comments

Programming a GBA Game on an iPhone

https://blog.adamledoux.net/posts/2026-06-08-programming-a-gba-game-on-an-iphone.html
40•akkartik•2d ago•5 comments

A new era for software testing

https://antirez.com/news/168
108•Chrisszz•4d ago•39 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...)