@borkdude thanks for the helloworld youtube video. Iβve been thinking about replacing a cljs lambda with graal to improve cold starts so this is very helpful
Damn, I went to run bb on a new machine and I saw something that looked like a fancy htop
.
Turns out I had installed this: https://crates.io/crates/bb
:/
Maybe you can convince them to change their name, since > This is a "weekend" side-project made for fun and babashka is more than a weekend side project made for fun?
you have more stars, donβt worry. I just uninstalled it π
but how did you install it?
I must have stumbled upon i
so basically it just preceded babashka in my PATH
ah ok
I was so confused. I was running my own script with a bb
in the shebang and this popped up
Might be worth posting an issue at their repo anyway
I thought, β I donβt think I wrote a process viewerβ
hahaha lol
"wow, my script turned out pretty great" :)
yeah haha π
@rahul080327 Did you make any progress on getting bb
into Debian? This might prevent the clash with other binaries?
Just double check - bb
cannot do a proper exec
as in man 3 exec
, because IIRC JVM can't do that either, right?
@lukaszkorecki The closest is probably:
$ bb -e '(-> (babashka.process/process ["clj"] {:inherit true}) deref :exit (System/exit))'
Clojure 1.10.1
user=> (+ 1 2 3)
6
user=>
@borkdude ah nice - I'll try that! Thanks
JVM canβt execve?
@grazfather I'm not sure if I ever used exec
in any other "managed" language but some things in the JVM aren't possible because they have to operate on each OS, including Windows
although in java.nio
there are some Posix related features that only work on unix-likes
ah. Golang handles that by offering direct syscall access, of course, putting that in your code makes you lose cross platform
though I basically would never care to support windows
Sorry no, i did get some initial work done, but had issues with things built with graalvm as a debian package, as they need to be built from src etc. got stuck up with more work later and will try to give it another shot sometime π
I'm asking because if we manage to get bb
into debian, there might be less other projects "stealing" this binary name? ;)
as for the name if you find some thing at <http://packages.debian.org/|packages.debian.org/><your pkg name>
its a conflict and we need a rename
bb seems to be taken
apt install bb would install this as of now
bb-clojure could be an option π
and then people would have to alias it themselves?
yep
apt wont let you install it as bb
ok, then I won't worry about it anymore then
also simply calling it babashka
would solve it too
seems to be available
how do I claim it?
Unfortunately its only taken when a package is uploaded π
ah well
Some preliminary docs for new features in bb 0.3.1 (unreleased, but available in #babashka-circleci-builds): bb.edn: https://book.babashka.org/master.html#_bb_edn -m with fully qualified symbol: https://book.babashka.org/master.html#_invoking_a_main_function