frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Exploring a Language Runtime with Bpftrace

https://www.mgaudet.ca/technical/2025/5/28/exploring-a-language-runtime-with-bpftrace
28•mgaudet•4d ago

Comments

mrlongroots•1d ago
This is cool!

eBPF is incredible: I think of it as flipping the relationship between you and the perf tool. Instead of the tool giving you information, it asks you "what do you want to know?".

I don't know if it's google search but I find it hard to discover blogs etc. when I'm hunting for the syntax/language etc, having documented "case studies" is super useful.

panic•1d ago
Cool to see Linux catching up to dtrace :)
indiosmo•1d ago
bpftrace was instrumental in helping me diagnose a latency spike on a hot path.

I call into a vendor library that eventually calls into Solarflare's TCPDirect API to send packets to the network.

This call usually stays under 5us and has very little variance, but I was seeing the occasional 30ms or 60ms outlier.

I attached probes to track the latency of each call down the stack and it became quite easy to pin down the specific function.

Eventually tracking it down to a single assignment to a variable that was mmapped to a file, and getting spikes due to page cache writeback.

After figuring it out I found these two articles that go into more detail on the problem.

https://rigtorp.se/virtual-memory/

https://tungdam.medium.com/our-lessons-on-linux-writeback-do...

Here's one of the probes producing a histogram of the latency of the call to the TCPDirect function, which was surprising in how simple it was.

  sudo bpftrace -p "$PID" -e '
    // —— TCPDirect ——
    uprobe:/lib/x86_64-linux-gnu/libonload_zf.so.1:zft_send_single {
      @zf_start[tid] = nsecs;
    }
    uretprobe:/lib/x86_64-linux-gnu/libonload_zf.so.1:zft_send_single /@zf_start[tid]/ {
      $lat = nsecs - @zf_start[tid];
      @h_zft = hist($lat / 1000);
      delete(@zf_start[tid]);
    }
  '

The Visual World of 'Samurai Jack'

https://animationobsessive.substack.com/p/the-visual-world-of-samurai-jack
333•ani_obsessive•10h ago•55 comments

How to post when no one is reading

https://www.jeetmehta.com/posts/thrive-in-obscurity
140•j4mehta•4h ago•53 comments

The Princeton INTERCAL Compiler's source code

https://esoteric.codes/blog/published-for-the-first-time-the-original-intercal72-compiler-code
76•surprisetalk•7h ago•13 comments

Is "The Phoenician Scheme" Wes Anderson's Most Emotional Film?

https://www.newyorker.com/magazine/2025/06/09/the-phoenician-scheme-movie-review
34•prismatic•4h ago•30 comments

Root shell on a credit card terminal

https://stefan-gloor.ch/yomani-hack
684•stgl•19h ago•196 comments

In POSIX, you can theoretically use inode zero

https://utcc.utoronto.ca/~cks/space/blog/unix/POSIXAllowsZeroInode
32•mfrw•1d ago•5 comments

I made a chair

https://milofultz.com/2025-05-27-i-made-a-chair.html
138•surprisetalk•2d ago•49 comments

LFSR CPU Running Forth

https://github.com/howerj/lfsr-vhdl
26•izabera•5h ago•1 comments

LibriVox

https://librivox.org/
156•bookofjoe•11h ago•39 comments

Is It JavaScript?

https://blog.jim-nielsen.com/2025/is-it-javascript/
9•todsacerdoti•3h ago•8 comments

How can AI researchers save energy? By going backward

https://www.quantamagazine.org/how-can-ai-researchers-save-energy-by-going-backward-20250530/
42•pseudolus•6h ago•25 comments

A man who sailed round the world with a chicken (2019)

https://www.theguardian.com/global/2019/apr/21/why-did-the-chicken-cross-the-globe-french-sailor-guirec-soudee-monique
11•NaOH•3d ago•3 comments

Revisiting Loop Recognition in C++ in Rust

https://blomqu.ist/posts/2025/loop-recognition/
19•todsacerdoti•3d ago•4 comments

Cinematography of “Andor”

https://www.pushing-pixels.org/2025/05/20/cinematography-of-andor-interview-with-christophe-nuyens.html
376•rcarmo•23h ago•346 comments

TPDE: A Fast Adaptable Compiler Back-End Framework

https://arxiv.org/abs/2505.22610
30•npalli•7h ago•9 comments

The Zach Attack Scratch 'N Solve Puzzle Pack

https://coincidence.games/zach-attack/
27•GauntletWizard•3d ago•2 comments

Writing your own C++ standard library part 2

https://nibblestew.blogspot.com/2025/05/writing-your-own-c-standard-library.html
36•signa11•2d ago•25 comments

Euro execs mull use of US clouds

https://www.theregister.com/2025/05/28/uk_execs_cloud/
41•rcarmo•2h ago•33 comments

HeidiSQL Available Also for Linux

https://www.heidisql.com/forum.php?t=44068
99•Daril•3d ago•15 comments

The Rise of Judgement over Technical Skill

https://notsocommonthoughts.com/blog/ai-and-judgement/
72•kohlhofer•11h ago•38 comments

What works (and doesn't) selling formal methods

https://www.galois.com/articles/what-works-and-doesnt-selling-formal-methods
75•azhenley•3d ago•28 comments

How reliable are MicroSD cards?

https://old.reddit.com/r/raspberry_pi/comments/1l0v25s/how_reliable_are_microsd_cards_well_as_it_turns/
62•edent•2h ago•19 comments

Gabon longs to cash in on sacred hallucinogenic remedy

https://phys.org/news/2025-05-gabon-cash-sacred-hallucinogenic-remedy.html
30•PaulHoule•3d ago•24 comments

Show HN: Moon Phase Algorithms for C, Lua, Awk, JavaScript, etc.

https://github.com/oliverkwebb/moonphase
30•oliverkwebb•9h ago•8 comments

Progressive JSON

https://overreacted.io/progressive-json/
509•kacesensitive•1d ago•204 comments

A new generation of Tailscale access controls

https://tailscale.com/blog/grants-ga
198•ingve•3d ago•51 comments

Nitrogen Triiodide (2016)

https://www.fourmilab.ch/documents/chemistry/NI3/
81•keepamovin•4d ago•43 comments

When Fine-Tuning Makes Sense: A Developer's Guide

https://getkiln.ai/blog/why_fine_tune_LLM_models_and_how_to_get_started
135•scosman•3d ago•53 comments

Estimating Logarithms

https://obrhubr.org/logarithm-estimation
85•surprisetalk•2d ago•21 comments

Show HN: MBCompass – Android Compass App

https://github.com/MubarakNative/MBCompass
43•nativeforks•4h ago•10 comments