Awesome
Clojure meets GraalVM
This project contains a set of "hello world" projects to verify which Clojure libraries do actually compile and produce native images under GraalVM.
Here the instructions on how to build your own Clojure projects with GraalVM.
Here the list of libraries tested:
Status | Library | Description | Remarks |
---|---|---|---|
:white_check_mark: | Clojure core | Clojure core | |
:white_check_mark: | clojure spec | Clojure Spec | |
:white_check_mark: | clojure/tools.logging | Logging library | |
:white_check_mark: | clojure/tools.logging+log4j | Logging library | |
:white_check_mark: | aleph | Web server | |
:white_check_mark: | amazonica+s3 | Cloud API wrapper library | |
:white_check_mark: | asami | Asami DB | |
:white_check_mark: | aws-api+s3 | Cognitect AWS client library | |
:white_check_mark: | buffy | Buffy, The Byte Buffer Slayer | |
:white_check_mark: | carmine | Redis client and message queue for Clojure | |
:white_check_mark: | cheshire | JSON parser/writer | |
:white_check_mark: | cli4clj | Interactive Command Line Interfaces (CLIs) for Clojure Applications | |
:white_check_mark: | cljfmt | Source Formatter | |
:white_check_mark: | clj-http-lite | Web client | |
:x: | clj-sophia | A fast RAM-Disk hybrid storage | Runtime error/JNA |
:white_check_mark: | clj-uuid | RFC4122 Unique Identifiers for Clojure | No objects in namespaced uuids |
:white_check_mark: | clara-rules | A Clojure forward-chaining rules engine | Using AOT compiled session |
:white_check_mark: | clostache | {{ mustache }} for Clojure | |
:white_check_mark: | component | Managing lifecycle and dependencies of software | |
:white_check_mark: | cprop | Configuration/property management | |
:white_check_mark: | datascript | Immutable database and Datalog query engine | |
:warning: | fastmath | Fast and primitive math and stats library | See README |
:white_check_mark: | fire | A lightweight clojure client for Firebase based using the REST API. | |
:white_check_mark: | hiccup | Fast library for rendering HTML in Clojure | |
:white_check_mark: | http-kit | Web server and server | |
:white_check_mark: | integrant | Alternative to mount, component etc. | |
:white_check_mark: | lacinia | A GraphQL server implementation in pure Clojure | |
:white_check_mark: | loom | A Graph manipulation and computation library. | |
:x: | monger | An idiomatic Clojure MongoDB driver with sane defaults | |
:white_check_mark: | μ/log | Event logging system | |
:white_check_mark: | next.jdbc + honeysql | Database driver and SQL-in-Clojure | |
:white_check_mark: | nippy | Clojure serialization/deserialization library | |
:white_check_mark: | pp-grid | A text-formatting library | |
:white_check_mark: | ring/jetty | Web server | |
:white_check_mark: | RoaringBitmap | Bitset library | |
:white_check_mark: | safely | Circuit breaker | |
:white_check_mark: | secure-random | SecureRandom initialization | |
:white_check_mark: | selmer | A fast, Django inspired template system for Clojure. | |
:white_check_mark: | system | Layer on top of components | |
:white_check_mark: | tech.ml.dataset | A Clojure high performance data processing system | |
:white_check_mark: | timbre | Pure Clojure/Script logging library | |
:white_check_mark: | pedestal | Pedestal is a sturdy and reliable base for services and APIs. | requires reflect-config.json |
:white_check_mark: | claypoole | Claypoole: Threadpool tools for Clojure | |
:white_check_mark: | upit | Very very simple library to initialise your app stack. | |
:white_check_mark: | zetasketch | Sketch data structures like HLL | requires reflect-config.json |
:white_check_mark: | pg2-core | A Fast PostgreSQL Driver For Clojure |
More libraries to come (PRs are welcome).
Interesting GraalVM documentation to build native-images:
- Understand Class Initialization in Native Image
- Native Image Build Configuration
- URL Protocols in Native Image for
http
andhttps
- JCA Security Services in Native Image
How to contribute
If you wish to add a library and contribute with a PR please follow these steps:
- Fork the project
- use the
sample-project
as a template.cp -r sample-project my-library
- add the library to the
project.clj
and the native-image parameters used - amend the
my-library/src/simple/main.clj
to use the library - amend the
my-library/README.md
with the info you discovered. - Make a PR with your findings and "Thank you" in advance.
License
Copyright © 2019-2021 Bruno Bonacci
Distributed under the Apache License v 2.0 (http://www.apache.org/licenses/LICENSE-2.0)