https://github.com/macielti/simple-graalvm
A Leiningen template to validate library compatibility with GraalVM native image generation.
https://github.com/macielti/simple-graalvm
clojure graalvm lein-template
Last synced: 4 months ago
JSON representation
A Leiningen template to validate library compatibility with GraalVM native image generation.
- Host: GitHub
- URL: https://github.com/macielti/simple-graalvm
- Owner: macielti
- License: other
- Created: 2025-01-20T01:26:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-20T01:35:57.000Z (over 1 year ago)
- Last Synced: 2025-04-29T22:51:19.252Z (about 1 year ago)
- Topics: clojure, graalvm, lein-template
- Language: Clojure
- Homepage: https://github.com/macielti/simple-graalvm
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple GraalVM
A Leiningen template inspired by [Clojure GraalVM project](https://github.com/clj-easy/graalvm-clojure).
The idea is to provide a simple boilerplate project to validate if a lib is compatible with GraalVM native image
generation process.
## Userful resources while debugging the native image generation process
- [Graal Docs (Clojure)](https://github.com/clj-easy/graal-docs): Scripts and tips to get Clojure latest working with
GraalVM latest
- [GraalVM Clojure](https://github.com/clj-easy/graalvm-clojure): This project contains a set of "hello world" projects
to verify which Clojure libraries do actually compile and produce native images under GraalVM.
## Usage
1. Create a new project based on the template:
``` bash
lein new net.clojars.macielti/simple-graalvm myproject
```
2. Populate the project with a hello word example for the lib you want to experiment with.
3. Generate the native image:
``` bash
lein do clean, uberjar, native
```
4. Execute the output native image:
``` bash
lein run-native
```
## License
Copyright © 2025 Bruno do Nascimento Maciel
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.