CLJS: UUID generator for ClojureScript

2012-11-28 Thread Frank Siebenlist
I need UUIDs in my CLJS codeā€¦ cljs.core does include a UUID type, but no generator. I found a couple of efforts and example code at https://github.com/davesann/cljs-uuid and http://catamorphic.wordpress.com/2012/03/02/generating-a-random-uuid-in-clojurescript, but they didn't work with cljs.cor

Re: Trouble calling Dojo grid constructor from ClojureScript

2012-11-28 Thread Brian Nelson
ok. I've had some time to look into this now and have figured out a few things. 1. This is not due to calling the DGrid constructor from clojurescript. It occurs even when I call the DGrid constructor from straight javascript code. So it doesn't have to do with the clojurescript code calling th

Re: ClojureScript One Architecture

2012-11-28 Thread Duraid
Thanks for the response. Although ClojureScript/One uses google closure but the framework only uses it to access browser features and not for how the application components are organized. What I don't like about javascript frameworks is that they all have an OO twist to them that make things more

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Ulrich
... so the main problem seems to be chunked vs. unchunked sequences in corecursion. I read a bit into "chunked sequences" and so far it seems that a sequence is either chunked with size 32 or unchunked. So a "rechunk" of variable size seems of no use. Instead I found an "unchunk" at stackoverfl

Re: ClojureScript One Architecture

2012-11-28 Thread Taylor Sando
Well since Clojurescript, and by extension Clojurescript One was built on top of Google Closure, I guess you could use that. I know the history features from Clojurescript One use are a thin layer over the existing history features in Google Closure. The problem with Google Closure is that it

Re: call superclass method in classes created by Clojure?

2012-11-28 Thread Meikel Brandmeyer
Am 28.11.12 23:10, schrieb Vladimir Tsichevski: Is it possible? See exposes-methods in documentation for gen-class. http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/gen-class Kind regards Meikel -- You received this message because you are subscribed to the Google Groups "

call superclass method in classes created by Clojure?

2012-11-28 Thread Vladimir Tsichevski
Is it possible? -- 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 - please be patient with your first post. To unsubscribe from this group, sen

Protocols and Prototyping

2012-11-28 Thread faenvie
Hi Clojure Users, while reading through http://natureofcode.com/book i tried to implemented some of the samples in clojure. One of them implements a sample ParticleSystem and uses Polymorphism to model state an behavior of different ParticleTypes. I have come up with this two solutions Solut

Re: Job Opportunity (Java/Processing/Clojure)

2012-11-28 Thread charlie
And now I have a Christmas gift for my father in law. Cool product ( and keep using Clojure! ). On Wed, Nov 28, 2012 at 11:06 AM, Wyatt Niehaus wrote: > New York based artist Bradley Pitts is looking to hire a programmer to > continue the development of the Yearlight Calendar ( > www.yearlightc

Job Opportunity (Java/Processing/Clojure)

2012-11-28 Thread Wyatt Niehaus
New York based artist Bradley Pitts is looking to hire a programmer to continue the development of the Yearlight Calendar ( www.yearlightcalendar.com), a custom, made-to-order calendar that registers the duration of daylight, twilight, and moonlight for every day of the year for a given locat

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Ulrich
Am Mittwoch, 28. November 2012 16:42:32 UTC+1 schrieb Christophe Grand: > > Hi Ulrich, > > Wow, you got me scratching my head because your code should not even work. > The problem I see with it is that your recursion has no base case. You > have to know that 2 is prime to boot the algorithm. Eg

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Christophe Grand
A more succinct test case: user=> (def escher-seq (lazy-seq (lazy-seq (if (seq escher-seq) nil (list 42) #'user/escher-seq user=> escher-seq (42) thus escher-seq is not empty because it is empty :-) On Wed, Nov 28, 2012 at 4:42 PM, Christophe Grand wrote: > Hi Ulrich, > > Wow, you got me sc

ANN: jmx-repl -- A JMX client with a file system style.

2012-11-28 Thread James Xu
A JMX client with a file system style. You use ls to check all the mbeans, use cd to go down one level, and use cat to check the attribute value of a mbean's attribute. In jmx-repl the following jmx bean: java.lang:type=MemoryPool,name=CMS Old Gen translates to the following path: /java.lan

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Christophe Grand
Hi Ulrich, Wow, you got me scratching my head because your code should not even work. The problem I see with it is that your recursion has no base case. You have to know that 2 is prime to boot the algorithm. Eg (def primes (cons 2 (filter (fn isprime[n] (every? #(po

(iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Ulrich
Hello, I tried to define the sequence of primes via corecursion, with trial divisions by primes p with p*p<=n, finally arriving at following code. (def primes (filter (fn isprime[n] (every? #(pos? (mod n %)) (take-while #(<=(*%%)n) primes) ) ) (iterat

Re: Current status of Clojure on Android?

2012-11-28 Thread Murphy McMahon
I wrote a wrapper for the Apache Cordova (Phonegap) API recently, so that it could be used with ClojureScript. I got Hello World, etc up and running without much fuss. There are however two issues: 1. Also a slow start-up time, since Phonegap already has resources to load, and then a large JavaScr

Re: Current status of Clojure on Android?

2012-11-28 Thread Herwig Hochleitner
2012/11/27 John Gabriele > Hm. I need to read up on what the dex is, and why one would want to dex > it. :) Dex is the utility transforming java byte code to dalvik executable bytecode, that can run on android. It's written in java so can be applied to itself. I remember a blog article some tim