Hi,
On Friday, October 18, 2013 12:12:31 AM UTC+2, Brian Craft wrote:
I briefly tried working with the reducers library, which generally made
things 2-3 times slower, presumably because I'm using it incorrectly. I
would really like to see more reducers examples, e.g. for this case:
Here is an embarrassingly spartan one, but maybe useful if you want
something quite small to start with: https://github.com/manuelp/tracktime
In there I
usehttps://github.com/manuelp/tracktime/blob/master/src/tracktime/gui.clj
Seesaw https://github.com/daveray/seesaw with the MiG-style
hi
This function doesn't work properly. It doesn't call itself for all
elements of tree-ids.
For example, if tree-ids is '(1 2 3 4 *5 6*), then find-events gets
called only on first 4 elements.
(defn find-events [tree-id]
(let [children (get-children tree-id) ;; returns
I find it easier to let leiningen handle the dependencies. Eclipse via
counterclockwise plugin adds dependencies declared in project.clj to the
classpath.
Josh
On Fri, Oct 18, 2013 at 4:42 PM, Christopher Bird seabir...@gmail.comwrote:
I know this is a pretty old thread, but my questions are
We have a little DSL that compiles to core.logic, and we're seeing the
dreaded PermGen bug (CLJ-1152 http://dev.clojure.org/jira/browse/CLJ-1152)
in code that was destined for production. Fortunately some basic stress
tests revealed the problem early. FWIW, here's some mitigation code that
Josh, thanks for replying. The code sample was from my batch lein and not
the counterclockwise version. So I am clearly still totally messed up[!
C
On Friday, October 18, 2013 9:11:54 AM UTC-5, Josh Kamau wrote:
I find it easier to let leiningen handle the dependencies. Eclipse via
Install counterclockwise plugin on your eclipse. Then import your project
into eclipse. There right click the project and there is something like
Convert to leiningen project .
Hope that helps.
Josh.
On Fri, Oct 18, 2013 at 5:41 PM, Christopher Bird seabir...@gmail.comwrote:
Josh, thanks for
CCW has helped me a lot already, and this release is just beautiful.
Merci so much Laurent !
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are
So, clearly I need to get the libs onto the classpath. The questions are
what libs, where and how?
Forgive me if this is a stupid question, but have you already listed the
dependency coordinates under the :dependencies key of your project.clj?
Leiningen has a sample project.clj here:
I was reading on Erjang implementation, and in an
articlehttp://www.javalimit.com/2009/12/tail-recursion-in-erjang.html
http://www.javalimit.com/2009/12/tail-recursion-in-erjang.htmlabout how
it handles recursion, the author says this about multi-arity functions:
- Every function is
Hi David,
any chance to see core.match expose its compiler in the near future?
The ability to create matchers at runtime (like matchure/fn-match) would be
much welcome ;)
Thankies,
--
François
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To
In trying to understand how threads work I'd like to dump a stack trace at
various places. All the stack trace calls take an exception. Is there some
simpler way, or should I throw catch an except just to get a stack trace?
--
--
You received this message because you are subscribed to the
jstack process-id
On Fri, Oct 18, 2013 at 9:44 AM, Brian Craft craft.br...@gmail.com wrote:
In trying to understand how threads work I'd like to dump a stack trace at
various places. All the stack trace calls take an exception. Is there some
simpler way, or should I throw catch an except
Hi All,
Thank you so much for your replies!
For my particular use case (tail -f multiple files and write the entries
into a db), I'm using pmap to process each file in a separate thread and
for each file, I'm using doseq to write to db. It seems to be working well
(though I still need to
ah, sorry, that's a shell tool? I meant dumping a stack trace from code.
Throwing catching works, it's just a bit goofy. Like
(defn- stack-trace [msg]
(try
(throw (IllegalArgumentException. msg))
(catch IllegalArgumentException e
(stacktrace/print-stack-trace e
On Friday,
On Oct 18, 2013, at 12:35 PM, Brian Craft craft.br...@gmail.com wrote:
ah, sorry, that's a shell tool? I meant dumping a stack trace from code.
Throwing catching works, it's just a bit goofy. Like
(defn- stack-trace [msg]
(try
(throw (IllegalArgumentException. msg))
(catch
Yes, thanks!
On Friday, October 18, 2013 12:42:00 PM UTC-7, Stanislav Sedov wrote:
On Oct 18, 2013, at 12:35 PM, Brian Craft craft...@gmail.comjavascript:
wrote:
ah, sorry, that's a shell tool? I meant dumping a stack trace from code.
Throwing catching works, it's just a bit goofy.
Hi!
vim-gains-nrepl is a simple plugin for Vim. No frills, just eval... not
actually, it also supports multiple nREPL servers and sessions so you can
use it for ClojureScript development. Find it here
https://github.com/shashurup/vim-gains-nrepl
Enjoy!
Georgy
--
--
You received this
Hello,
I have a strange problem when running an uberjar produced by Leiningen
2.3.3, which doesn't happen with Leiningen 2.3.2 .
The uberjar corresponds to a web app I'm working on. With 2.3.3 ...
$ lein clean
$ lein uberjar
$ java $JVM_OPTS -cp target/myapp-standalone.jar clojure.main -m
With clojure in particular, I am having trouble not rearranging my code
to be what I think is more optimal in ways that seem probably not
practical. I've noticed myself doing that when I'm newish to languages
and apis. But, I go bonkers with clojure.
Do you have any thoughts about how to
I think this is due to a bug in older versions of Ring's wrap-resource
middleware:
https://github.com/ring-clojure/ring/commit/89033af49dfe3d6e6fcdebb3f5455f6de0979034
In versions of Ring older than 1.2.0, directory entries will be served out
of jar files as zero-length HTTP responses.
@Phil I'm already using ring 1.2
$ lein deps :tree | grep ring
[compojure 1.1.5 :exclusions [[ring/ring-core]
[org.clojure/core.incubator] [clout]]]
[ring-basic-authentication 1.0.3]
[ring-middleware-format 0.3.1 :exclusions [[org.clojure/tools.reader]]]
[ring 1.2.0]
[ring/ring-core
xavi writes:
@Phil I'm already using ring 1.2
Hm; it's probably the same problem manifested a different way
then. Something is assuming that any entry in a jar file is fair game
whether it's a directory or file.
-Phil
pgpcYIkWpcwtg.pgp
Description: PGP signature
If I comment out
(wrap-resource public)
then it works (i.e. the uberjar produced by lein 2.3.3 serves the home
page).
Does this mean that the problem was not completely solved in Ring 1.2?
Argh! I'll try to take a look to Ring's code and see if I can find the
problem and fix it.
On the
It seems it's this problem that somone else already reported a few days
ago...
https://github.com/ring-clojure/ring/issues/96
On Saturday, October 19, 2013 2:50:16 AM UTC+2, xavi wrote:
If I comment out
(wrap-resource public)
then it works (i.e. the uberjar produced by lein 2.3.3 serves
What kind of optimal do you compulsively rearrange for? Performance?
Readability? Amusing terseness?
On Oct 18, 2013 6:20 PM, Kendall Shaw ks...@kendallshaw.com wrote:
With clojure in particular, I am having trouble not rearranging my code to
be what I think is more optimal in ways that seem
This one was last updated for clojure 1.3, so it may be a trifle
bit-rotted, but it demonstrates using a custom widget as part of a
gui:
https://github.com/martindemello/xw-clj
martin
On Thu, Oct 17, 2013 at 6:31 AM, Jonathon McKitrick
jmckitr...@gmail.com wrote:
I'd be interested in seeing
The premise is that it is rearranging that is not worth the effort.
I guess I will try estimating how long I would spend on a similar task
using something I am more familiar with and then trying to keep within
some proportion of that effort.
Kendall
On 10/18/2013 07:41 PM, John D. Hume
28 matches
Mail list logo