frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The fastest Linux timestamps

https://www.hmpcabral.com/2026/04/26/the-fastest-linux-timestamps/
19•hmpc•13h ago

Comments

Veserv•55m ago
You can still do better by not doing any TSC to nanosecond conversion. Instead, you inject clock adjustments into your log stream allowing you to convert when you decode the logs rather than when you generate the logs.

Using the final version, you would just make the cache refresh() function emit the clock adjustment log entry instead of actually caching anything. Then, any later log entry TSC would implicitly be relative to that clock adjustment log entry when you decode the log. Worst case you would need to persist every clock adjustment entry even when sampling, but that would still only be on the order of a few KB/s at worst and you could still drop entrys with no non-clock adjustment entrys between them.

hmpc•39m ago
Yep, I should probably have mentioned this option for completeness. In practice, however, it only saves you a few cycles/nanos and adds more complexity and failure points downstream.
jeffbee•48m ago
I can beat this by not trying to wrap a trace span around something that only takes 100ns.

If the thing of interest just runs on the CPU briefly, tracing is not what you want. You want a profiler that only runs when you're looking at it. Distributed tracing is for things that can go wrong and take uncertain amounts of time.

hmpc•32m ago
You might've misunderstood the requirements. The time scale was 1-10 micros per component; 100 ns was the overhead per span we were aiming for.

In this case distributed tracing absolutely was the right choice. These were not simple computational tasks. The components were highly stateful and interconnected both on- and cross-host. Between this and the timescale, as well as the volume of events and the dollar-value impact of each potential failure (of which there were many), we needed real-time analysis capabilities, not a profiler.

jeffbee•14m ago
I guess my skepticism about the application colored my reading of the rest of it. If it had only said you needed it to be faster, that would have been easier for a simpleton like me.

I bought Friendster for $30k – Here's what I'm doing with it

https://ca98am79.medium.com/i-bought-friendster-for-30k-heres-what-i-m-doing-with-it-d5e8ddb3991d
424•ca98am79•5h ago•244 comments

Self-updating screenshots

https://interblah.net/self-updating-screenshots
67•bjhess•19h ago•11 comments

Three constraints before I build anything

https://jordanlord.co.uk/blog/3-constraints/
48•nervous_north•1d ago•9 comments

Fast16: High-precision software sabotage 5 years before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
162•dd23•6h ago•42 comments

Box to save memory in Rust

https://dystroy.org/blog/box-to-save-memory/
69•emschwartz•3d ago•11 comments

Google banks on AI edge to catch up to cloud rivals Amazon and Microsoft

https://www.ft.com/content/2429f0f0-b685-4747-b425-bf8001a2e94c
63•donsupreme•1h ago•26 comments

Show HN: The Unix Magic poster, annotated (updated)

https://github.com/drio/unixmagic
5•drio•50m ago•0 comments

Butterflies are in decline across North America, a look at the Western Monarch

https://www.smithsonianmag.com/science-nature/butterflies-are-in-dramatic-decline-across-north-am...
133•1659447091•4h ago•40 comments

SWE-bench Verified no longer measures frontier coding capabilities

https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/
253•kmdupree•12h ago•144 comments

When the cheap one is the cool one

https://arun.is/blog/cheap-cool/
19•ddrmaxgt37•1d ago•6 comments

AI should elevate your thinking, not replace it

https://www.koshyjohn.com/blog/ai-should-elevate-your-thinking-not-replace-it/
290•koshyjohn•6h ago•246 comments

Sawe becomes first athlete to run a sub-two-hour marathon in a competitive race

https://www.bbc.com/sport/athletics/articles/crm1m7e0zwzo
262•berkeleyjunk•5h ago•199 comments

The fastest Linux timestamps

https://www.hmpcabral.com/2026/04/26/the-fastest-linux-timestamps/
19•hmpc•13h ago•5 comments

Lessons from building multiplayer browsers

https://www.alejandro.pe/writing/sail-muddy-lessons
11•alejandrohacks•11h ago•4 comments

Show HN: AI memory with biological decay (52% recall)

https://github.com/sachitrafa/YourMemory
62•SachitRafa•5h ago•30 comments

Quirks of Human Anatomy

https://www.sdbonline.org/sites/fly/lewheldquirk/figlegq6.htm
92•gurjeet•1d ago•58 comments

Music of the BBC Microcomputer System

https://www.acornelectron.co.uk/eug/72/a-musi.html
9•eightb•1d ago•1 comments

Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core

https://tingouw.com/blog/embedded/esp32/run_rust_on_app_core
35•MrBuddyCasino•2d ago•6 comments

Magic: The Gathering took me from N2 to Japanese fluency

https://www.tokyodev.com/articles/how-magic-the-gathering-took-me-from-n2-to-japanese-fluency
88•pwim•3d ago•31 comments

XOXO Festival Archive

https://xoxofest.com/
44•surprisetalk•2d ago•9 comments

MoQ Boy

https://moq.dev/blog/moq-boy/
39•mmcclure•5h ago•4 comments

The Visible Zorker: Zork 1

https://eblong.com/infocom/visi/zork1/
108•PLenz•9h ago•19 comments

Clay PCB Tutorial

https://feministhackerspaces.cargo.site/Clay-PCB-Tutorial
195•j0r0b0•10h ago•121 comments

FreeBSD Device Drivers Book

https://github.com/ebrandi/FDD-book
15•myth_drannon•3h ago•1 comments

Chernobyl wildlife forty years on

https://www.bbc.com/future/article/20260424-chernobyl-wildlife-forty-years-on
46•reconnecting•6h ago•2 comments

An AI agent deleted our production database. The agent's confession is below

https://twitter.com/lifeof_jer/status/2048103471019434248
465•jeremyccrane•9h ago•642 comments

Statecharts: hierarchical state machines

https://statecharts.dev/
283•sph•16h ago•79 comments

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
110•2DcAf•11h ago•29 comments

Show HN: Startup Equity Adventure Game

https://options-game-polymathrobotics.pythonanywhere.com/
15•iliabara•4h ago•7 comments

The QEII garden – built from its own ruins – opens in Regent's Park

https://www.ianvisits.co.uk/articles/a-garden-built-from-its-own-ruins-opens-in-regents-park-89152/
9•zeristor•1d ago•2 comments