This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-19
Channels
- # admin-announcements (2)
- # beginners (24)
- # boot (36)
- # business (1)
- # cbus (3)
- # cider (22)
- # cljs-dev (91)
- # clojure (101)
- # clojure-canada (9)
- # clojure-china (3)
- # clojure-czech (21)
- # clojure-nl (3)
- # clojure-russia (131)
- # clojure-sg (5)
- # clojure-uk (9)
- # clojure-ukraine (4)
- # clojure-za (2)
- # clojurebridge (18)
- # clojurescript (333)
- # clojurex (6)
- # devcards (1)
- # events (37)
- # hoplon (15)
- # ldnclj (23)
- # luminus (3)
- # off-topic (41)
- # om (258)
- # onyx (20)
- # re-frame (46)
- # reagent (7)
- # spacemacs (2)
I just realized keywords can have spaces in them. Would I ever use this for anything but ahem job security?
Hey can someone help me create and add a jar file to my lein local repo for use in another project?
@jtackett: my first thought was to use maven to install it locally. Googling leads me to believe that’s probably the right way to go
http://www.elangocheran.com/blog/2013/03/installing-jar-files-locally-for-leiningen-2/
@fitzoh: I was trying to use this library: https://github.com/kumarshantanu/lein-localrepo
looks like it can’t find the jar files in the maven repo after installing them using that library
lein localrepo install [-r repo-path] [-p pom-file] <filename> <[groupId/]artifactId> <version>
the examples are
$ lein localrepo install foo-1.0.6.jar com.example/foo 1.0.6
$ lein localrepo install foomatic-1.3.9.jar foomatic 1.3.9
$ lein localrepo coords /tmp/foobar-1.0.0-SNAPSHOT.jar | xargs lein localrepo install
@jtackett: Hi, author of lein-localrepo here. Did it work for you?
Does anybody know how you are supposed to set the delivery-settings for clojurewerkz mailer?
What’s the jvm option I need to set again when (pst *e)
just returns a single line?
-XX:-OmitStackTraceInFastThrow
that's something that's been bugging me for years that I always took for granted... thx for that one
Is there something like delayed_job for clojure that can store the queue of tasks in PostgreSQL?
onyx may suit your needs, though it’s far more ambitious in scope than delayed_job and friends
mmm @pupeno have you tried https://github.com/michaelklishin/quartzite ?
hey guys. I’ve got a performance question. It’s on stackoverflow. Read the section after UPDATE in the question. http://stackoverflow.com/questions/33218783/clojure-reducer-map-not-working
try tesser, which removes that overhead: https://github.com/aphyr/tesser
or don't do it in parallel, or try experimenting with the 'n' parameter in '(r/fold n combinef reducef coll)'
Is there a way to spit clojure code to a file that will write multiline strings literally, i.e. without the \n’s over multiple lines?
If there's a multimethod that dispatches on class and I want to add Clojure maps to that what should I dispatch on? Wouldn't PersistentArrayMap
be to specific?
But class
will return concrete class, not the interface right, so I won't be able to dispatch or that.
@theller: thanks, though I think I'll just go with creating a record, since class
for map returns the concrete class, not the interface/protocol and I won't have to change the multimethod definition if I do that.
Right, but what I mean is the fact that the multimethod I have to work with dispatches on class
, so I can't use interface as a dispatch value
http://clojure.org/multimethods see the parts about derive
@jaen @thheller if you are dispatching on class, isn't there a way to get that working with a protocol?
@thheller: right; I've just checked out clojure.lang.MultiFn
and it walks the parents of the value and for classes that happens to be superclasses and interfaces.
hey so i’m currently checking (if (= :running @(:state component)
in 3 separate places in one looping function, which seems crazy?
Does anyone know of a ClassLoader that I could use to load classes from a jar, which is not a URLClassLoader?
@cfleming URLClassLoader
is still the best CL to use; it's the default loader for the JRE
I need to stop it doing that, and the only way I can see of doing that is to use a different type of CL.
Then lein won’t work, since it will try to load plugins etc and they won’t be there.
Ideally, lein would use a CL for its work and plugins, and another for repl and compilation
The problem is that the root of that tree is modifiable, and lein (via dynapath) adds things as high up the hierarchy as it can.
Also note that they form trees; you can only pass a parent in the constructor, but if a child can't resolve a class it'll ask the parent if there is one.
dynapath allows jars to be added to the classpath of classloaders that it recognises. Lein uses that to load plugins, middleware etc while it’s running.
The problem is that dynapath adds them as high up the hierarchy as possible, and it knows how to modify URLClassLoaders
Thinking about it, I think I can subclass URLCL and then extend the dynapath protocol to say that my subclass is not extendable.
Yeah, as long as you can do that. instanceof
checks of course will still give truth.
This is what I need, I think: https://github.com/clojure-emacs/cider-nrepl#with-jboss-asjboss-eapwildfly