frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

CapROS: The Capability-Based Reliable Operating System

https://www.capros.org/
39•gjvc•2h ago•14 comments

2002: Last.fm and Audioscrobbler Herald the Social Web

https://cybercultural.com/p/lastfm-audioscrobbler-2002/
157•cdrnsf•6h ago•93 comments

Elevated errors across many models

https://status.claude.com/incidents/9g6qpr72ttbr
270•pablo24602•5h ago•133 comments

JSDoc is TypeScript

https://culi.bearblog.dev/jsdoc-is-typescript/
120•culi•7h ago•148 comments

Hashcards: A plain-text spaced repetition system

https://borretti.me/article/hashcards-plain-text-spaced-repetition
256•thomascountz•10h ago•106 comments

Ask HN: What Are You Working On? (December 2025)

156•david927•10h ago•557 comments

In the Beginning was the Command Line (1999)

https://web.stanford.edu/class/cs81n/command.txt
101•wseqyrku•6d ago•44 comments

History of Declarative Programming

https://shenlanguage.org/TBoS/tbos_15.html
34•measurablefunc•4h ago•11 comments

An attempt to articulate Forth's practical strengths and eternal usefulness

https://im-just-lee.ing/forth-why-cb234c03.txt
22•todsacerdoti•1w ago•11 comments

The Typeframe PX-88 Portable Computing System

https://www.typeframe.net/
93•birdculture•9h ago•28 comments

Interview with Kent Overstreet (Bcachefs) [audio]

https://linuxunplugged.com/644
44•teekert•3d ago•29 comments

Shai-Hulud compromised a dev machine and raided GitHub org access: a post-mortem

https://trigger.dev/blog/shai-hulud-postmortem
194•nkko•17h ago•115 comments

Advent of Swift

https://leahneukirchen.org/blog/archive/2025/12/advent-of-swift.html
61•chmaynard•7h ago•19 comments

AI and the ironies of automation – Part 2

https://www.ufried.com/blog/ironies_of_ai_2/
216•BinaryIgor•13h ago•93 comments

Developing a food-safe finish for my wooden spoons

https://alinpanaitiu.com/blog/developing-hardwax-oil/
158•alin23•4d ago•97 comments

DARPA GO: Generative Optogenetics

https://www.darpa.mil/research/programs/go
17•birriel•3h ago•2 comments

GraphQL: The enterprise honeymoon is over

https://johnjames.blog/posts/graphql-the-enterprise-honeymoon-is-over
190•johnjames4214•9h ago•164 comments

Younger Futhorc (ᛡᛟᛝᛖᚱ᛬ᚠᚢᚦᚩᚱᚳ)

https://www.omniglot.com/conscripts/youngerfuthorc.htm
3•rbc•4d ago•1 comments

Price of a bot army revealed across online platforms

https://www.cam.ac.uk/stories/price-bot-army-global-index
97•teleforce•11h ago•34 comments

Baumol's Cost Disease

https://en.wikipedia.org/wiki/Baumol_effect
95•drra•14h ago•97 comments

Checkers Arcade

https://blog.fogus.me/games/checkers-arcade.html
25•fogus•2d ago•2 comments

Claude CLI deleted my home directory and wiped my Mac

https://old.reddit.com/r/ClaudeAI/comments/1pgxckk/claude_cli_deleted_my_entire_home_directory_wi...
176•tamnd•3h ago•136 comments

Microsoft Copilot AI Comes to LG TVs, and Can't Be Deleted

https://www.techpowerup.com/344075/microsoft-copilot-ai-comes-to-lg-tvs-and-cant-be-deleted
65•akyuu•2h ago•57 comments

SPhotonix – 360TB into 5-inch glass disc with femtosecond laser

https://www.tomshardware.com/pc-components/storage/sphotonix-pushes-5d-glass-storage-toward-data-...
16•peter_d_sherman•2h ago•6 comments

Checkpointing the Message Processing

https://event-driven.io/en/checkpointing_message_processing/
8•ingve•6d ago•0 comments

Show HN: Dograh – an OSS Vapi alternative to quickly build and test voice agents

https://github.com/dograh-hq/dograh
8•a6kme•6d ago•2 comments

Compiler Engineering in Practice

https://chisophugis.github.io/2025/12/08/compiler-engineering-in-practice-part-1-what-is-a-compil...
113•dhruv3006•19h ago•25 comments

Our emotional pain became a product

https://www.theguardian.com/us-news/ng-interactive/2025/dec/14/trauma-mental-health
24•worik•3h ago•8 comments

Getting into Public Speaking

https://james.brooks.page/blog/getting-into-public-speaking
114•jbrooksuk•4d ago•35 comments

GNU recutils: Plain text database

https://www.gnu.org/software/recutils/
125•polyrand•8h ago•35 comments
Open in hackernews

The Scalar Select Anti-Pattern

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

Comments

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