Diego Parra (@diegolparra) profile picture

O11y | Performance | Distributed Systems

Buenos Aires
Joined February 2013
Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)Photo by Diego Parra (@diegolparra)
Diego Parra retweeted
Introducing Qwen3.8-27B-pi-adapted 🤗 We adapted Qwen's model specifically for the pi coding agent using reinforcement learning and a LoRA adapter. The results, measured as pass@1: 🚀 SWE-bench Pro (Hard 51): 29.4% → 62.7% 💻 Terminal-Bench 2.1: 39.5% → 55.8% ⚡ 55–62% fewer tool calls per task This is the power of open models: you can adapt them to YOUR tools and YOUR use cases. Let’s build! 💛 Open weights: huggingface.co/harness-hub/Q… Methodology: huggingface.co/blog/harness-…
314
650
178
6,012
465,829
perf-agent 1.5.3: CPU, off-CPU and GPU flame graphs for Linux processes, from your code down to the CUDA kernel it launched. github.com/dpsoft/perf-agent
1
4
223
ap-agent 0.2.0 is out: async-profiler over HTTP. Add one -javaagent, get a flame graph with curl. CPU, wall clock, allocations, locks and native memory, as flame graphs, heatmaps, JFR or pprof. New: span filters, to profile just one customer's requests. github.com/dpsoft/ap-agent
2
1
7
309
CPU profilers show where your application spends time. GPU profilers show where your kernels spend time. What if you could connect both? 🔥 Meet perf-agent: an open-source eBPF profiler for Linux that connects CPU stacks to GPU kernel execution. Starting with NVIDIA CUDA. github.com/dpsoft/perf-agent
3
8
198
Diego Parra retweeted
One of the best explanations on CPU branching ocw.mit.edu/courses/6-004-co…
1
47
2
463
31,146
Diego Parra retweeted
How does a large language model run on hardware? A large language model can feel like magic if your background is in CPU-centric programming. That's because the models combine deep neural network with the transformer architecture with a massively parallel processor, GPU, they run on. Furthermore, although you can express a large language model in a few hundred lines of Python, it calls into large, complex layers of software that are hard for a single person to grasp. To answer this question for myself, I implemented the Qwen3-0.6B model from scratch, from transformer to ISA simulator, with help from Claude Code as a weekend hack. That is, I implemented the model, the GPU instruction set, a compiler, and a GPU simulator to make every layer small enough for one person to understand deeply. I also have RTL for the GPU in the works to run the system on an FPGA, and perhaps in the future, tape it out to actual silicon just for fun. What's cool is that you can use it like Claude or Codex, but it runs on the CPU and is therefore fully debuggable and traceable. If you have had trouble connecting the dots between large language models and the GPUs they run on, check out the GitHub repository: github.com/penberg/titania
18
46
2
403
19,205
Diego Parra retweeted
Some of the best technical writing I've read lately (and I'll preface this recommendation by saying I've been doing perf for 20 years and never seen datetime being really hot on a profile): there's this autistic motherfucker whose hobby is micro-optimizing date functions and writing about it. It's fucking amazing. Some people go to orgies and shit on their spare time but this being of pure light has got a whole series of posts where he dives deep into a different date function, all the way down to assembly, with genuinely insane algorithmic approaches. My favorite one is where he comes up with a new way to compute weekday from an epoch by abusing the fact that 7 (the number of days in a week) is a Mersenne prime. The performance work is incredibly thorough, providing and benchmarking different implementations of the same techniques for both throughput and latency (something you rarely see in micro-optimizations).
13
43
3
785
29,607
Diego Parra retweeted
Google researcher @lauriewired warns the shift from C++ to Python in universities is creating programmers who don't understand how computers actually work: "When I was in college getting my CS degree, my year was one of the last years that was using C++ as the core language for teaching students. Actually they were switching over to Python of all languages." "One of the biggest issues that I have is that a lot of these higher level languages are really abstracting away what is happening under the hood. If you're not aware of how the computers work in general, then you're gonna have problems when it comes to debugging." "Starting with a language like C++ gives you the ability to do these really high level abstractions, but it also gives you the ability to customize your memory management and get really close to the underlying machine. Especially if you're trying to work in high performance computing, game development, or high frequency trading." "At C++ conferences, there's almost this fundamental anger response when it comes to mentioning something like C or C++. People start complaining about the complexity of it." @Google
286
457
265
5,160
1,894,294
I've been following a lot of the wal-on-s3 and database-on-s3 debates... and I think everyone is wrong 🤣 First. All the hand-wringing about whether it counts as database-on-s3 if there are cache layers above it. Guys, DBs for the last 40 years had cache layers above an extremely slow storage layer. You think S3 is slow? Try a Netapp device with RAID-5 when the DB has a completely over-subscribed top-of-rack switch. Try a high performance Symmetrix, with a dedicated storage network, with a massively undersized Barracuda switch that basically tips over whenever someone takes a backup. Databases were designed for slow storage, and caches are the way to go. Even with NVMes, caches rock the world. I don't understand why suddenly this is a topic for debate. Second. Getting this to work reliably is not trivial. You can vibe-code it... If you have 20 years experience building distributed data systems, and you know every algorithm and how well they worked in production and how to comprehensively test them. Then you can guide your LLM toward a great outcome. But if it is your first time building a distributed system (or any kind of data store), you should see this as a learning experience - and embrace the lessons that are facing you. As many people discovered in the last week - learning in public is a great way to learn, but is not for the faint of heart. But learning *is* the important bit. Which is why I'm sharing my 2 bits - so everyone can yell at me and I can learn too!
18
34
3
340
35,123
El problema es que ellos no saltan
Esta foto es realmente increíble
182
9,077
39
109,975
1,182,357
Diego Parra retweeted
Another curiosity-powered exploration, well outside of my comfort zone: "The mask that compiles to nothing: how HotSpot's JIT learned to reason about bits" questdb.com/blog/jvm-jit-kno…
4
17
894
My family is donating another $400,000 to the Zig Software Foundation. Zig is exceptional software. I use AI every day. Zig has one of the strongest anti-AI policies in open source. We disagree on some things, but respect doesn’t require agreement. mitchellh.com/writing/zig-do…
118
261
48
5,614
353,403
Diego Parra retweeted
Papers on using LLMs for vulnerability detection github.com/huhusmang/Awesome… #llm #infosec
1
101
576
30,685
Diego Parra retweeted
After few days studying how go and other runtimes implements work-stealing the Loom custom scheduler - I've built a new one for @netty_project (but can be used with any transport you like as #aeron or #dpdk..) on locality-first principles, see github.com/franz1981/Netty-V… (1/2)
2
17
53
4,676
Diego Parra retweeted
My current take on (local) agent sandboxing is that any non-microVM-based sandboxes are a joke (looking at you, Seatbelt and Bubblewrap). Funnily enough, this is what Claude Code and Codex seem to default to when run locally.
9
4
1
62
11,154
Diego Parra retweeted
Codex just found a “workaround” of not having sudo on my pc…
332
1,079
297
15,946
1,618,563
Diego Parra retweeted
My new article, "System Calls", is the second piece in my Linux kernel series, and it picks up right where the boot article left off. When the kernel handed control to `/sbin/init` at the end of boot, it didn't give up power - it just changed mode. Userspace is sandboxed by hardware. `bash` can't print to the terminal, `cat` can't read a file, `curl` can't send a packet. Everything has to go through the kernel via system calls. One thing that you need to know is syscalls are NOT a function calls. It's a full hardware privilege transition. The `syscall` instruction itself does surprisingly little - saves two registers and jumps to a fixed address. The kernel has to do the hard work in hand-written assembly before any C code is allowed to run the real syscalls' specific handlers. Read it here: internals-for-interns.com/po… #Linux #Kernel
2
31
3
184
24,842
What are you building this Weekend?
88
2
4
64
15,215