Re: equivalent of Compojure resources in juxt/bidi

2015-01-12 Thread clifford
It works, thanks Malcom. It is surprisingly easy once you understand how to wire it together. Thanks for your help and a great library. Clifford On Sunday, 11 January 2015 21:27:06 UTC+2, cliff wrote: > > Hi > > I am trying to mimic the following Compojure behaviour, in juxt/bidi > > (defroute

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
Oh, and all our apps now pass / work correctly on 1.7.0-alpha5 (I stripped Typed Clojure out of our code base to make it all work). Sean > On Jan 12, 2015, at 6:25 PM, Sean Corfield wrote: > > On Jan 12, 2015, at 11:32 AM, Sean Corfield > wrote: >> http://dev.clojure

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
On Jan 12, 2015, at 11:32 AM, Sean Corfield wrote: > http://dev.clojure.org/jira/browse/CLJ-1639 > It turned out to be due to core.typed whose JAR includes AOT’d versions of core.cache and core.memoize amongst others. I’ve left this issue open with

Re: resolving "eval"-created ephemeral classes that do not get unloaded

2015-01-12 Thread Wei "pw" Peng
Thanks for the reply, Gary. Indeed, reflection is a better solution in this scenario. On a closer look, those ephemeral classes are loaded by "clojure.lang.DynamicClassLoader", each with a retained size of 2,576 bytes, and is only referred to with soft/weak references from GC roots. So, not mu

Re: [ANN] Neanderthal, a fast, native matrix and linear algebra library for Clojure released + call for help

2015-01-12 Thread Dragan Djuric
> > > b) It looks like you are consistently about 2x faster than JBlas for large > matrices - wondering what is causing the difference, is that because of > copying? > That is the most probable cause, but I am not sure whether it is the only one. > c) Would be interesting to see a few other

Re: [ANN] Neanderthal, a fast, native matrix and linear algebra library for Clojure released + call for help

2015-01-12 Thread Mikera
Looks cool Dragan, thanks for sharing! I would strongly encourage you to wrap this up and make it work as a core.matrix implementation. That would considerably improve interoperability with other libraries / tools in the Clojure numerical space e.g. it could be used as a drop-in replacement for

Re: Help with Incanter and Emacs

2015-01-12 Thread Robert Berger
Wish this was in the Incanter docs and in the Readme On Tuesday, August 13, 2013 at 12:09:20 PM UTC-7, Tim Visher wrote: > > LOL. I just realized I'd been missing that all along. > > It seems like the community is more and more leaning to something like > this, just FYI. > > (ns default.core >

Re: [ANN] modularity.org

2015-01-12 Thread Malcolm Sparks
Hi James, If I understand your pattern correctly, you assoc a :routes entry to each component that contains routes. Then your router component depends on these components, selecting those that have a :routes key, and call each :routes value function in turn until one return a non-nil Ring respo

[ANN] Neanderthal, a fast, native matrix and linear algebra library for Clojure released + call for help

2015-01-12 Thread Dragan Djuric
I am pleased to announce a first public release of new *very fast *native matrix and linear algebra library for Clojure based on ATLAS BLAS. Extensive *documentation* is at http://neanderthal.uncomplicate.org See the benchmarks at http://neanderthal.uncomplicate.org/articles/benchmarks.html. Nea

Re: [ANN] dformat 0.1.0

