joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
gleisonsilva 2019-11-11T15:14:24.060200Z

Hello, guys! Do u know how can I bind out to a file?

jcburley 2019-11-11T15:16:38.060700Z

Something like this what you are looking for?

(binding [*out* (joker.os/create "TEST.txt")] (println "hi"))

gleisonsilva 2019-11-11T15:16:58.061100Z

πŸ˜‰ I think so. Let me try

gleisonsilva 2019-11-11T15:21:28.061300Z

Unable to resolve symbol: joker.os/create

jcburley 2019-11-11T15:22:05.061700Z

Did you try that from the REPL or in code?

gleisonsilva 2019-11-11T15:22:14.061900Z

in code

gleisonsilva 2019-11-11T15:22:23.062300Z

i'm trying to upgrade joker right now

jcburley 2019-11-11T15:22:41.063200Z

Oh, might need to (require 'joker.os) or something first.

gleisonsilva 2019-11-11T15:22:56.063700Z

'cause even from command line it gives this error:

joker -e "(joker.os/create \"bla.txt\")"
<expr>:1:2: Parse error: Unable to resolve symbol: joker.os/create

jcburley 2019-11-11T15:22:59.063800Z

What Joker version are you using?

gleisonsilva 2019-11-11T15:23:16.064Z

it was 0.12.4

gleisonsilva 2019-11-11T15:23:32.064400Z

it worked now

gleisonsilva 2019-11-11T15:23:34.064800Z

with 0.13

jcburley 2019-11-11T15:23:36.064900Z

Hmm, that’s fairly recent. joker -e "(joker.os/create \"bla.txt\")" works for me on v0.13.0.

jcburley 2019-11-11T15:23:41.065100Z

Oh, interesting.

jcburley 2019-11-11T15:23:43.065300Z

Good!

gleisonsilva 2019-11-11T15:23:53.065600Z

thank u very much

πŸ‘ 1
hlship 2019-11-11T19:23:16.066Z

Is this PR something that people would use? https://github.com/candid82/joker/pull/294

πŸ‘ 2
heefoo 2019-11-12T08:33:10.066600Z

It might be a use case for me since i really on html->hiccup conversions

2019-11-12T17:39:38.066900Z

I think I'm just not sure about the name

2019-11-12T17:39:50.067100Z

Why not just joker.hiccup

hlship 2019-11-12T17:45:46.067300Z

That would imply it's a direct port of hiccup and it's not.

2019-11-12T17:52:06.067500Z

Would it? I feel I've seen many Clojure libs suggesting they support Hiccup syntax, without using Hiccup's implementation. Maybe @weavejester should be involved. But I feel at this point Hiccup stands as much for the DSL, as it does its implementation. At any rate, it's a minute detail. I'll be happy to just have the functionality availaible whatever the name. I just find markup makes me think markdown, mediawiki, org, html, and other. Not neccesarily hiccup.

2019-11-12T17:53:11.067700Z

Another little comment. Are you string escaping by default like in Hiccup 2 or not like in Hiccup 1 ?

2019-11-12T17:59:52.067900Z

As backing up, Rum mentions supporting Hiccup syntax. Same for Reagent. Also, wouldn't you want to eventually update the implementation to support macro compiled Hiccup for better performance? Which means it will slowly tend to something much closer to being a port of Hiccup?

2019-11-12T18:03:02.068100Z

Maybe I'd suggest joker.html-template

2019-11-12T18:06:47.068500Z

That way it's not confusing thinking this is a full direct port of Hiccup, but it's also clear that it's for html templating, and not utilities related to markup languages like markdown, org, etc.

hlship 2019-11-12T18:11:35.068900Z

I think we can move this discussion to the PR on GitHub. I'm happy enough to fiddle with the names and such, that's not a big deal.

2019-11-12T18:11:58.069100Z

Cool, I'll make a comment there, see what other think