frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

CellGemma – Model built to help accelerate discovery of new cancer therapies

https://deepmind.google/models/gemma/cellgemma/
165•estebandalelr•2h ago•38 comments

Amazon Ergo: A fast, cost-effective open-weights model

https://www.aboutamazon.com/amazon-ergo
1518•mtw14•17h ago•604 comments

TinyGo 0.45.0

https://github.com/tinygo-org/tinygo/releases/tag/v0.45.0
183•iaaan•7h ago•17 comments

Code-driven AI illustrations are more useful than images from image models

https://simonwillison.net/2026/Nov/28/code-driven-ai-illustrations/
244•gmays•9h ago•131 comments

OpenMono: The open-source mono font

https://openmono.com/
206•hn-aarvin•8h ago•62 comments

Advent of Code 2026

https://adventofcode.com/
549•saisundar•1d ago•598 comments

Paprika Powers This Village in Serbia

https://www.nytimes.com/interactive/2026/11/28/dining/paprika-pepper-serbia.html
62•mooreds•2d ago•27 comments

Bacteria linked to inflammatory bowel disease identified with help from gamers

https://today.ucsd.edu/story/bacteria-linked-to-inflammatory-bowel-disease-identified-with-help-f...
282•gmays•14h ago•102 comments

Ty 1.0: Fast Python type checker and language server

https://astral.sh/blog/ty-1.0
607•burntsushi•18h ago•140 comments

Michael Levin's "Platonic Space Hypothesis" aims to explain emergent behavior

https://www.quantamagazine.org/does-behavior-emerge-from-beyond-the-physical-world-20261130/
215•ivell•17h ago•144 comments

ATProto's private data protocol is now in beta

https://atproto.com/blog/the-spaces-public-beta-is-now-live
340•pfraze•16h ago•146 comments

Cryptopocalypse

https://www.argmin.net/p/cryptopocalypse
638•_delirium•19h ago•331 comments

Finding your ISP router's credentials

https://xetera.dev/article/finding-your-isp-routers-credentials
146•8organicbits•11h ago•48 comments

Microcontrôland: A fictional country simulated by 7 ESP32 microcontrollers

https://www.microcontroland.org/en/projet.html
71•dverlaeckt80•13h ago•22 comments

Repository Is Maintained by the New Official Heretic Community

https://github.com/Vinay-Umrethe/heretic
167•jacquesm•8h ago•17 comments

CellGemma: Predicting cell responses to help accelerate cancer research

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/cellgemma/
253•carlesonielfa•18h ago•72 comments

Caveling-2-Mini (post-trained/fine-tuned Inkling-2-Mini)

https://caveman.so/news/introducing-caveling-2-mini
129•cobychapple•13h ago•18 comments

Show HN: Learn Japanese kanji by understanding their parts

https://p.migdal.pl/kanly/
99•stared•2d ago•45 comments

Micromorts – visualizing your chances of dying doing everyday activities

https://hugo0.com/micromorts
373•montenegrohugo•21h ago•193 comments

Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses

https://www.requesty.ai/blog/claude-5-minute-prompt-cache
407•danvdb•18h ago•175 comments

Show HN: Gully Cricket

https://varun.ca/gully-cricket/
105•winkerVSbecks•2d ago•29 comments

Writing a primitive Forth in JavaScript (2024)

https://www.onirom.fr/wiki/blog/16-11-2024_writing_a_primitive_forth_in_javascript/
18•dverlaeckt80•13h ago•4 comments

TCP/IP over the air with LinHT

https://m17project.org/2026/11/27/tcp-ip-over-the-air-with-linht/
175•otto-mate•2d ago•25 comments

Can we stop with the vulnerability fear, uncertainty and doubt, please

https://shubs.io/can-we-stop-with-the-vulnerability-fear-uncertainty-and-doubt-please/
278•infosecau•10h ago•212 comments

The Moat Is Sinking

https://sharamp.com/personal/moat/
117•BrokenMirror•13h ago•123 comments

Warren Buffett has died

https://www.cnbc.com/2026/12/01/warren-buffett-dies-at-age-96.html
1890•United857•12h ago•712 comments

Amazon S3 now supports reading parts of multipart uploads in progress

https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-s3-supports-reading-parts-multipart-upl...
216•dabinat•2d ago•48 comments

The cost of a story, and how it’s gone since we removed the paywall

https://www.sltrib.com/annual-report-2026/
126•danso•14h ago•44 comments

So you just bought a $450M Leonardo da Vinci painting. Now what? (2017)

https://news.artnet.com/market/so-you-just-bought-a-450-million-da-vinci-now-what-1156268
89•NaOH•2d ago•59 comments

Goals don't work. Rely on your values

https://adam.ci/train/goals-do-not-work/
488•adamci•1d ago•187 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...)