frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Attention Kmart shoppers – music played over the store PA

https://www.attentionshoppers.net/
94•ChrisArchitect•2h ago•21 comments

Audible removes download option for purchased audiobooks

https://consumerrights.wiki/w/Audible_removes_download_option_for_purchased_audiobooks
1235•DeepLogin•17h ago•464 comments

PocketBase has moved off GitHub

https://github.com/pocketbase/pocketbase/issues/7872
253•p2detar•6h ago•107 comments

Show HN: I made a tiny live replica of SFO

https://tinysfo.com/
368•eiiot•8h ago•116 comments

Optimizing Rustc's next trait solver

https://donsz.nl/blog/optimizing-rustcs-next-trait-solver
34•g0xA52A2A•3d ago•0 comments

The importance of understanding what the fuck is going on

https://blog.jsbarretto.com/post/understanding
224•notfried•7h ago•138 comments

Gmail "Send as" ends January 2027

https://emailfa.st/blog/gmail-send-as-ending-cloudflare-email-routing
339•tombakerbuilds•8h ago•204 comments

Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan

https://adamgreenough.net/blog/wordpress-php-versions/
20•xadz•3h ago•1 comments

Lua as a Query Language

https://remy.wang/blog/lua-ql.html
50•remywang•4h ago•14 comments

Computer Disease (2020)

https://blog.adafruit.com/2020/01/13/richard-feynman-on-computer-disease/
223•jvanderbot•11h ago•85 comments

Silently degrading the model's capabilities is sabotage

https://twitter.com/TimSweeneyEpic/status/2126682647862862063
730•tosh•13h ago•297 comments

The Rise of Low Precision Floating Point

https://arxiv.org/abs/2611.00301
7•matt_d•4d ago•0 comments

Conductive Dyes Could Turn Hair into EEG Electrodes

https://spectrum.ieee.org/hair-dye-eeg-electroencephalography
36•dverlaeckt80•2d ago•4 comments

M 5.0 earthquake - 5 km SW of Manhattan Beach, CA

https://earthquake.usgs.gov/earthquakes/eventpage/ci41581136/executive
173•dboreham•11h ago•104 comments

Cryptography Incident Review Group

https://cirg.org/
26•heavensteeth•3h ago•4 comments

Doug Lea's Malloc

https://gee.cs.oswego.edu/dl/html/malloc.html
16•grep_it•3d ago•3 comments

Show HN: Archive95, an independent archive of the early web

https://archive95.net/
79•WumboSpasm•7h ago•12 comments

Show HN: Peat, a fork of Neon's serverless Postgres, on Postgres 18 and 19

https://github.com/Zabaca/peat
52•uptownhr•6h ago•12 comments

GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims

https://malspark.com/blog/malicious-gguf-models-hugging-face/
288•homarp•17h ago•91 comments

Werner Vogels' Tech predictions for 2027 and beyond

https://www.allthingsdistributed.com/2026/11/tech-predictions-for-2027-and-beyond.html
66•simonebrunozzi•8h ago•27 comments

Tilapia are multi-jawed monsters

https://signoregalilei.com/2026/11/01/tilapia-are-multi-jawed-monsters/
66•surprisetalk•3d ago•14 comments

Rez Dreamcast, Its Prototypes: When Psychedelic Gaming Came to Consoles

https://www.sega-dreamcast-info.com/en/rez-dreamcast-development-history-prototypes-minidv-archive
96•zdw•4d ago•35 comments

What Changes When You Upgrade from PostgreSQL 18 to 19

https://rishigoomar.com/postgresql-19-what-changes-when-you-upgrade-from-18
75•rgoomar•2d ago•13 comments

A World of Maps, Folded Flat

https://www.chartography.net/p/a-world-of-maps-folded-flat
17•subaelyo•2d ago•2 comments

Show HN: Venndetta, daily Venn diagram puzzles about real-world data

https://trost.co/venndetta/
41•matthewtoast•7h ago•20 comments

Does Task Framing Change How Claude Code Works? A Preliminary Study

https://xinyadu.github.io/blog/claude-code-sabotage.html
948•abedelez•18h ago•364 comments

Diablo II

https://www.filfre.net/2026/11/diablo-ii/
272•doppp•19h ago•103 comments

Farewell

https://github.com/p-e-w/heretic/issues/601
1078•nolist_policy•17h ago•422 comments

Language Modeling Is Compression [pdf]

https://proceedings.iclr.cc/paper_files/paper/2024/file/3cbf627fa24fb6cb576e04e689b9428b-Paper-Co...
88•gmays•8h ago•17 comments

Physics Breakthrough Simulator

https://pages.ethanmdavidson.com/ai-physics-breakthrough
169•machinerychorus•14h ago•66 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...)