frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

GLM-5.3: Frontier coding with emergent cyber capabilities

https://z.ai/blog/glm-5.3
372•pella•3h ago•145 comments

Gemini 3.7 Flash

https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-3-7-fl...
805•thisisauserid•15h ago•425 comments

Phones should have a 'guest lock' feature

https://curvise.net/the-phone-features-i-cant-believe-we-dont-have/
14•crisdias•32m ago•18 comments

Accelerating GPT-5.6 Sol Ultrafast

https://www.cerebras.ai/blog/accelerating-gpt-5-6-sol-ultrafast-with-openai
574•pr337h4m•14h ago•232 comments

Hello, me. It's been a while

https://themech.net/2026/08/hello-me-its-been-a-while/
190•somesoftdev•14h ago•93 comments

Show HN: C# Game Engine with its own scripting language and IDE

https://github.com/ArcadeMakerSources/ArcadeMaker
31•am-gm•2d ago•2 comments

Show HN: Lumabri – Run Moe Models on a P2P Swarm with Colibri

https://github.com/JustVugg/lumabri
7•vforno•7h ago•1 comments

Bluesky Protocol Services

https://atproto.com/blog/introducing-bluesky-protocol-services
159•danabramov•8h ago•28 comments

DeepSeek Harness developer preview

https://deepseek.com/harness/en/
647•bjin•19h ago•270 comments

Spaghettifying DRAM

https://github.com/xoreaxeaxeax/skitter-creek-bath-salts
605•matt_d•18h ago•157 comments

Mistral OCR 4.1

https://docs.mistral.ai/models/ocr-4-1
331•spelk•15h ago•132 comments

Ruby 4.0 Universal RCE Deserialization Gadget Chain

https://www.elttam.com/blog/ruby-4-0-universal-rce-deserialization-gadget-chain
18•pentestercrab•2h ago•2 comments

Understanding is the new bottleneck

https://www.geoffreylitt.com/2026/07/02/understanding-is-the-new-bottleneck
313•sebg•13h ago•167 comments

Choose Boring Technology (2015)

https://mcfunley.com/choose-boring-technology
331•tosh•14h ago•164 comments

Donkey.bas is 45 Years Old – 131 line of Glory

https://donkeybas.com/
229•jkrauska•14h ago•104 comments

The Library of Ashurbanipal (2025)

https://www.historytoday.com/archive/feature/library-ashurbanipal
29•samizdis•3d ago•8 comments

What an improv stage can teach you about leading cross-cultural teams in Tokyo

https://www.tokyodev.com/articles/yes-and-what-an-improv-stage-can-teach-you-about-leading-cross-...
5•pwim•1w ago•0 comments

Nine PBS sues Iron Mountain over blocked access to archival data

https://current.org/2026/08/nine-pbs-sues-iron-mountain-over-blocked-access-to-archival-data/
303•vinayakborkar•19h ago•172 comments

Blog about things you don't understand yet

https://www.seangoedecke.com/blog-about-things-you-dont-understand-yet/
94•gfysfm•9h ago•31 comments

How Compaction Works in Pi

https://earendil.com/posts/compaction-in-pi/
156•tosh•14h ago•61 comments

NP-overrated

https://gruhn.me/blog/2026-08-13/
203•theanonymousone•12h ago•139 comments

Where did the old web go? We followed 657,607 links to find out

https://0.mk/blog/link-rot
177•tdx•14h ago•158 comments

Single log line is 49KB+ (ext4) / 110KB+ (btrfs) of systemd-journald disk writes

https://github.com/systemd/systemd/issues/40262
208•ValdikSS•13h ago•131 comments

Eclipse: The Xiaomi 17 Ultra Confuses the Moon and the Sun

https://www.frandroid.com/marques/xiaomi/3211257_photo-de-leclipse-on-a-perce-a-jour-la-petite-tr...
7•n_plus_1_acc•1h ago•0 comments

How Organizations Use AI: Evidence from ChatGPT [pdf]

https://cdn.openai.com/pdf/how-organizations-use-chatgpt.pdf
103•malshe•13h ago•59 comments

Credibility is the barrier to entry in silicon

https://www.siliconimist.com/p/credibility-is-the-barrier-to-entry
20•johncole•3d ago•8 comments

The Legend of the Novell NE2000 [video]

https://www.youtube.com/watch?v=nNXzQ7V1S_k
43•voxadam•4d ago•13 comments

Finite State Machines in Forth (1994)

https://www.forth.org/literature/noble.html
74•ofalkaed•5d ago•2 comments

Cave of the Crystals

https://en.wikipedia.org/wiki/Cave_of_the_Crystals
44•ColinWright•5d ago•2 comments

How Gödel's Proof Works (2020)

https://www.quantamagazine.org/how-godels-proof-works-20200714/
102•tzury•12h ago•42 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...)