EVERYTHING XIAOMI
Get listed

Kalai

Kalai is an open-source source-to-source transpiler that converts Clojure code into other programming languages.

Place
#22 of 28
Score
5.7
Kalai's website

What Kalai is

Kalai is an open-source source-to-source transpiler that converts Clojure code into other programming languages. Its aim is to let developers implement algorithms once and make them available natively in target languages. The README lists Rust and Java as targets and also refers to C++. Kalai handles a subset of Clojure without adding new syntax. Its mappings turn namespaces into classes, functions into static functions, defs and lets into variables, and atoms into mutable data structures. At the top level, it accepts defn and def forms, rejecting executable forms such as println. Running Kalai requires the Clojure command-line tool and source and output directories. Examples use Make, Gradle for Java output, and Rustup for Rust output. The project rationale describes compiling libraries such as SQL builders, internationalization algorithms, and data diffing tools for use across languages. The portability comes with a tradeoff: Kalai gives up the REPL and interactive development style. The code is offered under the Eclipse Public License 2.0, with a possible Unicode License secondary license under stated conditions. The project welcomes pull requests.

Good

  • Open-source software
  • Targets include Rust and Java, with C++ also mentioned
  • Mappings cover functions, variables, and mutable data
  • Project welcomes pull requests

Watch out

  • Supports only a subset of Clojure
  • Requires the Clojure command-line tool
  • Rejects executable top-level forms such as println
  • Gives up the REPL and interactive development style

Who it suits

Kalai may suit Clojure developers seeking to make algorithms available in Rust, Java, or C++ projects. It is less suited to workflows that depend on REPL-based or interactive development.

Verdict

Kalai offers a way to translate supported Clojure code into target-language output, with a clear tradeoff around interactive development. Check the supported forms and required toolchain against your project before adopting it.

Plans and prices

From Kalai's own pricing page, checked 8 Oct 2026.

All about pricing
PlanPriceWhat it gives you
KalaiFreeOpen-source software · Clojure-to-target-language transpilation

The facts

Each one read from Kalai's own pages, with the date it was checked.

Where it runs

Code mappings
Namespaces translate to classes, functions to static functions, defs and lets to variables, and atoms to mutable data structures.checked 8 Oct 2026

What it does

Contributor support
The project README welcomes pull requests and links to contribution guidance.checked 8 Oct 2026
Cross-language libraries
The rationale describes compiling libraries such as SQL builders, internationalization algorithms, and data diffing to multiple languages.checked 8 Oct 2026
Example toolchain
The examples use Make, Gradle for Java output, and Rustup for Rust output.checked 8 Oct 2026
How to run
The README shows invoking Kalai through the Clojure command-line tool with source and output directories.checked 8 Oct 2026
License
The source code is offered under the Eclipse Public License 2.0, with a possible Unicode License secondary license under the stated conditions.checked 8 Oct 2026
Prerequisite
Running Kalai requires the Clojure command-line tool.checked 8 Oct 2026
Purpose
The project aims to let developers encode useful algorithms once and make them available natively in other target languages.checked 8 Oct 2026
Supported Clojure subset
Kalai supports a subset of Clojure constructs and does not add new syntax to Clojure.checked 8 Oct 2026
Target languages
The README lists Rust and Java as target languages and also refers to C++ among its targets.checked 8 Oct 2026
Top-level forms
Kalai rejects top-level forms other than defn and def, including executable forms such as println.checked 8 Oct 2026
Tradeoff
The project rationale says Kalai gives up REPL and interactive development style to gain cross-language and cross-platform reach.checked 8 Oct 2026
What it does
Kalai is a source-to-source transpiler that converts Clojure code into other programming languages.checked 8 Oct 2026

The company

Maker
The repository identifies its maintainer organization as kalai-transpiler and credits the work to the Kalai Authors.checked 8 Oct 2026

Alternatives to Kalai

All alternatives
  1. 1

    JSweet

    Free planOpen sourceAndroidiOSWebAPI
    7.7Free plan
  2. 2SWC logo

    SWC

    Free planAndroidWebAPILinux
    7.1Free plan
  3. 3

    Transcrypt

    Free planWebLinuxmacOSSelf-hosted
    6.7Free plan
  4. 4
    6.6Free plan
  5. 5

    Google Web Toolkit

    Free planWebExtensionLinuxmacOS
    6.5Free plan
  6. 6

    Haxelib

    Free planAPILinuxmacOSWindows
    6.5Free plan