Fork me on GitHub
#announcements
<
2019-10-25
>
Crispin05:10:46

simple command line tool to render hiccup templates into html. single, fast, native binary (via graal) for linux. Java uberjar for the others.

borkdude06:10:34

@U1QQJJK89 Interesting. I wanted to add this feature to jet as well: https://github.com/borkdude/jet/issues/49 But your tool probably goes a bit further than that πŸ™‚

borkdude07:10:58

Would maybe be nice if you could also add a Mac build

borkdude07:10:20

How/where did you implement for expressions in your code?

Crispin07:10:41

Hey thanks heaps for sci. And clj-kondo, too!

Crispin07:10:08

(setting path to ".")

Crispin07:10:54

I want a mac build. And I actually had a look over your clj-kondo circle-ci yaml. I want to copy, but I see that circle ci requires a paid monthly account to access mac builds. I investigated travis which has a free account for open source builds. Do you know of any projects building mac artefacts on Travis?

jeroenvandijk07:10:53

Nice work btw. I think it's interesting to have the opposite conversion as well (html to hiccup). E.g. for when you are using twitter bootstrap and there only html examples

Crispin07:10:30

@U0FT7SRLP hey thanks! Part of my personal use case is incorporating html templates designed by someone else. Was tricky (and a little hacky) to implement round trip for every conversion type. I have built a test set for them all so they keep working. I will checkout github actions thanks!

borkdude07:10:20

@U1QQJJK89 Mac builds are free on CircleCI for open source. cc @U0K592YDP

borkdude07:10:51

I don't pay CircleCI to do my clj-kondo builds

borkdude07:10:32

@U0FT7SRLP I want to do the round-trip feature here: https://github.com/borkdude/jet/issues/49

Crispin07:10:01

@U04V15CAJ Oh great! That wasn't clear from the circle ci pages. So clj-kondo is circle ci. closh-sci is github actions. Is one preferable to the other? Are you moving away from one and to another? What do you recommend?

jeroenvandijk07:10:15

clojure.pprint/pprint could als be a nice addition

borkdude07:10:44

jet has --pretty which does pprint

jeroenvandijk07:10:50

awesome πŸ™‚

Crispin07:10:56

pprint is already included. using fipp. native-image wouldnt work with pprint

borkdude07:10:09

same for jet, also uses fipp

Crispin07:10:09

well I had problems with it

borkdude07:10:59

@U1QQJJK89 closh-sci is not really something you should look at right now, it's a WIP repo which will disappear soon. I'm not moving away from CircleCI as I'm happy with it.

borkdude07:10:29

Compared to GH actions it offers deps caching and SSH access

borkdude07:10:42

Having said that, GH actions is bloody fast for GraalVM builds

borkdude07:10:59

oh, you're actually using sci, I see πŸ™‚

Crispin07:10:50

yes! thankyou very much for all your hard work. clj-kondo was actually the gateway project that got me following your work. Using it with flycheck really improved my emacs experience. And then I discovered sci.

borkdude07:10:57

Thanks! Nice to see sci is finding it's way into binary Clojure apps πŸ™‚

Crispin08:10:51

I want to include the enlive macros into the evaluated code namespace. How is best to do that? Would I just prepend defmacro definitions to the evaluated text? Are you hatching some other way?

borkdude08:10:58

you can try adding the macros like this:

{:bindings {'mymacro (with-meta @#'my-macro {:sci/macro true})}}

borkdude08:10:15

but you'll need to upgrade to a newer sci for this

borkdude08:10:43

0.0.11-alpha.2

borkdude08:10:19

@U1QQJJK89

(sci/eval-string "(bcond false :foo true :bar)" {:bindings {'bcond (with-meta @#'cond {:sci/macro true})}})
:bar

Crispin09:10:10

didn't work 😞

borkdude09:10:20

I've notified Marc about this. I think they need to toggle a flag because they don't enable it by default for everyone.

borkdude09:10:25

Because of capacity.

borkdude09:10:37

But you'll get it.

borkdude09:10:10

but if you can't wait, you can also try gh-actions I guess πŸ™‚

Crispin09:10:16

Yeah I'll try github actions for now. But gee, circleci looks pretty slick. github integration is very nice.

Marc O'Morain10:10:56

what’s the repo?

Marc O'Morain10:10:59

I’ll enable it now

Marc O'Morain10:10:43

retrogradeorbit should have macOS access now

Marc O'Morain10:10:51

you will need to push a new commit to clear some state in our system

borkdude10:10:03

^ @U1QQJJK89

Crispin11:10:04

@U0K592YDP @U04V15CAJ Thankyou so much. will give it a test

Crispin16:10:27

if you try any let me know how they go

Crispin16:10:10

I basically just copied your clj-kondo recipes wholesale :+1:

Crispin16:10:23

@U0K592YDP thanks again for your help. Mac users are now included in the fun!

borkdude17:10:12

@U1QQJJK89 awesome. how did you make the Windows build?

Crispin00:10:31

@U04V15CAJ with appveyor. again copying clj-kondo. graal is still experimental on windows though. Had to disable https support: https://github.com/oracle/graal/issues/1672

borkdude07:10:11

But does it work well on Windows? I haven't had much luck with clj-kondo on Windows πŸ™‚

Crispin09:10:04

no idea! I don't run windows at all. I guess I'll just wait for windows users to open tickets if it doesn't work. πŸ˜…

vemv09:10:01

nice stuff, will take a look! there's also the https://github.com/Deep-Symmetry stuff

holyjak10:10:31

I have created #atom-editor for Atom users to help each other, announce plugins etc. Join!

practicalli14:10:13

FYI - there are a number of related Atom channels, #protorepl #proton and #editors. Only #chlorine seems to have active discussions though. I would be interested to hear what people are doing with Atom though, outside of Chlorine