Benchmarking Smalltalk on JVM
Mark Roos
mroos at roos.com
Wed Feb 1 19:45:05 PST 2012
>From charles
Ahh, ok, I figured it was something like that. So is your code
there
actual code, or is it what you compile the code as when you
realize
the value won't escape?
FWIW, I have done experiments with using enumerators instead of
integer loops
This is actual code as I am trying to keep to the Smalltalk model of a
very simple
direct compile. So I depend on the programmer to indicate the mutable
integers and
to use appropriate methods. There are a few places where the compiler
does create
an enumerator behind the scene where I will automatically generate similar
code to what
you are. In this case the integers are not visible so its an easy catch.
I have been toying with 'typed' Smalltalk methods where I could go
directly to static java but
I have not tried that yet
thanks
mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120201/40522ba0/attachment.html
More information about the mlvm-dev
mailing list