frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

An AI Agent Published a Hit Piece on Me – The Operator Came Forward

https://theshamblog.com/an-ai-agent-wrote-a-hit-piece-on-me-part-4/
159•scottshambaugh•1h ago•90 comments

MuMu Player (NetEase) silently runs 17 reconnaissance commands every 30 minutes

https://gist.github.com/interpiduser5/547d8a7baec436f24b7cce89dd4ae1ea
94•interpidused•3h ago•32 comments

Gemini 3.1 Pro

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-pro/
604•MallocVoidstar•13h ago•735 comments

An ARM Homelab Server, or a Minisforum MS-R1 Review

https://sour.coffee/2026/02/20/an-arm-homelab-server-or-a-minisforum-ms-r1-review/
32•neelc•2h ago•30 comments

Pi for Excel: AI sidebar add-in for Excel, powered by Pi

https://github.com/tmustier/pi-for-excel
20•rahimnathwani•2h ago•1 comments

Show HN: Micasa – track your house from the terminal

https://micasa.dev
487•cpcloud•12h ago•154 comments

Micropayments as a reality check for news sites

https://blog.zgp.org/micropayments-as-a-reality-check-for-news-sites/
136•speckx•8h ago•312 comments

A Famous Enigma: On Alexandre Kojève

https://clereviewofbooks.com/isabel-jacobs-boris-groys-marco-filoni/
4•Caiero•1d ago•0 comments

Lindenmayer.jl: Defining recursive patterns in Julia

https://cormullion.github.io/Lindenmayer.jl/stable/
25•WillMorr•3d ago•2 comments

America vs. Singapore: You can't save your way out of economic shocks

https://www.governance.fyi/p/america-vs-singapore-you-cant-save
251•guardianbob•13h ago•373 comments

US plans online portal to bypass content bans in Europe and elsewhere

https://www.reuters.com/world/us-plans-online-portal-bypass-content-bans-europe-elsewhere-2026-02...
221•c420•1d ago•278 comments

A terminal weather app with ASCII animations driven by real-time weather data

https://github.com/Veirt/weathr
185•forinti•10h ago•31 comments

A beginner's guide to split keyboards

https://www.justinmklam.com/posts/2026/02/beginners-guide-split-keyboards/
56•thehaikuza•4d ago•68 comments

Paged Out Issue #8 [pdf]

https://pagedout.institute/download/PagedOut_008.pdf
343•SteveHawk27•16h ago•54 comments

Archaeologists find possible first direct evidence of Hannibal's war elephants

https://www.smithsonianmag.com/smart-news/archaeologists-unearthed-a-2200-year-old-bone-they-say-...
93•bryanrasmussen•10h ago•24 comments

Pebble Production: February Update

https://repebble.com/blog/february-pebble-production-and-software-updates
269•smig0•15h ago•127 comments

Show HN: Ghostty-based terminal with vertical tabs and notifications

https://github.com/manaflow-ai/cmux
108•lawrencechen•7h ago•55 comments

Almost Every infrastructure decision I endorse or regret after 4 years

https://cep.dev/posts/every-infrastructure-decision-i-endorse-or-regret-after-4-years-running-inf...
103•Meetvelde•3d ago•49 comments

My 1981 adventure game is now a multimedia extravaganza

https://technologizer.com/home/2026/02/16/arctic-adventure-2026/
79•vontzy•3d ago•24 comments

Dinosaur Food: 100M year old foods we still eat today (2022)

https://borischerny.com/food/2022/01/17/Dinosaur-food.html
109•simonebrunozzi•13h ago•89 comments

Don't Trust the Salt: AI Summarization, Multilingual Safety, and LLM Guardrails

https://royapakzad.substack.com/p/multilingual-llm-evaluation-to-guardrails
191•benbreen•3d ago•77 comments

We're no longer attracting top talent: the brain drain killing American science

https://www.theguardian.com/us-news/2026/feb/19/trump-science-funding-cuts
370•mitchbob•7h ago•330 comments

Measuring AI agent autonomy in practice

https://www.anthropic.com/research/measuring-agent-autonomy
89•jbredeche•14h ago•44 comments

Show HN: A physically-based GPU ray tracer written in Julia

https://makie.org/website/blogposts/raytracing/
170•simondanisch•17h ago•66 comments

Microsoft's new 10k-year data storage medium: glass

https://arstechnica.com/science/2026/02/microsofts-new-10000-year-data-storage-medium-glass/
10•vinhnx•34m ago•0 comments

Show HN: A small, simple music theory library in C99

https://github.com/thelowsunoverthemoon/mahler.c
17•lowsun•5h ago•4 comments

Zero downtime migrations at petabyte scale (2024)

https://planetscale.com/blog/zero-downtime-migrations-at-petabyte-scale
91•Ozzie_osman•3d ago•20 comments

Type-based alias analysis in the Toy Optimizer

https://bernsteinbear.com/blog/toy-tbaa/
16•chunkles•3d ago•1 comments

Overall, the colorectal cancer story is encouraging

https://www.hankgreen.com/crc
126•ZeroGravitas•8h ago•128 comments

The Chinese periodic table goes hard [video]

https://www.youtube.com/watch?v=8ol7DsPnHcE
34•surprisetalk•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•9mo ago

Comments

castratikron•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo ago
in CPU's - pipelining!
jchw•9mo 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...)