Fork me on GitHub
#joker
<
2021-08-21
>
Ben yjz02:08:32

I am looking at walk.. do the paths follow clojure core or its custom? https://github.com/candid82/joker/blob/master/core/data/walk.joke

Candid05:08:09

it’s a port of Clojure implementation minus things that Joker doesn’t support (like records)

Ben yjz02:08:28

i.e. if I want to compare joke implementation with clojure

Ben yjz04:08:35

how can I write to a file? I only see open in io namespace https://candid82.github.io/joker/joker.io.html

Ben yjz04:08:44

I guess just use spit and slurp

Candid04:08:25

yes, spit and slurp, and, if needed, joker.os/open and joker.os/create

Ben yjz05:08:05

trying with io with this.

=> (spit "foo.txt" "bar")
=> ( (joker.os/open "foo.txt") (joker.os/create "bar.txt"))

Ben yjz05:08:26

it writes 0 bytes

Candid18:08:55

the arguments are swapped. The first arg is destination, the second is source: ( (joker.os/create "bar.txt") (joker.os/open "foo.txt"))

👍 3
JoshLemer20:08:20

Does joker support go interop? Such as calling go code from joker or vice versa

JoshLemer22:08:56

Dang it, It would be really cool to have a similar interop into go for use of their huge ecosystem of libraries.

👍 2
jcburley22:08:35

Working on it sporadically; check out my gostd fork/branch.

Ben yjz03:08:58

quick start didnt work for me, filed an issue

👍 2