On Tue, Feb 08, 2011 at 09:01:38AM -0500, Stuart Halloway wrote:
> Please let us know when you get a misleading error message from a
> macroexpansion, so we can make it better. Or contribute a patch along the
> lines
> of [2].
Here's a misleading lack of an error message:
(defn foo [x]
On Mon, Feb 14, 2011 at 5:48 AM, Timo Mihaljov wrote:
> On Tue, Feb 08, 2011 at 09:01:38AM -0500, Stuart Halloway wrote:
>> Please let us know when you get a misleading error message from a
>> macroexpansion, so we can make it better. Or contribute a patch along the
>> lines
>> of [2].
>
> Here's
For a while I've been working on a 2D physics engine written in
Clojure. I just recently got to the point where I can run a
simulation(a box falling onto the ground) and it is painfully slow.
I'm shooting for 60 fps but I can barely get 10 when the box is
falling and when it lands on the ground an
On Java HotSpot:
-XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly
You'll need quite a few iterations, and be wary of code with no observable
effect (becomes subject to dead code elimination).
As far as I could tell cast or no cast made no difference at all (in this
particular case).
/Johan Wir
On Sun, Feb 13, 2011 at 5:50 PM, Jarl Haggerty wrote:
> For a while I've been working on a 2D physics engine written in
> Clojure. I just recently got to the point where I can run a
> simulation(a box falling onto the ground) and it is painfully slow.
> I'm shooting for 60 fps but I can barely ge
On Feb 13, 7:50 pm, Jarl Haggerty wrote:
> I'm shooting for 60 fps but I can barely get 10 when the box is
> falling and when it lands on the ground and the collision response
> kicks in I get about 5.
>
> The project has reached a size where I thought it would be silly to
> ask for specific way
Hmm, thanks for pointing it out! In fact I was about to make the move from
appengine-clj to appengine-magic, but just because you make multipart
(image) uploading a little bit easier, as well as providing a better query
syntax (e.g., you support the offset parameter, which I now have to mimic by
2011/2/8 Brian Marick :
> The header documentation for clojure.contrib.condition says:
>
> Note: requires AOT compilation.
>
> What do I therefore do differently? How should my program text change?
The clojure-contrib jar file that your build tool - or yourself, if
you do stuff manually - down
Laziness is great when there are things that may not ever be needed.
But it slows things down when you know that you are going to need some
function applied to every element of some col. The doall function is
your friend in this case.
If there are things that you are using pmap on then I would op
i.e. is there a way in a Clojure source file to generate a class like
the one named GmpUtil in this Java program?
http://shootout.alioth.debian.org/u32/program.php?test=pidigits&lang=java&id=4
(class GmpUtil is near the end of the program -- here is a copy)
class GmpUtil {
static {
S
With a little practice and/or tools, you'll find you rarely have to
find the right position. Rainbow-parens is one option, which makes
matching parens the same color; one that I use more often is C-M-f,
which moves from the start of a sexp to its end. So if you want to put
something at the end of a
Er, not sure why I thought Ken was the one answering you. Maybe it
just read like him. I was referring to James, of course, since he was
the only person who had answered.
On Feb 14, 10:40 am, Alan wrote:
> With a little practice and/or tools, you'll find you rarely have to
> find the right positi
I am sorry if this question has been asked and answered, but I didn't
see it when I searched.
Has anyone really looked at the performance benefits, when running
clojure, of the different JVM's that are out there? For example, I
use the stock JVM that comes with my operating system. But, would I
`gen-class` only creates stub classes. The methods in the generated classes
just invoke the Clojure functions by name, as if you wrote
`RT.var("namespace", "function").invoke()` in Java. That is to say,
gen-class can't generate native methods.
I don't think Clojure can import Java classes with
Thanks, Johan!
-S
--
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, s
It really depends on your application. I am not aware of any benchmarks of
Clojure programs on different JVMs.
A typical Clojure program puts more stress on the garbage collector than a
typical Java program, so JVMs with optimized garbage collection may perform
better.
Whatever JVM you use, m
On Feb 14, 4:32 pm, cej38 wrote:
> Laziness is great when there are things that may not ever be needed.
> But it slows things down when you know that you are going to need some
> function applied to every element of some col. The doall function is
> your friend in this case.
AFAIK, most if not a
Hello.
There is an interesting model about error reporting: Clang, one of
C-family languages compiler which uses LLVM.
For example, if you mistake names, Clang searches similar names which
really exist in current environment.
And then Clang illustrates line, column and actual code.
If you want to
Hi,
Although Emacs is a great environment for writing Clojure code and
Leiningen/Cake makes Maven builds less painful, you still had to
switch from your Emacs environment to your web browser to search for
Maven artifacts.
emacs-nexus is a minimal (elisp-only) Nexus client to search for
artifacts
On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel wrote:
> Hi,
>
> Although Emacs is a great environment for writing Clojure code and
> Leiningen/Cake makes Maven builds less painful, you still had to
> switch from your Emacs environment to your web browser to search for
> Maven artifacts.
>
> emacs
On Mon, Feb 14, 2011 at 16:50, Scott Jaderholm wrote:
> On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel wrote:
>
>> Hi,
>>
>> Although Emacs is a great environment for writing Clojure code and
>> Leiningen/Cake makes Maven builds less painful, you still had to
>> switch from your Emacs environment
Hi all,
Does anyone wanna have a look at my solution for Project Euler Problem 28?
(defn diagonal-sum [n-max]
(+ 1 (reduce +
(map (fn[n]
(reduce + (map #(- (* n n) (* % (- n 1))) (range 4
(take-nth 2 (range 3 (+ 2 n-max))
I know in the past there's been interest in the Clojure community in
participating in Google's Summer of Code program. LispNYC has been a
mentoring organization for SoC a number of times, and though we missed the
last couple of years, we're gearing up to participate again in 2011. Right
now we'
2011/2/15 Michael Ossareh :
>
>
> On Mon, Feb 14, 2011 at 16:50, Scott Jaderholm wrote:
>>
>> On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel
>> wrote:
>>>
>>> Hi,
>>>
>>> Although Emacs is a great environment for writing Clojure code and
>>> Leiningen/Cake makes Maven builds less painful, you sti
24 matches
Mail list logo