dmesg --follow
[ 66260400.000 ] posts.x: Full talk on two vLLM Mamba bugs, the scheduler ordering issue and the int32 overflow, and how the AI21 team traced both through logprobs.  |   [ 66260400.000 ] posts.x: Two production bugs in vLLM's Mamba support produced zero crashes and zero errors, only confidently wrong output. @aiDotEngineer published "Two Bugs…  |   [ 66257640.000 ] posts.x: @mattpocockuk @davekiss @poteto @dexhorthy @emilkowalski 🤣 brilliant!  |   [ 66255540.000 ] posts.x: @yoheinakajima 👊  |   [ 66254340.000 ] posts.x: @yoheinakajima Shockingly quick response!  |   [ 66251100.000 ] posts.x: Full talk on FriendliAI's four-pillar rebuild for agent inference, from prefix caching to cache-aware routing:  |   [ 66251100.000 ] posts.x: A tower defense game, built by two different models on the same coding-agent task: one run cost $1.50, the other 27 cents. @bgchun, founder and CEO…  |   [ 66243600.000 ] posts.x: Full talk on what's changed in quantization, KV caching, and speculative decoding since Philip's book came out:  |   [ 66243600.000 ] posts.x: A quantization method called TurboQuant promised to shrink the KV cache down to four bits this year, then turned out to cut tokens per second by more…  |   [ 66230100.000 ] posts.x: Curious what The Godfather thinks of this. @HamelHusain  |   [ 66229560.000 ] posts.x: @lukebfox1 This was such a great game! We used to have all-night LAN parties on this one!  |   [ 66229440.000 ] posts.x: Astounding!  |   [ 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,"…  |  
corey@gallon.me:~/til$

Working through SICP in Jupyter Notebooks

FIGURE 1 ⋅ Working through SICP in Jupyter Notebooks

I’m reading Structure and Interpretation of Computer Programs and want to write Racket in VSCode in Jupyter notebooks in a dialect of Scheme closest to the book. This requires this declaration at the top of each Racket file:

#lang r5rs

HOWEVER, Jupyter doesn’t like this …

Jupyter Doesn't Like This
FIGURE 2 ⋅ Jupyter Doesn't Like This

The Jupyter kernel for Racket doesn't directly support changing the language with #lang declarations in individual cells. Claude to the rescue, though … eventually … what a pain to finally get to this!

  1. We need to find our where iracket is installed.
❯ find ~/.local -name iracket.rkt
/home/captivus/.local/share/racket/8.2/pkgs/iracket/iracket.rkt
  1. Now, we edit this file (home/captivus/.local/share/racket/8.2/pkgs/iracket/iracket.rkt) as follows:
#lang racket/base

;; ============================================================
;; Enabling R5RS mode for compatibility with SICP code
(require racket/sandbox)

(define orig-current-namespace (current-namespace))
(define r5rs-namespace (make-base-namespace))
(parameterize ([current-namespace r5rs-namespace])
  (namespace-require 'r5rs))

(define (switch-to-r5rs)
  (current-namespace r5rs-namespace))

(define (switch-to-orig)
  (current-namespace orig-current-namespace))

(switch-to-r5rs)

;; The rest of the original iracket.rkt content should follow here ...
;; ============================================================
  1. Now, restart your VSCode and create a Jupyter notebook as previously described in your TIL article … 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 Installing Racket (Scheme) in WSL
▸2024-10-06 Working through SICP in Jupyter Notebooks ⋅ you are here
↓2024-10-06 Writing Racket (Scheme) in Jupyter Notebooks