Jim Cheung

Saturday, May 04, 2024

trying datascript as memory database for my project

it has pure javascript api, fits my no-npm requirement

once familiar with the syntax, it's very powerful:

Find directors who have directed Arnold Schwarzenegger in a movie.

[:find ?name
 :where
 [?p :person/name "Arnold Schwarzenegger"]
 [?m :movie/cast ?p]
 [?m :movie/director ?d]
 [?d :person/name ?name]]

I'm learning it from Learn Datalog Today!


found a beautiful font: Alegreya ht

Thursday, May 09, 2024

microsoft/Phi-3-mini-4k-instruct-gguf is very good, and runs reasonably fast on my mac mini

need the latest llamafile v0.8.1 to run it


recently trying small databases:


React 19 (beta) added support for web components

this is interesting, maybe change my way of writing web components


clojure

Monday, May 13, 2024

leonoel/task: Asynchronous effects as values in clojure

a dependencyless simple pattern for asynchronous effect (like Promise.resolve and Promise.reject)


using mbsmith/clj-systemtray to create a system tray menu for my notebook

even the project is 10 years old, but awt still works

also its documentation is generated by marginalia


What are the good things in Clojure between 2018 and now?

libraries to try:

Blog Archive