frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Apple Music to open concert venue in Battersea Power Station

https://www.bbc.com/news/articles/c607l2j2rj8ro
34•dabinat•1h ago•20 comments

MiMo v2.6

https://mimo.xiaomi.com/mimo-v2-6
771•volf_•10h ago•352 comments

Spymarks, Not Watermarks

https://brand.io/article/spymarks/
317•possibilistic•7h ago•75 comments

Transformers Explained Visually

https://poloclub.github.io/transformer-explainer/
334•aray07•11h ago•50 comments

Attention is all you have

https://alicegg.tech/2026/09/21/attention
716•zer0tonin•16h ago•211 comments

What Sun got wrong

https://bcantrill.dtrace.org/2026/09/20/what-sun-got-wrong/
559•chmaynard•16h ago•322 comments

I don't want to read what you didn't write

https://blog.colinbreck.com/i-dont-want-to-read-what-you-didnt-write/
550•mooreds•8h ago•190 comments

MiMo-v2.6-Pro: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/mimo-v2-6-pro
13•theanonymousone•2h ago•3 comments

Firmware Freedom

https://playtaurus.com/blog/firmware-freedom
9•arbayi•56m ago•3 comments

Looking forward to Git 2.56 – and 3.0

https://lwn.net/SubscriberLink/1094575/2385e98583715c2b/
96•chmaynard•7h ago•35 comments

NASA’s Mars Sample Return mission is dead

https://www.science.org/content/article/nasa-s-mars-sample-return-mission-dead
367•Muhammad523•11h ago•302 comments

AI coding has made CI a bottleneck, so we reworked ours to keep up

https://linear.app/now/ci-bottleneck-reworked
206•julian_digital•11h ago•213 comments

Divide by depth for instant 3D

https://gabrieloc.com/2026/09/15/perspective.html
125•gabrieloc•2d ago•22 comments

Socrates vs. the Written Word (2011)

https://wondermark.com/socrates-vs-writing/
36•spectraldrift•6h ago•10 comments

The Advisory Group on Mathematics and Artificial Intelligence

https://terrytao.wordpress.com/2026/09/21/advisory-group-on-mathematics-and-artificial-intelligence/
120•digital55•11h ago•57 comments

Claude Status – Elevated errors for multiple models

https://status.claude.com/incidents/7g1qpkyz5gxh
92•corvad•5h ago•70 comments

PDF Forgeries Are Surprisingly Rare (2022)

https://gwern.net/blog/2022/pdf-forgery
25•1317•1d ago•21 comments

World Wide Words

https://www.worldwidewords.org/genindex.html
3•Petiver•2d ago•0 comments

How do traffic signals work? (2019)

https://practical.engineering/blog/2019/5/11/how-do-traffic-signals-work
79•at1as•14h ago•53 comments

Paper Models of Polyhedra

https://www.polyhedra.net/en/
20•pykello•2d ago•0 comments

First Shader from Zero in Godot 4

https://www.gdquest.com/library/first_shader_godot4_portal/
66•ibobev•19h ago•6 comments

Python Workers are now generally available

https://blog.cloudflare.com/python-workers-ga/
210•torutofu•17h ago•36 comments

Frontier AI on Your Own Hardware

https://timdettmers.com/2026/09/21/dlab-open-source-week/
139•pretext•11h ago•73 comments

Grok 4.7

https://x.ai/news/grok-4-7
544•meetpateltech•14h ago•466 comments

Turn off and restrict access to Apple Intelligence features on Mac

https://support.apple.com/guide/mac-help/turn-restrict-access-apple-intelligence-mchlb2e44f94/mac
282•alwillis•13h ago•189 comments

HERMES radio enables voice and data communication over vast distances

https://spectrum.ieee.org/hermes-shortwave-radio-digital-data
118•SamuraiLion•14h ago•52 comments

Apple Copland D11E4 Booting in the Browser

https://www.pagetable.com/300
125•luu•12h ago•36 comments

More floating point alternatives

https://wizardzines.com/comics/floating-point-alternatives/
24•vismit2000•2d ago•18 comments

Why does mathmain need an encrypted loader?

https://safedep.io/mathmain-encrypted-loader/
124•abhisek•12h ago•37 comments

Roboharm: Do frontier robot policies refuse unsafe instructions?

https://robocurve.org/roboharm/
45•msadowski•11h ago•21 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...)