Scoopfeeds — Intelligent news, curated.
computer-science

Hyperpolyglot Lisp: Common Lisp, Racket, Clojure, Emacs Lisp

Hacker News · May 18, 2026, 7:27 PM

Key takeaways

  • Compiling a.ss creates the byte-code compiled file a_ss.zo, which will be used by mzscheme in preference to the source code if it encounters
  • In order for code to be compiled as a standalone executable, it must be packaged as a module.
  • #lang scheme (define hello (printf "Hello world!~n")) emacs

Compiling a.ss creates the byte-code compiled file a_ss.zo, which will be used by mzscheme in preference to the source code if it encounters

In order for code to be compiled as a standalone executable, it must be packaged as a module. This can be accomplished by putting the #lang scheme shorthand the top of the file. All functions that are defined in the module will be executed in order. Here is a simple example:

#lang scheme (define hello (printf "Hello world!~n")) emacs

Article preview — originally published by Hacker News. Full story at the source.
Read full story on Hacker News → More top stories
Aggregated and edited by the Scoop newsroom. We surface news from Hacker News alongside other reporting so you can compare coverage in one place. Editorial policy · Corrections · About Scoop