Skip to content

Instantly share code, notes, and snippets.

View iximeow's full-sized avatar
🐟
you can tune a piano but you can't tuna fish

iximeow iximeow

🐟
you can tune a piano but you can't tuna fish
View GitHub Profile
@iximeow
iximeow / bswap_x86.rs
Created August 30, 2025 16:52
bswap x86
/// welcome to another: ixi wrote a stupid one-off .rs
///
/// `rustc -C opt-level=3 bswap_x86.rs` and have fun
static mut LAST: u32 = 0;
macro_rules! bench {
($testname:ident, $fn:ident) => {
#[unsafe(no_mangle)]
#[inline(never)]
fn $testname(num: u32) {
@iximeow
iximeow / rustc_debug.d
Created October 16, 2025 19:45
rustc sadness
BEGIN {
/*
substring = "/omicron/target/debug/incremental";
*/
substring = "nexus_db_queries-";
}
/*
* sometimes when rustc invokes gcc (linking?), it dies out of nowhere with `Not
* enuogh space (os error 12)`. it's not clear what syscall returned that or