“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
Submissions
Sqleibniz – Static Analysis and LSP for SQL in Rust
github.com
2 points·by xnacly··0 comments
A go library for interacting with translate.kagi.com
github.com
1 points·by xnacly··0 comments
Revisiting and Optimising go-iso8601-duration
xnacly.me
2 points·by xnacly··0 comments
Building the Worst Vi Emulation for My Mail Client
xnacly.me
3 points·by xnacly··0 comments
Poking holes into bytecode with peephole optimisations
xnacly.me
37 points·by xnacly··2 comments
The Manchester Garbage Collector and purple-garden's runtime
xnacly.me
23 points·by xnacly··0 comments
Go port of A Fast 64–Bit Date Algorithm, based on benjoffe.com/fast-date-64
github.com
2 points·by xnacly··0 comments
Building a Minimal Viable Armv7 Emulator from Scratch
xnacly.me
75 points·by xnacly··21 comments
Porting a Segmented List from C to Rust
xnacly.me
9 points·by xnacly··0 comments
Handrolling ISO8601 Duration Support for Go
xnacly.me
4 points·by xnacly··0 comments
Strategies for Fast Lexers
xnacly.me
180 points·by xnacly··82 comments
Syntax Highlight for SQL in Diagnostic Errors
xnacly.me
1 points·by xnacly··0 comments
Highlighting Parts of Lua as Bash
xnacly.me
22 points·by xnacly··1 comments
Optimizing libjson, or: beating encoding/JSON by at least 2.5x
> 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?
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 :)
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
“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