Writing a Type-Safe Linux Perf Interface in Zig
https://pyk.sh/blog/2025-12-11-type-safe-linux-perf-event-open-in-zig
https://pyk.sh/blog/2025-12-11-type-safe-linux-perf-event-open-in-zig
pyk
Writing a Type-Safe Linux Perf Interface in Zig
I'm building a benchmarking tool for Zig and needed CPU counters. This is how I wrapped Linux's `perf_event_open` to be type-safe with comptime.
🔥5
A Comprehensive Guide on Game Hacking
#0 Runtime Function Patching: https://bananamafia.dev/post/cvar-hax
#1 Developing Hacks for idTech3 Based Games: https://bananamafia.dev/post/multihack
#2 Coding A CS:GO Hack: https://bananamafia.dev/post/bananabot
#3 Hooking Direct3D EndScene(): https://bananamafia.dev/post/d3dhook
#4 Cheating in Unity Games: https://bananamafia.dev/post/frida-unity
#5 Hacking Walls and Particles: https://bananamafia.dev/post/cs-aimbot-wallhax
#6 Cheating on Console with Lua: https://bananamafia.dev/post/ps2ps4
#0 Runtime Function Patching: https://bananamafia.dev/post/cvar-hax
#1 Developing Hacks for idTech3 Based Games: https://bananamafia.dev/post/multihack
#2 Coding A CS:GO Hack: https://bananamafia.dev/post/bananabot
#3 Hooking Direct3D EndScene(): https://bananamafia.dev/post/d3dhook
#4 Cheating in Unity Games: https://bananamafia.dev/post/frida-unity
#5 Hacking Walls and Particles: https://bananamafia.dev/post/cs-aimbot-wallhax
#6 Cheating on Console with Lua: https://bananamafia.dev/post/ps2ps4
🔥3🤯3
Increasing Code Performance with LTO
https://youtu.be/fPGodf5hNoo?si=awW14iuAqYPXMkqx
https://youtu.be/fPGodf5hNoo?si=awW14iuAqYPXMkqx
YouTube
Increasing code performance with LTO
Explores potential performance improvements using link time optimization (LTO) by benchmarking various configurations/implementations of a basic kinematic problem.
Notably, how common refactoring can "hide" context from the optimizer resulting in worse performance…
Notably, how common refactoring can "hide" context from the optimizer resulting in worse performance…
🦄6🗿3😡2👍1
Writing your own Cheat Engine in Rust
https://lonami.dev/blog/woce-1/
https://lonami.dev/blog/woce-1/
lonami.dev
Writing our own Cheat Engine: Introduction | Lonami's Blog
Official Lonami's website
🥴3😭3❤1😡1
No Graphics API (C++)
https://www.sebastianaaltonen.com/blog/no-graphics-api
https://www.sebastianaaltonen.com/blog/no-graphics-api
Sebastian Aaltonen
No Graphics API — Sebastian Aaltonen
Graphics APIs and shader languages have significantly increased in complexity over the past decade. It’s time to start discussing how to strip down the abstractions to simplify development, improve performance, and prepare for future GPU workloads.
👍3🗿3🔥2😱1
Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step (C++)
https://youtube.com/watch?v=ncHmEUmJZf4
https://youtube.com/watch?v=ncHmEUmJZf4
YouTube
CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”
http://CppCon.org
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2017
—
Hash tables consume a large volume of both compute resources and memory across Google's production system. The…
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2017
—
Hash tables consume a large volume of both compute resources and memory across Google's production system. The…
🗿4👍1🔥1
Dependable C: A subset of C for developers who want to develop, widely portable, and compilable, software in Classic Chttps://dependablec.org/
🗿8💊5❤3
Branchless Programming in C++
https://youtu.be/g-WPhYREFjk?si=dEWX6nsHxx30uGDy
https://youtu.be/g-WPhYREFjk?si=dEWX6nsHxx30uGDy
YouTube
Branchless Programming in C++ - Fedor Pikus - CppCon 2021
https://cppcon.org/
https://github.com/CppCon/CppCon2021
---
Have you ever written code like this:
void f(bool b, long x, long& s) { if (b) s += x; }
Probably you have. Would you like me to tell you how much performance you left on the table? With a small…
https://github.com/CppCon/CppCon2021
---
Have you ever written code like this:
void f(bool b, long x, long& s) { if (b) s += x; }
Probably you have. Would you like me to tell you how much performance you left on the table? With a small…
👍3
p3100r5.pdf
862 KB
A framework for systematically addressing undefined behaviour in the C++ Standard
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3100r5.pdf
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3100r5.pdf
👾1
MicroQuickJS: a Javanoscript engine targetted at embedded systems. It compiles and runs Javanoscript programs with as low as 10 kB of RAM. The whole engine requires about 100 kB of ROM (ARM Thumb-2 code) including the C library. The speed is comparable to QuickJS.https://github.com/bellard/mquickjs
GitHub
GitHub - bellard/mquickjs: Public repository of the Micro QuickJS Javanoscript Engine
Public repository of the Micro QuickJS Javanoscript Engine - bellard/mquickjs
💊10❤3🔥1😡1
Comptime: brings meta-programming capabilities to C#, enabling compile-time code generation and evaluation.https://github.com/sebastienros/comptime
GitHub
GitHub - sebastienros/comptime: Comptime brings meta-programming capabilities to C#, enabling compile-time code generation and…
Comptime brings meta-programming capabilities to C#, enabling compile-time code generation and evaluation. - sebastienros/comptime
💊6
2007.00167.pdf
168.2 KB
The Integers as a Higher Inductive Type (Agda)
https://arxiv.org/abs/2007.00167
https://arxiv.org/abs/2007.00167
🙏3💊2
The Making Of Amiga OutRun (A500)
https://www.youtube.com/watch?v=O_QP2qQJuXc&list=PLVdDG5UkzsblgnyIMhCHBo1yOMwnRalz9&index=3
https://www.youtube.com/watch?v=O_QP2qQJuXc&list=PLVdDG5UkzsblgnyIMhCHBo1yOMwnRalz9&index=3
YouTube
How Did I Get OUTRUN's Sprite Scaling Working On An AMIGA?!
🤝 Patreon: https://www.patreon.com/cw/REASSEMBLER68K
💾 Download: https://reassembler68k.itch.io/outrun-amiga-edition
🗨️ Discord: https://discord.com/invite/u94mmuCzgB
Parts:
00:00 - The History of Sprite Scaling...
04:13 - How Did OutRun's Sprite Scaling…
💾 Download: https://reassembler68k.itch.io/outrun-amiga-edition
🗨️ Discord: https://discord.com/invite/u94mmuCzgB
Parts:
00:00 - The History of Sprite Scaling...
04:13 - How Did OutRun's Sprite Scaling…
🔥2
An Old-School Introduction to Position Independent Code
https://nemanjatrifunovic.substack.com/p/an-old-school-introduction-to-position
https://nemanjatrifunovic.substack.com/p/an-old-school-introduction-to-position
Substack
An Old-School Introduction to Position Independent Code
Understanding the Concept of Position‑Independent Code Using the Apple II
❤2👍1