frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Sharing AI progress in mathematics

https://openai.com/index/sharing-ai-progress-in-mathematics/
728•OfficialTurkey•8h ago•659 comments

Strands Decider 2B: a small, open-source, decision model

https://strandsagents.com/blog/introducing-strands-decider/
111•gmays•4h ago•23 comments

Decisions API is in public beta

https://developers.openai.com/api/docs/guides/decisions
228•chiefstorm•9h ago•104 comments

Penguin Mail – open-source Rust email client for Linux with AI

https://penguin-mail.com/
145•kavourias•8h ago•67 comments

La Cueva BBS in Mexico in 1993 (session replay)

https://nanochess.org/la_cueva_bbs.html
29•nanochess•3h ago•6 comments

Mistral Large 4

https://mistral.ai/news/mistral-large-4/\
1698•Philpax•17h ago•1005 comments

What Is Codemode

https://lucumr.pocoo.org/2026/10/6/codemode/
50•Tomte•16h ago•7 comments

EmbeddingGemma 2: An open, lightweight multimodal embedding model

https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2/
288•ilreb•14h ago•31 comments

Shaders, WebGPU Components for React, Vue, Svelte, Solid, JavaScript and Framer

https://github.com/shader-effects-inc/shaders
3•jinqueeny•42m ago•1 comments

ESP32-C3 Adblock

https://github.com/M-Abozaid/esp32-c3-adblock
52•jayhoon•4h ago•12 comments

The cost of lies: A Mineserver story

https://www.jeremyreimer.com/rockets-item.lsp?f=true&p=272
68•luu•3d ago•24 comments

Claude Code’s suggested message feature: I think the real customer is the model

https://www.zohaib.cc/blog/smartest-claude-code-feature
165•zed_labs_dev•12h ago•89 comments

Calling It Quits on ServerFault

https://sysadmin1138.net/mt/blog/2026/10/calling-it-quits-on-serverfault.shtml
50•zdw•1h ago•24 comments

AnyPS5: Port PS5 binaries to PC without emulation (87% system libraries mapped)

https://github.com/boykopovar/AnyPS5
192•Fe2O3•6h ago•151 comments

Jev-Driven SRE Diagnosis: What Worked and What Failed

https://www.sregym.com/blog/jev-driven-sre-diagnosis
22•matt_d•4h ago•5 comments

The art of defusing a second world war bomb

https://www.theguardian.com/news/ng-interactive/2026/oct/06/it-could-knock-a-whole-street-down-th...
14•sandebert•2h ago•4 comments

Tell HN: GitHub refuses to remove cracked copies of my software after a month

118•IvanK_net•11h ago•80 comments

Anatomy Unzipped: John of Arderne's Sweden Scroll (Ca. 1425–35)

https://publicdomainreview.org/collection/arderne-scroll/
3•prismatic•2d ago•0 comments

OpenTPU – An open-source AI accelerator, developed by AI

https://github.com/FeSens/openTPU
270•fsbonetto•13h ago•324 comments

Hackers obtain counterfeit TLS certificates for Google and other large services

https://arstechnica.com/security/2026/10/hackers-obtain-counterfeit-tls-certificates-for-google-a...
21•colinprince•1h ago•4 comments

Improving and Stabilizing the Racoon2 IKE Daemon in NetBSD

https://blog.netbsd.org/tnf/entry/gsoc2026_racoon2
12•jaypatelani•2d ago•2 comments

Treg (OpenRouter for Tools)

https://github.com/superdesigndev/treg
14•trollied•13h ago•3 comments

How Fast is Python 3.15?

https://blog.miguelgrinberg.com/post/how-fast-is-python-3-15
57•Qem•8h ago•38 comments

What's Earth's dominant species by mass?

https://signoregalilei.com/2026/09/27/whats-earths-dominant-species-by-mass/
201•surprisetalk•17h ago•135 comments

California closed the Montana license plate loophole

https://www.thedrive.com/news/heres-how-california-closed-the-montana-license-plate-loophole
93•speckx•13h ago•236 comments

When random is not actually random enough

https://ersc.io/blog/when-random-isnt-random-enough
49•steveklabnik•10h ago•14 comments

State of Devs 2026

https://2026.stateofdevs.com/en-US/
118•sgdesign•6h ago•53 comments

LLMs may have helped my RSI

https://vaughanhilts.me/2026/10/05/llms-immensely-helped-my-rsi.html
78•vaughands•1d ago•38 comments

Benchmark in Milliseconds

https://matklad.github.io/2026/10/05/benchmark-milliseconds.html
135•surprisetalk•1d ago•43 comments

Xbox has secured exclusive GTA 6 streaming rights

https://www.theverge.com/report/1005859/microsoft-xbox-gta-6-streaming-rights
30•thm•3h ago•33 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...)