Fork me on GitHub
#clojure-uk
<
2016-08-30
>
benedek08:08:33

related to boot: what the good ppl use here for scripting (if they do that in clojure)? boot? cljs/node? inlein?

korny08:08:47

ruby or python 😞

xlevus08:08:51

I used boot. But the whole startup-delay is killer and really ruins my main use of 'scripting'. doing things quickly.

martinklepsch08:08:39

@benedek: you can also so some scripting with Planck which might be worth investigating

thomas08:08:55

@benedek and planck is now available on Linux as well

benedek09:08:53

@martinklepsch @thomas any pointers on how to use planck for scripting? does the startup-delay apply with planck as well? (sorry if somewhat basic questions)

benedek09:08:28

i used inlein before and although it is nice, does the trick but the somewhat slow for same reasons as boot for @xlevus I suppose

thomas09:08:11

@benedek there is next to now start up delay with planck. I think it uses node.js under the covers. so it cljs instead of clj.

jonpither09:08:18

boot is quite a bit faster than lein startup I think

jonpither09:08:30

lein does a lot of stuff when it loads

thomas09:08:07

s/now/no/ in *2

benedek09:08:36

planck: looks very nice, thx, will defo check out

glenjamin10:08:44

planck is cljs + jsc afaik, so none of the usual node stuff is available: http://planck-repl.org/internals.html

benedek10:08:37

so guessing right that whatever i do in planck will run on macs and linux but not on win*?

thomas11:08:34

@benedek I think that is correct. the linux port is fairly recent as well

benedek11:08:02

fair enough. problem is I need to support some weird win* ppl 😉

martinklepsch16:08:03

@benedek what kind of scripting are you thinking of doing? If you need to make it for other people to be productive maybe the solidness of Java is worth the startup overhead

benedek16:08:53

well, i picked inlein at the end of the day

benedek16:08:03

and it works ok

benedek16:08:25

i guess it is just me trying to find a way to speed it up too 😉

benedek16:08:44

it inserts some records in a db and uploads some stuff to AWS s3

thomas17:08:57

in that case lein would make sense as you get all the JVM libs you can use...

thomas17:08:14

no idea how that would work with cljs.

korny17:08:34

Yeah, you’d struggle with AWS stuff without a JVM. I tend to generate uberjars and then use bash to call them - I have the impression (without I’ll admit any research) that calling an uberjar from java is probably quicker than a lein script…

korny17:08:30

I quite like the look of inlein though - I’ve done a lot of faffing around creating whole projects around 10 lines of clojure code in the past, sometimes it’d be nice to just use a single file.

thomas18:08:53

isn’t part of the problem with lein that it starts a repl… and that is what takes a long time?

benedek18:08:25

as far as i remember (have not rechecked) AWS (at least for s3) is ok for node.js too

glenjamin21:08:29

lots of people use s3 and node

glenjamin21:08:59

using node libs in a bundled cljs project is not as easy as it could be, mostly because the majority of cljs seems to hate node