frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Om Malik has died

https://om.co/2026/06/24/1966-2026/
812•minimaxir•10h ago•89 comments

An entire Herculaneum scroll has been read for the first time

https://scrollprize.org/firstscroll
1226•verditelabs•15h ago•259 comments

Libre Barcode Project

https://graphicore.github.io/librebarcode/
102•luu•4h ago•7 comments

We All Depend on Open Source. We Will Defend It Together

https://akrites.org/letter/
20•dhruv3006•1h ago•9 comments

Framework's 10G Ethernet module exposes USB-C's complexity

https://www.jeffgeerling.com/blog/2026/framework-10g-ethernet-module-usb-c-complexity/
137•Alupis•6h ago•71 comments

What happened after 2k people tried to hack my AI assistant

https://www.fernandoi.cl/posts/hackmyclaw/
104•cuchoi•4h ago•40 comments

The Garbage Collection Handbook: The Art of Automatic Memory Management (2nd Ed) (2023)

https://gchandbook.org/
120•teleforce•8h ago•16 comments

The 'papers, please' era of the internet will decimate your privacy

https://expression.fire.org/p/the-papers-please-era-of-the-internet
632•bilsbie•9h ago•290 comments

A game where you're an OS and have to manage processes, memory and I/O events

https://github.com/plbrault/youre-the-os
177•exploraz•2d ago•30 comments

Apple to skip high-end M6 Mac chips in favor of AI-focused M7 line

https://www.bloomberg.com/news/articles/2026-06-25/apple-to-skip-high-end-m6-mac-chips-to-launch-...
227•scrlk•13h ago•182 comments

Oxide computer 3D rack guided tour

https://explorer.oxide.computer/
354•darthcloud•3d ago•137 comments

IBM debuts sub-1 nanometer chip technology

https://newsroom.ibm.com/2026-06-25-ibm-debuts-worlds-first-sub-1-nanometer-chip-technology
306•porridgeraisin•15h ago•164 comments

Un-0: Generating Images with Coupled Oscillators

https://unconv.ai/blog/introducing-un-0-generating-images-with-coupled-oscillators/
139•babelfish•10h ago•33 comments

Show HN: OpenKnowledge – open source AI-first alternative to Obsidian/Notion

https://github.com/inkeep/open-knowledge
258•engomez•15h ago•126 comments

Doing a masters while working in Spain

https://jan-herlyn.com/blog/doing-a-masters-while-working/
32•MHard•3d ago•8 comments

Why are we so obsessed with lawns?

https://www.gardensillustrated.com/features/the-history-of-lawns
13•andsoitis•3h ago•15 comments

US Govt to individually approve who gets GPT 5.6

https://old.reddit.com/r/LocalLLaMA/comments/1ufo0un/us_govt_to_individually_approve_who_gets_gpt...
23•theanonymousone•1h ago•22 comments

Show HN: Chess-Inspired Roguelike

https://princechazz.com
269•cowboy_henk•5d ago•92 comments

An oral history of Bank Python (2021)

https://calpaterson.com/bank-python.html
104•tosh•11h ago•33 comments

The Doorman's Fallacy in action

https://rozumem.xyz/posts/17
98•rozumem•11h ago•137 comments

22-year-old Mozart's handwritten notebook unearthed in 'major discovery'

https://www.classicfm.com/composers/mozart/handwritten-notebook-discovered-major-paris/
23•thunderbong•5d ago•1 comments

OS9Map

https://yllan.org/software/OS9Map/
219•LaSombra•16h ago•41 comments

Apple raises prices of MacBooks, iPads

https://www.reuters.com/world/asia-pacific/apple-raises-prices-macbooks-ipads-memory-costs-skyroc...
694•virgildotcodes•18h ago•1002 comments

Parallel Parentheses Matching

https://williamdue.github.io/blog/parallel-parentheses-matching
82•Athas•11h ago•10 comments

Zig's new bitCast semantics and LLVM back end improvements

https://ziglang.org/devlog/2026/#2026-06-25
231•kouosi•17h ago•116 comments

Eyewitness at the Triangle (1911)

http://trianglefire.ilr.cornell.edu/index.html
18•NaOH•3d ago•1 comments

Record type inference for dummies

http://haskellforall.com/2026/06/record-type-inference-for-dummies
35•g0xA52A2A•2d ago•1 comments

The last Romans are still around

https://signoregalilei.com/2026/06/20/the-last-romans-are-still-around/
78•surprisetalk•3d ago•92 comments

Hey Nico, you didn't vibe code your data room but stole it from Papermark

https://twitter.com/mfts0/status/2070080422482977095
291•mmunj•19h ago•123 comments

Micron locks in historically high memory prices for five years

https://www.theregister.com/systems/2026/06/25/micron-locks-in-historically-high-memory-prices-fo...
13•fauigerzigerk•1h ago•5 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...)