From: Andrew H. <a.s...@gm...> - 2011-03-05 01:02:25
|
I've been in the xmlvm mailing list for a while. Im am now starting a port of a complex standard java application to the iphone using xmlvm. It does currently run on android but most of it was developed under linux (Just added a GUI for the android) After reading the mailing list and the documentation I'm a bit confused. The documentation doesn't mention the C or posix targets. The mailing list suggests using the posix target as it has translated most of Harmony. Posix sounds great as when I last tried this with the Obj-C version it had too many standard bits missing (System.err, java.util.Hashtable ...) Now for the questions. 1. What is the difference between the posix target and C target 2. What target would the group recommend for porting a standard java application with minimal GUI's, lots of complex multi-threaded algorithms, networking and audio processing ? Any assistance/advice greatly appreciated. Andrew |
From: Sascha H. <sa...@xm...> - 2011-03-05 02:53:58
|
On Fri, Mar 4, 2011 at 5:01 PM, Andrew Hodgson <a.s...@gm...>wrote: > I've been in the xmlvm mailing list for a while. > > Im am now starting a port of a complex standard java application to the > iphone using xmlvm. > > It does currently run on android but most of it was developed under linux > (Just added a GUI for the android) > > After reading the mailing list and the documentation I'm a bit confused. > > The documentation doesn't mention the C or posix targets. The mailing list > suggests using the posix target as it has translated most of Harmony. > That is correct. The reason the documentation doesn't mention C or Posix yet is because these targets are still in development and not yet recommended for general use, although you are of course happy to try them out. > > Posix sounds great as when I last tried this with the Obj-C version it had > too many standard bits missing (System.err, java.util.Hashtable ...) > Yes so with the move to C one of the things we do is cross-compile most of Harmony, which should enable you to use most classes from the standard JDK. > > Now for the questions. > > 1. What is the difference between the posix target and C target > > The C target will just take every class you feed it and spit out c files. Not more and not less. The POSIX target does more. It's goal is to spit out a whole project that contains all JDK dependencies that your app needs and a MakeFile that you can simply use to build your app. If you want to target the iPhone, then there is one more target (or for you it's actually the only one) that is important: iphonecandroid. Once these targets are more complete and stable, we will most deprecate the ObjC targets and move everybody to the C backend. > > 1. What target would the group recommend for porting a standard java > application with minimal GUI's, lots of complex multi-threaded algorithms, > networking and audio processing ? > > I leave it to the people actually working on these parts right now to reply with more detail, but I know that the C backend will probably not enable this quite yet. I know that Wolfgang is working on getting networking going right now. I don't think we touched audio processing with the C backend yet at all. With the ObjC backend you might have more luck, but again I leave it to Arno, Wolfgang and Panayotis to give the details. But at least we were able to to cross-compile apps with networking and audio in the past. I guess it depends on the exact API you are using and whether the ObjC compat lib supports those. > > > Any assistance/advice greatly appreciated. > > > Andrew > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Arno P. <ar...@pu...> - 2011-03-05 03:40:37
|
On 3/4/11 5:01 PM, Andrew Hodgson wrote: > 2. What target would the group recommend for porting a standard java > application with minimal GUI's, lots of complex multi-threaded > algorithms, networking and audio processing ? to add to Sascha's comments: if you are just trying to cross-compile some self-contained Java code, the C backend is already superior to the Objective-C backend. We are still shaking out some bugs with multi-threading and exception handling, but by and large it is usable. What will need more work is the conversion of the iOS API for the C backend. Here the Objective-C backend is still more complete. I will send updates over the mailing list when we reach certain milestones. Arno |
From: Andrew H. <a.s...@gm...> - 2011-03-07 03:46:57
|
Thanks for your help. Becoming clearer. Just one more query. Our java project is made up of lots of separate jars and Linux or Android GUI's that brings in appropriate bits. Ideally we would like to follow the same model on the iPhone. I.e convert each jar it a libX.a & X/*.h and then bring them into the various apps. Is this possible using XMLVM and if so, how would you recommend doing it. Andrew On Sat, Mar 5, 2011 at 2:17 PM, Arno Puder <ar...@pu...> wrote: > > > On 3/4/11 5:01 PM, Andrew Hodgson wrote: > > 2. What target would the group recommend for porting a standard java > > application with minimal GUI's, lots of complex multi-threaded > > algorithms, networking and audio processing ? > > to add to Sascha's comments: if you are just trying to cross-compile > some self-contained Java code, the C backend is already superior to the > Objective-C backend. We are still shaking out some bugs with > multi-threading and exception handling, but by and large it is usable. > What will need more work is the conversion of the iOS API for the C > backend. Here the Objective-C backend is still more complete. > > I will send updates over the mailing list when we reach certain milestones. > > Arno > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- Andrew Hodgson C.T.O Real Thing Entertainment Pty Ltd 40/135 Cardigan St Carlton Victoria 3053 Australia Phone: 0411 79 36 26 Fax: (03) 8640 0624 Email: and...@re... |