frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Advent of Code 2026

https://adventofcode.com/
193•saisundar•1d ago•440 comments

Amazon Ergo: A fast, cost-effective open-weights model

https://www.aboutamazon.com/amazon-ergo
409•mtw14•3h ago•187 comments

Michael Caine has died

https://deadline.com/2026/12/michael-caine-dead-2-1237237066/
253•toomuchtodo•4h ago•116 comments

ATProto's private data protocol is now in beta

https://atproto.com/blog/the-spaces-public-beta-is-now-live
95•pfraze•2h ago•34 comments

Ty 1.0: Fast Python type checker and language server

https://astral.sh/blog/ty-1.0
277•burntsushi•4h ago•64 comments

Cryptopocalypse

https://www.argmin.net/p/cryptopocalypse
356•_delirium•5h ago•196 comments

Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses

https://www.requesty.ai/blog/claude-5-minute-prompt-cache
262•danvdb•4h ago•113 comments

CellGemma: Predicting cell responses to help accelerate cancer research

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/cellgemma/
122•carlesonielfa•4h ago•25 comments

TCP/IP over the air with LinHT

https://m17project.org/2026/11/27/tcp-ip-over-the-air-with-linht/
57•otto-mate•2d ago•9 comments

Micromorts – visualizing your chances of dying doing everyday activities

https://hugo0.com/micromorts
249•montenegrohugo•6h ago•135 comments

How Neo4j built a graph database in 20 years and 10 weeks

https://gdb-engines.com/blog/how-neo4j-built-a-graph-database/
48•cjlm•1w ago•9 comments

The invention of the supermarket

https://www.worksinprogress.news/p/the-invention-of-the-supermarket
25•crescit_eundo•7h ago•3 comments

Goals don't work. Rely on your values

https://adam.ci/train/goals-do-not-work/
344•adamci•10h ago•141 comments

Baggins End

https://www.bagginsend.net/
75•tosh•9h ago•36 comments

Roald Dahl's contribution to neurosurgery: the Wade-Dahl-Till shunt

https://pmc.ncbi.nlm.nih.gov/articles/PMC3029661/
133•thunderbong•3d ago•35 comments

Cause of FAA systems failure that grounded flights identified, L3Harris says

https://www.local3news.com/regional-national/cause-of-faa-systems-failure-that-grounded-flights-n...
164•firesteelrain•18h ago•142 comments

Amazon S3 now supports reading parts of multipart uploads in progress

https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-s3-supports-reading-parts-multipart-upl...
42•dabinat•1d ago•4 comments

Neural Amp Modeler (Nam) Architecture 2 (A2)

https://www.tone3000.com/blog/introducing-neural-amp-modeler-nam-architecture-2-a2
19•dsego•2d ago•4 comments

Show HN: A GUI for polishing the text your coding agent writes

https://draftmux.raine.dev/
185•rane•9h ago•86 comments

Backblaze sending the names of files on B2 to an ad tracker again

https://bsky.app/profile/simon.overgrown.garden/post/3n2wkmsxzik2b
188•CTOSian•3h ago•29 comments

C++ needs to catch up

https://www.vinniefalco.com/p/c-needs-to-catch-up-and-fast
269•simonask•12h ago•280 comments

Z2RAM Claims SRAM Memory Speeds at Much Greater Density

https://spectrum.ieee.org/sram-memory-z2ram
5•hasheddan•42m ago•0 comments

Fake Meta Ads Manager apps passed App Store review; two ran as Apple's top ad

https://husseinsaleh.com/2026/12/01/fake-meta-ads-manager-apps-pass-app-store-review-apple-ads/
389•itshusseinsaleh•7h ago•163 comments

Nuclear magnetic resonance on a single atom with a local probe

https://www.nature.com/articles/s41467-026-78801-5
93•Cilan798•1d ago•10 comments

Return to Boston After 50+ Years: What can we learn from VLDB 1975? [pdf]

https://www.vldb.org/pvldb/vol19/p4983-srivastava.pdf
21•matt_d•1d ago•3 comments

Anthropic suspended us in the busiest week of the year

https://weli.dev/blog/anthropic-suspended-us-in-the-most-critical-time-of-the-year/
398•weli•5h ago•288 comments

Red heads are linked to a mutation that makes them resistant to anesthesia (2024)

https://health.clevelandclinic.org/why-do-redheads-need-more-anesthesia
309•illidan1000•20h ago•184 comments

Show HN: GoModel – an open-source AI gateway – LiteLLM alternative

https://gomodel.enterpilot.io/
53•santiago-pl•6h ago•23 comments

Clairic and Clairic-flash are now open-weight

https://blog.cloudflare.com/open-clairic/
287•reddmachine•18h ago•59 comments

'Big fat lady' hawk who ate too many chickens to fly soars free once again

https://www.cbc.ca/radio/asithappens/hefty-hawk-released-9.7439479
164•randycupertino•3d ago•50 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...)