This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-13
Channels
- # admin-announcements (2)
- # beginners (27)
- # boot (85)
- # cider (24)
- # cljs-dev (20)
- # cljsrn (16)
- # clojure (73)
- # clojure-brasil (2)
- # clojure-czech (152)
- # clojure-dusseldorf (7)
- # clojure-france (3)
- # clojure-japan (1)
- # clojure-norway (1)
- # clojure-poland (7)
- # clojure-russia (140)
- # clojure-uk (7)
- # clojurescript (66)
- # cursive (20)
- # datomic (8)
- # emacs (7)
- # events (1)
- # hoplon (325)
- # jobs (2)
- # jobs-discuss (69)
- # leiningen (3)
- # off-topic (6)
- # om (48)
- # onyx (82)
- # parinfer (1)
- # planck (10)
- # re-frame (53)
- # reagent (8)
- # ring (103)
- # untangled (13)
- # yada (14)
@martinklepsch: @juhoteperi:
i remember one of you showed a better solution than cljs-time
it was just in a gist at that time.
or did i just dream it?
im looking into unifying date handling on our backend to just use joda time
and i was wondering what should i do on the frontend.
my current thinking is to just register a joda time writer for transit which converts it into instants and i would just keep using instants on the frontend (since im not doing a lot of date arithmetic there)
@onetom: goog.date.DateTime
& goog.i18n.DateTimeFormat
I think the gist was by @juhoteperi — guess it was this one: https://gist.github.com/Deraen/1cd4a15bf622c0a7bcfb
I am trying my hand at writing a boot-antlr task. Antlr produces a couple of types of objects, one of which is a tree. Historically, this tree is passed to StringTemplate which uses it to fill out templates, producing files. My question relates to architecture: It seems like there should be two tasks {antlr, stringtemplate} where the antlr task sends the tree, as part of the fileset, to the stringtemplate task. How does one incorporate a non-file (in this case the tree object) into the fileset?
@phreed: yep metadata, you can simply assoc
onto the TmpFile record objects if you like
@phreed: see boot.core/add-meta
https://github.com/boot-clj/boot/blob/master/doc/boot.core.md#add-meta
@phreed: in 2.6.0 you will be able to use these functions to select files fro mthe fileset with certain meta on them: https://github.com/boot-clj/boot/blob/master/boot/core/src/boot/core.clj#L1141-L1157
Lil' patch to the Makefile
if I have declared a function in built.boot
and I want to call it in a pod created in the same built.boot
, do I have to resolve it first?
this is always tricky for me 😄
so no boot.user/my-fn
right?
inside pod/with-eval-in
well the boot.user
namespace is sort of special because there is no file on the classpath that you can use to require
it
So something like this should work:
(let [pod-classpath! (resolve 'pod-classpath!)]
(pod-classpath! ~source-paths ~resource-paths))
yes indeed it does not work 😄
usually you need to require
the namespace before you resolve
the names in the namespace
yes, but I defined this function in build.boot
yes it resolves it now, still set-env!
cannot be resolved, I am starting to think this is not the right approach
I encapsulated a function to execute in different pod
s
but I might as well just duplicated the code or use a separate ns
oh cool exactly what i need
it looks like it is indeed working
I am passing as params Clojure Vectors
the translation is pretty slow compared to pr-str/read-string, because it uses reflection
btw the problem with pod/send!
was indeed the boot.jar
, I build boot locally on Jenkins, waiting for a release
but the workaround works
i was thinking about having travis build snapshots, and maybe it would be ok to have my deploy creds for that on travis
yeah true that
but it is not a problem, when working with SNAPSHOTs of course you have a bit more troubles
and you cannot update boot.jar
at every patch
maybe no
boot -U
maybe yes, but I would like to hear other opinions
not too sure about this
so, I’m a bit new to boot and trying to figure out how to get some stuff working nicely,
but it seems that if I’ve got a dev
task for compiling cljs or something into target/
and then run another task, say test
, it will clear out target/
and my compiled cljs
I’m looking around to see if there’s any sort of prior art guides on making those work together