graalvm

Gent Krasniqi 2025-03-12T08:57:47.318759Z

Is there any project out there that tries to make building self-contained native executables user-friendly?

Gent Krasniqi 2025-03-12T09:05:34.139149Z

What I mean is, you have an existing clojure project, with no specific considerations for GraalVM, you use this hypothetical tool to build a self-contained executable. If the code in its current state is 'amenable' to GraalVM, it builds it, if not, it gives you a list of e.g. places in your code where you should avoid reflection etc.

borkdude 2025-03-12T09:08:05.125219Z

No

borkdude 2025-03-12T09:08:12.144099Z

There are these docs though: https://github.com/clj-easy/graal-docs

borkdude 2025-03-12T09:09:03.880769Z

If your program is compatible with babashka, this is also an option: https://github.com/babashka/babashka/wiki/Self-contained-executable

Gent Krasniqi 2025-03-12T09:18:31.584809Z

Yes, I've skimmed those docs before. For the documentation of an internal tool I was trying to avoid complicated build instructions if I could :D.

igrishaev 2025-03-12T09:39:26.569269Z

Don't know if it answers the question, but you may take a look at these docs: • https://github.com/igrishaev/lambdahttps://github.com/igrishaev/teleward They both have examples of building a clojure project

2025-03-15T02:09:46.354179Z

Graal itself will tell you where reflection is used I believe.