joker

Ben yjz 2021-08-21T02:41:32.001200Z

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

Candid 2021-08-21T05:01:09.004700Z

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

Ben yjz 2021-08-21T02:42:28.001700Z

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

Ben yjz 2021-08-21T04:35:35.004Z

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

Ben yjz 2021-08-21T04:37:44.004400Z

I guess just use spit and slurp

Candid 2021-08-21T04:58:25.004500Z

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

Ben yjz 2021-08-21T05:53:05.004900Z

trying with io with this.

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

Ben yjz 2021-08-21T05:53:26.005200Z

it writes 0 bytes

Candid 2021-08-21T18:34:55.005500Z

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

๐Ÿ‘ 1
JoshLemer 2021-08-21T20:03:20.006800Z

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

JoshLemer 2021-08-21T22:15:56.008600Z

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

๐Ÿ‘ 1
jcburley 2021-08-21T22:24:35.008700Z

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

Ben yjz 2021-08-22T03:01:36.009100Z

went through the info here, https://github.com/jcburley/joker/blob/gostd/GOSTD.md there is a quickstart here https://github.com/jcburley/joker#quick-start

Ben yjz 2021-08-22T03:13:58.009400Z

quick start didnt work for me, filed an issue

๐Ÿ‘ 1