Skip to content
jank-lang.org·

🎮jank Clojure Dialect Brings Seamless C++ Interop

Seamless C++ Interop for Clojure

TL;DR

jank, a Clojure dialect, offers seamless C++ interop, allowing developers to include C++ source, link to libraries, and use the C++ type system. Ideal for game development and performance-critical applications.

jank, a Clojure dialect, introduces seamless C++ interop, enabling developers to include C++ source, link to libraries, and use the C++ type system without boilerplate. This makes it perfect for game development and performance-critical applications, offering a functional, immutable data approach with REPL-driven development. jank uses a Clang-based C++ JIT compiler and an LLVM-based JIT runtime, compiling C++ code on the fly. It supports interactive development and integrates with Leiningen-based project management and a native build system.

jank Clojure Dialect Brings Seamless C++ Interop — jank-lang.org

Key Points

1

jank, a Clojure dialect, integrates C++ source and libraries without boilerplate, using the C++ type system.

2

jank uses a Clang-based C++ JIT compiler for interactive development and an LLVM-based JIT runtime for on-the-fly compilation.

3

jank supports interactive REPL-driven development, making it ideal for rapid prototyping and iterative development.

4

jank's native build system can find installed native dependencies or build them from source, streamlining the development process.

5

jank is used in a project called imgui+glfw, demonstrating its capabilities in game development and performance-critical applications.

Why It Matters

If you're developing games or performance-critical applications with Clojure, jank's seamless C++ interop can significantly enhance your workflow. It allows you to include C++ source and link to libraries, using the C++ type system without boilerplate. This means you can leverage C++ performance and libraries while maintaining Clojure's functional, immutable data approach. Ideal for projects like imgui+glfw, where jank integrates with GLFW and imgui libraries for efficient window rendering.

clojurec++interopgame developmentperformance

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,569 builders reading daily.

Also get