Fork me on GitHub
#graalvm
<
2019-11-15
>
eraserhd19:11:10

Has anyone used core.async with graalvm?

eraserhd19:11:18

I found this earlier today, and I think it just made like three of my projects easier: https://github.com/cognitect-labs/clj9p

sogaiu19:11:01

interesting find

borkdude19:11:47

how does that relate to core.async?

eraserhd19:11:12

The server bit of it (at least) uses core.async.

borkdude19:11:54

fwiw I've only used parts of core.async in babashka, I skipped the go macro because that was .. challenging

borkdude19:11:26

so all the double exclamation mark stuff works

eraserhd19:11:42

I wonder what I could do with babashka.

borkdude19:11:03

it's designed to replace (parts of) bash scripts / expressions

sogaiu19:11:02

when windows support for graal improves enough i think it could be used as a cross-platform scripting option

eraserhd19:11:13

I've been stuck on bash forever, and I thought about scheme shell recently. That caused me to look at my .bash_history, and I found that 70% of my history is invoking git. Fully 5% is mispelling "git status".

andy.fingerhut19:11:50

alias gs='git status'

eraserhd19:11:56

I haven't switched yet, but I'm pondering this.

borkdude19:11:20

closh is currently trying to use sci (which is the fundamental lib powering babashka) to get to native using GraalVM, but it's not there yet

borkdude19:11:47

with babashka I've taken a different approach than closh, but the spirit is similar: we want to use Clojure where bash is confusing

borkdude19:11:05

you can read the babashka rationale how it differs from closh, planck, etc. or join #babashka to discuss

borkdude19:11:00

Not better, just different. E.g. I don't believe most people are going to replace the existing bash shells with something else.

sogaiu19:11:26

i think ms is aiming to get folks to adopt powershell core

sogaiu19:11:52

this is getting off-topic but if you don't already know bash and it turns out there is some cross-platform shell-script like thing you can use that isn't as hard to understand, i think increasingly, the choice is not necessarily in favor of bash. as far as wide-spread use is concerned, i doubt a lispy thing would gain much ground, but for clojure-using folks, things like closh, babashka, joker, etc. are going to look much more attractive than bash or powershell core. also these clojury options will likely be an interesting entry point for learning clojury things.

borkdude19:11:45

yes, it's made for Clojure people who use bash, like myself 🙂

👍 8
lread21:11:13

there are subtle nuances in bash that often trip me up, I almost reached for babashka (or pure clojure) a few times when writing the clj-graal-docs 1472 patcher script.

lread21:11:09

actually I am still tempted to rewrite it, just to feel the difference, but that will happen later if at all.

sogaiu23:11:26

i think i used up my subtle nuance quota 🙂