Yeah, there's a myriad of compiler flags to use over there. I only happen to know about this one because when I integrated LLVM XRay's instrumentation into ClickHouse (which adds a few NOP bytes at the beginning of each function to be able to patch them) it slightly affected our benchmark results :)
Posts by Pablo Marcos Oltra
Yeah, that's a big issue. At ClickHouse we ask the compiler to have the same alignment for all functions when we build binaries that run for benchmarking purposes: github.com/ClickHouse/C...
It doesn't cover all cases, but it's something you can control at least: gcc.gnu.org/onlinedocs/g...
Which one and why not the Pebble Round 2? 😇
The rollback does the inverse process. It patches the instructions again to add back the initial JMP and the NOPs, preserving the original intent of the code.
gonna be*
This is what happens whenever you start with” going to” and then edit to look cool
Pinky promise this is gonna to be the coolest shit you’re gonna see today www.makingsoftware.com
By Dan Hollick
I'm very happy with the experience of attending #FOSDEM for the 2nd time with friends and colleagues. Oh, and I finally met @raysan5.bsky.social in person!
10/10 would recommend.
A screenshot of a report shown in Perfetto
Using `SYSTEM INSTRUMENT ADD 'QueryMetricLog::startQuery' LOG 'my log'` hotpatches the function adding a hardcoded log + stacktrace. Apart of the LOG handler we also have SLEEP to go around/provoke race conditions and PROFILE to have a good deterministic profile report
Here's the link to watch the talk: fosdem.org/2026/schedul...
And here are the slides: presentations.clickhouse.com/2026-fosdem-...
It's not as advanced as what @molecularmusing.bsky.social does with @liveplusplus.bsky.social, but it serves our goal to help debugging and profiling in production
I gave a talk at #FOSDEM where we added to ClickHouse the possibility to hotpatch functions in production for debugging purposes. It uses a mix of compiler instrumentation and a runtime library called XRay from LLVM. We can enable different handlers through SQL statements
For all those who miss thinking hard because of AI, this article is 👌
Hiring in the US 🇺🇸
If you are into #DistributedSystems, #Databases, #Kubernetes, then I'm hiring for #ClickHouse Cloud AutoScaling Team!
Things we do:
📊 Scaling Algorithms, 🚀 Performance, ⚙️ Reliability
👥Staff / Principals (open to Seniors)
DM or Reply here!
someone built a Linux CPU scheduler that makes scheduling decisions based on planetary positions and zodiac signs
it actually works haha:
Ah, I see! People that want that often separate the private parts in a private.h or impl.h in a different dir that isn't provided in their SDK. But of course, there is nothing preventing others from including those if they have them
The compiler does not export the symbol, so the linker can never use it, independently of anyone knowing the signature of the function
In C you can at least use the static keyword on functions to limit the visibility to the current translation unit (c file). That's the way of making a function private that it has
"Es posible habitar un Internet descentralizado, lugares alternativos, nichos, romper con el Internet canónico y construir nuestros propios espacios" 👏👏👏👏
Justo por eso los de @choquejuergas.bsky.social han hecho un foro para hablar tranquilicos de sus cosicas: foro.choquejuergas.com
@fxn.bsky.social I don't know if you have seen this ClickGems released by ClickHouse, but you may find it interesting: clickgems.clickhouse.com/dashboard/ze...
And the blog post: clickhouse.com/blog/announc...
Pinging @fxn.bsky.social in case he didn't know this incredible piece of art: ciechanow.ski/mechanical-w...
This is genius
Odin does it adding support for it on the compiler directly, as far as I understand it:
odin-lang.org/docs/overvie...
Glad you like it!
Something I've found very neat for both Zig and Odin: they provide a Struct of Arrays interface out of the box to improve data locality.
Zig does it using comptime and its reflection capabilities to implement it in its std:
zig.news/kristoff/str...
The former. Neither Zig nor Rust have exceptions.
I see now that the original statement might lead to confusion😅
This other one is also a good one: youtu.be/3K8znjWN_Ig
Sorry for the spam, but I've been following them for a while, so I've collected quite a few things at this point ^_^