frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Attention Media ≠ Social Networks

https://susam.net/attention-media-vs-social-networks.html
424•susam•7h ago•190 comments

Fix your tools

https://ochagavia.nl/blog/fix-your-tools/
124•vinhnx•3h ago•49 comments

Show HN: Local-First Linux MicroVMs for macOS

https://shuru.run
17•harshdoesdev•1h ago•2 comments

Linuxulator on FreeBSD Feels Like Magic

https://hayzam.com/blog/02-linuxulator-is-awesome/
16•vermaden•1h ago•8 comments

Fresh File Explorer – VS Code extension for navigating recent work

https://github.com/FreHu/vscode-fresh-file-explorer
34•frehu•1h ago•13 comments

Show HN: 3D Mahjong, Built in CSS

https://voxjong.com
59•rofko•4h ago•26 comments

What is a database transaction?

https://planetscale.com/blog/database-transactions
170•0x54MUR41•7h ago•34 comments

I built Timeframe, our family e-paper dashboard

https://hawksley.org/2026/02/17/timeframe.html
9•saeedesmaili•57m ago•0 comments

Green lumber fallacy in software engineering (2022)

https://www.chrisbehan.ca/posts/green-lumber-fallacy-in-software
6•mooreds•37m ago•4 comments

Xweather Live – Interactive global vector weather map

https://live.xweather.com/
90•unstyledcontent•4h ago•22 comments

International box-sizing Awareness Day (2014)

https://css-tricks.com/international-box-sizing-awareness-day/
23•hisamafahri•3d ago•1 comments

Hello Worg, the Org-Mode Community

https://orgmode.org/worg/
12•dargscisyhp•2h ago•4 comments

NanoClaw Moved from Apple Containers to Docker

https://twitter.com/Gavriel_Cohen/status/2025603982769410356
33•simplesort•57m ago•21 comments

Git's Magic Files

https://nesbitt.io/2026/02/05/git-magic-files.html
61•chmaynard•5h ago•14 comments

Symplex, an open-source protocol semantic negotiation between distributed agents

https://github.com/olserra/symplex
3•olserra•49m ago•2 comments

Back to FreeBSD: Part 1

https://hypha.pub/back-to-freebsd-part-1
180•enz•12h ago•85 comments

We hid backdoors in ~40MB binaries and asked AI + Ghidra to find them

https://quesma.com/blog/introducing-binaryaudit/
168•jakozaur•5h ago•67 comments

An Unbothered Jimmy Wales Calls Grokipedia a 'Cartoon Imitation' of Wikipedia

https://gizmodo.com/an-unbothered-jimmy-wales-calls-grokipedia-a-cartoon-imitation-of-wikipedia-2...
15•rbanffy•51m ago•2 comments

How Taalas “prints” LLM onto a chip?

https://www.anuragk.com/blog/posts/Taalas.html
366•beAroundHere•1d ago•216 comments

Factory-built housing hasn't taken off in California

https://www.latimes.com/california/story/2026-02-14/factory-built-housing-hasnt-taken-off-in-cali...
13•PaulHoule•36m ago•10 comments

Gamedate – A site to revive dead multiplayer games

https://gamedate.org/
295•msuniverse2026•1d ago•42 comments

Monkey Patching in VBA

https://ecp-solutions.github.io/ASF/Language%20reference.html
31•n013•4d ago•4 comments

Man accidentally gains control of 7k robot vacuums

https://www.popsci.com/technology/robot-vacuum-army/
139•Brajeshwar•5h ago•88 comments

What's the best way to learn a new language?

https://www.bbc.com/future/article/20260220-whats-the-best-way-to-learn-a-new-language
61•1659447091•12h ago•53 comments

Show HN: Data Studio – Open-Source Data Notebooks

https://github.com/dataspren-analytics/data-studio
5•alx-net•5d ago•0 comments

Show HN: Llama 3.1 70B on a single RTX 3090 via NVMe-to-GPU bypassing the CPU

https://github.com/xaskasdf/ntransformer
349•xaskasdf•23h ago•93 comments

Show HN: TLA+ Workbench skill for coding agents (compat. with Vercel skills CLI)

https://github.com/younes-io/agent-skills/tree/main/skills/tlaplus-workbench
23•youio•6h ago•2 comments

How I use Claude Code: Separation of planning and execution

https://boristane.com/blog/how-i-use-claude-code/
837•vinhnx•19h ago•530 comments

Japanese Woodblock Print Search

https://ukiyo-e.org/
182•curmudgeon22•16h ago•29 comments

zclaw: personal AI assistant in under 888 KB, running on an ESP32

https://github.com/tnm/zclaw
256•tosh•1d ago•135 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...)