frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Stop Hiding My Controls: Hidden Interface Controls Are Affecting Usability

https://interactions.acm.org/archive/view/july-august-2025/stop-hiding-my-controls-hidden-interface-controls-are-affecting-usability
116•cxr•2h ago•44 comments

Local-first software (2019)

https://www.inkandswitch.com/essay/local-first/
587•gasull•10h ago•189 comments

Cod Have Been Shrinking for Decades, Scientists Say They've Solved Mystery

https://www.smithsonianmag.com/smart-news/these-cod-have-been-shrinking-dramatically-for-decades-now-scientists-say-theyve-solved-the-mystery-180986920/
107•littlexsparkee•6h ago•36 comments

Techno-Feudalism and the Rise of AGI: A Future Without Economic Rights?

https://arxiv.org/abs/2503.14283
39•lexandstuff•4h ago•13 comments

Operators, Not Users and Programmers

https://jyn.dev/operators-not-users-and-programmers/
35•todsacerdoti•2h ago•8 comments

Optimizing Tool Selection for LLM Workflows with Differentiable Programming

https://viksit.substack.com/p/optimizing-tool-selection-for-llm
46•viksit•4h ago•12 comments

How to Network as an Introvert

https://aginfer.bearblog.dev/how-to-network-as-an-introvert/
37•agcat•4h ago•6 comments

Europe's first geostationary sounder satellite is launched

https://www.eumetsat.int/europes-first-geostationary-sounder-satellite-launched
162•diggan•11h ago•36 comments

Serving 200M requests per day with a CGI-bin

https://simonwillison.net/2025/Jul/5/cgi-bin-performance/
6•mustache_kimono•56m ago•1 comments

macOS Icon History

https://basicappleguy.com/basicappleblog/macos-icon-history
135•ksec•10h ago•54 comments

What a Hacker Stole from Me

https://mynoise.net/blog.php
24•wonger_•2h ago•6 comments

Speeding up PostgreSQL dump/restore snapshots

https://xata.io/blog/behind-the-scenes-speeding-up-pgstream-snapshots-for-postgresql
90•tudorg•8h ago•16 comments

X-Clacks-Overhead

https://xclacksoverhead.org/home/about
202•weinzierl•3d ago•43 comments

7-Zip 25.00

https://github.com/ip7z/7zip/releases/tag/25.00
34•pentagrama•2h ago•27 comments

Atomic "Bomb" Ring from KiX (1947)

https://toytales.ca/atomic-bomb-ring-from-kix-1947/
56•gscott•3d ago•11 comments

The Calculator-on-a-Chip (2015)

http://www.vintagecalculators.com/html/the_calculator-on-a-chip.html
24•Bogdanp•8h ago•4 comments

Yet Another Zip Trick

https://hackarcana.com/article/yet-another-zip-trick
16•todsacerdoti•3d ago•4 comments

WinUAE 6 Amiga Emulator

https://www.winuae.net/
39•doener•4h ago•5 comments

ClojureScript from First Principles – David Nolen [video]

https://www.youtube.com/watch?v=An-ImWVppNQ
6•puredanger•3d ago•0 comments

The Right Way to Embed an LLM in a Group Chat

https://blog.tripjam.app/the-right-way-to-embed-an-llm-in-a-group-chat/
6•kenforthewin•3h ago•9 comments

Haskell, Reverse Polish Notation, and Parsing

https://mattwills.bearblog.dev/haskell-postfix/
41•mw_1•3d ago•8 comments

Seine reopens to Paris swimmers after century-long ban

https://www.lemonde.fr/en/france/article/2025/07/05/seine-reopens-to-paris-swimmers-after-century-long-ban_6743058_7.html
110•divbzero•7h ago•56 comments

The Hell of Tetra Master

https://xvw.lol/en/articles/tetra-master.html
4•zdw•3d ago•1 comments

Parametric shape optimization with differentiable FEM simulation

https://docs.pasteurlabs.ai/projects/tesseract-jax/latest/examples/fem-shapeopt/demo.html
12•dionhaefner•2d ago•2 comments

QSBS Limits Raised

https://www.mintz.com/insights-center/viewpoints/2906/2025-06-25-qsbs-benefits-expanded-under-senate-finance-proposal
58•tomasreimers•14h ago•23 comments

Is It Cake? How Our Brain Deciphers Materials

https://nautil.us/is-it-cake-how-our-brain-deciphers-materials-1222193/
16•dnetesn•2d ago•4 comments

What 'Project Hail Mary' teaches us about the PlanetScale vs. Neon debate

https://blog.alexoglou.com/posts/database-decisions/
44•konsalexee•13h ago•67 comments

Gecode is an open source C++ toolkit for developing constraint-based systems (2019)

https://www.gecode.org/
60•gjvc•16h ago•13 comments

Pet ownership and cognitive functioning in later adulthood across pet types

https://www.nature.com/articles/s41598-025-03727-9
60•bookofjoe•6h ago•19 comments

Build Systems à la Carte (2018) [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2018/03/build-systems.pdf
73•djoldman•3d ago•16 comments
Open in hackernews

The Scalar Select Anti-Pattern

https://matklad.github.io/2025/05/14/scalar-select-aniti-pattern.html
47•goranmoomin•1mo ago

Comments

castratikron•1mo 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•1mo 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•1mo 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•1mo 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•1mo 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•1mo ago
in CPU's - pipelining!
jchw•1mo 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...)