From afishionado at gmail.com Mon Sep 1 18:31:21 2008 From: afishionado at gmail.com (William Tracy) Date: Mon, 1 Sep 2008 18:31:21 -0700 Subject: What's the status? Message-ID: Hello, What's the progress on the port? The amount of traffic suggests that there hasn't been a lot of progress. :-( I am majoring in software engineering at Cal Poly State University, and am currently going through different ideas for a senior project. One of the ideas I am considering is porting AWT/Swing to Haiku. I would probably initially focus on getting the bare minimum amount of AWT code ported to support Swing. This would mean getting top-level windows working, as well as most of the painting APIs (Java2D) but ignoring most of the other AWT widgets. From there, it seems reasonable to assume that there is relatively little code in Swing that would need to be rewritten. For this to work, though, I would need the core runtime and JNI already working. Having most of java.lang and java.util working would be nice, too. (Strings and containers are nice things to have!) If I am going to turn this into a senior project, I would need to have that basic infrastructure in place within the next month, tops. Otherwise, I'm going to have to move on to another project for now. So, what progress has already been made, and is my help welcome? -- William Tracy afishionado at gmail.com -- wtracy at calpoly.edu "We need a special holiday to honor the countless kind souls with unsecured networks named 'linksys'." -- Randall Munroe From umccullough at gmail.com Mon Sep 1 21:55:04 2008 From: umccullough at gmail.com (Urias McCullough) Date: Mon, 1 Sep 2008 21:55:04 -0700 Subject: What's the status? In-Reply-To: References: Message-ID: <1e80d8750809012155o2024c9aewe689719fabc1fa9e@mail.gmail.com> 2008/9/1 William Tracy : > Hello, > > What's the progress on the port? The amount of traffic suggests that > there hasn't been a lot of progress. :-( There hasn't been :( > I am majoring in software engineering at Cal Poly State University, > and am currently going through different ideas for a senior project. > One of the ideas I am considering is porting AWT/Swing to Haiku. > > I would probably initially focus on getting the bare minimum amount of > AWT code ported to support Swing. This would mean getting top-level > windows working, as well as most of the painting APIs (Java2D) but > ignoring most of the other AWT widgets. From there, it seems > reasonable to assume that there is relatively little code in Swing > that would need to be rewritten. > > For this to work, though, I would need the core runtime and JNI > already working. Having most of java.lang and java.util working would > be nice, too. (Strings and containers are nice things to have!) > > If I am going to turn this into a senior project, I would need to have > that basic infrastructure in place within the next month, tops. > Otherwise, I'm going to have to move on to another project for now. > > So, what progress has already been made, and is my help welcome? I was in contact with Bryan Varner recently, and he has some real-life family issues that have taken priority at the moment ;) He did assure me that he would be fully willing to assist someone with the Haiku port, lending his knowledge from the Java 1.4 port to BeOS several years ago (including Java2d and swing!) An example of the progress made on BeOS: http://video.google.com/videoplay?docid=7214883528150206013 I believe some of this work may be usable to "bootstrap" the Java7 port. I think if someone is willing to step up and take the lead at this point, there's an opportunity complete with mentorship from someone who knows what needs to be done :) - Urias From Dalibor.Topic at Sun.COM Tue Sep 2 03:50:47 2008 From: Dalibor.Topic at Sun.COM (Dalibor Topic) Date: Tue, 02 Sep 2008 12:50:47 +0200 Subject: What's the status? In-Reply-To: References: Message-ID: <48BD1A87.1090804@sun.com> William Tracy wrote: > Hello, > > What's the progress on the port? The typical challenge when porting to a new platform is that bootstrapping requires a recent enough C++ compiler, and a recent enough Java compiler and implementation, since some parts of the build system require a Java compiler (and the only useful ones for the task are written in Java). I spoke with Andrew Bachmann a few months ago, who was at the time travelling, and working on removing the dependency on Java in the bootstrapping process. He had a patch that translated the MakeDeps program into C++, though I don't think the patch has been published yet. Meanwhile, we have mercurial access enabled to the OpenJDK repositories, so it shouldn't be too hard to clone the OpenJDK 7 tree, apply the patch, and get started with the port. cheers, dalibor topic -- ******************************************************************* Dalibor Topic Tel: (+49 40) 23 646 738 Java F/OSS Ambassador AIM: robiladonaim Sun Microsystems GmbH Mobile: (+49 177) 2664 192 Nagelsweg 55 http://openjdk.java.net D-20097 Hamburg mailto:Dalibor.Topic at sun.com Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht M?nchen: HRB 161028 Gesch?ftsf?hrer: Thomas Schr?der, Wolfgang Engels, Dr. Roland B?mer Vorsitzender des Aufsichtsrates: Martin H?ring From andrewbachmann at gmail.com Tue Sep 2 10:36:18 2008 From: andrewbachmann at gmail.com (Andrew Bachmann) Date: Tue, 2 Sep 2008 10:36:18 -0700 Subject: What's the status? In-Reply-To: References: Message-ID: <9cf4bb560809021036q6f852660ub174b54464d6966b@mail.gmail.com> Hi William, As dalibor topic wrote, I'm currently working on patches for multiplatform building without requiring java as part of the build system. In particular, I'm working on the MakeDeps tool which is used to manage dependencies for the build system. I've transliterated the tool into C++ from Java and it works for Haiku, BeOS, and Ubuntu Linux. (platforms I personally tested) I am in the midst of translating portions of the tool to windows so that the build system won't have a Java and C++ version that need to be maintained side by side. You're more than welcome to help with this part of the task. Alternatively, there are some other parts of the build system that presuppose an existing java executable. I believe that removing the java requirement from these would also be somewhat straightforward but still interesting to do. In the area that you referred to, we actually have quite a lot done already from java 1.4. Unfortunately, without the build system going, you can't practically test any contributions that you could make. Andrew On Mon, Sep 1, 2008 at 6:31 PM, William Tracy wrote: > Hello, > > What's the progress on the port? The amount of traffic suggests that > there hasn't been a lot of progress. :-( > > I am majoring in software engineering at Cal Poly State University, > and am currently going through different ideas for a senior project. > One of the ideas I am considering is porting AWT/Swing to Haiku. > > I would probably initially focus on getting the bare minimum amount of > AWT code ported to support Swing. This would mean getting top-level > windows working, as well as most of the painting APIs (Java2D) but > ignoring most of the other AWT widgets. From there, it seems > reasonable to assume that there is relatively little code in Swing > that would need to be rewritten. > > For this to work, though, I would need the core runtime and JNI > already working. Having most of java.lang and java.util working would > be nice, too. (Strings and containers are nice things to have!) > > If I am going to turn this into a senior project, I would need to have > that basic infrastructure in place within the next month, tops. > Otherwise, I'm going to have to move on to another project for now. > > So, what progress has already been made, and is my help welcome? > > -- > William Tracy > afishionado at gmail.com -- wtracy at calpoly.edu > > "We need a special holiday to honor the countless kind souls with > unsecured networks named 'linksys'." > -- Randall Munroe > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/haiku-port-dev/attachments/20080902/d74af5dc/attachment.html From afishionado at gmail.com Tue Sep 2 19:25:51 2008 From: afishionado at gmail.com (William Tracy) Date: Tue, 2 Sep 2008 19:25:51 -0700 Subject: What's the status? In-Reply-To: <9cf4bb560809021036q6f852660ub174b54464d6966b@mail.gmail.com> References: <9cf4bb560809021036q6f852660ub174b54464d6966b@mail.gmail.com> Message-ID: Okay, I obviously have no idea what was going on in the pre-Haiku BeOS days. :-P Question: Is Jikes not up to the task of compiling the Java code in the JDK? -- William Tracy afishionado at gmail.com -- wtracy at calpoly.edu "We need a special holiday to honor the countless kind souls with unsecured networks named 'linksys'." -- Randall Munroe From andrewbachmann at gmail.com Tue Sep 2 20:45:37 2008 From: andrewbachmann at gmail.com (Andrew Bachmann) Date: Tue, 2 Sep 2008 20:45:37 -0700 Subject: What's the status? In-Reply-To: References: <9cf4bb560809021036q6f852660ub174b54464d6966b@mail.gmail.com> Message-ID: <9cf4bb560809022045g2c973baq56582daadf096092@mail.gmail.com> Hi William, Last time we tried it Jikes was fine for compiling the code. Jikes doesn't support the generics of java 5 though. (unless something changed recently) So, we may have to un-generic some of the code if we use Jikes. I'm not sure if Jikes is intended to be maintained at this point or not. You might find it interesting to add some java 5 support to Jikes. I know that it would be a benefit to our project. With an external javac and the openjdk jvm, we can bootstrap the openjdk javac which is written in java. Andrew On Tue, Sep 2, 2008 at 7:25 PM, William Tracy wrote: > Okay, I obviously have no idea what was going on in the pre-Haiku BeOS > days. :-P > > Question: Is Jikes not up to the task of compiling the Java code in the > JDK? > > > -- > William Tracy > afishionado at gmail.com -- wtracy at calpoly.edu > > "We need a special holiday to honor the countless kind souls with > unsecured networks named 'linksys'." > -- Randall Munroe > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/haiku-port-dev/attachments/20080902/9aaa9191/attachment.html From Dalibor.Topic at Sun.COM Wed Sep 3 11:00:39 2008 From: Dalibor.Topic at Sun.COM (Dalibor Topic) Date: Wed, 03 Sep 2008 20:00:39 +0200 Subject: What's the status? In-Reply-To: <9cf4bb560809022045g2c973baq56582daadf096092@mail.gmail.com> References: <9cf4bb560809021036q6f852660ub174b54464d6966b@mail.gmail.com> <9cf4bb560809022045g2c973baq56582daadf096092@mail.gmail.com> Message-ID: <48BED0C7.20009@sun.com> Andrew Bachmann wrote: > Hi William, > > Last time we tried it Jikes was fine for compiling the code. Jikes > doesn't support the generics of java 5 though. (unless something > changed recently) So, we may have to un-generic some of the code if > we use Jikes. I'm not sure if Jikes is intended to be maintained at > this point or not. You might find it interesting to add some java 5 > support to Jikes. I know that it would be a benefit to our project. > With an external javac and the openjdk jvm, we can bootstrap the > openjdk javac which is written in java. Jikes is unmaintained, and has been effectively dormant since 2005, at least. It lacks support for generics, and annotations would likely be an interesting problem, too. De-annotating & de-generifying the OpenJDK class library too would be a lot of work of unlikely benefit, since the tools themselves, like Javac, use Java 1.5 features. You should be better off taking IcePick from http://icedtea.classpath.org/wiki/IcePick and bootstrapping using that on an existing JVM, assuming there is one for Haiku. If there is no JVM for Haiku that can run ecj and IcePick, you could consider starting the bootstrapping effort by first porting GNU Classpath & Kaffe, Cacao, JamVM, etc. to Haiku, to get a bootstrap VM for running ecj, and then going forward with IcePick. Alternatively, you should consider using a JVM on Linux for bootstrapping purposes, as discussed in http://landonf.bikemonkey.org/code/java/Porting_To_FreeBSD_Sparc.20080204.html . cheers, dalibor topic -- ******************************************************************* Dalibor Topic Tel: (+49 40) 23 646 738 Java F/OSS Ambassador AIM: robiladonaim Sun Microsystems GmbH Mobile: (+49 177) 2664 192 Nagelsweg 55 http://openjdk.java.net D-20097 Hamburg mailto:Dalibor.Topic at sun.com Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht M?nchen: HRB 161028 Gesch?ftsf?hrer: Thomas Schr?der, Wolfgang Engels, Dr. Roland B?mer Vorsitzender des Aufsichtsrates: Martin H?ring From bryan at varnernet.com Wed Sep 3 20:08:52 2008 From: bryan at varnernet.com (Bryan Varner) Date: Wed, 03 Sep 2008 23:08:52 -0400 Subject: Public Status Report... Message-ID: <48BF5144.7090604@varnernet.com> Consider this a sincere apology from me on not taking the charge and leading this effort to date. As a small update on the progress so far.... The last I heard from Andrew he was able to run the 1.4.1 port to R5 on Haiku, and was using that to bootstrap the build for OpenJDK. I have not had time to keep up with Haiku builds, much less devote any time to working on this port. That said, I'd certainly hate to see this effort die. If there's anyone else out there who'd like to take charge, I'll be more than happy to assist in a sort of hand-off. Barring that, I have no idea when, or if, real life will ever slow down for me to the point where I'll have time to devote to this project, or others like it, again. If anyone else has status updates, feel free to jump in and speak up. I'd like to hear if anyone else has tried, or is trying, to build on Haiku. -Bryan