Back to browse
GitHub Repository

A lisp that compiles to eBPF

96 starsCommon Lisp

Whistler – a Lisp that compiles to eBPF

by atgreen·Mar 23, 2026·3 points·0 comments

AI Analysis

●●●●GemWizardryZero to OneBig Brain

Replaces LLVM for eBPF with a 5,500-line Common Lisp compiler matching clang optimization.

Strengths
  • SSA-based optimizer produces bytecode matching clang -O2 performance without LLVM.
  • Automatic CO-RE support preserves struct identity through the compiler pipeline.
  • REPL integration allows loading and unloading eBPF code without disk writes.
Weaknesses
  • Lisp syntax is a significant barrier for most kernel developers.
  • Missing the ecosystem and community support surrounding clang and libbpf.
Target Audience

Systems programmers, kernel developers, eBPF engineers

Similar To

clang · Aya · BCC

Post Description

Whistler compiles s-expressions to eBPF bytecode and emits ELF object files (no clang/LLVM). It includes an SSA-based optimizer that matches optimized clang code. You can even use it inline in your Common Lisp code, or from your REPL, and have the eBPF code loaded/unloaded without anything touching disk at all.

Blog post with more background: https://atgreen.github.io/repl-yell/posts/whistler/

Similar Projects

ECD++ 2026.3.10 Is Released

Eclipse decompiler plugin with automated updates when other plugins exist.

Cozy
nbauma109
101mo ago