They used to give you compile switches for that kind of stuff, not
hope and wholesome wishes. Seems like every performance improvements
makes the language more complex, uglier or both.
On Jan 14, 2:40 pm, Stuart Sierra wrote:
> Debatable it is, endlessly. ;) So Clojure committers made a choice.
On Fri, Jan 14, 2011 at 7:05 PM, Alan wrote:
> I don't think that's the case. The deftype can be type-hinted to have
> all of its fields be primitives, and then it only costs one object
> allocation and deref instead of the five you'd have to do to box each
> argument separately.
That's still mor
On Jan 14, 2:14 pm, Ken Wesson wrote:
> On Fri, Jan 14, 2011 at 12:43 PM, David Nolen wrote:
> > On Fri, Jan 14, 2011 at 12:07 PM, Sam Aaron wrote:
>
> >> I was wondering what purpose the '4 or fewer args' restriction serves and
> >> therefore how you might retain the performance of this impleme
Clojure 1.2.0 works "out of the box" on Android, but startup time is still a
problem. Some members of Clojure/core have experimented with ways to make
this better, mostly by selectively removing stuff that isn't needed at
runtime.
Follow http://dev.clojure.org/display/design/Android+Support for
Debatable it is, endlessly. ;) So Clojure committers made a choice.
Hopefully, they have made a choice that has:
* a small positive effect (better performance with less effort) on a
majority of users
* a small negative effect (worse performance, extra effort) on a minority
-S
--
You receiv
On Fri, Jan 14, 2011 at 12:43 PM, David Nolen wrote:
> On Fri, Jan 14, 2011 at 12:07 PM, Sam Aaron wrote:
>>
>> I was wondering what purpose the '4 or fewer args' restriction serves and
>> therefore how you might retain the performance of this implementation with
>> 1.3.0-alpha4 and beyond (assum
By design contrib.sql, when executing a batch of commands, uses
transaction and if an exception is raised, it is printed to the error
output stream. This is very practical but when you are using such code
in a test that is meant to throw an exception it adds a lot of noise
to the tests output. I wa
On Fri, Jan 14, 2011 at 3:03 PM, Armando Blancas
wrote:
> > Interfaces have to defined for every combination of primitive arguments -
> so
> > you get interface explosion, thus only 4. Not ideal, but that's how it is
> > for now.
>
> Why the explosion, since the parameter hints indicate a specific
> Interfaces have to defined for every combination of primitive arguments - so
> you get interface explosion, thus only 4. Not ideal, but that's how it is
> for now.
Why the explosion, since the parameter hints indicate a specific
signature?
>
> Looking at that signature (6 arguments?), that shou
On 14 January 2011 19:07, Sam Aaron wrote:
[...]
> ---
> http://sam.aaron.nmae
I don't know the answer to your question, but I thought I'd point out
the typo in your signature.
--
Michael Wood
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To po
On Fri 14/01/11 17:07 , Sam Aaron samaa...@gmail.com sent:
> Today I evaluated John Lawrence Aspden's Clojure port of a fractal tree
> program which contains optimisations targeting 1.3:
> http://www.learningclojure.com/2010/09/clojure-13-first-impress
> ion.html
> Unfortunately, this no longer c
On Fri, Jan 14, 2011 at 12:07 PM, Sam Aaron wrote:
> I was wondering what purpose the '4 or fewer args' restriction serves and
> therefore how you might retain the performance of this implementation with
> 1.3.0-alpha4 and beyond (assuming the restriction is here to stay). Would
> you have to bre
Today I evaluated John Lawrence Aspden's Clojure port of a fractal tree program
which contains optimisations targeting 1.3:
http://www.learningclojure.com/2010/09/clojure-13-first-impression.html
Unfortunately, this no longer compiles with 1.3.0-alpha4 as draw-tree has too
many arguments:
"Com
> First, I suggest that you look at the standard clojure.java.io package for
> some useful functions that are already in Clojure 1.2.
>
Done in 0.3.0 (as well as some other added functions), thanks again.
--
You received this message because you are subscribed to the Google
Groups "Clojure"
Thanks Rob, I hadn't seen this very recent thread !
2011/1/14 rob levy
> There was recently a stack overflow thread on this:
> http://stackoverflow.com/questions/4651757/clojure-on-android/4675855#4675855
>
> One of the people who replied (Arthur Ulfeldt) says that JIT has helped
> greatly with
There was recently a stack overflow thread on this:
http://stackoverflow.com/questions/4651757/clojure-on-android/4675855#4675855
One of the people who replied (Arthur Ulfeldt) says that JIT has helped
greatly with performance. So maybe it's time to revisit it. It looks like
remvee's example cod
I was browsing the ClojureScript source on GitHub and saw the request for
help.
I'm interested in what the grocery-list of tasks for ClojureScript are, so
that I might poke around with a little more direction and focus.
Thanks!
--Aaron
--
You received this message because you are subscribed to
Wow, that's awesome, thanks for the quick reply.
I found when I opened the stream with (with-open ...) the lazy seq
would throw an exception because the stream is already closed by the
time the repl is trying to print it, so I forced it with a doall:
(with-open [f (open-my-file "foo.exprs")] (doa
Hi,
you can use lazy-seq:
(def eof-marker (Object.))
(defn read-all
[stream]
(lazy-seq
(let [x (read stream false eof-marker)]
(when-not (identical? x eof-marker)
(cons x (read-all stream))
Or go for high-level:
(def eof-marker (Object.))
(defn read-all
[stream]
Let's say I've got a finite, unknown number of valid clojure forms in
a file, say like this:
(foo)(bar)[blah blah blah](and one more)
(note there is a vector sandwiched in there too)
Let's say I open this file and want to use it with read:
(read f) => (foo)
I do it again, and:
(read f) => (bar
Hi Clojurians,
My employer Sourcesense is looking for Clojure Developer to hire/contract in
Amsterdam area.
Please see opening details http://www.sourcesense.nl/careers/#clj
Best regards,
Hubert Iwaniuk.
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
Or:
(defmethod foo (clojure.lang.RT/classForName "[[F")
...)
--
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
Hello,
Say I want to write an app in Clojure for Android.
The kind of app which does not require endless restarts.
Would you recommand me to go for it ?
And if so, what's the current "best way" of doing this ?
I've seen many "ports", "special builds" of clojure for Android, but they
seem to be
How about
(def float-2D (class (make-array Float/TYPE 1 1)))?
sincerely,
--Robert McIntyre
On Fri, Jan 14, 2011 at 4:07 AM, Ken Wesson wrote:
> On Fri, Jan 14, 2011 at 3:53 AM, Sunil S Nandihalli
> wrote:
>> Hello Everybody,
>> I would like to know how to have one of the multimethods disp
On Thursday, January 13, 2011 5:54:17 PM UTC+1, TimDaly wrote:
[snip]
> In sum, I'm suggesting that it isn't very lispy to use
> hierarchical namespace naming conventions.
>
I think all you said is very true... *if* the user of a namespace is allowed
to change its name (i.e. Common Lisp's RENAME-
On Fri, Jan 14, 2011 at 3:53 AM, Sunil S Nandihalli
wrote:
> Hello Everybody,
> I would like to know how to have one of the multimethods dispatch on [[F
> (2d-array of float) .. I don't know how to say that in the code .. I can
> say Integer Double etc.. How do I say 2-d-array of floats? what i
Hello Everybody,
I would like to know how to have one of the multimethods dispatch on [[F
(2d-array of float) .. I don't know how to say that in the code .. I can
say Integer Double etc.. How do I say 2-d-array of floats? what is the
literal representation of [[F... I am not sure if I am clear w
27 matches
Mail list logo