radian-software/kalyn

⚗️ Self-hosting compiler from a Haskell-like Lisp directly to x86-64, from scratch.

Haskell

163

324 commits

updated Aug 20, 2026

See the code

README

Kalyn

Self-hosting compiler from a Haskell-like Lisp directly to x86-64, developed fully from scratch.

Kalyn module
map flow chart

Read all about it on my blog!

Build instructions

Install Stack. Keep in mind on Arch-based Linux distributions that all the Haskell packages in the official repos are totally unusable for development, so you need to install Stack using the upstream binaries. (See this HIE issue.)

To compile the Haskell implementation (provide VERBOSE=1 to write intermediate log files into out-kalyn):

$ make 1 [VERBOSE=1]

To use the Haskell implementation to compile the Kalyn implementation:

$ make 2

To use the Kalyn implementation to compile itself:

$ make 3

Contributors

raxod502

322 commits

radian-software/kalyn

⚗️ Self-hosting compiler from a Haskell-like Lisp directly to x86-64, from scratch.

Haskell

163

324 commits

updated Aug 20, 2026

See the code

README

Kalyn

Self-hosting compiler from a Haskell-like Lisp directly to x86-64, developed fully from scratch.

Kalyn module
map flow chart

Read all about it on my blog!

Build instructions

Install Stack. Keep in mind on Arch-based Linux distributions that all the Haskell packages in the official repos are totally unusable for development, so you need to install Stack using the upstream binaries. (See this HIE issue.)

To compile the Haskell implementation (provide VERBOSE=1 to write intermediate log files into out-kalyn):

$ make 1 [VERBOSE=1]

To use the Haskell implementation to compile the Kalyn implementation:

$ make 2

To use the Kalyn implementation to compile itself:

$ make 3

Contributors

raxod502

322 commits

Languages

Haskell

93.3%

Emacs Lisp

4.0%

Python

1.9%