Jim Cheung

Wednesday, September 23, 2026

trying out jolt-lang/jolt: A Clojure compiler implemented on top of Chez Scheme, I have few old machines that can run babashka but stuggle with clojure's startup time, looks like jolt does more than babashka


tech news is so boring these days, I don't have much I want to try or build, maybe I'll just go back and read some unfinsihed books

and I don't want to talk about AI anymore


Small Programming Tricks

surprisingly, I already knew/heard most of the tricks in there, but I like this kind of article

the logarithmic histogram buckets one is new to me, one use case might be applying different cache TTL for hot items

use hits to get log bucket which maps to a TTL

const bucket = hits > 0 ? Math.floor(Math.log10(hits)) : -1;
return TTL_TIERS[bucket];

for example TTL_TIERS[1] is 300

but need to maintain extra counters (the hits), good to know but not very practical

try Window TinyLFU for that


I also didn't know this:

Similar to cd -, you can use git checkout - to check out your previous HEAD


Babashka got some nice updates:

and clojure too:


a DrRacket-like IDE for clojure: kimtg/DrClojure-Neo: Clojure IDE

I tried, like it, will wait for parinfer enhancement, and emacs keybindings


crazy ways to serve data in the browser:


chromedriver is broken, high cpu whenever it starts a browser

then I found out I can start chrome with --remote-debugging-port and use CDP to control it

I switched from etaoin to clj-chrome-devtools, never gonna touch chromedriver again

Blog Archive
    Newer Entries
  • N/A