frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Linux support is coming to Snapdragon X2 Series

https://www.qualcomm.com/news/onq/2026/09/snapdragon-summit-agentic-ai-pcs-linux
343•aaronday•8h ago•146 comments

Early rogue AI agent activity and attempts to hack found on urlquery.net

https://transluce.org/agent-activity
35•snikolaev•1h ago•15 comments

Claude discovers a novel enzyme system with CRISPR-like repeats

https://www.anthropic.com/news/claude-discovers-novel-enzyme-system
615•raahelb•13h ago•624 comments

ArXiv receives multiyear commitments to support it as an independent nonprofit

https://blog.arxiv.org/2026/09/23/arxiv-receives-multiyear-investment/
146•JohnHammersley•8h ago•16 comments

Contrastive Language Models

https://contrastive-lm.notion.site/
27•erichocean•2h ago•6 comments

Ideas on modernizing the open-source desktop

https://lwn.net/SubscriberLink/1095425/2d9f411252325784/
66•signa11•4h ago•46 comments

VSCode's SSH Agent Is Bananas (2025)

https://fly.io/blog/vscode-ssh-wtf/
202•Rapzid•10h ago•125 comments

Lazydraw: Terminal ASCII editor for drawing diagrams and sketches

https://github.com/mpospirit/lazydraw
16•masterpos•1d ago•3 comments

Meta VR Glasses

https://www.meta.com/vr-glasses/
363•polymorph1sm•7h ago•310 comments

Virtio-nvgpu: Near-native Nvidia GPU access inside a KVM guest

https://github.com/nestrilabs/virtio-nvgpu
67•WanjohiRyan•6h ago•31 comments

Making portable my unportable transputer C compiler

https://nanochess.org/transputer_c_compiler.html
34•nanochess•2d ago•4 comments

The "Windows XP Box" (2003)

https://www.mini-itx.com/projects/windowsxpbox/
122•doubletwoyou•2d ago•18 comments

Feds Target AI Critics as "Foreign Agents"

https://www.kenklippenstein.com/p/feds-think-ai-critics-are-foreign
260•nmeagent•6h ago•247 comments

Can open-source prompt-injection detectors catch realistic AI agent attacks?

https://github.com/rudratoshs/buried-injections
3•northbridgedev•41m ago•1 comments

Fixing the Portobello Police Station Clock

https://pointinthecloud.com/2026-04-11-211700.html
424•avidly•16h ago•98 comments

OpenAI breaches Medicare, Albanese reveals

https://www.smh.com.au/politics/federal/openai-breaches-medicare-albanese-reveals-20260924-p6100u...
172•jonnonz•10h ago•123 comments

Why 'What's Opera, Doc?' looks like that

https://animationobsessive.substack.com/p/why-whats-opera-doc-looks-like-that
36•CharlesW•15h ago•5 comments

Mercury 2.5 LLM hits 770 tokens per second

https://artificialanalysis.ai/models/mercury-2-5
92•Retro_Dev•9h ago•55 comments

Making Tailscale Faster

https://tailscale.com/blog/making-tailscale-faster
149•yarapavan•13h ago•55 comments

Women Who Sold Books Door to Door

https://daily.jstor.org/the-women-who-sold-books-door-to-door/
8•herbertl•2d ago•0 comments

The mystery animal on an ancient god's head

https://signoregalilei.com/2026/09/13/the-mystery-animal-on-an-ancient-gods-head/
93•surprisetalk•1d ago•26 comments

Italian parliament votes for return to nuclear energy

https://apnews.com/article/italy-nuclear-chernobyl-4891b6b7c7791ae84db6b0bf0f7cf567
730•geox•14h ago•490 comments

Six-year-old breaks women's world Rubik's Cube record [video]

https://www.youtube.com/watch?v=UCMRgvyTm08
39•1659447091•2h ago•12 comments

Lambda MicroEgg

https://www.philipzucker.com/lambda_miller_egg/
37•philzook•3d ago•1 comments

A brief history of Windows scroll bar shortcuts

https://devblogs.microsoft.com/oldnewthing/20260922-00/?p=112719/
134•tybulewicz•13h ago•69 comments

Tokens too cheap to meter

https://jyn.dev/tokens-too-cheap-to-meter/
284•teoruiz•21h ago•194 comments

Data liberation: Apache Kafka's native cluster mirroring

https://developers.redhat.com/articles/2026/09/22/data-liberation-apache-kafka-native-cluster-mir...
10•fvaleri•1d ago•1 comments

Solving for faster SHA-1 collision detection

https://sam.dev/blog/faster-sha1-collision-detection
20•srijs•2d ago•6 comments

Gemini 3.8 text-to-speech

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-8-text-to-speech/
297•swolpers•15h ago•132 comments

LensVLM: Compressing long context as images, expanding only relevant pages

https://huggingface.co/apple/LensVLM-9B
70•victormustar•12h ago•7 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...)