dmesg --follow
[ 66153780.000 ] posts.x: @Mappletons The redesign isn’t live yet, BTW …  |   [ 66159420.000 ] posts.x: Full talk on why there's no single right chunk size and how multiscale indexing with RRF closes the gap:  |   [ 66159420.000 ] posts.x: A fixed chunk size is a bet on queries you haven't seen yet. @yuvalinthedeep, Sr. Developer Advocate at AI21, tests that bet in "Stop Chunking Like…  |   [ 66166140.000 ] posts.x: @hypeapps @toggl Is this because you’re straddling multiple agent sessions for multiple projects simultaneously?  |   [ 66166560.000 ] posts.x: @hypeapps @toggl You could still get pretty close. Agent sessions are stored on disk. Subtract the long gaps between your inputs to the session…  |   [ 66168660.000 ] posts.x: Full talk on why llms.txt isn't enough and what actually makes a website agent-ready:  |   [ 66168660.000 ] posts.x: Almost half of the websites in one study already publish an llms.txt file for agents to read, but almost none of the agents actually use it…  |   [ 66169620.000 ] posts.x: Full talk on why AI cluster networks need a receiver-driven, message-based protocol instead of TCP:  |   [ 66169620.000 ] posts.x: Most AI clusters still tune their networks for giant weight transfers, but the workloads pushing performance limits now are tiny messages: a KV cache…  |   [ 66179400.000 ] posts.x: Full talk on the harness layers, the files-vs-databases tradeoff, and context rot:  |   [ 66179400.000 ] posts.x: Most of what makes an AI agent reliable has nothing to do with the model itself. In "Total Recall: Agent Memory and Harness Engineering,"…  |   [ 66229440.000 ] posts.x: Astounding!  |   [ 66229560.000 ] posts.x: @lukebfox1 This was such a great game! We used to have all-night LAN parties on this one!  |   [ 66230100.000 ] posts.x: Curious what The Godfather thinks of this. @HamelHusain  |  
corey@gallon.me:~/til$

Writing Racket (Scheme) in Jupyter Notebooks

FIGURE 1 ⋅ Writing Racket (Scheme) in Jupyter Notebooks

First, we’re going to install Jupyter. As we don’t want to contaminate our global Python installation, we’ll do this in a venv

python -m venv venv

Now, let’s activate that bad boy:

source ./venv/bin/activate

Assuming you have Racket installed (see previous TIL — NB do not install via the Snap store … use apt!), install the Racket kernel for Jupyter:

raco pkg install iracket

Should your system complain about not having libzmq5 installed:

sudo apt install libzmq5

Then, install the Racket kernel into Jupyter:

raco iracket install

Then, confirm that Jupyter sees the Racket kernel:

❯ jupyter kernelspec list
Available kernels:
  python3    /home/captivus/projects/sicp/venv/share/jupyter/kernels/python3
  racket     /home/captivus/.local/share/jupyter/kernels/racket

Now … we create a new Jupyter notebook in VSCode using the Command Palette:

Command Palette New Jupyter Notebook.png
FIGURE 2 ⋅ Command Palette New Jupyter Notebook.png

In the top right of the notebook, select the kernel (it won’t say Racket when you start):

Jupyter Notebook Select Kernel.png
FIGURE 3 ⋅ Jupyter Notebook Select Kernel.png

You’ll be presented with these options:

Jupyter Kernel Options.png
FIGURE 4 ⋅ Jupyter Kernel Options.png

Select “Jupyter Kernel”, then select “Racket”:

Jupyter Notebook Select Racket.png
FIGURE 5 ⋅ Jupyter Notebook Select Racket.png

… and you’re up!

corey@gallon.me:~$ tail -f /writing Attach to the stream. An email when I have something worth sending. Replies encouraged!
corey@gallon.me:~$ ls -lt /til ↑2024-10-06 Working through SICP in Jupyter Notebooks
▸2024-10-06 Writing Racket (Scheme) in Jupyter Notebooks ⋅ you are here
↓2024-10-06 raco: Racket's Package Management System (and More)