Jim Cheung

Friday, December 01, 2023

Introducing llamafile, repo

this is great, it's simple, easy to use and fast (mistral-7b)

Simon Willison has written about it on llamafile is the new best way to run a LLM on your own computer


I started using LLM api (perplexity) to build something simple, quick / one-time answers with pre-defined system prompts.

mistral-7b already able to handle most of my questions, will try swithing to a local llamafile soon

in the meantime, also reading books about prompt engineering

Saturday, December 02, 2023

SQLSync - Stop building databases, repo, talk

this is interesting. I see that people are moving complex queries back to backend. this is moving full query system to frontend.

I like it, but writing a reducer in rust is a big no :p

some alternatives:


good reads:

Thursday, December 07, 2023

enhancing my code browser with tree-sitter, will use generated tags files to do navigation

however typescript tags query doesn't include import names, but it's easy to fix:

first locate the directory:

$ tree-sitter dump-languages

then append this to queries/tags.scm:

(import_specifier
  (identifier) @name) @reference.import

Wednesday, December 13, 2023

after listening to a defn podcast episode, I started watching Parens of the Dead screencast, it's fun

Thursday, December 14, 2023

listened to another episode of defn, it's about Biff | Clojure web framework

I tried it once and it was pretty easy to setup

adding more podcasts to my library:


two new languages I noticed recently: The Roc Programming Language and Gleam, but not sure I got time for that


in one of hanselminutes episode, Anders Hejlsberg talks about TypeChat, it's quite a good idea. I've been playing llm api, the most annoying part is unpredictable result, forcing a response with types might work.

Saturday, December 16, 2023

I installed NetBeans 20 to test if it could handle a TypeScript project. The result was negative; LSP support is still weak.

It's sad that I always preferred NetBeans for its "clean" feeling and easy focus on code. On the other hand, VS Code is such a mess and I still cannot get used to it.


I have encountered numerous UI/UX issues while creating my notebook app recently. I wanted to play a little desktop UI.

Since I already have NetBeans, I began with Java and Swing (yes, Swing is cool~)

I found Java is so simple after dealing with TypeScript, like a breath of fresh air. Using the UI design in NetBeans is so easy, much better than Figma :D

swing ui

Wednesday, December 20, 2023

after listen to the podcast, found some resources for fast clojure:

Blog Archive