Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a binary executable from a Clojure script #769

Open
BuddhiLW opened this issue Dec 12, 2021 · 0 comments
Open

Creating a binary executable from a Clojure script #769

BuddhiLW opened this issue Dec 12, 2021 · 0 comments

Comments

@BuddhiLW
Copy link

Question
Can I compile a clojure script, with the boot shebang, and use the binary executable instead of running the start boilerplate evertime?

To Reproduce
create a file example.clj,

#!/usr/bin/env boot

(defn -main [& args]
  (println (str "Hello "
                (reduce str (map #(str % ", ") args)))))

Example call,

chmod +x ./example.clj
./example.clj "Peter" "Julian" "Mary"

Outputs:

Hello Peter, Julian, Mary, 

Expected behavior
Get an executable that doesn't take 5 seconds to do the same output,

  • with Clojure.
  • without a project folder structure.

Desktop (please complete the following information):

  • OS: Artix Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant