Fork me on GitHub
#babashka
<
2021-03-29
>
steveb8n07:03:58

@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

👍 1
grazfather13:03:48

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

😂 1
borkdude13:03:07

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?

grazfather13:03:20

you have more stars, don’t worry. I just uninstalled it 🙂

borkdude13:03:30

but how did you install it?

grazfather13:03:40

I must have stumbled upon i

grazfather13:03:57

so basically it just preceded babashka in my PATH

grazfather13:03:45

I was so confused. I was running my own script with a bb in the shebang and this popped up

borkdude13:03:50

Might be worth posting an issue at their repo anyway

grazfather13:03:56

I thought, ” I don’t think I wrote a process viewer”

borkdude13:03:32

"wow, my script turned out pretty great" :)

grazfather13:03:19

yeah haha 😄

borkdude13:03:21

@rahul080327 Did you make any progress on getting bb into Debian? This might prevent the clash with other binaries?

lispyclouds14:03:31

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 😕

borkdude14:03:09

I'm asking because if we manage to get bb into debian, there might be less other projects "stealing" this binary name? ;)

lispyclouds14:03:50

as for the name if you find some thing at <your pkg name> its a conflict and we need a rename

lispyclouds14:03:56

bb seems to be taken

lispyclouds14:03:32

apt install bb would install this as of now

lispyclouds14:03:56

bb-clojure could be an option 🙂

borkdude14:03:33

and then people would have to alias it themselves?

lispyclouds14:03:30

apt wont let you install it as bb

borkdude14:03:41

ok, then I won't worry about it anymore then

lispyclouds14:03:23

also simply calling it babashka would solve it too

lispyclouds14:03:32

seems to be available

borkdude14:03:17

how do I claim it?

lispyclouds15:03:41

Unfortunately its only taken when a package is uploaded 😕

lukasz14:03:04

Just double check - bb cannot do a proper exec as in man 3 exec, because IIRC JVM can't do that either, right?

borkdude14:03:58

@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=>

lukasz14:03:47

@borkdude ah nice - I'll try that! Thanks

grazfather14:03:47

JVM can’t execve?

borkdude14:03:24

@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

borkdude14:03:02

although in java.nio there are some Posix related features that only work on unix-likes

grazfather14:03:34

ah. Golang handles that by offering direct syscall access, of course, putting that in your code makes you lose cross platform

grazfather14:03:45

though I basically would never care to support windows

rage4 1
🎉 1
borkdude21:03:28

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