Skip to content
TopicTracker
From HackerNewsView original
TranslationTranslation

Slisp: Simple Lisp compiler (Linux/amd64)

Slisp is a simple Lisp compiler for Linux/amd64 that compiles a minimal Lisp dialect to x86-64 machine code without runtime dependencies. The project provides a basic Lisp implementation with features like functions, conditionals, and recursion, generating standalone executables.

Background

- Slisp is a minimal Lisp compiler written by Steve Kemp that targets Linux on the x86-64 (amd64) architecture. It compiles a small Lisp-like language directly to assembly, not bytecode. - The project is a hobby / educational tool, not meant for production. It demonstrates how a Lisp compiler can work end-to-end by generating native machine code with no runtime or garbage collector (GC). - Lisp is one of the oldest programming language families, known for its minimalist syntax (lots of parentheses) and powerful macro system. Many people implement small Lisps as a learning exercise in compilers. - "Linux/amd64" means the compiled output runs only on 64-bit Intel/AMD processors under Linux; it is not portable to other operating systems or architectures without rewriting the code generation.

Related stories