TL;DR
Babashka 1.13.220 introduces the babashka.ffi namespace, enabling direct calls to C libraries from Babashka scripts. This experimental API is also available for JVM Clojure projects, inviting user feedback.
✦ Why It Matters
Explore the new babashka.ffi namespace to enhance your Clojure projects with native library calls today.
Key Takeaways
Full Summary
The latest release of Babashka, version 1.13.220, features the babashka.ffi namespace, which allows developers to call C libraries directly from Babashka scripts. This capability is also available for JVM Clojure projects, expanding its utility.
The API is still experimental, inviting user feedback for improvements. Key functionalities include loading system libraries and defining C functions, with examples demonstrating its use for mathematical operations and SQLite function definitions.
Notably, the release shifts the default binary for Linux to a mostly-static version, ensuring compatibility across various distributions. Users can still opt for a fully static binary if preferred.
This update also includes enhancements to task management, allowing for better composition and argument handling.
Related