hoot

Scheme→WebAssembly compiler (4K lines info).

SKILL.md

GitHub

hoot

Scheme→WebAssembly compiler (4K lines info).

Compile

guild compile-wasm -o out.wasm script.scm

Features

  • Full tail call optimization
  • First-class continuations
  • JavaScript interop
  • Standalone Wasm modules

Example

(define-module (my-module)
  #:export (greet))

(define (greet name)
  (string-append "Hello, " name "!"))

Runtime

import { Hoot } from '@aspect/guile-hoot';
const mod = await Hoot.load('out.wasm');
mod.greet("World");

REPL atlas

Part of: repl-commons. Family canonical: guile.