HN user

xnacly

561 karma

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

Posts35
Comments79
View on HN
github.com 6d ago

Sqleibniz – Static Analysis and LSP for SQL in Rust

xnacly
2pts0
github.com 12d ago

A go library for interacting with translate.kagi.com

xnacly
1pts0
xnacly.me 3mo ago

Revisiting and Optimising go-iso8601-duration

xnacly
2pts0
xnacly.me 5mo ago

Building the Worst Vi Emulation for My Mail Client

xnacly
3pts0
xnacly.me 6mo ago

Poking holes into bytecode with peephole optimisations

xnacly
37pts2
xnacly.me 6mo ago

The Manchester Garbage Collector and purple-garden's runtime

xnacly
23pts0
github.com 7mo ago

Go port of A Fast 64–Bit Date Algorithm, based on benjoffe.com/fast-date-64

xnacly
2pts0
xnacly.me 8mo ago

Building a Minimal Viable Armv7 Emulator from Scratch

xnacly
75pts21
xnacly.me 9mo ago

Porting a Segmented List from C to Rust

xnacly
9pts0
xnacly.me 12mo ago

Handrolling ISO8601 Duration Support for Go

xnacly
4pts0
xnacly.me 1y ago

Strategies for Fast Lexers

xnacly
180pts82
xnacly.me 1y ago

Syntax Highlight for SQL in Diagnostic Errors

xnacly
1pts0
xnacly.me 1y ago

Highlighting Parts of Lua as Bash

xnacly
22pts1
xnacly.me 1y ago

Optimizing libjson, or: beating encoding/JSON by at least 2.5x

xnacly
3pts0
xnacly.me 1y ago

Embedding Lua in Sqleibniz with Rust

xnacly
59pts2
xnacly.me 1y ago

Making SQL Keyword Suggestions Work

xnacly
2pts0
xnacly.me 1y ago

Optimizing a Go Package by 38147125738.8x

xnacly
2pts2
xnacly.me 1y ago

I love Rust for tokenising and parsing

xnacly
8pts0
xnacly.me 1y ago

Fun with Go Iterators

xnacly
161pts137
xnacly.me 1y ago

HashMap in 25 Lines of C

xnacly
3pts0
xnacly.github.io 1y ago

Show HN: Codedraw – Draw with commands, export and share your creations

xnacly
2pts0
xnacly.me 2y ago

Calling Go Functions from C++

xnacly
5pts0
xnacly.me 2y ago

Embedding the Sophia runtime into Go applications

xnacly
1pts0
xnacly.me 2y ago

Extract Metadata from HTML with Go

xnacly
2pts0
xnacly.me 2y ago

Sophia Lang Weekly – 02

xnacly
2pts0
xnacly.me 2y ago

Sophia Lang Weekly – 01

xnacly
1pts0
xnacly.me 2y ago

Improving programming language performance

xnacly
58pts16
xnacly.me 2y ago

Write your own programming language

xnacly
3pts0
xnacly.me 3y ago

Removing Metadata from Go Binaries

xnacly
3pts0
xnacly.me 3y ago

Leetcode Optimization and Go

xnacly
1pts0

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 :)

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

Kagi News 10 months ago

Same here, the website seems to be working fine on mobile tho

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

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.

Hi, author here, I just added the JSON macro to omit the quotation escaping around object keys and strings:

without JSON macro:

char* j = "{ \"key\": [\"value1\", \"value2\"]}";

with JSON macro:

char *j = JSON({ "key": ["value1", "value2"]});

But yes of course, due to the stringify no C values can be embedded - i wouldnt even know how one would solve this with a macro, but maybe someone has an idea and can comment on that.