frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

LibreSprite – open-source pixel art editor

https://libresprite.github.io/
67•nicoloren•3h ago•25 comments

System76 on Age Verification Laws

https://blog.system76.com/post/system76-on-age-verification/
492•LorenDB•8h ago•318 comments

GPL upgrades via section 14 proxy delegation

https://runxiyu.org/comp/gplproxy/
63•weinzierl•4h ago•25 comments

GPT-5.4

https://openai.com/index/introducing-gpt-5-4/
877•mudkipdev•18h ago•693 comments

Hardening Firefox with Anthropic's Red Team

https://blog.mozilla.org/en/firefox/hardening-firefox-anthropic-red-team/
32•todsacerdoti•51m ago•10 comments

10% of Firefox crashes are caused by bitflips

https://mas.to/@gabrielesvelto/116171750653898304
707•marvinborner•1d ago•352 comments

Show HN: Swarm – Program a colony of 200 ants using a custom assembly language

https://dev.moment.com/
110•armandhammer10•8h ago•31 comments

Ask HN: How many of you hold an amateur radio license in your country?

35•ToddWBurgess•2d ago•37 comments

A GitHub Issue Title Compromised 4k Developer Machines

https://grith.ai/blog/clinejection-when-your-ai-tool-installs-another
491•edf13•20h ago•144 comments

Elite Overproduction

https://en.wikipedia.org/wiki/Elite_overproduction
14•softwaredoug•34m ago•2 comments

The Brand Age

https://paulgraham.com/brandage.html
383•bigwheels•19h ago•297 comments

Labor market impacts of AI: A new measure and early evidence

https://www.anthropic.com/research/labor-market-impacts
231•jjwiseman•13h ago•337 comments

Good software knows when to stop

https://ogirardot.writizzy.com/p/good-software-knows-when-to-stop
468•ssaboum•22h ago•233 comments

Where things stand with the Department of War

https://www.anthropic.com/news/where-stand-department-war
496•surprisetalk•12h ago•524 comments

Stardex (YC S21) is hiring customer success engineers

https://www.ycombinator.com/companies/stardex/jobs/lag1C1P-customer-success-engineer-ai-data-migr...
1•sanketc•5h ago

A standard protocol to handle and discard low-effort, AI-Generated pull requests

https://406.fail/
214•Muhammad523•14h ago•74 comments

Image manipulation with convolution using Julia

https://medium.com/@Ahmad_Hamze/image-manipulation-with-convolution-using-julia-f898995ac1e5
5•AhmadHamze•3d ago•2 comments

Wikipedia was in read-only mode following mass admin account compromise

https://www.wikimediastatus.net
988•greyface-•20h ago•353 comments

Stupidly Obscure Programming in a Troubled Time (2018)

https://blog.podsnap.com/apply.html
9•luu•3d ago•0 comments

CBP tapped into the online advertising ecosystem to track peoples’ movements

https://www.404media.co/cbp-tapped-into-the-online-advertising-ecosystem-to-track-peoples-movements/
478•ece•1d ago•189 comments

Hardware hotplug events on Linux, the gory details

https://arcanenibble.github.io/hardware-hotplug-events-on-linux-the-gory-details.html
158•todsacerdoti•4d ago•16 comments

AI and the Ship of Theseus

https://lucumr.pocoo.org/2026/3/5/theseus/
125•pixelmonkey•20h ago•132 comments

A ternary plot of citrus geneology

https://www.jlauf.com/writing/citrus/
145•jlauf•2d ago•27 comments

Screeching Sound of Peeling Tape

https://journals.aps.org/pre/abstract/10.1103/p19h-9ysx
30•akshatjiwan•3d ago•6 comments

Remotely unlocking an encrypted hard disk

https://jyn.dev/remotely-unlocking-an-encrypted-hard-disk/
160•janandonly•18h ago•73 comments

Judge orders government to begin refunding more than $130B in tariffs

https://www.wsj.com/politics/policy/judge-orders-government-to-begin-refunding-more-than-130-bill...
978•JumpCrisscross•22h ago•696 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
117•simon_luv_pho•19h ago•61 comments

Show HN: Jido 2.0, Elixir Agent Framework

https://jido.run/blog/jido-2-0-is-here
298•mikehostetler•20h ago•62 comments

How to install and start using LineageOS on your phone

https://lockywolf.net/2026-02-19_How-to-install-and-start-using-LineageOS-on-your-phone.d/index.html
78•todsacerdoti•12h ago•22 comments

Launch HN: Vela (YC W26) – AI for complex scheduling

51•Gobhanu•19h 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•9mo ago

Comments

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