HackerTrans
TopNewTrendsCommentsPastAskShowJobs

quirissum

no profile record

Submissions

What if the browser was the server?

arthurcornil.com
4 points·by quirissum·2 เดือนที่ผ่านมา·8 comments

comments

quirissum
·2 เดือนที่ผ่านมา·discuss
With everything cached in production (compressed) it takes ~100ms to load the binary.

Total global initialization including Go runtime startup and SQLite connection takes ~280ms on an M1 MacBook Pro.

So well under a second end to end with a warm cache.
quirissum
·2 เดือนที่ผ่านมา·discuss
For my use case (small datasets), query execution feels instant. No perceptible lag between user action and result. Though I haven't done formal benchmarking. The initial load time is the bottleneck, not query execution. Whether that's the transpiler or just the Go runtime overhead I can't say without proper benchmarking.
quirissum
·2 เดือนที่ผ่านมา·discuss
[flagged]
quirissum
·2 เดือนที่ผ่านมา·discuss
[dead]
quirissum
·2 เดือนที่ผ่านมา·discuss
I explored the idea of shipping a full backend to the user using WASM-compiled Go, SQLite and OPFS. The whole thing is delivered via a URL but runs entirely on the user's machine.

Live Demo: https://localtrack.arthurcornil.com/ GitHub: https://github.com/arthurcornil/localtrack