Re: Inspecting the Call Stack on Recursive Calls

2015-10-14 Thread Philippe Guillebert
Hi Well, you answered yourself, either replace recur with random-depth (and it will consume stack), or add a counter in your recursion and (recur (inc i)). Philippe On Wed, Oct 14, 2015 at 2:41 AM, Jeremiah Via wrote: > Hi all, > > I was curious to know if it is at all possible to determine h

Re: How to exclude compile-time dependencies from uberjar?

2015-07-01 Thread Philippe Guillebert
Hi "provided" dependencies should work for you, this is from my project.clj : :profiles {:provided {:dependencies [[org.apache.storm/storm-core "0.9.4"]]}} On Wed, Jul 1, 2015 at 5:14 PM, Robin Heggelund Hansen wrote: > All suggestions made the dependencies unavailable when running `lein >

Re: Packaging JNI extensions

2015-03-25 Thread Philippe Guillebert
e. > > This means that I would have to take on building this for all of the > binary platforms, which is a chore; and (again) on the other hand, it's a > chore that would allow other apps to never have to have this problem. > > (Avi is a console-based editor, the JNI portion i

Re: Packaging JNI extensions

2015-03-16 Thread Philippe Guillebert
Hi I'm not sure what "Avi" is in this context, maybe what you're looking for is a way to package and run native JNI code from an uberjar ? I recently released https://github.com/pguillebert/indigenous that may help in this purpose. You still need to find a maven artifact providing the native libra

[ANN] Indigenous, a native library helper

2015-03-05 Thread Philippe Guillebert
Hello Working with native libraries on the JVM has always been difficult because you need to deploy dynamic libraries alongside your JAR and tweak the dreaded java.library.path. When I was looking for a better solution I discovered a nice hack in gaverhae/naughtmq, by Gary Verhaegen : keep the na

Re: XPATH/XSLT like access to Clojure data structures?

2015-03-01 Thread Philippe Guillebert
Hi Looks like the latest announcement from Nathan Marz (specter) may be of use 😀 Philippe -- 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 moderated -

Re: clojure.lang.Atom cannot be cast to a java.lang.Num

2014-05-27 Thread Philippe Guillebert
Also, you should be using loop/recur instead of mutating atoms here, this is the functional way. You already laid out your 2 loop bindings, and a stop condition. This should be straightforward. Philippe. Le 27 mai 2014 09:44, "Dylan Gleason" a écrit : > I am trying to read a TCP request via an

Re: how to define a variable of type collection to keep other functions.

2014-05-23 Thread Philippe Guillebert
Hello This is not written as functional code. You have to understand that : (cons f futures) creates a new "version" of futures with f in front of it and cons *returns it to you*. Put another way,* futures is not modified by cons*. In your dotimes construct, the consed value is lost each loo

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread Philippe Guillebert
Hi, You probably need to realize your query using (doall (jdbc/query ...)) Also, I was wondering, depending on your needs, you could convert Jdbc4Arrayinto a native type (vector ?) as a post-processing function of your query and forget about registering JSON writers. On Tue, Oct 1, 2013 at 9:0

Re: Can we please deprecate the :use directive ?

2013-07-25 Thread Philippe Guillebert
t) [?a ?b] (generator :> ?a ?b)) The same applies to SQL DSLs like korma. So, IMHO there are cases where (:use) simplifies things. -- Philippe Guillebert -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: How to implement a distributed and concurrent system in Clojure?

2013-07-04 Thread Philippe Guillebert
Hi I'm surprised nobody mentioned storm yet. It's massively scalable real-time computing, using clojure. Le 3 juil. 2013 16:18, "Softaddicts" a écrit : > clj-zookeeper + avout. We run our solution on clusters of small nodes, we > needed > a lightweight solution. We implemented cluster queues and