frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Roku developer repositories moved from GitHub to GitLab

https://blog.roku.com/developer/gitlab-move
171•cxr•3h ago•112 comments

Dream-1

https://dreamlabs.ai/research/dream-1/
54•GaggiX•1h ago•28 comments

The St. Helena 5 pence coin shows Jonathan, a roughly 190 year old tortoise

https://de.numista.com/9866
60•schleck8•2h ago•10 comments

FreeDNS

https://freedns.afraid.org/
178•esher•4h ago•45 comments

Glymphatic clearance to alleviate traumatic brain edema& Alzheimer's pathology

https://www.science.org/doi/10.1126/sciadv.aeh8870
16•ersinesen•1h ago•5 comments

Neural chip decodes interactions between brain regions

https://actu.epfl.ch/news/neural-chip-decodes-interactions-between-brain-r-2/
60•giuliomagnifico•3h ago•11 comments

Why is AI generated language so hard to understand?

https://arxiv.org/abs/2610.29162
20•canjobear•1h ago•10 comments

John Carmack on the Goose Language: multiple data stacks and relative references

https://twitter.com/ID_AA_Carmack/status/2113704269274636568
8•bobbydigitales•17m ago•0 comments

Symbolic Learning in Python and Julia

https://github.com/astroautomata/PySR
23•alex_hirner•3d ago•2 comments

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497
225•theanonymousone•11h ago•105 comments

OBS Studio 33

https://github.com/obsproject/obs-studio/releases/tag/33.0.0
402•pentagrama•14h ago•140 comments

PHP Foundation 'under-funded' with one full-time staff member, director says

https://www.reuters.com/technology/php-foundation-under-funded-with-one-full-time-staff-member-di...
17•firesteelrain•20m ago•2 comments

Kimi K3.1 Pro and K3.1 Pro Highspeed

https://www.kimi.ai/blog/kimi-k3-1-pro
1052•Jowsey•1d ago•640 comments

TornadoVM 7 Enables GPU-Native Workloads from Java Applications

https://www.infoq.com/news/2026/10/tornadovm-7-gpu/
71•pjmlp•2d ago•13 comments

Physicists trap a single antimatter particle for a month

https://www.scientificamerican.com/article/physicists-trap-a-single-antimatter-particle-for-a-month/
240•mooreds•2d ago•71 comments

Danish Government silently drops plan to dump MS Office

https://www.computerworld.dk/art/297226/digitaliseringsministeriet-har-i-al-stilhed-droppet-stort...
38•lowkeyokay•53m ago•7 comments

GPU-unlock: FP/BF16 instruction issue rate on Nvidia 3000's cards

https://github.com/Zagitta/gpu-unlock
117•fragebogen•9h ago•48 comments

Today, we hacked what we'd set out to hack: the iPhone

https://blog.calif.io/p/iphone
1058•pavel_lishin•1d ago•656 comments

I Don't Understand Quantum Physics (2018)

https://www.southampton.ac.uk/~doug/quantum_physics/index.html
233•rramadass•9h ago•167 comments

Oai-math-revised: a community hub for revising OpenAI's math write-ups

https://terrytao.wordpress.com/2026/10/24/oai-math-revised-a-community-hub-for-revising-openais-m...
14•tokepi•3h ago•11 comments

Cecilia Berdichevsky, Clementina expert (1961)

https://en.wikipedia.org/wiki/Cecilia_Berdichevsky
19•fedecaccia•3d ago•0 comments

Twelve years of distributed SQLite

https://philipotoole.com/twelve-years-of-distributed-sqlite/
339•otoolep•18h ago•51 comments

Local Wikipedia: Wikipedia, but only for things a half hour walk from you

https://edjefferson.com/localwiki/
1505•sohkamyung•1d ago•240 comments

Apple Music 404 Not Found

https://music.apple.com/this-url-doesnt-exist
893•frizlab•1d ago•265 comments

Zac-OS-9: The classic Platinum desktop, reborn for modern PCs

https://sourceforge.net/projects/zac-os-9/
12•felixding•2d ago•2 comments

How close can pure functional programming get to C?

https://rtfeldman.com/fp-vs-c
226•stmonty•15h ago•65 comments

Parsing EDIFACT in Python with syntax trees

https://github.com/AmadeusITGroup/Edison
18•alexprengere•2d ago•7 comments

A practical guide to AI image generation, from diffusion to agents

https://danielball.com/notes/ai_image_generation.html
222•westsmith•4d ago•69 comments

Bringing uv and ty together

https://astral.sh/blog/uv-ty-integration
263•Ravencentric•3d ago•90 comments

Tiling Noise – Procedural GPU Patterns

https://catlikecoding.com/godot/procedural-gpu-patterns/09-tiling-noise/
42•ibobev•3d ago•1 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...)