
Clément Grégoire
3.9K posts

Clément Grégoire
@lectem
Mostly moved to the place where the sky is blue. Performance, GPU APIs, multithreading and game engines specialist @siliceum. Does reverse engineering for fun.
Clermont-Ferrand, France Bergabung Ağustos 2014
531 Mengikuti395 Pengikut

@rfleury @matiasgoldberg Did you start the kernel part?
Cause you'll have to parse (barely documented) text based files instead of proper APIs, for which the content may change whenever. At least you can read the kernel source to figure stuff out but that's not better than what the tool chains have.
English

For those wondering why there has historically been a lack of solid graphical Linux debuggers, this is why. Everything is like this. This is a glimpse into the reality of *just reading the bare minimum amount of information stored in the dominant debug info format* on Linux - never mind process control, toolchain variability, lack of standardization of *thread-local-storage* or *module loading*, for Christ's sake.
Around every corner is friction and variability. No vision that connects with the user. No design taste. No consideration for the complexity required to use data formats or APIs from scratch. Eggheaded overly-generic academic slop specifications. It's just terrible.
Luckily, we're (finally) close, but this is why it's not trivial.
English

Yearly report you should not be using GCP. It's not the first mishap with governments, ask Australia.
Joel 🇦🇺@ptr_to_joel
is gcp actually cooked
English

@ForrestTheWoods I ended up using zigcc which is the only easily accessed toolchain targeting an old glibc. The fact we still need these kind of things (or go musl, which has its own issue) is sad.
English

@jedisct1 Removing the perl requirement when? Insane we still need this to build in 2026
English

i hope libressl does not make a new release too soon, i just finished porting it as a whole to the zig build system and i really dont want to reread all of that cmake mumbo jumbo
Frank@jedisct1
OpenSSL 4.00 released github.com/openssl/openss…
English

@molecularmusing @SheriefFYI @jbevain Yeah it's something I do a lot too, it could be cached but I guess that some rules could be easily invalidated. Not surprising they didn't optimize it but yeah.
English

@lectem @SheriefFYI @jbevain I mean, I can understand why it's not optimized for that use case. It was just something I noticed.
English

I wonder where the build overhead is coming from when compiling in the VS IDE (2026 in this case).
Recompiling through Live++ is consistently faster, 6 times as fast in this case.
Even compiling & linking & patching is much faster than just compiling a file through VS.
@jbevain ?


English

@zooko @debasishg Wait until they discover what page tables and VADs are. Nothing is free.
English

@debasishg The `smalloc` memory allocator is an experiment in writing a memory allocator that leverages this insight to the max. #the-big-idea" target="_blank" rel="nofollow noopener">github.com/zooko/smalloc?…

English

The blog post "Virtual Memory Tricks" by Niklas Gray explores clever, underutilized ways to leverage operating system virtual memory features (via APIs like VirtualAlloc or mmap) to solve common programming problems efficiently.
Some of the key techniques discussed are ..
• reserving extremely large virtual address spaces for arrays (e.g., billions of elements) without consuming physical RAM until pages are actually accessed, enabling simple, fast fixed-size data structures like global game object arrays or huge lookup tables.
• using virtual memory reservations to generate guaranteed-unique application-wide IDs (by returning pointers from reserved blocks)
• implementing an "end-of-page allocator" that places allocations at page boundaries to catch out-of-bounds or use-after-free bugs via immediate access violations, and avoiding fragmentation issues since virtual memory allows non-contiguous physical pages.
• implementing a gapless ring buffer that uses shared mappings to handle wraparound seamlessly without extra boundary logic.
Overall, the author argues that directly controlling virtual memory unlocks powerful, scalable, and safer memory management patterns beyond conventional malloc usage.
link to the blog post: ruby0x1.github.io/machinery_blog…
English

