Vote for Structs!

I posted on his blog; hopefully will be able to discuss with him about our use-cases and the implementation.

Cas :slight_smile:

Have you seen the latest evaluation update?

[quote]So do us a favor and let us know what is wrong with the performance of the java.nio buffers if it doesn’t meet your needs. That is a realistic way of solving your problems. Asking for C structs is not.
[/quote]

[quote]So do us a favor and let us know what is wrong with the performance of the java.nio buffers if it doesn’t meet your needs. That is a realistic way of solving your problems. Asking for C structs is not.
[/quote]
A reply with such attitude is hard to believe to be official from Sun. Yet it is… it sounds like somebody took a personal offense regarding this request.

And we’re not even asking for C-structs. A StructBuffer or an ObjectBuffer is a whole different thing, the only thing they share is the name, which might be the most important reason it gets so much hostile reactions.

[/quote]
I’d post a new artikel, forget about the votes adleast theres clarity then and just post a link to it in a comment. It seems sun is getting lost in the 4 pages of comments.

It’s a reply typical of someone not directly involved in the problem domain. Unfortunately so few people are … chicken an egg situation: nobody uses Java for this stuff because it’s such a pain and a lot slower than C, so there are no people with a problem…

…I am corresponding with Peter von der Ahé, who I believe is a VM engineer, on the subject. I will CC Jeff K. in on it because he understands what the RFE is about.

Cas :slight_smile:

Since I’m far too lazy to maintain a proper website at the moment…I wrote an impromptu monologue the other week on structs, at far too late/early in the morning. Might be crap. Seemed to make sense at the time ;).

http://protopage.com/a-d-a-m (click the number 2 in bottom right corner)

I cannot for the life of me find this number 2 that you refer to. Any chance of more hints?

Me either. Page doesn’t even display at all in Opera 8.5…

Cas :slight_smile:

Gah. Don’t know what happened - probably I had it open on another window too, and closed the windows in wrong order after I’d made page 2 visible, causing it to re-hide the second page (makes it private). Fixed now.

I might have to paraphrase you in my first blog entry (www.puppygames.net/blog)… :slight_smile:

Cas :slight_smile:

Horrible website aside, that was getting quite interesting to read but then seemed to stop only halfway though and without actually making any kind of point. ???

Yeah, I just noticed that too. I have a horrible feeling I just got bitten by a POST form limit on a J2EE server. Grr.

PS: horrible website == why I said I was being lazy. Not my site, just a place where I can conveniently login and edit a webpage on the fly through my browser. It’s not intended to be used for this, but I’m having server + domain issues I haven’t got time to fix right now :frowning:

Why not post the rant ok a wiki?

Cas :slight_smile:

Hello everyone.

Just wondering if were going to see structs in mustang or dolphin?

Thanks

Definitly not in Mustang

I’m guessing that means we’re all going to have to wait a long long time…

There are rumours about it making it into Java 7 but don’t hold your breath.

Cas :slight_smile:

How much faster could it make lwjgl if we had it?

It has little to do with LWJGL, and it depends on your bottleneck anyway. If your bottleneck is fillrate then it won’t help a single bit.

If you buy a harddisk that’s twice as fast as your current one, how much faster does that make your browser?

The “structs” will however be about as fast as field-access (if they implement it right), without the overhead of creating, storing and garbage-collecting of each object.

Not strictly true, there will always be at least one object, but my idea is to have it able to slide around inside a ByteBuffer like a window. It’s not like the “lightweight objects” proposals that IBM and some mathematical fraternities have been espousing.

It will speed up LWJGL a fair amount if you do a lot of vertex pushing - behind fillrate, geometry transfer and processing is the other big bottleneck in 3D. I suspect scenegraphs like Xith and jME will benefit by a few fps with structs - and there’s a good chance there are some opportunities to save a few megs of RAM in object overhead too. Not to mention the code will be greatly simplified.

Cas :slight_smile: