Monday, 2 November 2026

19 entries · final
Concept of the day · performance

False Sharing

Two threads touching different variables on the same cache line fight over it.

The mechanism. Caches are coherent at cache line granularity, typically 64 bytes (128 on Apple silicon's performance cores). If thread A writes counter[0] and thread B writes counter[1], and both live on one line, every write invalidates the other core's copy. The data is logically independent; the hardware does not know that. You get the full cost of cache coherence traffic with none of the sharing.

How it shows up. A parallel loop that gets slower with more threads. Per-thread counters in an array. A struct where a hot atomic sits next to a frequently-read field. Lock-free queues where head and tail indices share a line — producer and consumer then ping-pong the line on every operation.

The fix. Pad or align to a cache line: #[repr(align(64))] in Rust, alignas(std::hardware_destructive_interference_size) in C++, @Contended in the JVM (with -XX:-RestrictContended), or just put each counter in its own 64-byte struct. Or avoid the sharing entirely: accumulate thread-locally and combine once at the end, which is usually both simpler and faster.

Finding it. perf c2c on Linux is purpose-built for this. Otherwise look for high MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM or simply test the padding hypothesis — it takes five minutes and the speedup is unmistakable when you are right.

Takeaway. On modern hardware, memory layout is a concurrency concern. 64 bytes is a number worth remembering.

0 of 19 read

Top Reads

5

Articles and engineering write-ups worth the full read.

Novellas with groff

movq.de·Lobsters +1·120 points / 51 comments·2 sourcesunixthread →

AI delivers 'zero financial payoff' to most companies, Apollo economist says

techcrunch.com·Hacker News·214 points / 212 commentsthread →

The AI cost of JavaScript frameworks

nolanlawson.com·Hacker News·345 points / 261 commentsthread →

Beating the compiler at signed 32-bit division

Dividing integers is slow on our processors. A 32-bit division costs: processor latency throughput Emerald Rapids about 12 cycles one every 6 cycles Zen 4 9 to 12 cycles one every 6 cycles Zen 5 10 to 13 cycles one every 6 cycles Arrow Lake performance core 12 cycles one every 6 cycles Apple M4 performance core 7 cycles one every 2 cycles On Zen 4 and Zen 5, the latency depends on the inputs. The

lemire.me·Daniel Lemire +1·9 points / 5 comments·2 sourcescompilersperformanceblogthread →

Game Off 2026: The theme is SHIFT

It’s time to make Shift happen. Game Off , GitHub’s annual month-long game jam, returns for its 14th year this November. Thousands of developers have joined us over the years to make everything from polished platformers to wonderfully weird experiments. Whether you’re making your first game or your fiftieth, we’d love for you to join us. The theme for Game Off 2026 is SHIFT

github.blog·The GitHub Bloggamingopen sourcegithub game off

Shipped

4

Releases, changelogs, cloud and language news.

Introducing Kwi, a new KDE terminal emulator

blogs.kde.org·Lobsters·111 points / 32 commentslinuxthread →

Final release for the 7.2 stable series

Greg Kroah-Hartman has announced the release of the 7.2.15 kernel, with a handful of updates. Note, this is the LAST 7.2.y kernel release. After this one the 7.2.y kernel tree is end-of-life. Please move to 7.3.y at this time. And yes, you aren't imagining things, this one went "end-of-life" a bit sooner than normal. But based on the release cycle at the moment, and the number of pending cc: stabl

lwn.net·LWN.netpress

Linux 7.4-rc1 Released With Nice Performance Improvements, AMD Ryzen Zen 6 Preparations & AMDGPU HDMI 2.1 Default

Even with Linus Torvalds having been on holiday, Linux 7.4-rc1 is out today on-schedule for capping off the Linux 7.4 merge window...

phoronix.com·Phoronixpress

File Mover Express: AWS Releases Open-Source Tool for S3 File Transfers

AWS has recently released File Mover Express, an open-source application under the Apache 2.0 license for transferring large files between local systems and Amazon S3. Available for macOS, Windows, and Linux, it supports parallel transfers, automatic performance tuning, retries, pause and resume, and file integrity verification. By Renato Losio

infoq.com·InfoQopen sourceclouds3

Repos

3

Projects gaining real traction, and what they actually do.

deepseek-ai/dsh-superagent-prototype

Towards a More Autonomous Agent System

github.com·GitHubtypescript

getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

github.com·GitHubasyncbookbook-series

Memdoor: A team of 5 Qwen3.8-27B models beats Fable 5 on LiveCodeBench Hard

github.com·Hacker News·434 points / 212 commentsthread →

Discussion

3

Threads where the comments are the content.

Lenovo's 'encrypted' fingerprint USB is just an unencrypted SD card in a case

reddit.com·Hacker News·445 points / 157 commentsthread →

Ask HN: Which TV do you recommend for privacy?

I haven’t owned a TV in years and would like one that respects my privacy. Are there any TV’s which do this well? I am looking for something in the 60”to 80”range and would like a 4k display with at least 60hz display. I don’t mind paying a premium. I have heard good things about Apple TV as a better alternative to most smart TV native apps. Would some TV’s pair better with this than others for pr

news.ycombinator.com·Hacker News·262 points / 423 comments

London Meetup - Nov 2026

Pub Address: The Fellow, 24 York Way, London, N1 9AA. Date: Sunday, 15/11/2026 1pm The idea is to just meet and have a chat really. I have submitted a request to book a table. Hopefully they approve but if not we can just find an un-booked table. I am posting the meetup prior to receiving their approval, so that those of you who live outside London can (hopefully) bag a cheaper train ticket by boo

lobste.rs·Lobsters·24 points / 4 commentsevent

AI

3

Capped on purpose, so it does not eat the edition.

Show HN: HackerBooks – HackerTube, but for books mentioned on HN

Saw Karpathy's HackerTube and wanted the same thing for books. So I had Claude build one (Opus 5.5). It's ~16.5k books that at least two different HN commenters brought up, from 2007 till now. Each book links back to the comments that mentioned it. Data is downloadable from the about page. To be clear: Claude wrote almost all of it, including the data pipeline and the site. I mostly stee

hackerbooks.org·Hacker News·1194 points / 215 commentsthread →

ChatGPT and Codex usage limits merging

help.openai.com·Hacker News·221 points / 165 commentsthread →

AI agent swarms in Minecraft fail to build civilization, drown in bureaucracy

tomshardware.com·Hacker News·163 points / 78 commentsthread →

Deep

1

One paper or long teardown.

Dittany: Contribution-Guided Repair Framework for MAS Applications

LLM-based multi-agent system (MAS) applications can produce useful intermediate results while leaving task requirements unsatisfied. Repairing such executions requires identifying the work still needed and the completed results that can support it. We present \tool, a contribution-guided runtime repair framework for MAS applications. \tool derives expected contributions and acceptance conditions f

arxiv.org·arXiv CScs.sepaper

Revision

2 from earlier editions

Answer each one before you open it.

What replaces rollback when a business transaction spans several services?3d ago

No distributed transaction: a sequence of local commits, each with a compensating undo.

Concept · Saga Pattern
Why is backoff without jitter still a synchronised retry storm?10d ago

Retries without jitter re-synchronise your clients into a self-inflicted DDoS.

Concept · Exponential Backoff with Jitter