frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Uber Torches 2026 AI Budget on Claude Code in Four Months

https://www.briefs.co/news/uber-torches-entire-2026-ai-budget-on-claude-code-in-four-months/
68•lwhsiao•46m ago•56 comments

Ask HN: Who is hiring? (May 2026)

97•whoishiring•1h ago•84 comments

whohas – Command-line utility for cross-distro, cross-repository package search

https://github.com/whohas/whohas
44•peter_d_sherman•1h ago•8 comments

Ask HN: Who wants to be hired? (May 2026)

46•whoishiring•1h ago•88 comments

Sally McKee, who coined the term "the memory wall", has died

https://www.online-tribute.com/SallyMcKee
44•deater•2h ago•5 comments

Police Have Used License Plate Readers at Least 14x to Stalk Romantic Interests

https://ij.org/police-have-reportedly-used-license-plate-readers-to-stalk-romantic-interests-at-l...
67•loteck•37m ago•23 comments

Running Adobe's 1991 PostScript Interpreter in the Browser

https://www.pagetable.com/?p=1854
83•ingve•4h ago•16 comments

Your Website Is Not for You

https://websmith.studio/blog/your-website-is-not-for-you/
201•pumbaa•5h ago•138 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

55•proberts•1h ago•70 comments

An open letter asking NHS England to keep its code open

https://keepthingsopen.com
60•tvararu•1h ago•4 comments

New copy of earliest poem in English, written 1,3k years ago, discovered in Rome

https://www.tcd.ie/news_events/articles/2026/caedmons-hymn-discovery/
167•giuliomagnifico•2d ago•101 comments

Advanced Quantization Algorithm for LLMs

https://github.com/intel/auto-round
66•lastdong•7h ago•13 comments

Pro-Iran crew turns DDoS into shakedown as Ubuntu.com stays down

https://www.theregister.com/2026/05/01/canonical_confirms_ubuntu_infrastructure_under/
34•ndsipa_pomu•1h ago•30 comments

Apple accidentally left Claude.md files Apple Support app

https://x.com/aaronp613/status/2049986504617820551
318•andruby•5h ago•237 comments

Show HN: Perfect Bluetooth MIDI for Windows

81•mayerwin•7h ago•21 comments

Grok 4.3

https://docs.x.ai/developers/models/grok-4.3
305•simianwords•8h ago•395 comments

Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

https://semgrep.dev/blog/2026/malicious-dependency-in-pytorch-lightning-used-for-ai-training/
444•j12y•1d ago•164 comments

OpenWarp

https://openwarp.zerx.dev
159•zero-lab•14h ago•120 comments

Show HN: Loopsy, a way for terminals and AI agents on different machines to talk

https://github.com/leox255/loopsy
13•todience•6h ago•1 comments

Opus 4.7 knows the real Kelsey

https://www.theargumentmag.com/p/i-can-never-talk-to-an-ai-anonymously
422•ilamont•1d ago•230 comments

If I could make my own GitHub

https://matduggan.com/if-i-could-make-my-own-github/
102•matricaria•1d ago•123 comments

Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables

https://github.com/darrylmorley/whatcable
277•sleepingNomad•8h ago•105 comments

Softmax, can you derive the Jacobian? And should you care?

https://idlemachines.co.uk/essays/softmax
93•smaddrellmander•3d ago•39 comments

Maladaptive Frugality

https://herbertlui.net/maladaptive-frugality/
167•herbertl•2d ago•192 comments

How an oil refinery works

https://www.construction-physics.com/p/how-an-oil-refinery-works
496•chmaynard•1d ago•168 comments

Claude Code refuses requests or charges extra if your commits mention "OpenClaw"

https://twitter.com/theo/status/2049645973350363168
1266•elmean•1d ago•693 comments

I built a Game Boy emulator in F#

https://nickkossolapov.github.io/fame-boy/building-a-game-boy-emulator-in-fsharp/
321•elvis70•23h ago•72 comments

A Letter from Dijkstra on APL (1982)

https://www.jsoftware.com/papers/Dijkstra_Letter.htm
26•tosh•5h ago•22 comments

CPanel and WHM Authentication Bypass – CVE-2026-41940

https://labs.watchtowr.com/the-internet-is-falling-down-falling-down-falling-down-cpanel-whm-auth...
137•zikani_03•18h ago•51 comments

Our agent found a bug with WireGuard in Google Kubernetes Engine

https://lovable.dev/blog/hunting-networking-bugs-in-kubernetes
56•vikeri•8h ago•30 comments
Open in hackernews

The Scalar Select Anti-Pattern

https://matklad.github.io/2025/05/14/scalar-select-aniti-pattern.html
47•goranmoomin•11mo ago

Comments

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