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
 [?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


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:

Tuesday, May 28, 2024

an emacs package for copilot: copilot-emacs/copilot.el

pretty easy to setup, but I still prefer the chat interface

I'm writing a program to tile windows, using kwhat/jnativehook: Global keyboard and mouse listeners for Java. to setup keyboard shortcuts

Wednesday, May 29, 2024

Do I not like Ruby anymore?

this reminds me I haven't caught up with python for a long time, maybe it's time to revisit and explore new language features

a very good point: Your API Shouldn't Redirect HTTP to HTTPS

while I'm still working on lucene as search engine, found this cli tool that could be useful: quickwit-oss/tantivy-cli

Blog Archive