frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Logo Programming Language

https://el.media.mit.edu/logo-foundation/what_is_logo/logo_programming.html
78•azhenley•2d ago•33 comments

I've operated petabyte-scale ClickHouse clusters for 5 years

https://www.tinybird.co/blog/what-i-learned-operating-clickhouse
34•adastral•3d ago•4 comments

HuggingFace: Security.txt

https://huggingface.co/security.txt
84•yarapavan•1h ago•8 comments

So you want to use OpenRouter?

https://mmoustafa.com/blog/so-you-want-to-use-openrouter/
458•player85•2d ago•118 comments

Copying login keychains between Macs fails on Secure Enclave Macs with Tahoe

https://derflounder.wordpress.com/2026/09/08/manually-copying-login-keychain-files-from-one-mac-t...
11•zdw•17h ago•1 comments

Houthis 'take control' of key island in global shipping route

https://www.bbc.com/news/live/cmd683p01eljt
233•consumer451•2h ago•289 comments

Shopify is moving from React Native back to Swift and Kotlin

https://shopify.engineering/back-to-native
1195•fnthawar2•1d ago•881 comments

RTK reports token savings, but our cost benchmarks disagree

https://quesma.com/blog/does-rtk-make-ai-coding-cheaper/
90•michalwarda•4h ago•51 comments

Re-Engineering YouTube for the Living Room: Bringing "Chrobalt" to RDK

https://www.collabora.com/news-and-blog/news-and-events/re-engineering-youtube-for-the-living-roo...
19•losgehts•2h ago•7 comments

Matt Mullenweg tells Automattic staff in Slack he's back in control after ouster

https://techcrunch.com/2026/09/11/matt-mullenweg-tells-automattic-staff-in-slack-hes-back-in-cont...
28•mkeeter•36m ago•8 comments

Claude is only available to people over 18 years

https://support.claude.com/en/articles/15171100-age-assurance-on-claude
299•Muhammad523•5h ago•374 comments

Cherenkov Radiation - traveling faster than light

http://www.iaea.org/newscenter/news/what-is-cherenkov-radiation
167•andsoitis•7h ago•81 comments

Don't let anyone take away your big box of cables

https://blog.jim-nielsen.com/2026/hands-off-my-cables/
699•Brajeshwar•1d ago•423 comments

Show HN: Hacker News, without AI

https://hcker.news/?ai=exclude
57•postalcoder•1h ago•37 comments

iPod Classic 6G in QEMU

https://www.reddit.com/r/emulation/s/VL4Au2HGxq
103•dmonterocrespo•3d ago•22 comments

Show HN: Clawfight.ai MCP-driven agentic game play

https://clawfight.ai/agents.md
5•wesleyhales•2h ago•3 comments

CSS Curiosities of the Past

https://vale.rocks/posts/css-relics
62•robin_reala•8h ago•37 comments

RISC-V Emulator and Linux System from Scratch

https://github.com/WerWolv/riscv-emulator
33•Bluestein•3d ago•2 comments

New York thoracic surgeon: "For many patients 9/11 is not over"

https://www.statnews.com/2026/09/11/sept-11-25th-anniversary-ground-zero-exposure-cancer-moment-o...
36•EA-3167•1h ago•12 comments

OpenAI Agents API

https://developers.openai.com/api/docs/guides/agents-api/overview
317•aquir•20h ago•166 comments

Working with Git Worktrees in Magit

https://emacsredux.com/blog/2026/09/02/working-with-git-worktrees-in-magit/
97•srijan4•3d ago•40 comments

Mexican student creates an acoustic fire extinguisher to put out fire in seconds

https://www.upsocl.com/en/16-year-old-mexican-student-creates-an-acoustic-fire-extinguisher-that-...
347•rguiscard•15h ago•107 comments

Copper lined vest to help penguins with recovery

https://apnews.com/article/chile-el-nino-humboldt-penguins-vulnerable-injuries-rehabilitation-6e9...
3•ninju•2d ago•1 comments

An interactive tour of the spanning tree protocol

https://vincent.bernat.ch/en/blog/2026-spanning-tree
62•zdw•3d ago•6 comments

Experiment – Projectional Viewer

https://programmingsimplicity.substack.com/p/experiment-projectional-viewer
12•surprisetalk•3d ago•2 comments

Technique for Manipulating Satellite Photos Now Reveals Ancient Images (2025)

https://spinoff.nasa.gov/Manipulating_Satellite_Photos_Now_Reveals_Ancient_Images
363•gumby•1d ago•62 comments

The Waymo effect: how AI is quietly making research less collaborative

https://www.researchagenda.news/articles/the-waymo-effect.html
302•JohnHammersley•4h ago•238 comments

If coding is solved, what now?: Measuring the sloppiness of code

https://earendil.com/posts/measuring-code-sloppiness/
111•doppp•2h ago•146 comments

The Deathray: A simple way for an untrusted site to freeze a Mac

https://auberon.xyz/blog/posts/deathray/
254•auberonedu•20h ago•171 comments

Nine coding harnesses vs. your laptop

https://nasutton.notion.site/Nine-coding-harnesses-vs-your-laptop-3d139990182b80d59fa3cf500f0450b...
160•nasutton12•17h ago•54 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...)