🎮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.

Key Points
jank, a Clojure dialect, integrates C++ source and libraries without boilerplate, using the C++ type system.
jank uses a Clang-based C++ JIT compiler for interactive development and an LLVM-based JIT runtime for on-the-fly compilation.
jank supports interactive REPL-driven development, making it ideal for rapid prototyping and iterative development.
jank's native build system can find installed native dependencies or build them from source, streamlining the development process.
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.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.
Join 3,569 builders reading daily.