Jim Cheung

Saturday, October 07, 2023

strange loop 2023 videos

my fav conf, sad that it ends

Thursday, October 12, 2023

couple talks that I like:

"Can a Programming Language Reason About Systems?" by Marianne Bellotti


"Concatenative programming and stack-based languages" by Douglas Creager


may try these libraries:

nubank/nodely

nubank/state-flow: Integration testing framework using a state monad in the backend for building and composing flows


remote repl setup for morse

(require '[clojure.data.alpha.replicant.server.prepl :as replicant])

(replicant/start {:host "hostname", :name "rds", :port 5555})

(replicant/stop "rds")


clj -Ttools install-latest :lib io.github.nubank/morse :as morse

clj -Tmorse morse :host '"hostname"' :port 5555

Sunday, October 15, 2023

when browsing an old book Clojure Cookbook, found couple interesting recipes:

first is async zeromq with lynaghk/zmq-async

another one is running an application as a daemon using org.apache.commons/commons-daemon


some libraries to try:

Thursday, October 26, 2023

what a fantastic article!: Embeddings: What they are and why they matter

thing that I like about Simon is he always put the concept into a workable demo, and compose those ideas together to become something useful but easy to understand

the vibes-based search is exactly what I wanted for my notebook/slipbox, definitely something I must figure out

update: couple days after this article, Jina AI Launches World's First Open-Source 8K Text Embedding, Rivaling OpenAI

Simon also has an update: simonw/llm-embed-jina: Embedding models from Jina AI


Web Components Will Outlive Your JavaScript Framework

been working on my notebook project for the last couple months, really enjoy htmx and web components

for shadow root it may need something like jsx to allow us to create html elements easily, but a component is usually small and isolated, so far not a big issue for me


trying a new diff tool: Wilfred/difftastic: a structural diff that understands syntax

just install it with brew:

$ brew install difftastic

and follow their guide to setup git: Git - Difftastic Manual

but I'm lazy, I just switched to it:

[diff]
    external = difft


I discovered something very useful recently: AppleScript

mainly to resize / arrange windows and do hot reloads like:

$ fswatch --event Updated . | xargs -n1 -I{} osascript "..."

the script is find the target tab in chrome and reload it, so simple

it's painful to write though, the syntax seems so free, I just asked chatgpt to write it for me

Saturday, October 28, 2023

Generate images in one second on your Mac using a latent consistency model

it's quite easy to setup:

$ git clone https://github.com/replicate/latent-consistency-model.git
(activate virtualenv)
$ pip install -r requirements.txt
python main.py \
  "a realistic photo of a german shepard riding a motorcycle through Tokyo at night" \
  --steps 4 --width 512 --height 512

genreate larger than 512x512 is very slow

Blog Archive