Re: Nightcode problem

2014-12-07 Thread Julio Berina
I made a few minor tweaks and now I have a new problem: Running... Generating manifest... Generating R.java... Compiling 1 source files to C:\Programming\Clojure\Android\sample\target\debug\classes Compiling Clojure files... Build type: debug, dynamic compilation: enabled, remote REPL: enabled.

ANN Elastisch 2.1.0 is released

2014-12-07 Thread Michael Klishin
Elastisch [1] is a small, feature complete client for ElasticSearch   that provides both REST and native clients. Release notes:   http://blog.clojurewerkz.org/blog/2014/12/07/elastisch-2-dot-1-0-is-released/ 1. http://clojureelasticsearch.info -- @michaelklishin, github.com/michaelklishin --

Re: atoms, memoize, future-s and CAS

2014-12-07 Thread James Reeves
On 7 December 2014 at 05:13, Andy L core.as...@gmail.com wrote: The SoftCache uses a ConcurrentHashMap, but that caching option isn't used in core.memoize. Are you building a custom memoizer? WRT ConcurrentHashMap, it was an incorrect conclusion on my part. In any case, I fail to see

Function order in Clojure vs scripting languages

2014-12-07 Thread gvim
Considering Clojure has a compile phase why is it more dependent on function definition order than scripting languages like Perl? My naive assumption is that one of the benefits of a compile phase is that every definition is defined ahead of runtime. gvim -- You received this message because

[ANN] ctries.clj, a Clojure implementation of Ctries

2014-12-07 Thread Michał Marczyk
Hi, I am pleased to announce the initial release of ctries.clj, a port of the original Scala implementation of this fascinating data structure with a Clojure API that allows usage scenarios such as this: (def x (ct/concurrent-map :foo 1)) ;; @ takes independently mutable snapshots; ;;

Re: For review: Clojure Namespace Isolation

2014-12-07 Thread Bozhidar Batsov
I think you should post this to clojure-...@googlegroups.com —  Cheers, Bozhidar On December 7, 2014 at 07:32:38, Ralph Ritoch (rrit...@gmail.com) wrote: Hello,    I have created a way to create namespace isolation within clojure. The code is available on github @

Re: Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-12-07 Thread James MacAulay
On Sunday, 7 December 2014 02:01:33 UTC-5, eric wrote: Interesting, I think this here goes along the same lines: https://github.com/logaan/promise-stream Cool, I'll check that out. Hadn't seen that one before. I was also happy to see Rich Hickey talking about the upcoming Promise

Re: For review: Clojure Namespace Isolation

2014-12-07 Thread Fluid Dynamics
On Sunday, December 7, 2014 11:12:37 AM UTC-5, Bozhidar Batsov wrote: I think you should post this to cloju...@googlegroups.com To where? Your post displayed like that, and I couldn't get a usable tooltip expanding the address by mousing over it either. -- You received this message because

Re: For review: Clojure Namespace Isolation

2014-12-07 Thread Alan Forrester
On 7 December 2014 at 19:27, Fluid Dynamics a2093...@trbvm.com wrote: On Sunday, December 7, 2014 11:12:37 AM UTC-5, Bozhidar Batsov wrote: I think you should post this to cloju...@googlegroups.com To where? Your post displayed like that, and I couldn't get a usable tooltip expanding the

Re: debugging MyClass cannot be cast to MyClass exceptions

2014-12-07 Thread Brian Craft
Not sure if I followed the non-interactive case. Is it just 1) deftype or defrecord in one file 2) import the class in a different file 3) AOT compile (e.g. uberjar)? On Saturday, December 6, 2014 11:07:36 PM UTC-8, Ambrose Bonnaire-Sergeant wrote: Perhaps this issue is biting you

Re: what do you think about this code?

2014-12-07 Thread Philip Schwarz
Hey David, thank you for taking the time to review my code and come up with suggestions. I look forward to chewing over your reply soon (job and daughter permitting). Philip On Saturday, 6 December 2014 13:36:47 UTC, David Della Costa wrote: Hi Philip, I read your message and immediately

Re: what do you think about this code?

2014-12-07 Thread Philip Schwarz
Hi David thanks for you reply. I'll get back to you as soon as possible. Philip On Saturday, 6 December 2014 18:40:16 UTC, Colin Yates wrote: Excellent question and I will be watching this thread with interest. Similar to David Della Costa, I find a bit difference between Clojure and Java

Re: Nightcode problem

2014-12-07 Thread Niels van Klaveren
Nightcode is starting a 32 bits version of the JVM which only supports a max of 2 Gb continuos memory. Install a 64 bits JVM or lower the Xmx to 1500m. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Function order in Clojure vs scripting languages

2014-12-07 Thread Stuart Sierra
Yes, it's about the size of a compilation unit and how to handle undefined references. Rich Hickey posted this https://news.ycombinator.com/item?id=2467359 detailing the trade-offs involved in choosing Clojure's strategy. -S On Sunday, December 7, 2014 9:37:40 AM UTC-5, Ashton Kemerling wrote:

Re: ANN: ClojureScript 0.0-2411

