frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

elect.horse

https://elect.horse/
223•solarist•4h ago•58 comments

Backdoors in official Claude Code extensions

https://cyberplace.social/@GossiTheDog/117528831681803563
389•dsr_•2h ago•110 comments

Azure's Weakest Link – Five Full Cross-Tenant Compromises

https://www.binarysecurity.no/posts/2026/10/one-root-case
69•swq115•3h ago•1 comments

Binance-hacker-1029 – $5.6B stolen from Binance

https://arkm.com/explorer/entity/21a94755-f604-45e5-9501-6542e23005e8
1533•Tiberium•15h ago•1009 comments

We're releasing the weights of Mistral Large 4

https://mistral.ai/news/mistral-large-4-oss/
1565•kuberwastaken•23h ago•410 comments

Anthropic hacked to deliver remote access trojan

https://doublepulsar.com/anthropic-hacked-to-deliver-remote-access-trojan-to-claude-developer-lap...
254•bashtoni•2h ago•46 comments

How Do You Take a Picture of a Black Hole?

https://www.quantamagazine.org/how-do-you-take-a-picture-of-a-black-hole-20261029/
37•dverlaeckt80•3h ago•27 comments

US Reps Lead Democratic Resolution Opposing A.I. Bubble Bailout for Big Tech

https://progressives.house.gov/2026/10/reps-casar-waters-lead-democratic-resolution-opposing-a-i-...
44•DeepLogin•1h ago•23 comments

Gilgamesh by Simon Armitage review – an ancient epic is brilliantly translated

https://www.theguardian.com/books/2026/oct/20/gilgamesh-by-simon-armitage-review-an-ancient-epic-...
90•benbreen•2d ago•25 comments

Why a program doesn't work when run from a batch file, but works when clicked

https://devblogs.microsoft.com/oldnewthing/20261026-00/?p=112797/
51•ibobev•3d ago•13 comments

Finding Panics with Call Graph Analyzer

https://tweedegolf.nl/en/blog/242/finding-panics-with-call-graph-analyzer/
12•ndr•1d ago•0 comments

Herdr has released native app

https://github.com/herdrdev/herdr-app
260•cherioo•12h ago•173 comments

I'm so bad at billiards that I ended up in the hyperbolic plane [video]

https://www.youtube.com/watch?v=kL9BTbIGxLg
171•surprisetalk•1d ago•28 comments

We ran AI agent swarms in Minecraft and Mindustry

https://labs.ycombinator.com/projects/games/index.html
325•sandslash•15h ago•129 comments

Astroterm: A Planetarium for Your Terminal

https://github.com/da-luce/astroterm
176•nvmdbljstm•2d ago•18 comments

Commodore 1600 VICmodem

https://dfarq.homeip.net/commodore-1600-vicmodem/
7•ibobev•3d ago•0 comments

Cuis: The Modern Smalltalk-80

https://cuis.st/
147•theanonymousone•3d ago•17 comments

Wasmer (YC S19) Is Hiring OS/Hypervisor Experts in Europe

https://www.workatastartup.com/jobs/98722
1•syrusakbary•6h ago

Artificial Analysis v5 and the benchmarker's dilemma

https://www.interconnects.ai/p/artificial-analysis-v5-and-the-benchmarkers
36•6thbit•1d ago•27 comments

H.264 Is Magic (2016)

https://sidbala.com/h-264-is-magic/
468•ea016•21h ago•153 comments

A tiny world model running games on a Raspberry Pi Pico 2 W

https://github.com/SheepSeb/tinyworldformer
239•airinei•16h ago•16 comments

Show HN: I Turned DOOM into a Transformer

https://github.com/mottopanikeiku/doomformer
110•falperc•13h ago•34 comments

Cormac McCarthy's Library

https://cormacmccarthy.lib.utk.edu/
78•maitland•12h ago•27 comments

LLM Voice

https://martinfowler.com/bliki/LLM-Voice.html
517•ibobev•22h ago•275 comments

Python on My Wrist

https://tildeweb.nl/~michiel/python-on-my-wrist.html
67•roywashere•3d ago•9 comments

The $6.3B Binance Hack Was Pulled Off in Just 20 Minutes

https://www.wired.com/story/the-dollar63-billion-binance-hack-was-pulled-off-in-just-20-minutes/
8•domhudson•26m ago•0 comments

An illustrated online book on Hewlett-Packard equipment

https://blog.adafruit.com/2026/10/27/an-illustrated-online-book-on-hewlett-packard-equipment/
34•sohkamyung•2d ago•6 comments

Launch HN: Simantic (YC F26) – Firmware Simulation for AI Agents

73•shong0504•21h ago•26 comments

If IPv4 were land

https://iptrust.co/blog/if-ipv4-were-land
307•rokostik•1d ago•423 comments

A Pig, the State, and War: Porco Rosso (Kurenai No Buta) (2014)

https://journal.animationstudies.org/article/id/66/
134•simonebrunozzi•14h 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...)