frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Libghostty 1.0

https://mitchellh.com/writing/libghostty-1-0
264•mfiguiere•3h ago•43 comments

A Jev that can ask Opus for help gives Opus accuracy at 4x lower cost

https://hightouch.com/blog/llm-judges-identity-resolution
361•theanomaly•7h ago•81 comments

I Toured Unitree's Factory. I'm More Bullish on the West

https://josef.cn/blog/unitree
36•josefchen•2h ago•23 comments

Tesla to wind down Cybertruck production

https://www.nbcnews.com/tech/tech-news/tesla-wind-cybertruck-production-years-poor-sales-markets-...
875•PLenz•14h ago•1737 comments

Greece has its own Pompeii: Thera buried Akrotiri in ash 17th-16th century BCE

https://www.smithsonianmag.com/history/greece-has-its-own-pompeii-and-the-ruins-tell-a-captivatin...
34•derbOac•3d ago•2 comments

Firecracker VM Escape: PwnEscape Part 2

https://pwn.ai/blog/firecracker-escape
182•SerCe•7h ago•82 comments

US FAA says it will phase out floppy disks from air traffic control by 2028

https://www.reuters.com/world/us/us-faa-says-it-will-phase-out-floppy-disks-air-traffic-control-b...
290•ChrisArchitect•23h ago•229 comments

RealPage rent-pricing case wraps with nearly $360M to renters

https://www.multifamilydive.com/news/realpage-rent-pricing-case-360m-renters/873553/
35•raybb•3h ago•9 comments

Can GROUP BY still be optimized after all these years?

https://pivotlake.io/blog/know-your-limit-faster-top-k-aggregation/
49•ntur1337•3d ago•2 comments

AI is dramatically accelerating AI research

https://www.planned-obsolescence.org/p/ai-is-dramatically-accelerating-ai
217•yurivish•6h ago•166 comments

Show HN: Tmux-restore saves tmux windows and agent sessions across reboots

https://github.com/andrewboldi/tmux-restore
7•boldi•3d ago•2 comments

First steps in bare-metal programming using UEFI

https://kevinboone.me/efitest_index.html
197•LaSombra•10h ago•36 comments

Panthera: Ampere's CPU Performance Model

https://github.com/AmpereComputing/panthera
10•mshockwave•3d ago•0 comments

Sodium-ion batteries approach cost parity with LFP

https://www.pv-magazine.com/2026/11/06/sodium-ion-batteries-approach-cost-parity-with-lfp-with-70...
141•doener•4h ago•62 comments

Restaurant Delivery Payment-Skimming Campaign

https://www.infohawk.com/news/2026-11-05-scamwich-restaurant-skimming
99•fiej•7h ago•45 comments

Devvm.dev: One VM for every project

https://devvm.dev/
124•luispa•9h ago•53 comments

Google has acquired Crusoe's data center site in southeast Wyoming

https://www.crusoe.ai/resources/newsroom/crusoe-wyoming-data-center-campus-update
44•rexbee•6h ago•8 comments

GitHub's new Git storage architecture

https://github.blog/engineering/architecture-optimization/inside-githubs-new-git-storage-architec...
79•DAlperin•7h ago•13 comments

Gemini Omni 1.2 Flash

https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemini-omni-1-2-flash/
302•thisisauserid•13h ago•220 comments

Show HN: Waymark – A workflow engine that compiles jobs instead of replaying

https://github.com/piercefreeman/waymark
46•icyfox•1d ago•15 comments

ChatGPT silently passes data between connectors and the bounty wants an ID card

https://community.openai.com/t/security-follow-up-tool-call-silently-routed-to-a-different-connec...
82•Aldipower•4h ago•35 comments

88x31 GIF Stickers for 2026

https://a90.com/experiments/88x31/
40•saint11•5h ago•5 comments

Replit rebuilt its sandbox engine with microVMs

https://frontier.replit.com/sandbox-engine-microvms-part-1/
71•gaplong•8h ago•19 comments

UpCodes (YC S17) is hiring SDR's to sell AI compliance software

https://up.codes/careers?utm_source=HN
1•Old_Thrashbarg•10h ago

Memorilla: Latent Semantic Memory for LLMs

https://arxiv.org/abs/2610.21375
92•handfuloflight•9h ago•8 comments

Anthropic IPO buyers see valuation as low as $1.1T

https://www.bloomberg.com/news/articles/2026-11-06/anthropic-ipo-valuation-expectations-pressured...
247•dgellow•10h ago•500 comments

Chomsky and the two cultures of statistical learning (2011)

https://www.norvig.com/chomsky.html
103•andsoitis•18h ago•88 comments

Size-It-Up (Game)

https://magnitudle.com/size-it-up
73•whoishiding•9h ago•26 comments

How octopuses squeeze through too small gaps

https://journals.biologists.com/jeb/article/229/21/jeb253615/373332/How-octopuses-squeeze-through...
55•bookofjoe•13h ago•17 comments

Outbound SIP calling is now available to all organizations

https://developers.openai.com/api/docs/guides/voice-sip
56•arbayi•4h ago•43 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...)