Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (591)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3
  ignore  |  Print  
  Vote for Structs!  (Read 11193 times)
0 Members and 1 Guest are viewing this topic.
Offline markuskidd

Junior Devvie


Medals: 1



« Reply #30 - Posted 2003-04-09 17:21:21 »

since there is only your short comment at the bottom, i think if you put some more expanation in there as another comment it's going to be pretty visable..
Offline shawnkendall

Senior Devvie





« Reply #31 - Posted 2003-04-10 13:04:19 »

It didn't make it today. :-(

http://developer.java.sun.com/developer/bugParade/top25rfes.html

It's got 100 votes but other went up as well.
So close. :-P

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline shawnkendall

Senior Devvie





« Reply #32 - Posted 2003-04-17 09:55:24 »

Ok GAME ON!
http://developer.java.sun.com/developer/bugParade/top25rfes.html

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline shawnkendall

Senior Devvie





« Reply #33 - Posted 2006-02-15 13:38:08 »

Hi all,
Well I got a special email in my inbox today.

"The following bug(s) that you are watching in the Bug Database have been updated.

To view their details, please visit the following urls:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4820062
Updated field(s): Category"

If you check it, it now says:

Bug ID:       4820062
Votes              318
Synopsis    Provide "struct" syntax in the Java language
Category    java:classes_nio

WOO-HOO congrats to EVERYONE who voted and/or cared.
Nice job Princec, it's been a long time, but there ya go :-)

---------------------
Hmmm, after careful review, I may have jumped the gun on this.
The category changed, but that doesn't mean it's going to production so to speak. :-(
Just that it's actively being research, I s'pose that's a good thing, but not THE good thing I thought it was.
Tape at 11am....

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline c_lilian

Senior Devvie


Projects: 1


Java games will probably rock someday...


« Reply #34 - Posted 2006-02-15 13:44:24 »

unfortunately not for mustang (may be dolphin) Sad

Lilian

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #35 - Posted 2006-02-15 15:48:13 »

Nice to see that it is getting some attention.

I think they are really on the right track now.  NIO with annotations should be a great way to deal with this.

I wonder if it will lead to something like an ObjectBuffer  (much like the primitive-based IntBuffer, DoubleBuffer etc.)

1  
2  
3  
4  
5  
6  
ByteBuffer bb = ByteBuffer.allcoateDirect(size);
// following thows an exception if StructThing class is missing the needed annotations
ObjectBuffer<StructThing> objBuf = bb.asObjectBuffer(StructThing.class);
...
StructThing s = objBuff.get(0);
...

Offline shawnkendall

Senior Devvie





« Reply #36 - Posted 2006-02-15 19:05:42 »

Post that idea to the comments, or te discussion thread Cas mentions in his opening remarks...

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #37 - Posted 2006-02-16 00:30:23 »

done.

We should write a pure Java reference implementation that makes an ObjectBuffer and uses annotations to determine the offsets of the fields.  It would be slow but it might serve to get the point across better.

Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #38 - Posted 2006-02-16 11:43:37 »

That's precisely the way forward. The idea is that the VM (or classloader, or combination of both) can then use annotations and intrinsify the code at runtime into ultrafast memory access.

Cas Smiley

Online Spasi
« Reply #39 - Posted 2006-02-16 12:02:20 »

I came across something interesting this morning.

Quote
You already know how to use libraries (jar files) when compiling, now as annotation processing is a part of any Java compiler, libraries can use annotation processing and automatically generate boiler-plate code for you. A possible example of this is RFE 4820062. I plan to elaborate more on this in a future entry.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #40 - Posted 2006-02-16 14:07:17 »

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

Cas Smiley

Online Spasi
« Reply #41 - Posted 2006-02-21 12:29:29 »

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.
Online Riven
« League of Dukes »

« JGO Overlord »


Medals: 836
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #42 - Posted 2006-02-21 13:10:36 »

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.

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.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #43 - Posted 2006-02-21 14:05:20 »

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.

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 harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #44 - Posted 2006-02-21 14:09:44 »

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 Smiley

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #45 - Posted 2006-03-06 00:03:50 »

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 Wink.

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

malloc will be first against the wall when the revolution comes...
Offline ryanm

Senior Devvie


Projects: 1
Exp: 15 years


Used to be bleb


« Reply #46 - Posted 2006-03-06 10:24:29 »

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

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #47 - Posted 2006-03-06 10:34:25 »

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

Cas Smiley

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #48 - Posted 2006-03-06 10:57:34 »

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.

malloc will be first against the wall when the revolution comes...
Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #49 - Posted 2006-03-06 12:24:32 »

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

Cas Smiley

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #50 - Posted 2006-03-06 12:39:41 »

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. Huh

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #51 - Posted 2006-03-06 13:56:56 »

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. Huh

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 Sad

malloc will be first against the wall when the revolution comes...
Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #52 - Posted 2006-03-07 11:13:10 »

Why not post the rant ok a wiki?

Cas Smiley

Offline chronos

Senior Newbie





« Reply #53 - Posted 2006-03-09 10:38:26 »

Hello everyone.

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

Thanks
Online Riven
« League of Dukes »

« JGO Overlord »


Medals: 836
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #54 - Posted 2006-03-09 12:28:52 »

Definitly not in Mustang

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline chronos

Senior Newbie





« Reply #55 - Posted 2006-03-09 12:34:55 »

I'm guessing that means we're all going to have to wait a long long time...
Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #56 - Posted 2006-03-09 13:16:14 »

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

Cas Smiley

Offline chronos

Senior Newbie





« Reply #57 - Posted 2006-03-09 13:45:51 »

How much faster could it make lwjgl if we had it?
Online Riven
« League of Dukes »

« JGO Overlord »


Medals: 836
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #58 - Posted 2006-03-09 15:22:11 »

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.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #59 - Posted 2006-03-09 16:44:06 »

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 Smiley

Pages: 1 [2] 3
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (34 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (66 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!