Hoot

Scheme→WebAssembly compiler (4K lines info).

plurigrid 30ae1c2 2 files · 2.3 KB Updated

File contents

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.

plurigrid/asi/tree/main/skills/hoot commit 30ae1c24f7

Frequently asked questions

npx skillmds@latest add plurigrid/hoot