frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

BirdyChat becomes first European chat app that is interoperable with WhatsApp

https://www.birdy.chat/blog/first-to-interoperate-with-whatsapp
120•joooscha•1h ago•71 comments

Postmortem: Our first VLEO satellite mission (with imagery and flight data)

https://albedo.com/post/clarity-1-what-worked-and-where-we-go-next
9•topherhaddad•20m ago•1 comments

Raspberry Pi Drag Race: Pi 1 to Pi 5 – Performance Comparison

https://the-diy-life.com/raspberry-pi-drag-race-pi-1-to-pi-5-performance-comparison/
59•verginer•2h ago•25 comments

Memory layout in Zig with formulas

https://raymondtana.github.io/math/programming/2026/01/23/zig-alignment-and-sizing.html
18•raymondtana•4h ago•2 comments

Why Does Destroying Resources via TF Suck?

https://newsletter.masterpoint.io/p/why-does-destroying-resources-via-tf-suck
5•mooreds•30m ago•3 comments

Claude Code's new hidden feature: Swarms

https://twitter.com/NicerInPerson/status/2014989679796347375
163•AffableSpatula•5h ago•115 comments

Doing gigabit Ethernet over my British phone wires

https://thehftguy.com/2026/01/22/doing-gigabit-ethernet-over-my-british-phone-wires/
355•user5994461•10h ago•196 comments

Small Kafka: Tansu and SQLite on a free t3.micro

https://blog.tansu.io/articles/broker-aws-free-tier
22•rmoff•4d ago•0 comments

JSON-render: LLM-based JSON-to-UI tool

https://json-render.dev/
10•rickcarlino•1h ago•1 comments

How I estimate work

https://www.seangoedecke.com/how-i-estimate-work/
310•mattjhall•10h ago•176 comments

Maze Algorithms (2017)

http://www.jamisbuck.org/mazes/
61•surprisetalk•1d ago•21 comments

Shared Claude: A website controlled by the public

https://sharedclaude.com/
10•reasonableklout•12h ago•2 comments

Metriport (YC S22) is hiring a security eng to harden healthcare data infra

https://www.ycombinator.com/companies/metriport/jobs/XC2AF8s-senior-security-engineer
1•dgoncharov•3h ago

Agent orchestration for the timid

https://substack.com/inbox/post/185649875
8•markferree•57m ago•0 comments

The Kept and the Killed (2022)

https://publicdomainreview.org/essay/the-kept-and-the-killed/
7•nomagicbullet•4h ago•1 comments

Tao Te Ching – Translated by Ursula K. Le Guin

https://github.com/nrrb/tao-te-ching/blob/master/Ursula%20K%20Le%20Guin.md
118•andsoitis•3h ago•45 comments

Language may rely less on complex grammar than previously thought: study

https://scitechdaily.com/have-we-been-wrong-about-language-for-70-years-new-study-challenges-long...
5•mikhael•17h ago•1 comments

The Concatative Language XY

http://www.nsl.com/k/xy/xy.txt
7•ofalkaed•1h ago•3 comments

Microservices for the Benefits, Not the Hustle

https://wolfoliver.medium.com/the-purposes-of-microservices-4e5f373f4ea3
4•WolfOliver•3d ago•0 comments

Hung by a thread

https://campedersen.com/rayon-mutex-deadlock
5•ecto•1h ago•8 comments

MS confirms it will give the FBI your Windows PC data encryption key if asked

https://www.windowscentral.com/microsoft/windows-11/microsoft-bitlocker-encryption-keys-give-fbi-...
322•blacktulip•7h ago•223 comments

Show HN: Open-source Figma design to code

https://github.com/vibeflowing-inc/vibe_figma
11•alepeak•14h ago•2 comments

December in Servo: multiple windows, proxy support, better caching, and more

https://servo.org/blog/2026/01/23/december-in-servo/
90•t-3•3h ago•7 comments

How I Became a Quant (2007) [pdf]

https://engineering.nyu.edu/sites/default/files/2021-10/How_I_Became_a_Quant%20%281%29.pdf
76•sonabinu•5d ago•52 comments

Ask HN: Gmail spam filtering suddenly marking everything as spam?

58•goopthink•4h ago•56 comments

C++26 Reflection loves QRangeModel

https://www.qt.io/blog/c26-reflection-qrangemodel
19•jandeboevrie•4d ago•2 comments

When employees feel slighted, they work less

https://penntoday.upenn.edu/news/penn-wharton-when-employees-feel-slighted-they-work-less
246•consumer451•4d ago•205 comments

Internet Archive's Storage

https://blog.dshr.org/2026/01/internet-archives-storage.html
260•zdw•4d ago•78 comments

Understanding Rust Closures

https://antoine.vandecreme.net/blog/rust-closures/
4•avandecreme•1h ago•0 comments

Many Small Queries Are Efficient in SQLite

https://www.sqlite.org/np1queryprob.html
132•tosh•9h ago•88 comments
Open in hackernews

The Scalar Select Anti-Pattern

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

Comments

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