Fork me on GitHub
#babashka
<
2020-08-21
>
jeroenvandijk11:08:06

Did anyone try using edamame from Babashka?

borkdude11:08:47

It should work if baked in via GraalVM, since babashka uses it itself as well via sci

borkdude11:08:50

Not from source I think

jeroenvandijk11:08:02

I’m importing it via

export BABASHKA_CLASSPATH=$(clojure -Spath -Sdeps '{:deps {  borkdude/edamame {:mvn/version "0.0.11-alpha.13"} }  }')
But get this
clojure.lang.ExceptionInfo: Could not resolve symbol: *clojure-version* [at clojure/tools/reader/impl/utils.clj, line 17, column 35]

borkdude11:08:45

You can mitigate this by interning *clojure-version* into clojure.core first.

borkdude11:08:59

But I expect other problems down the road. Please do report them

jeroenvandijk11:08:34

Where would you like these to be reported? The next stop is with-local-vars 😬

jeroenvandijk11:08:43

I think i’ll try parcera

borkdude11:08:41

Ah nice. We can add support for with-local-vars

borkdude11:08:50

I think this should go into sci

borkdude11:08:05

Maybe also clojure-version just so programs won't crash

borkdude11:08:19

Which can then be set as an option to sci

borkdude11:08:21

or something

borkdude11:08:38

Just write an issue, I'll take care of it

jeroenvandijk11:08:50

babashka repo or sci?

borkdude11:08:56

I think sci

borkdude11:08:19

Also an issue in babashka to integrate edamame

borkdude11:08:47

About https://github.com/borkdude/babashka/issues/549 I was actually thinking of pulling edamame into babashka itself, graal-compiled.

borkdude11:08:00

That will be way faster

jeroenvandijk11:08:24

ah yeah that would be even better

jeroenvandijk11:08:49

Yeah i’ll try some of those things. I wanted to write a babashka script that would do some quick code analysis. Edamame is nice because it understands forms

borkdude11:08:44

We could add edamame to babashka, I don't think it will be problematic. But there's also https://github.com/babashka/pod-babashka-parcera

jeroenvandijk11:08:04

ah good point, thanks

Michael W17:08:24

That stripped the asterisks from around input, I was confused by that for a minute. Might want to turn it into a code block and fix *input*

borkdude17:08:39

What stripped the asterisks?

nate17:08:25

slack's formatting

borkdude17:08:54

I see nothing but a Twitter link, no code

borkdude17:08:51

Weird. I removed the preview

nate17:08:04

oh, that's odd

nate17:08:29

I thought that removed the preview for everyone

nate17:08:11

also, thanks for helping me know I'm addicted to version control, accessing remote machines and changing directory

3