frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Old Bitly Links Are Being Hijacked

https://ransomnews.com/burger-king-tweet-bitly-link-hijack-2026/
45•hspeiser•56m ago•22 comments

A short explainer on how El Niño works [video]

https://www.youtube.com/watch?v=7_JF3etiAv8
138•nharada•4h ago•41 comments

Protomaps: Self-hosting map tiles has gotten cheap and easy

https://bruceroettgers.eu/blog/protomaps/
82•bcye•3h ago•20 comments

Your Agent Will Pick the Hackable One

https://geoffstearns.com/blog/your-agent-will-pick-the-hackable-one/
54•tensafefrogs•1h ago•35 comments

'Birdbrain' Is a Misnomer. Crows Make Decisions Faster Than We Can

https://www.nytimes.com/2026/11/15/science/birdbrain-crows-birds-research-decision.html
124•gumby•5h ago•92 comments

The MacBook Pro's OLED PWM problem

https://macanorak.com/the-macbook-pros-oled-pwm-problem-when-a-better-display-becomes-worse-to-use/
380•MacAnorak•9h ago•205 comments

WebGL Flight Simulator with seed generated terrain

https://baron.by.dai.studio/
36•ranger_danger•2h ago•8 comments

Handwriting, as a Font

https://ductus.sorenblank.com
55•coinfused•3h ago•11 comments

Claude Code and Codex reverse engineered my 1994 Jeep's ECU over a $3 Arduino [video]

https://www.youtube.com/watch?v=WPj3aQ-xxpI
288•envoked•3d ago•150 comments

Eclipse Mosquitto – An open source MQTT broker

https://github.com/eclipse-mosquitto/mosquitto
52•gregsadetsky•4h ago•19 comments

Microsoft 365 outage leads to chlorine gas poisoning of 15 hotel guests

https://www1.wdr.de/nrw/rheinland/rhein-erft-kreis/technischer-defekt-chlor-phantasialand-100.html
289•DeepLogin•4h ago•151 comments

Things That Turbo Pascal Is Smaller Than (2011)

https://prog21.dadgum.com/116.html
180•ksec•9h ago•89 comments

Clice v1.0 Released: Welcome to Modern C++

https://ykiko.me/en/articles/2105384023094834022/
72•molenzwiebel•5h ago•43 comments

Emacs Is My Browser

https://joshblais.com/blog/emacs-as-my-browser/
163•nyc111•7h ago•83 comments

Understanding Positional Embeddings in Modern LLMs

https://magazine.sebastianraschka.com/p/understanding-positional-embeddings
186•vismit2000•10h ago•24 comments

Vulcan rocket fails during return-to-flight launch, 40 Amazon satellites lost

https://www.space.com/space-exploration/launches-spacecraft/ula-vulcan-centaur-return-to-flight-a...
71•jonbaer•2h ago•31 comments

Keylogger Detection and Containment [pdf]

https://www.cs.vu.nl/~ast/Theses/ortolani-thesis.pdf
5•movsx•1d ago•1 comments

Notes on Mathematics for Engineers (1959) [pdf]

https://websites.umich.edu/~ners311/CourseLibrary/MathNotes.pdf
60•the-mitr•4d ago•16 comments

Eval Awareness vs. Eval Paranoia

https://www.lesswrong.com/posts/mepsi7JNKYejq9wry/eval-awareness-vs-eval-paranoia
41•ezrasu•3d ago•17 comments

Boeing-Lockheed rocket fails mid-flight, destroys payload of Amazon satellites

https://www.reuters.com/business/aerospace-defense/us-rocket-fails-after-launch-payload-amazon-in...
27•rexbee•1h ago•14 comments

All AI-generated code should be Open Source

https://jakub.jankiewicz.org/blog/ai-code-open-source/
1022•jcubic•8h ago•567 comments

Aspidistra: A British wartime radio transmitter used for MitM attacks

https://en.wikipedia.org/wiki/Aspidistra_(transmitter)
10•BoxOfRain•3d ago•1 comments

Why did some Apollo missions carry a grenade launcher? (2019)

https://space.stackexchange.com/questions/37775
213•Skyfall106•14h ago•143 comments

Bullet Dodged

https://idiotking.org/archives/2026/10/bullet-dodged-3/
35•surprisetalk•3d ago•29 comments

A NES emulator written in Odin

https://lucypero.com/lucynes.html
98•frostbyte7•10h ago•35 comments

Ask HN: Stripe closed us after one $1,500 invoice and never asked for evidence

51•snirgbs•3h ago•11 comments

SpaceX catches the Starship to end Flight 15

https://www.spacex.com/launches/starship-flight-15
1621•ls612•1d ago•1192 comments

20 Years of Pyrolog

https://pypy.org/posts/2026/11/20-years-of-pyrolog.html
67•lumpa•3d ago•4 comments

What thousands of conversations look like inside a language model

https://operator0x.com/field-notes/qwen-conversation-state-space/
106•josip208•2d ago•29 comments

Lutnick Pushed to Weaken Chip Rules That Overlap with His Family Business

https://www.nytimes.com/2026/11/15/us/politics/lutnick-pushed-to-weaken-chip-rules-that-overlap-w...
443•JumpCrisscross•11h ago•191 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...)