Jim Cheung

Saturday, August 05, 2023

this is interesting: Fast Starting JVM Clojure with Checkpoint/Restore (Part 1)

clojure is painfully slow when using with pinebook pro, this might help


I guess this is good news: Clojure - (next Rich)

more talks from Rich I hope


the dev/clojure page updated 6 years ago, should make some time to update it..

Sunday, August 20, 2023

reading:

Thursday, August 24, 2023

found blog-cells, perfect for a eval cell in my notebook

the main issue is I need a function to get editor value, it imported codemirror, I don't really need it. also the dark theme is not my cup of tea...

lucky the code is really simple, the core logic is in the worker:

const module = `// ExecutionID: ${generateExecutionID()};
const $ = globalThis.module;
const console = globalThis.cellConsole;
${code}`;

const dataURL = "data:text/javascript;base64," + btoa(module);
const exports = await import(dataURL);

it uses import to evaluate code block, as import only execute once, includes an execution id can make it always execute

it doesn't capture the result, but by injecting the console, data will be sent by postMessage

I threw the ts code to chatgpt, converted it to pure javascript and wrapped it as a web component, now I have a new eval code block for my notebook!

Friday, August 25, 2023

meta just released code llama: Introducing Code Llama, a state-of-the-art large language model for coding

models already on TheBloke

to use the model, many people are using jmorganca/ollama: Get up and running with Llama 2 and other large language models locally

another easy option is pinokio, after installed, get the Text generation webui, load models and play


a jvm written by go: Jacobin JVM

not threading yet, but looks interesting


I also played a bit with Cody, I like its smell code feature, it provided some alternative to write the code

Blog Archive