Re: hardware opengl success
Interesting. I'm curious if you (or anyone else) have tried any other OpenGL bindings for Java, like Magician, Sparrow, Jogl etc. under Linux and compared them to GL4Java (running XFree86 4.x.x). I'm mostly interested in performance aspects as I only use basic OpenGL functionality. > Slightly off topic, but I was able to get a opengl > card to work under linux and call it successfully from Java. > This took about 1.5 days of configuring, between Xfree86 4 and > the particular card. The result is dramatically faster for > textured renders. > > Particulars are: > RH6.2, > added Xfree86 4.0.0 > Nvidia Geforce2 chip (Elsa card), using their closed-source driver > (an expert told me this is the current fastest card for my application) > Calling thru the latest GL4Java, from several jdks including the > latest 1.3. -- | Jesper Nordenberg, M.Sc. in C.S.E., [EMAIL PROTECTED] | NNL Technology AB, www.nnl.se | Phone: +46 13 211400 Mobile: +46 70 9689374 | Address: Teknikringen 1B, S-58330 Linköping, SWEDEN -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: hardware opengl success
Hi, On Tue, Jul 04, 2000 at 09:42:40PM -0700, noisebrain wrote: > RH6.2, > added Xfree86 4.0.0 > Nvidia Geforce2 chip (Elsa card), using their closed-source driver > (an expert told me this is the current fastest card for my application) You are posting faster than me. ;-) Nevertheless, I got the exact same configuration running here since yesterday. The performance is amazing (really). Not all OpenGL functionality seems to be implemented correctly right now, however most things seem to work (including Alpha-Blending, which is extremely important to us) and the thing runs very stable so far. Another configuration that works is Matrox G400 with 3D Accelerated-X from Xi-Graphics. However, we have not extensively tested this configuration yet. > Calling thru the latest GL4Java, from several jdks including the > latest 1.3. We are still using Java3D with Blackdown JDK1.2.2rc4 or alternatively JDK1.3.0 beta from SUN. Both work. We have also tested GL4Java, but hope that Java3D is fast enough for our application, because it is far more easy to cope with. > Java Swingset and such still run fine but this card does not > speed up java2d significantly. Unfortunately. Amongst other things we abuse Java3D for Cross-Fading between 2D components. Does anyone know a better solution (other than JNI)? bye... Andreas Micklei P.s. On the LinuxTag I have seen the new Linux boxes from SGI. SGI claims them to be roughly eighty percent faster than a normal PC equipped with a GeForce2. They also have their own drivers. Has anyone tested these? -- Andreas Micklei IVISTAR Kommunikationssysteme AG Ehrenbergstr. 19 / 10245 Berlin http://www.ivistar.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: String manipulation
Hi brEezE, I am new to this list. I don't know if this will suffice your requirement. Anyway, Why don't you try StringBuffer class? You can use it like this, StringBuffer sb=new StringBuffer(); sb.append("SELECT COF_NAME, "); sb.append("SALES FROM COFFEES "); stmt.executeQuery(sb.toString()); Moreover, the "+" sign is actually over loaded in JAVA. Internally, for every "+" a string buffer is instantiated and does what I have shown above. So using string buffer would be more efficient. regards Tony P. brEezE wrote: Hi all, I have a dummy question regaring a double-quoted string written in multiple line. Here is what I have been doing: stmt.executeQuery( "SELECT COF_NAME, " + "SALES FROM COFFEES " ); Is there a way to to eliminate the '+' sign by doing something like below? stmt.executeQuery( "SELECT COF_NAME, \ SALES FROM COFFEES " ); I know the code cannot be compiled, but is there any substitution to the escape character above? Many thanks in advance. __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- - Tony Judy Paul, Software Engineer, AdventNet Development Centre (I) Pvt.Ltd, 13A, Kaashyap Enclave, Velacherry Main Road, Velacherry. Chennai-600042 E-mail: [EMAIL PROTECTED] Phone: 2432414-419 -
Re: Serious bug in System.identityHashCode() found.
Miles Sabin wrote: > > Apart from anything else, hashCodes are ints, so there are at > most 2^32 distinct ones. A 64 bit implementation could support > more that 2^32 objects, in which case there'd have to be some collisions. This is not quite correct; only 21 bits are used for the HashCode. In 1.3 this is supposed to be changed to 23 or 27. The JVM desinges and the library designers realize this is a problem, and even though the library guys want more that that (bits), the JVM people have said it isn't likely to happen until 1.4, which is when they may have a 64 bit JVM. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JNI_CreateJavaVM() == -1
Hi, I'm getting started trying to use the JNI from a C++ program. JNI_CreateJavaVM() returns -1. Not much info there except that it has failed. Any clues as to where to begin debugging this? I'm using the examples from the Gordon book on JNI. Does someone have a JNI hello world for the Blackdown distribution? I don't see anything in the demo directory. thanks, chris -- Chris Cross IBM West Palm Beach [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JNI_CreateJavaVM() == -1
> "chris" == chris <[EMAIL PROTECTED]> writes: chris> I'm getting started trying to use the JNI from a C++ chris> program. JNI_CreateJavaVM() returns -1. Not much info chris> there except that it has failed. Any clues as to where to chris> begin debugging this? I'm using the examples from the chris> Gordon book on JNI. Does someone have a JNI hello world for chris> the Blackdown distribution? I don't see anything in the chris> demo directory. There are some examples in the FAQ: http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-4.html#ss4.5 Juergen -- Juergen Kreileder, Blackdown Java-Linux Team http://www.blackdown.org/java-linux.html JVM'01: http://www.usenix.org/events/jvm01/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: THEY WORK AGAIN!!!
Could you tell me for the URL is? THank you, JAcob Nikom Patrick Ohnewein wrote: > > Ohh the links work now > > I guess they just had a server crash > > cu patrick > > Patrick Ohnewein wrote: > > > > I posted a report to IBM reporting the problem, I've got the response > > they forwarded the report to the webmaster :-<, may be I will ever get > > to a download :-) > > > > cu patrick > > > > p.s. I will check the links again later, may be there was just a server > > down, may be they us MS servers :-) > > > > Julio Cesar Aguilar Cabrera wrote: > > > > > > > Some of u managed to download the packages?? > > > > > > I did download the RPM package (27+Mb) without a problem. > > > I installed it but had time for nothing else. > > > > > > -- > > > Julio Cesar Aguilar Cabrera > > > [EMAIL PROTECTED] > > > Laboratorio Nacional de Informatica Avanzada > > > Xalapa, Veracruz, Mexico. > > > > > > -- > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- > > - > > Save software competition, use Linux and Java! > > mailto:[EMAIL PROTECTED] > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > - > Save software competition, use Linux and Java! > mailto:[EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: String manipulation
On Wed, 5 Jul 2000, Tony J. Paul wrote: > Hi brEezE, > > I am new to this list. I don't know if this will suffice your > requirement. Anyway, Why don't you try StringBuffer class? You can use > it like this, > > StringBuffer sb=new StringBuffer(); > sb.append("SELECT COF_NAME, "); > sb.append("SALES FROM COFFEES "); > stmt.executeQuery(sb.toString()); > I recall reading somewhere that the following code is optimized by javac (roughly) into the form you provided just above: String s; s = "SELECT COF_NAME, "; s += "SALES FROM COFFEES "); s += "WHERE COF_NAME = 'Starbucks'"; stmt.executeQuery(s); In other words, the compiler optimizes successive calls to the += operator into StringBuffer.append() calls without creating a bunch of intermediate objects. Does javac actually do this, or do I need to go back to the ugly StringBuffer idiom for efficiency? > Moreover, the "+" sign is actually over loaded in JAVA. Internally, > for every "+" a string buffer is instantiated and does what I have shown > above. So using string buffer would be more efficient. > > regards > > Tony P. > > > > brEezE wrote: > > > Hi all, I have a dummy question regaring a > > double-quoted string written in multiple line. > > Here is what I have been doing: > > stmt.executeQuery( "SELECT COF_NAME, " + > >"SALES FROM COFFEES " ); > > > > Is there a way to to eliminate the '+' sign by doing > > something like below? > > > > stmt.executeQuery( "SELECT COF_NAME, \ > > SALES FROM COFFEES " ); > > > > > > I know the code cannot be compiled, but is there any > > substitution to the escape character above? > > > > Many thanks in advance. > > > > __ > > Do You Yahoo!? > > Kick off your party with Yahoo! Invites. > > http://invites.yahoo.com/ > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- > - > > Tony Judy Paul, > > Software Engineer, > > AdventNet Development Centre (I) Pvt.Ltd, > > 13A, Kaashyap Enclave, > > Velacherry Main Road, > > Velacherry. > > Chennai-600042 > > E-mail: [EMAIL PROTECTED] > > Phone: 2432414-419 > > - > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: THEY WORK AGAIN!!!
http://www.ibm.com/java/jdk/linux130/ On Wed, 5 Jul 2000, Jacob Nikom wrote: > Could you tell me for the URL is? > > THank you, > > JAcob Nikom > > Patrick Ohnewein wrote: > > > > Ohh the links work now > > > > I guess they just had a server crash > > > > cu patrick > > > > Patrick Ohnewein wrote: > > > > > > I posted a report to IBM reporting the problem, I've got the response > > > they forwarded the report to the webmaster :-<, may be I will ever get > > > to a download :-) > > > > > > cu patrick > > > > > > p.s. I will check the links again later, may be there was just a server > > > down, may be they us MS servers :-) > > > > > > Julio Cesar Aguilar Cabrera wrote: > > > > > > > > > Some of u managed to download the packages?? > > > > > > > > I did download the RPM package (27+Mb) without a problem. > > > > I installed it but had time for nothing else. > > > > > > > > -- > > > > Julio Cesar Aguilar Cabrera > > > > [EMAIL PROTECTED] > > > > Laboratorio Nacional de Informatica Avanzada > > > > Xalapa, Veracruz, Mexico. > > > > > > > > -- > > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > > > -- > > > - > > > Save software competition, use Linux and Java! > > > mailto:[EMAIL PROTECTED] > > > > > > -- > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- > > - > > Save software competition, use Linux and Java! > > mailto:[EMAIL PROTECTED] > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Where can I download a complete Java-Linux source codes?
Hi I am new to J2SE 1.2.2 for Linux (Blackdown). I have downloaded jdk1.2.2 source codes form www.sun.com. However, as mentioned in the jdk1.2.2 RC4 README document ( " The stock JDK source distribution from Sun won't build on Linux" ), I could not re-build the source code. I found errors during my rebuilding. I don't know where can I download a patch (a set of diffs which described in README document). Could any one please tell me where can I download the patch file or a completed jdk1.2.2 source code for Linux. Thanks in advance Regards, Erik - * Yu-Shing Erik Hu MSc in Software Engineering Computer Science Dept. University of York * -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: String manipulation and optimization
The java disassembler (javap -c) is a great tool for this. For example, try a slightly modified version of your code: class test { public void test() { // original example String s; s = "SELECT COF_NAME, "; s += "SALES FROM COFFEES "; s += "WHERE COF_NAME = 'Starbucks'"; System.out.println(s); // second, better example that I added s = "SELECT COF_NAME, " + "SALES FROM COFFEES " + "WHERE COF_NAME = 'Starbucks'"; System.out.println(s); } } Compile it (with -O if you want to test the optimizer (which is mostly non-existant from what I understand)) and run javap on it (output below). As you can see, the code is not quite as optimized as you originally hoped, there are two StringBuffer's individually instantiated. However, note that the second version I added (one String version with the three strings constants concatenated in a single statement) is concatenated at compile time and turns into much more efficient code. Note that this only works for string _constants_, if you are also working with variables it does create StringBuffers. I leave that as an exercise of your own "javap -c" :) enjoy! Jason Reich. C:\TEMP>javap -c test Compiled from test.java class test extends java.lang.Object { test(); public void test(); } Method test() 0 aload_0 1 invokespecial #11 4 return Method void test() 0 ldc #2 2 astore_1 3 new #8 6 dup 7 aload_1 8 invokestatic #17 11 invokespecial #12 14 ldc #1 16 invokevirtual #13 19 invokevirtual #16 22 astore_1 23 new #8 26 dup 27 aload_1 28 invokestatic #17 31 invokespecial #12 34 ldc #4 36 invokevirtual #13 39 invokevirtual #16 42 astore_1 43 getstatic #14 46 aload_1 47 invokevirtual #15 50 ldc #3 52 astore_1 53 getstatic #14 56 aload_1 57 invokevirtual #15 60 return At 12:42 PM 7/5/00 -0700, Man Chi Ly wrote: On Wed, 5 Jul 2000, Tony J. Paul wrote: > Hi brEezE, > > I am new to this list. I don't know if this will suffice your > requirement. Anyway, Why don't you try StringBuffer class? You can use > it like this, > > StringBuffer sb=new StringBuffer(); > sb.append("SELECT COF_NAME, "); > sb.append("SALES FROM COFFEES "); > stmt.executeQuery(sb.toString()); > I recall reading somewhere that the following code is optimized by javac (roughly) into the form you provided just above: String s; s = "SELECT COF_NAME, "; s += "SALES FROM COFFEES "); s += "WHERE COF_NAME = 'Starbucks'"; stmt.executeQuery(s); In other words, the compiler optimizes successive calls to the += operator into StringBuffer.append() calls without creating a bunch of intermediate objects. Does javac actually do this, or do I need to go back to the ugly StringBuffer idiom for efficiency? > Moreover, the "+" sign is actually over loaded in JAVA. Internally, > for every "+" a string buffer is instantiated and does what I have shown > above. So using string buffer would be more efficient. > > regards > > Tony P. > > > > brEezE wrote: > > > Hi all, I have a dummy question regaring a > > double-quoted string written in multiple line. > > Here is what I have been doing: > > stmt.executeQuery( "SELECT COF_NAME, " + > > "SALES FROM COFFEES " ); > > > > Is there a way to to eliminate the '+' sign by doing > > something like below? > > > > stmt.executeQuery( "SELECT COF_NAME, \ > > SALES FROM COFFEES " ); > > > > > > I know the code cannot be compiled, but is there any > > substitution to the escape character above? > > > > Many thanks in advance. > > > > __ > > Do You Yahoo!? > > Kick off your party with Yahoo! Invites. > > http://invites.yahoo.com/ > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- > - > > Tony Judy Paul, > > Software Engineer, > > AdventNet Development Centre (I) Pvt.Ltd, > > 13A, Kaashyap Enclave, > > Velacherry Main Road, > > Velacherry. > > Chennai-600042 > > E-mail: [EMAIL PROTECTED] > > Phone: 2432414-419 > > - > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Communication with Linux community
Hi, My question is little off the usual java-linux topics and relates to the activity in Linux community. My company thinks about donating some of their applications to the Linux community. Where I can look how to do it, whom to communicate with and how it is usually happens? Thank you, Jacob Nikom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Communication with Linux community
--On Wednesday, July 05, 2000 6:55 PM -0400 Jacob Nikom <[EMAIL PROTECTED]> wrote: > My question is little off the usual java-linux topics and relates > to the activity in Linux community. > > My company thinks about donating some of their applications to the > Linux community. Where I can look how to do it, whom to communicate > with and how it is usually happens? A good place to start is http://www.opensource.org/. You can always send an e-mail to ESR himself as well. --Chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Stupid JIT tricks?
Does anyone know if any of the JDKs available support the tricks that java.lang.Compiler offers? I would like to be able to selectively disable compiling so I can debug running systems without having to restart the system to turn off the JIT in order to enable line numbers. I have yet to find any documentation in either the Blackdown or IBM systems on if and how this works. Thanks. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
applet's param!
If I use the below applet tag, ie browser can view normally; but netscape can't. why? ¡CRPDDzf¢Ú#jö¥{±ê®zËcjö§$v'¢¸0ØZ²æãyËh~éì¹»®&ÞNº.nW¢{ZrÙ®VåiÉ£ è®
Re: Communication with Linux community
On Wed, 5 Jul 2000, Jacob Nikom wrote: > Hi, > > My question is little off the usual java-linux topics and relates > to the activity in Linux community. > > My company thinks about donating some of their applications to the > Linux community. Where I can look how to do it, whom to communicate > with and how it is usually happens? > > Thank you, > > Jacob Nikom You have a couple of options. The current "big clearing house" for open sourced applications is sourceforge. They provide web, CVS, and FTP service among other. You could also host the project on your own server that you admin yourself. That is what IBM did for their oss.software.ibm.com open source clearing house. Yet another option is the "new" sources.redhat.com site. It is kind of like sourceforge except that you will not find everything under the sun hosted there. Does your company just want to dump the code and never look at it again or do they plan on improving it and folding changes from the community back into the source? Also, what does your application do? That will effect who will want it. Mo DeJong Red Hat Inc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Communication with Linux community
Jacob Nikom wrote: > Hi, > > My question is little off the usual java-linux topics and relates > to the activity in Linux community. Jacob, There's no central authority for such things, but there are certainly good ways to announce and distribute your stuff. If "donating" means supplying source under open source terms, then FreshMeat (http://www.freshmeat.net) is a great forum for announcement and distribution. If you're looking to host a development and bug-tracking environment accessible to open source developers, you might check out SourceForge (http://www.sourceforge.net). If instead you mean giving away free Linux versions of proprietary software, you won't find as much help from the open source community, but there are other ways: distributing from your Web site, doing deals with distros like RedHat and Caldera... basically, the sort of stuff done by Sun StarOffice and many other such products. Nathan Meyers [EMAIL PROTECTED] > > > My company thinks about donating some of their applications to the > Linux community. Where I can look how to do it, whom to communicate > with and how it is usually happens? > > Thank you, > > Jacob Nikom > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Communication with Linux community
I would start with the major archive sites. The MIT site is still around at ftp://tsx-11.mit.edu/pub/linux/ and its been there for years. The other major US archive site is http://metalab.unc.edu which used to be sunsite.unc.edu. This is also an old site that is often the source for people who want to start making distributions of their own. Look into their archive link. They have readme and getting started how-to documents. Others in the group may want to look at the Java area. Jacob Nikom wrote: > > Hi, > > My question is little off the usual java-linux topics and relates > to the activity in Linux community. > > My company thinks about donating some of their applications to the > Linux community. Where I can look how to do it, whom to communicate > with and how it is usually happens? > > Thank you, > > Jacob Nikom > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]