HNHacker News
TopNewBestAskShowJobs

xnacly

562 karma · joined April 27, 2022

website: xnacly.me

“Arguing that you don’t care about the right to privacy because you have nothing to hide is no different than saying you don’t care about free speech because you have nothing to say.” ~ Edward Snowden

submissionscomments
xnacly··on Making stinkarm stink less, or more – userspace armv7 emulator
Ah damn, i was too edgy when writing the title i guess
xnacly··on Understanding the Go Runtime: Profiling
the art is def ai generated, text seems okay thusfar?
xnacly··on Building a CLI for all of Cloudflare
Well it does suck for a huge list of reasons but specifically disqualifying for being the lingua franca would be it being controlled by microsoft
xnacly··on Building a CLI for all of Cloudflare
> We write a lot of TypeScript at Cloudflare. It’s the lingua franca of software engineering.

This scares me more than Im able to admit, typescript sucks and in my opinion its way worse than the more commonly used lingua franca of computing, which I would attribute to C. At least C can be used to create shared objects i guess?

xnacly··on Ask HN: What Are You Working On? (March 2026)
Each syscall taking 15ms on top of the normal considered costly time taken for context switching to the kernel seems excessivly slow, no?
xnacly··on GrapheneOS – Break Free from Google and Apple
Well i do use banking and netflix on graphene os on my pixel 8a and everything works perfectly
xnacly··on Poking holes into bytecode with peephole optimisations
Hi, no it doesnt, this example of course breaks using temporary registers used after the optimisation. But thats why peephole is a fallback to ir optimisation, since they are only local.

I honestly didnt think of this possibility while building the optimisation. Since constant folding is done as an ir pass i will remove the peephole pass, thanks for noticing :)

xnacly··on Ask HN: Share your personal website
I love jetbrains mono, together with go mono my favourite fonts
xnacly··on Poking holes into bytecode with peephole optimisations
Im sorry i forgot to highlight the braces around (2+3)*(4-1);

Either way the parser isnt implemented yet and all ast examples for the compiler are hardcoded

xnacly··on Ask HN: Share your personal website
xnacly.me
xnacly··on Zen-C: Write like a high-level language, run like C
Assembly requires way more work than compiling to, say C. Clang and gcc do a lot of the heavy lifting regarding optimisation, spilling values to the stack, etc
xnacly··on I'm just having fun
No clue what that is, I dont talk to hr
xnacly··on I'm just having fun
what a weird and mean comment, do better
xnacly··on Programming language speed comparison using Leibniz formula for π
the rust example is so far off being useful and file io seems completly dumb in this context
xnacly··on Java Hello World, LLVM Edition
This, lisp is perfect for representing arbitrary data, nesting is just another sexpr, easy to produce, easy to parse and easy to debug / reason about
xnacly··on Building a Minimal Viable Armv7 Emulator from Scratch
Its winter, it takes a literal second to fade out
xnacly··on Building a Minimal Viable Armv7 Emulator from Scratch
I think rust macros could shine for this usecase, definitely on my TODO list
xnacly··on Building a Minimal Viable Armv7 Emulator from Scratch
The snowflakes do vanish once you scroll down even a single pixel
xnacly··on Porting a Segmented List from C to Rust
Well it does, thats why i didnt include it
xnacly··on Kagi News
Same here, the website seems to be working fine on mobile tho
xnacly··on The many JavaScript runtimes of the last decade
Well i guess thats what you get for using mcp instead of just opening the article and reading it
xnacly··on Strategies for Fast Lexers
You are somewhat right, I used tagging masks to differntiate between different types of atoms [1]. But yes, interning will be backed by a correct implementation of a hashmap with some collision handling in the future.

[1]: https://github.com/xNaCly/purple-garden/blob/master/cc.c#L76...

xnacly··on Strategies for Fast Lexers
I havent written a lot, but it needs to be fast so i can be motivated to program more by the fast iteration
xnacly··on Strategies for Fast Lexers
Sadly that was one of the things I did benchmark, but didn't write down the results. I read a lot that naive switch is faster because the compiler knows how to optimise them better, but for my architecture and benchmarks the computed gotos were faster
xnacly··on Strategies for Fast Lexers
Most of them, jump tables work in rust, mmapping too. deferred numeric parsing, keeping allocations to a minimum, string slices, interning and inline hashing all work in rust, go, c, c++; you name it.
xnacly··on NativeJIT: A C++ expression –> x64 JIT (2018)
Several possible reasons: - parallelism - concurrent machine code gen - different optimisations for different runs, producing differing machine code order, etc
xnacly··on Verified dynamic programming with Σ-types in Lean
sigma types, hmmm
xnacly··on Discord's face scanning age checks 'start of a bigger shift'
It wont work because gov has no interest in not knowing which service the user is trying to authenticate themself to, it is in its interest to connect these informations. We see exactly these attempts every 2-4 years in the eu parliament.
xnacly··on Abusing C to implement JSON parsing with struct methods
I am not a native english speaker so I often forget to uppercase the 'I's
xnacly··on Abusing C to implement JSON parsing with struct methods
Thanks, i tried to go for a mimimalist cyberpunk inspired vibe - thus far i like it :)
Page 1 of 3Next →