BREAKING: Microsoft just announced several major changes to Windows 11 in an effort to win back user trust and evolve the platform into something people will actually want to use over macOS and Linux!
It's a huge announcement that addresses Windows 11's biggest problems today, tackling core fundamental issues such as unreliable system performance, UX consistency, AI bloat and general enshittification.
Microsoft has confirmed that this year, it WILL be reducing where ads and Copilot appear throughout the system, including in Start, Widgets, Notepad, Photos, and more!
File Explorer and Windows Search will be upgraded with improved performance and capabilities that make finding apps and files much faster and easier.
The OS will become lighter with less RAM and system utilization at idle, making it smoother to run on low end hardware with limited memory. These improvements will also benefit high-end PCs too.
Windows Update will be improved with more granular controls and the ability to postpone updates for longer, along with reducing how often the OS needs to restart to install an update.
Microsoft has also confirmed that it's bringing back fan favourite features such as the ability to move the Taskbar! It's also working to update more areas of the system shell with modern WinUI designs, which should make Windows 11 feel more coherent and complete.
There's much more in the announcement, and it honestly all sounds too good to be true. Microsoft really is listening to feedback, and is eager to make Windows the BEST desktop OS on the market. More details including when these changes will arrive in the link! windowscentral.com/microsoft/wind…

English

@MatRopert Like, people forget to await, pile up bad continuations, mishandle promises, forget about them, use await as ducktape. And then lifecycle issues appear, nothing is really ordered properly because. There are always event based systems at some point, which do not mix well with that
English

@MatRopert I have mixed feelings about this. In theory coroutines (just as fibers) are a silver bullet. In practice I've seen enough crappy async/await usage in other languages (mostly JS-based) that I really fear what the lambda dev / LLM will write. Going to be a suspension point hell.
English

@lectem I agree, but being accurate is important. I regret not double-checking the compiler build.
English

I made a mistake in my original benchmarks: the Docker image I used had internal GCC assertions enabled.
I re-measured everything on a proper build, and times are ~50% faster across the board. The article has been updated with the correct data.
I apologize for the confusion.
Vittorio Romeo@supahvee1234
Fast iteration is the key to developer happiness. 🚀 I took a very early look at C++26 Reflection in GCC 16 to see if it would ruin my "fast compile" workflow. Here are my findings! vittorioromeo.com/index/blog/ref… #cpp #gamedev #programming
English

@supahvee1234 Yeah that "put it in the stdlib" and "it's a QoI issue" mindset has been and will keep killing the lang.
It's not like we didn't have so many precedents (move, forward, atomic,...).
Welp
English

Fast iteration is the key to developer happiness. 🚀
I took a very early look at C++26 Reflection in GCC 16 to see if it would ruin my "fast compile" workflow.
Here are my findings!
vittorioromeo.com/index/blog/ref…
#cpp #gamedev #programming
English

Ever wrote spin-locks or had to debug them?
I have, and I got tired of seeing (and writing) crappy ones, so I did a real investigation this time.
Spoiler: trust your OS.
siliceum.com/en/blog/post/s…
English

@ashvardanian Oh yeah ofc, if you wanted to spy properly you'd have the knowledge to conceal your app, not expose it to scrutiny with such vmem usage 😂
English

@lectem Even if you spy on people, there are more efficient/professional ways to do that 😅
With how effective "Spotlight" is at finding a program by name among 50 binaries w/out spelling mistakes, I doubt they are very good at spying.
English

For context: that process has read 400+ GB from disk. For what, exactly?
Likely swap mismanagement. Not unrelated: the background window is a blank, occasionally blinking VS Code editor. Apparently, 5 tabs of ~10 KB text files on a $3K machine in 2025 is asking too much.
Can't wait for @zeddotdev to become a feature-complete replacement 🤞

Ash Vardanian@ashvardanian
macOS wallpaper process: 400+ GB of virtual address space. From a $4T consumer electronics & software company, this is embarrassing. And somehow Windows is still worse — but I guess they’re a “Cloud + AI” company now 🤷♂️
English

@BlablaLinux Bah un peu, le fait d'aller telecharger et installer des trucs venus d'un repo non sécurisé en général, de façon automatique
Français

@lectem Ce qui te gêne c'est la tâche Cron ? Chacun est LIBRE de mettre en place ou non. Personne n'a le couteau sous la gorge. Je prends alors l'exemple de PVE Script local avec téléchargement automatique de scripts ! Même chose, un script peut être compris.
Français

@BlablaLinux Et si le repo github est compromis demain, tu fais comment ? Ça me semble chaud.
Français

3/3
Je gagne du temps et je dors tranquille, la maintenance se fait toute seule 🛡️
👉 L'automatisation, c'est par ici (Section 5) : #h-5-automatisation-de-la-mise-à-jour-de-la-liste-de-blocage" target="_blank" rel="nofollow noopener">wiki.blablalinux.be/fr/blocage-rob…
#automatisation #cron #nginx #npm #docker
Français

@WumpusCentral Selling optimization and memory leak tracking services, contact me 😅
English





