Hi,

Am 14.08.2009 um 02:56 schrieb fft1976:

With type hints, you can get Java (?) code to run EXACTLY the same
speed as Java, so Clojure is FAST.

I think there is a simple misunderstanding here.

I think, what Rich means, is that if you provide
type hints, the methods calls on an object work
directly. Otherwise (if the Compiler can't figure
out the type of the object) reflection is used,
which is slower.

This is indeed a feature, as I understand, that
other JVM based scripting languages like
JRuby or Groovy or so (don't nail me down on
specifics, I don't know for sure) use wrapper
objects and different methods imposing a
runtime hit on performance.

So if I have in Java: foo.frobnicate(), then the
equivalent hinted (.frobnicate #^Bar foo) will
be exactly as fast.

This is a different "fast" than comparing an Array
with a PersistentVector.

But maybe I think too much. So ignore at will.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to