Re: [jvm-l] GC, allocation, cache effects, immutables, numerics!

2009-11-17 Thread Attila Szegedi
On 2009.11.16., at 23:27, Charles Oliver Nutter wrote: Another wrinkle is the use of immutable structures, as in Clojure. I'm curious whether such systems generate more garbage than those that permit the use of in-place-mutable structures (seems to me that they would) Certainly - computation

[jvm-l] Re: GC, allocation, cache effects, immutables, numerics!

2009-11-17 Thread Rich Hickey
On Nov 16, 11:09 pm, Charles Oliver Nutter head...@headius.com wrote: On Mon, Nov 16, 2009 at 6:45 PM, John Cowan johnwco...@gmail.com wrote: In the end the answer will be fixnums. As things stand, Integers are so slow that BigIntegers aren't much slower: consequently, I decided, since I

Re: [jvm-l] GC, allocation, cache effects, immutables, numerics!

2009-11-17 Thread Charles Oliver Nutter
On Tue, Nov 17, 2009 at 4:46 AM, Attila Szegedi szege...@gmail.com wrote: On a side note, I had an interesting discussion with Cam Purdy and Rich Hickey back in Aarhus this year about VM design. One thing that came up is that it'd be really beneficial if GC could know that an object is

Re: [jvm-l] Re: GC, allocation, cache effects, immutables, numerics!

2009-11-17 Thread logicmoo
One old fixnum solution proposed by Per Bothner many years ago (he is on this mailing list so he might know the PDF he wrote I am referring to?) Whenever I read something,my mind often over paraphrases things (even makes up it's own version!) but I walked away with this The primitive types that

Re: [jvm-l] Re: GC, allocation, cache effects, immutables, numerics!

2009-11-17 Thread Charles Oliver Nutter
On Tue, Nov 17, 2009 at 11:37 AM, logic...@gmail.com wrote: One old fixnum solution proposed by Per Bothner many years ago (he is on this mailing list so he might know the PDF he wrote I am referring to?) Whenever I read something,my mind often over paraphrases things (even makes up it's

Re: [jvm-l] Re: GC, allocation, cache effects, immutables, numerics!

2009-11-17 Thread Andrew Oliver
This is something that might be a good candidate for openjdk and/or icedtea. The only problem is the build seems to be regularly broken in the repository. It would be really interesting to have a few research forks with various improvements to primitives. On Tue, Nov 17, 2009 at 11:55 PM,