2015-01-12 Thread Malcolm Sparks
Very nice! On Monday, 12 January 2015 21:43:08 UTC, zirkonit wrote: > > A tiny library, my first open-source Clojure release. Removes some > head-scratching when formatting dates (is it or ? or YYY?) by > building date format strings automatically based on a sample. For example: > > (df

Re: equivalent of Compojure resources in juxt/bidi

2015-01-12 Thread Malcolm Sparks
Hi Clifford, First, br/resource-maybe can only appear as the second item of a route pair, because it only satisfies the bidi.bidi/Matched protocol. The first item of a route pair is for patterns only, i.e. types that satisfy bidi.bidi/Pattern protocol. What you are trying to do is easy (when y

Re: resolving "eval"-created ephemeral classes that do not get unloaded

2015-01-12 Thread Gary Trakhman
There's no need to use eval when reflection will do. On Mon, Jan 12, 2015 at 6:45 PM Wei "pw" Peng wrote: > I have a problem with stacking ephemeral dynamically generated classes > that do not get unloaded, and therefore the host JVM's class count > constantly increases. > > My situation is like

resolving "eval"-created ephemeral classes that do not get unloaded

2015-01-12 Thread Wei "pw" Peng
I have a problem with stacking ephemeral dynamically generated classes that do not get unloaded, and therefore the host JVM's class count constantly increases. My situation is like this. I have a need in my program to dynamically interop with Java (see the example below for the exact meaning of

Re: [ANN] dformat 0.1.0

2015-01-12 Thread adrian . medina
It seems so obvious in retrospect... :) Good job. On Monday, January 12, 2015 at 4:43:08 PM UTC-5, zirkonit wrote: > > A tiny library, my first open-source Clojure release. Removes some > head-scratching when formatting dates (is it or ? or YYY?) by > building date format strings autom

[ANN] dformat 0.1.0

2015-01-12 Thread zirkonit
A tiny library, my first open-source Clojure release. Removes some head-scratching when formatting dates (is it or ? or YYY?) by building date format strings automatically based on a sample. For example: (dformat date "March 1, 1999") ;; "June 9, 2011" (dformat date "Jan 1, 1999")

Re: micrologic - A tiny, literate implementation of miniKanren/core.logic

2015-01-12 Thread Atamert Ölçgen
This is fantastic! Thanks a lot. On Thu, Jan 8, 2015 at 9:26 PM, David Nolen wrote: > Nothing to add other than this is really cool. > > David > > On Thu, Jan 8, 2015 at 1:56 PM, Russell Mull > wrote: > >> Hi fellow Clojurists, >> >> I've been working on a small miniKanren in Clojure. It starte

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
http://dev.clojure.org/jira/browse/CLJ-1639 > On Jan 12, 2015, at 10:37 AM, Alex Miller wrote: > > I would be helpful to me at this point to have a jira regarding this problem > which I will presume for the time being is the same in both Andy and S

Clojure for Desktop UI Design Application

2015-01-12 Thread MS
(Cross-posted on StackOverflow) I'm trying to design a desktop UI for schematics, layout, drawing stuff. Just looking for high level advice from actual software designers. Assuming an in-memory "database", (clojure map of arbitrary depth for all user data, and possibly another one for applicat

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread tcrayford
I said this already on twitter, but I see heavy (5-10x slower) perf regressions on my benchmark suite from 1.7-alpha5 vs 1.6. I am trying the other alphas now - I have a comprehensive benchmark suite that takes 4 hours or so to run, and it's a bit backed up right now (I only have one box to run

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Alex Miller
I would be helpful to me at this point to have a jira regarding this problem which I will presume for the time being is the same in both Andy and Sean's case. On Monday, January 12, 2015 at 11:30:57 AM UTC-6, Andy Fingerhut wrote: > > Nicola, Sean: > > I am _not_ testing with Sean's code, so can

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Andy Fingerhut
Nicola, Sean: I am _not_ testing with Sean's code, so can't comment whether my results will correspond with his. I have found that between Clojure 1.7.0-alpha4 and 1.7.0-alpha5, and the latest Eastwood version 0.2.1 released, I get an exception trying to lint the namespace clojure.reflect in Cloj

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
I have confirmed that reverting this commit addresses the problems we are encountering: https://github.com/clojure/clojure/commit/9f277c80258b3d2951128ce26a07c30ad0b47af0 "CLJ-979: make clojure resolve to the correct Class instances" Since we routinely run our test suite against master, and we

Re: Newbie Gloss questions - dynamic buffer structure

2015-01-12 Thread Zach Tellman
I'm sorry, that should have been :ubyte. Being able to insert arbitrary data into a codec is a feature, though. On Mon, Jan 12, 2015 at 6:27 AM, Tzach wrote: > Hi Zach > Thanks for the detailed response > > On Wednesday, January 7, 2015 at 7:28:06 AM UTC+2, Zach Tellman wrote: >> >> Hey Tzach, >

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
On Jan 12, 2015, at 8:09 AM, Nicola Mometto wrote: > Can you try a custom version of clojure 1.7.0-alpha5 with commit > e5a104e894ed82f244d69513918d570cee5df67d reverted and see if you still > get the exception? Yes, reverting that one commit and creating Clojure 1.7.0-aot5 and rebuilding and te

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Nicola Mometto
Can you try a custom version of clojure 1.7.0-alpha5 with commit e5a104e894ed82f244d69513918d570cee5df67d reverted and see if you still get the exception? Nicola Sean Corfield writes: > Here’s what I see reproducing this in the REPL - this main project doesn't > use core.async (but does use a

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
Here’s what I see reproducing this in the REPL - this main project doesn't use core.async (but does use a very small AOT'd library). I'm going to try to cut this down to see if I can repro outside our main project (worldsingles.cache is a thin wrapper over core.cache and core.memoize - moving th

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Sean Corfield
On Jan 12, 2015, at 3:00 AM, Bronsa wrote: > Do the failing projects require AOT compilation? we used to see a similar > exception in eastwood when reloading core.cache and one of the AOT patches > committed can cause some namespaces to be reloaded > We have one (very small) AOT’d library tha

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Alex Miller
Yes, ArrayList is a particularly common case (see http://insideclojure.org/2015/01/07/vec-perf/). I'm going to reinstate the prior one though, no reason to break people (even if they are using an internal method). On Monday, January 12, 2015 at 3:59:09 AM UTC-6, Mikera wrote: > > It seems a lit

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Alex Miller
Do you have the full stack trace in the cases where you see this without core.async? On Sunday, January 11, 2015 at 7:17:27 PM UTC-6, Sean Corfield wrote: > > I tried upgrading a few more apps and ran into this same problem in the > absence of core.async - but in the presence of core.cache and c

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Alex Miller
Rangel - I have filed http://dev.clojure.org/jira/browse/CLJ-1638 to replace the method, which seems like the best solution. On Monday, January 12, 2015 at 3:43:09 AM UTC-6, Rangel Spasov wrote: > > Hey guys, > > I noticed that PersistentVector.create() is missing one arity that used to > exist

Re: Newbie Gloss questions - dynamic buffer structure

2015-01-12 Thread Tzach
Hi Zach Thanks for the detailed response On Wednesday, January 7, 2015 at 7:28:06 AM UTC+2, Zach Tellman wrote: > > Hey Tzach, > > If I understand what you're trying to do, you want something like this: > > [ :uint32 > :ubyte ;; or bit-seq, depending > (delimited-block (prefix uint24 #(- % 5)

[ANN] POSThere.io 1.0.0

2015-01-12 Thread Sean Johnson
POSThere.io ( http://posthere.io ) is a simple free service for developers to help debug API calls and web hooks. When your code is POSTing to someone else’s code… or they'll be POSTing to you, it can be hard to iterate, debug and validate your code. POSThere.io let's you see what is POSTed (or

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Jony Hudson
I have a set of micro-benchmarks on a project that is compute-heavy (symbolic regression, genetic programming). I see no performance regressions :-) 1.6.0 http://viewer.gorilla-repl.org/view.html?source=gist&id=3e943292b03755681e50&filename=expression-1.6.0.clj 1.7.0-alpha5 http://viewer.gorill

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Bronsa
Do the failing projects require AOT compilation? we used to see a similar exception in eastwood when reloading core.cache and one of the AOT patches committed can cause some namespaces to be reloaded Il giorno 12/gen/2015 02:17, "Sean Corfield" ha scritto: > I tried upgrading a few more apps and

Re: [ANN] Leiningen 2.5.1 released

2015-01-12 Thread Jean Niklas L'orange
Hi there, On Monday, January 12, 2015 at 3:22:46 AM UTC+1, hba wrote: > > The message comes from wget [1] and to fix it i uninstalled it to let > leiningen-win-installer [2] use curl instead. > If it's more sensible to use curl over wget on Windows by default, then I'd like to have one of you

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Mikera
It seems a little odd that there is an "ArrayList" override but not "List". Presumably that is there as an optimisation since ArrayList is such a common case? It seems to have happened in this commit for CLJ-1546, which replaces the "List" override with "ArrayList" https://github.com/clojure/cl

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-12 Thread Rangel Spasov
Hey guys, I noticed that PersistentVector.create() is missing one arity that used to exist before: PersistentVector.create(List items) ... which caused this library https://github.com/ninjudd/clojure-protobuf/blob/develop/src/flatland/protobuf/PersistentProtocolBufferMap.java#L479 to throw