Jank brings Clojure natively to C++ with seamless interop

Jank – The native Clojure dialect with seamless C++ interop

Jank is a native Clojure dialect designed to interoperate seamlessly with C++. Rather than running on the JVM, it compiles Clojure code to native binaries while letting it call directly into C++ and vice versa. The project targets developers who want Clojure's expressive, functional style without giving up access to existing C++ libraries and performance-critical code.

Jank – The native Clojure dialect with seamless C++ interop
  1. flavio81

    PSA: If you need a Lisp that talks to C++, Common Lisp has had seamless C++ interop in the few years thanks to the CLASP implementation. It should be fairly mature by now, I understand it was born to be used in serious projects.

  2. goldenshale

    I think repl driven development with access to native code could be a magic formula for agent engineering. No restarting, no re-compiling. Plus with persistent, immutable data structures you can iterate with many threads in parallel while maintaining sanity.

  3. e12e

    Wonder how this compares to clasp (common lisp c++ impl)?

  4. onlyrealcuzzo

    This is quite cool.

    ```

    jank is C++

    jank can include any C++ source, link to any C or C++ library, and it uses the C++ type system. jank even compiles to C++!

    ```

    I'd recommend saying that it lowers to C++ earlier, as I imagine most people are interested in that aspect of how it works.

    ```jank is Clojure on top of C++``` -> `on top of` could mean many things. I'd recommend just saying it transpiles to C++. Then, the pros and cons that come from that flow naturally.

    ```

    Use your favorite nREPL editor plugin. jank contains an LLVM-based JIT runtime to compile C++ code on the fly.

    ```

    This is true for anything written in `jank`, right? But presumably not for your C++ dependencies? Like if you have `jank` code which depends on data managed in a different C++ library.

    It would seem there are a lot of concurrency and parallelism implications to this. It would be nice if you spelled that out.

    ```

    jank builds upon Clojure

    Keep your existing code; unlock the native world.

    ```

    Are there any limits here? You might want to make that clear if not. Unless explicitly stated, my assumption is that it won't always work (and therefore is mostly irrelevant). Though, in this case, it might actually always work - so that would really be worth a few extra words!

  5. alper

    Is this like Janet?

More from this day

2026-10-23