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 noid@gmail.com 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].
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
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
On Sun, Feb 13, 2011 at 5:50 PM, Jarl Haggerty jarlhagge...@gmail.com 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
On Feb 13, 7:50 pm, Jarl Haggerty jarlhagge...@gmail.com 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
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
2011/2/8 Brian Marick mar...@exampler.com:
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
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
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=pidigitslang=javaid=4
(class GmpUtil is near the end of the program -- here is a copy)
class GmpUtil {
static {
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
`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 without
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,
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,
On Feb 14, 4:32 pm, cej38 junkerme...@gmail.com 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.
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 juer...@hoetzel.info 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
On Mon, Feb 14, 2011 at 16:50, Scott Jaderholm jaderh...@gmail.com wrote:
On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel juer...@hoetzel.infowrote:
Hi,
Although Emacs is a great environment for writing Clojure code and
Leiningen/Cake makes Maven builds less painful, you still had to
switch
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
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
2011/2/15 Michael Ossareh ossa...@gmail.com:
On Mon, Feb 14, 2011 at 16:50, Scott Jaderholm jaderh...@gmail.com wrote:
On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel juer...@hoetzel.info
wrote:
Hi,
Although Emacs is a great environment for writing Clojure code and
Leiningen/Cake makes
22 matches
Mail list logo