2014-12-07 Thread David James
Thanks. Problem solved. On Saturday, December 6, 2014 5:34:53 AM UTC-5, David Nolen wrote: That's an issue with core.async. Make sure you have the latest. If you do, please file an issue for core.async. -- You received this message because you are subscribed to the Google Groups Clojure

Re: Nightcode problem

2014-12-07 Thread Julio Berina
I'm getting closer. I have this: Running... Generating manifest... Generating R.java... Compiling 1 source files to C:\Programming\Clojure\Android\sample\target\debug\classes Compiling Clojure files... Build type: debug, dynamic compilation: enabled, remote REPL: enabled. Compiling

Re: clojure + voltdb

2014-12-07 Thread Thomas Steffes
Hey Todd, any chance you still have this kicking around somewhere? On Friday, July 9, 2010 2:03:05 AM UTC-4, Todd wrote: I've created a basic project to show how to create a voltdb database, and then to create java and clojure clients for this database:

Re: Open html file in Clojure

2014-12-07 Thread juan.facorro
Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the desktop app and the code you are using to get the location information.

Re: Open html file in Clojure

2014-12-07 Thread Fluid Dynamics
On Sunday, December 7, 2014 6:50:54 PM UTC-5, juan.facorro wrote: Hi Priyanka, I don't think there's enough information for someone to be able to help you. When you say .html do you mean JavaScript or ClojureScript code? It will be a lot easier to help you, if you share the code from the

Re: ANN: ClojureScript 0.0-2411

2014-12-07 Thread Shaun LeBron
might need to update the readme with this latest version On Friday, December 5, 2014 2:03:25 PM UTC-6, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2411

Re: Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-12-07 Thread nchurch
Did you ever look into Hoplon/Javelin? Haven't heard much about it on this group recently, and curious why On Saturday, December 6, 2014 10:37:20 PM UTC-8, James MacAulay wrote: What prompted me to write Zelkova? The short answer is curiosity and gut feeling. The long answer: I

Re: Zelkova: Elm-style FRP for Clojure and ClojureScript

2014-12-07 Thread James MacAulay
On Sunday, 7 December 2014 19:41:58 UTC-5, nchurch wrote: Did you ever look into Hoplon/Javelin? Haven't heard much about it on this group recently, and curious why As it happens, Alan Dipert gave a great remote presentation on Hoplon to my local Clojure user group (Clojure Toronto) in

clojure.edn won't accept clojure.java.io/reader? How to work around this and why isn't this documented anywhere?

2014-12-07 Thread Fluid Dynamics
= (with-open [in (io/reader (io/resource foo))] (edn/read in)) ClassCastException java.io.BufferedReader cannot be cast to java.io.PushbackReader clojure.edn/read (edn.clj:35) Er, what? Aren't these things supposed to just plug into each other and work OOTB? Do I need to muck about with

One more for the crappy error messages file.

2014-12-07 Thread Fluid Dynamics
IllegalArgumentException No implementation of method: :make-reader of protocol: #'clojure.java.io/IOFactory found for class: nil clojure.core/-cache-protocol-fn (core_deftype.clj:541) This, apparently, is clojure.java.io's way of saying file not found. :) If there's a list somewhere of

Re: One more for the crappy error messages file.

2014-12-07 Thread Mikera
How are you getting that error? Are you sure you aren't just passing a nil parameter by accident? For example, I get the same error when I pass nil to the clojure.java.io/reader function. Clojure usually throws file not found exceptions where appropriate, e.g. (use 'clojure.java.io) (reader

ANN Cassaforte 2.0.0-rc2 is released

2014-12-07 Thread Michael Klishin
Cassaforte [1] is a Clojure Cassandra client built around CQL 3.  This release is a late release candidate for 2.0. Please help us test it!  Release notes:  http://blog.clojurewerkz.org/blog/2014/11/30/cassaforte-2-dot-0-0-rc2-is-released/ 1. http://clojurecassandra.info  -- @michaelklishin,

test.check generating hierarchy with relations

2014-12-07 Thread cig
Hi I would like to test a function which recursively traverses the nodes in a graph and collects them. For example, (def graph {1 [2 3 4] 2 [5 6 7] 6 [8 9] 10 [11 12 13]} my function is given a starting point say, 1 and should then

Re: One more for the crappy error messages file.

2014-12-07 Thread Fluid Dynamics
On Monday, December 8, 2014 1:29:51 AM UTC-5, Mikera wrote: How are you getting that error? Are you sure you aren't just passing a nil parameter by accident? For example, I get the same error when I pass nil to the clojure.java.io/reader function. Clojure usually throws file not found

Re: clojure.edn won't accept clojure.java.io/reader? How to work around this and why isn't this documented anywhere?

2014-12-07 Thread Andy Fingerhut
In regards to your question Why isn't this documented anywhere?, it is documented somewhere -- in the documentation string for clojure.edn/read, the very function you were attempting to use: user= (doc clojure.edn/read) - clojure.edn/read ([] [stream] [opts stream])

ANN: Prone - better exception reporting middleware for Ring

2014-12-07 Thread Magnar Sveen
Better exception reporting middleware for Ring. Heavily inspired by better_errors for Rails https://github.com/charliesome/better_errors. See it to believe it: a quick video demoing Prone https://dl.dropboxusercontent.com/u/3378230/prone-demo.mp4. Prone presents your stack traces in a