-
Notifications
You must be signed in to change notification settings - Fork 38
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
Move to babaska? #247
Comments
Ciao, @arichiardi! Please read my answer in #241 (comment)_ Best, |
After closer inspection I am not sure it is possible to run arbitrary Java libs in babashka but I might be wrong. |
Let me ask directly to @borkdude. We have dependencies in here like: Lines 403 to 404 in 7d48f73
or If we built a classpath with those in it, would babashka be able to use them all? It's a long shot and sorry about a bit of newbie-ness here 😄 |
@arichiardi Babashka is only able to use Java classes that have been explicitly added into the native image. If you want to create something like babashka, but for static site generation, you will probably have to make your own GraalVM native-image project. Bootleg has done something similar: https://github.com/retrogradeorbit/bootleg At work we are currently migration away from boot and running some tasks in a separate JVM, while also still using boot in another one. We use this babashka script for it: #!/usr/bin/env bb
(ns dev (:require [clojure.string :as str]))
(require '[babashka.process :refer [$ destroy-tree *defaults*]])
(alter-var-root #'*defaults* assoc
:out :inherit
:err :inherit
:shutdown destroy-tree)
(defn cljs []
($ "./clojure" "-A:frontend:cljs/dev"))
(defn less []
($ "./clojure" "-A:frontend:less/dev"))
(defn clojure []
^{:inherit true} ($ "./boot" "dev"))
(cljs)
(less)
(-> @(clojure) :exit (System/exit)) |
Thank you for confirming that's what I was thinking too. |
Thanks for the heads up, however |
I have been flirting with the idea of moving away from boot for my blog but not from perun.
The main advantage that I see there is startup time and possibly, but not sure about that, rendering time.
I am thinking some code could be created to handle the tasks and use the same Java libraries for it.
Mainly asking feedback on this, not sure it is worth it also but boot's maintainance could also be a factor here.
Thanks!
The text was updated successfully, but these errors were encountered: