You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Arno P. <ar...@pu...> - 2011-02-21 19:41:17
|
note that both problems don't exist in the C backend. String.isEmpty() is cross-compiled from the Harmony implementation and the stylesheet contains the missing byte code instruction (in xmlvm2c.xsl). That one instruction you can just copy-paste to xmlvm2objc.xsl if you want to continue using the Objective-C backend. Arno On 2/21/11 9:41 AM, Ian Frisbie wrote: > Hello, > Just wanted everyone to know that I was able to confirm that my issues > are definitely related to housing all of the compat sources file in a > cocoa static library. Once I built them directly into my project I > began to have success. Although I'd be interested to know why the > issues exist, its not a big deal for me. > I do have a couple of things to note for you: > > 1. java_langString.m has error in isEmpty: > > - (int) isEmpty__ > { > return [self length] > 0; > } > > should be == 0 > > 2. Use of the >> operator in java results in the following output from > the compiler (not associated with any particular file being processed, > just at the end): > > <dex:shr-int xmlns:dex="http://xmlvm.org/dex" > xmlns:vm="http://xmlvm.org" vx="8" vx-type="int" vy="9" vy-type="int" > vz="8" vz-type="int"/> > > The "ERROR" call is in the source file using it. Using >>> (unsigned > shift) works though. > > So far so good, getting good results from what I've built so far. Great > job with this took kit, very impressive. > > Best Regards, > > Ian > > -- > Ian D. Frisbie > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Ian F. <ifr...@gm...> - 2011-02-21 17:41:18
|
Hello, Just wanted everyone to know that I was able to confirm that my issues are definitely related to housing all of the compat sources file in a cocoa static library. Once I built them directly into my project I began to have success. Although I'd be interested to know why the issues exist, its not a big deal for me. I do have a couple of things to note for you: 1. java_langString.m has error in isEmpty: - (int) isEmpty__ { return [self length] > 0; } should be == 0 2. Use of the >> operator in java results in the following output from the compiler (not associated with any particular file being processed, just at the end): <dex:shr-int xmlns:dex="http://xmlvm.org/dex" xmlns:vm="http://xmlvm.org" vx="8" vx-type="int" vy="9" vy-type="int" vz="8" vz-type="int"/> The "ERROR" call is in the source file using it. Using >>> (unsigned shift) works though. So far so good, getting good results from what I've built so far. Great job with this took kit, very impressive. Best Regards, Ian -- Ian D. Frisbie |
From: Ian F. <ifr...@gm...> - 2011-02-21 16:04:52
|
Trying to simplify my issues related to an earlier post now I'm running into a linker error I didn't see before - not sure why yet. Anyone ever seen this when trying to link in static library with lib compat xmlvm files (objective-c) ? "_JAVA_NULL", referenced from: _JAVA_NULL$non_lazy_ptr in libTest.a(com_newsdart_client_NDxmlVmTest.o) (maybe you meant: _JAVA_NULL$non_lazy_ptr) Best Regards, Ian -- Ian D. Frisbie |
From: Ian F. <ifr...@gm...> - 2011-02-21 13:00:47
|
Hello, I have been experimenting using XMLVM to generate an iPhone compatible library from java source meant to be the API on the Android side. I'm not trying to generate a full app for the iPhone using XMLVM, just an API library. I generated the objective C files, built a library using those files and your compatability files for objective C. Now I'm trying to use that library in a native iPhone application. My problem is that the implementation categories don't seem to be referenced properly as I see two things: 1 - warning like this: : warning: incompatible Objective-C types 'struct java_lang_String *', expected 'struct java_lang_String *' when passing argument 1 of '__init_com_newsdart_client_NDApi___java_lang_String:' from distinct Objective-C type 2 - runtime selector exception on this line in the generated code for one of my classes: [((java_lang_Object*) _r2.o) __init_java_lang_Object__]; The object it is operating on is an object I instantiated in the native iPhone code using: [[class alloc] init] This class had a constructor initializer of a String object in the original java code. It was translated into the init call you see in #1 above. The code above in #2 is near the top of that function. It seems that for some reason the object that I'm creating is created using the native NSObject, and not the NSObject modified using categories by java_lang_Object. I'm confused as to how I could control this as the steps I went through were pretty straight forward. Is there some compiler option needed for implementation categories to work correctly? (either for the library I'm creating or native application using the library? I think my problem must be pretty basic. Best Regards, Ian -- Ian D. Frisbie |
From: Sascha H. <sa...@xm...> - 2011-02-15 23:04:57
|
On Wed, Feb 16, 2011 at 12:02 AM, Panayotis Katsaloulis < pan...@pa...> wrote: > > - If the Java code that I write doesn't do any GUI and I want to do all >> the UI using Interface Builder is this possible or will I have trouble >> linking the XMLVM code with Interface Builder? >> > > So the Interface Builder spits out Objective-C Code, I imagine? You would > need to do some manual work to combine that code with the one XMLVM > generates. So far we don't have very smooth support for combining manually > writte application code with cross-compiled code. > > > > The interface builder produces an XML file which is loaded at runtime from > iPhone - similar what the Android SDK does. > Unfortunately right now XMLVM does not support this XML file, since it does > not produce IBOutlet and IBAction tags, neither properties. > You have to manually edit the source file yourself, but I don't know how > easy this will be. > > It will be better to write the GUI stuff by hand in Java; it works and you > have more control over it > Ah I see, thanks for the clarification. In this case, yes, you cannot use that XML file with an XMLVM-generated project at the moment. |
From: Panayotis K. <pan...@pa...> - 2011-02-15 23:02:48
|
> - If the Java code that I write doesn't do any GUI and I want to do all the UI using Interface Builder is this possible or will I have trouble linking the XMLVM code with Interface Builder? > > So the Interface Builder spits out Objective-C Code, I imagine? You would need to do some manual work to combine that code with the one XMLVM generates. So far we don't have very smooth support for combining manually writte application code with cross-compiled code. The interface builder produces an XML file which is loaded at runtime from iPhone - similar what the Android SDK does. Unfortunately right now XMLVM does not support this XML file, since it does not produce IBOutlet and IBAction tags, neither properties. You have to manually edit the source file yourself, but I don't know how easy this will be. It will be better to write the GUI stuff by hand in Java; it works and you have more control over it |
From: Sascha H. <sa...@xm...> - 2011-02-15 22:53:35
|
Hi, On Fri, Feb 11, 2011 at 3:05 PM, <yo....@ho...> wrote: > Hello > > I have watched the Google Talk about XMLVM and would like to ask some > questions. > > - Can I use Jython with XMLVM or must I use Java? > As XMLVM is using bytecode, you should be able to use Jython, although I don't know if anybody ever tried. > > - Since XMLVM cross compiles the byte code doesn't that mean that the > resulting Objective-C code can't be modified? For instance, if I want to > make any changes I would have to go back to the original Java (or Jython) > code, make the changes and then cross compile again? > Well, nothing is stopping you from making changes to the generated code, but if you make changed to the original code, or we introduce optimizations in XMLVM, then you would need to re-generate your code and merging would become necessary. > - Can I write Objective-C code that will use variables from the XMLVM > resulting code? For example, I write the Java code to communicate with a > server sending login information (i.e. login and password) and then write > ObjC that sets those variables from user input. > First of all, will soon deprecate the ObjC backend and switch over to the much better C-Backend. However the answer is the same: Why would you not write the code that sets those variables in Java as well? > - If the Java code that I write doesn't do any GUI and I want to do all the > UI using Interface Builder is this possible or will I have trouble linking > the XMLVM code with Interface Builder? > So the Interface Builder spits out Objective-C Code, I imagine? You would need to do some manual work to combine that code with the one XMLVM generates. So far we don't have very smooth support for combining manually writte application code with cross-compiled code. > > - If I have a .jar which contains a Java API is it possible to cross > compile this library and then use the API with native ObjC? > If your JAR contains compiled classes, then you can cross-compile this with XMLVM. Using this API from within ObjC is possible, but you would need to know how to create and use cross-compiled XMLVM classes. Again, we don't have easy support for merging hand-written code with cross-compiled code. Hope that helps a bit. // Sascha |
From: Sascha H. <sa...@xm...> - 2011-02-15 17:47:48
|
Thanks Jeremiah for the detailed information. I guess what is happening is that we never had such a big class to process, which is why we never hit that limit. Is it possible to share this class with us (just send it sa...@xm..., otherwise it will hit a size limit on the list)? Then I will take a look to see whether we can optimize memory usage. Thanks! // Sascha On Sat, Feb 12, 2011 at 6:30 PM, Jeremiah Blanchard < jbl...@da...> wrote: > Hi Sascha (and others), > > I've gotten a little further now. At this point I don't think my current > machine has enough memory to actually translate the project in question > using the current version of XMLVM, but I wanted to let you know what I > found out for future reference. It's a pretty big project and I know that > XMLVM is a work in progress, so it may just be a matter of scale. When I get > to an upgrade point, or when XMLVM is a bit more mature, I'll try again. > Anyway, here's what I've found. > > It looks like one of the pre-built files - nbproject\xcode.xml - has the > setting "-Xmx512m" hard-coded in. I changed it and also added "--debug=all" > to the same file. > > However, it's still running out of memory. After some testing, I went with > 1350m - on my machine, anything more than that starts thrashing the hard > disk due to excessive paging. The memory for the java process goes up to > around 1500M or so according to top. > > Here's an abbreviated version of the output: > > > -do-xproject: > [echo] Creating Xcode project > [java] Executing > '/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java' > with arguments: > [java] '-Xmx1350m' > [java] '-jar' > ... > [java] [02/12/11 12:06:09.731] DEBUG: Forcing --enable_ref_counting > for target IPHONE > [java] [02/12/11 12:06:09.806] DEBUG: Instantiated: > org.xmlvm.proc.in.InputProcess$ClassInputProcess > ... > [java] [02/12/11 12:06:25.750] DEBUG: DEXmlvmOutputProcess-ref: > Processing method: interpretCode > > [java] [02/01/11 13:15:12.901] ERROR: Oh no, XMLVM needs more > memory. Try running with -Xmx1G. > > ... and following that, a lot of exception and stack trace info. > > The file it gets caught on is about 100K, and the function interpretCode is > about 1000 lines long and includes a large switch statement (about 140 > cases) as it is an interpreter for an instruction set. > > I'm not sure if this helps narrow it down or not. I could try to come up > with a simplified code segment that still exhibits the problem, though it > may be difficult as I have to find a way to eat up a comparable amount of > memory. :) > > Regards, > Jeremiah Blanchard > > > On Mon, Feb 7, 2011 at 1:48 PM, Sascha Haeberling <sa...@xm...>wrote: > >> This error message is only printed, if indeed an OutOfMemoryException is >> being thrown. I am not too sure what run-Xcode does, but if this error even >> happens with 2G of RAM granted, then something seems fishy. >> >> Can you run with --debug=all and see whether you can find anything >> suspicious? >> >> // Sascha >> >> On Mon, Feb 7, 2011 at 6:33 PM, Jeremiah J. Blanchard < >> jbl...@da...> wrote: >> >>> Hi there, >>> >>> I've been trying, without much success, to compile and run a project in >>> Xcode. Specifically, XMLVM gives me the following error when build using >>> "run-Xcode": >>> >>> -do-xproject: >>> [echo] Creating Xcode project >>> [java] [02/01/11 13:10:56.239] DEBUG: Forcing >>> --enable_ref_counting for target IPHONE >>> [java] [02/01/11 13:15:12.901] ERROR: Oh no, XMLVM needs more >>> memory. Try running with -Xmx1G. >>> >>> I've actually set the ANT_OPTS variable for the memory to various values >>> (1G, 2G, etc), but the same error shows up. Is there something I'm >>> missing? The process itself usually gets up to around 650M before it >>> errors out. Any help would be great! :) >>> >>> --Jeremiah >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> The modern datacenter depends on network connectivity to access resources >>> and provide services. The best practices for maximizing a physical >>> server's >>> connectivity to a physical network are well understood - see how these >>> rules translate into the virtual world? >>> http://p.sf.net/sfu/oracle-sfdevnlfb >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> >> > |
From: Markus N. <mar...@gm...> - 2011-02-14 17:21:06
|
Hi Tomas, So far we applied a similar approach to the one used for android2iphone. If you take a look at http://www.xmlvm.org/android/ we finished the equivalent of the cocoa compat-lib (at least what's needed for the demos) for the WP7. This allows writing WP7 apps in Java using classes which mimic the native WP7 C# API. Our next step now (actually I just started on this last week) is to port the android compat-lib to work together with our WP7 Java layer. We usually also reimplement the demos as native WP7 apps to get a better idea how we can do the mapping between Android and WP7, but it's not used in the cross-compilation. We focused on implementing the necessary classes/attributes/methods to get the demos to run so our implementation is far from being complete but we are making progress. Any help is greatly appreciated and I am confident we can find areas to cooperate in. As far as I know my colleague already started the merge, so I hope we have news for you soon. Cheers, Markus On Mon, Feb 14, 2011 at 2:16 AM, Tomas Vestelind <tom...@gm...>wrote: > Hi Markus, > > That sounds interesting. Once you've submitted it I can look and see if > there is anything I can do to help. > > What is your approach? Do you want to do the mapping to cross compile the > Android demos into WP7 applications or are you reimplementing the demos > using WP7 API? > > Best regards, > Tomas > > > On 11 February 2011 21:32, Markus Neubrand <mar...@gm...>wrote: > >> Hi Tomas, >> >> I am one of the two guys working on the WP7 target at the moment. I am >> mainly working on the API mapping while Oren (cc) is working on the language >> cross compilation from Java to C#. We reached a point where we have a >> sufficient enough Java layer for WP7 that we can cross-compile simple demo >> programs (SayHello, ...) from Java to C# and run them on WP7. We are at the >> moment attempting to expand to the Fireworks demo included in xmlvm and then >> port the android compatibility library to WP7. The goal is to have Fireworks >> running end-to-end in April. >> >> We plan on moving everything we did so far to a branch in the xmlvm >> repository soon. I will send you an email once that is done. >> >> Cheers, >> Markus >> >> On Thu, Feb 10, 2011 at 2:19 AM, Tomas Vestelind < >> tom...@gm...> wrote: >> >>> Hi Sascha. >>> >>> Ok, I will wait for their response. I think XMLVM is a really interesting >>> project and I think it has potential to target a lot of different mobile >>> targets, but maybe I don't see all the really technical difficulties. >>> >>> Maybe Symbian and MeeGo is not the way to go at the moment, could Windows >>> Phone 7 with Java -> C# work? >>> >>> Wolfgang and Arno, would this be possible? >>> >>> Best regards, >>> Tomas >>> >>> On 7 February 2011 19:50, Sascha Haeberling <sa...@xm...> wrote: >>> >>>> I see, I misunderstood you the first time. Doing a java-based QT API >>>> that then maps to the actual API should probably be a bit easier, but it >>>> would still require a significant amount of work. >>>> >>>> Wolfgang and Arno are currently doing this work for the C-backend, so >>>> they can actually give you even more advise about how much work would be >>>> involved. >>>> >>>> // Sascha >>>> >>>> On Mon, Feb 7, 2011 at 7:26 PM, Tomas Vestelind < >>>> tom...@gm...> wrote: >>>> >>>>> Hi Sascha, >>>>> >>>>> Thank you for your response. >>>>> >>>>> When I did some tests applications with XMLVM I used the Cocoa Touch >>>>> stubs directly without doing Android-to-iPhone conversion. When I added some >>>>> wrappers that didn't exist it was quite straightforward. I looked at other, >>>>> similar classes and convertion between Java classes like String and >>>>> ArrayList to Cocoa classes was all ready implemented by you guys. >>>>> >>>>> So I imagine that something similar could be done for Qt but as there >>>>> aren't anything that I could look at I would probably try to create the >>>>> stubs, cross compile them to C and then basically call the proper method in >>>>> the wrapper. >>>>> >>>>> Do you think this approach could work? Maybe someone here knows if I >>>>> would have to do something specific for Qt? >>>>> >>>>> Best regards, >>>>> Tomas Vestelind >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> The modern datacenter depends on network connectivity to access >>>>> resources >>>>> and provide services. The best practices for maximizing a physical >>>>> server's >>>>> connectivity to a physical network are well understood - see how these >>>>> rules translate into the virtual world? >>>>> http://p.sf.net/sfu/oracle-sfdevnlfb >>>>> _______________________________________________ >>>>> xmlvm-users mailing list >>>>> xml...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>> >>>>> >>>> >>> >>> >>> -- >>> Quand on veut un mouton, c'est la preuve qu'on existe >>> >>> >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb >>> >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >>> >> > > > -- > Quand on veut un mouton, c'est la preuve qu'on existe > |
From: Panayotis K. <pan...@pa...> - 2011-02-14 13:51:56
|
On Feb 14, 2011, at 1:01 PM, Miggi wrote: > Hello Panayotis > > Sorry, but I'm too blind to see it. I can't find any solution for my > problem in the documentation. The only thing that I can find is the way > how to compile Java-classes into Objective-C and this is exactly the way > I've done it. > > Perhaps my problem was not described clear enough: > The process to cross-compile Java-classes into Objective-C-classes works > absolutly fine. Theres no error message or something like that. But I > don't know how to make a project out of the cross-compiled files on > Mac-site. The result of cross-compiling the classes is a folder full of > .m and .h-files. So can you tell me how I can get a complete project out > of these files? And it's not an iPhone-app what I want to create, if you > think so. > > If there's a fitting part in the documentation, so I wasn't able to find > it. So can you please give me another hint? ;) > > Thank you and sorry to cause you inconvenience. > > Miggi The only automatic project creation is for iPhone projects. So you have two ways to go on right now: a) pretend that your application is an iPhone application (create a new project etc etc.) After creating the project go to the preferences of this project and change the SDK from iPhone to Mac SDK. You might also need to delete some files. Expect not everything to work as is, since this method is indeed optimized for iphone. b) Manually create a new project and drag & drop these files to the new project. You still might need the files from the library. |
From: Miggi <mig...@go...> - 2011-02-14 11:01:46
|
Hello Panayotis Sorry, but I'm too blind to see it. I can't find any solution for my problem in the documentation. The only thing that I can find is the way how to compile Java-classes into Objective-C and this is exactly the way I've done it. Perhaps my problem was not described clear enough: The process to cross-compile Java-classes into Objective-C-classes works absolutly fine. Theres no error message or something like that. But I don't know how to make a project out of the cross-compiled files on Mac-site. The result of cross-compiling the classes is a folder full of .m and .h-files. So can you tell me how I can get a complete project out of these files? And it's not an iPhone-app what I want to create, if you think so. If there's a fitting part in the documentation, so I wasn't able to find it. So can you please give me another hint? ;) Thank you and sorry to cause you inconvenience. Miggi Am 13.02.2011 19:51, schrieb xml...@li...: > Send xmlvm-users mailing list submissions to > xml...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > or, via email, send a message with subject or body 'help' to > xml...@li... > > You can reach the person managing the list at > xml...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of xmlvm-users digest..." > > > Today's Topics: > > 1. Re: Few Bugs in Buffers - Patching? (Kevin Glass) > 2. Cross-compiling Java-classes into Objective-C (Miggi) > 3. Re: Cross-compiling Java-classes into Objective-C > (Panayotis Katsaloulis) > 4. Re: Cross-compiling Java-classes into Objective-C (Arno Puder) > 5. Error in WebOsOutputProcess (Mario Heidenreich) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 13 Feb 2011 12:26:35 +0000 > From: Kevin Glass<ke...@co...> > Subject: Re: [xmlvm-users] Few Bugs in Buffers - Patching? > To: Arno Puder<ar...@pu...> > Cc: "xml...@li..." > <xml...@li...> > Message-ID: > <AANLkTik7-8xUnCk8w5=ih5...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Thats what I tried yep. Was building a largeish library plus some example > code. I'll get the specifics of the errors when I'm back on the mac but > there were 100s > > Kev > > On 12 February 2011 18:22, Arno Puder<ar...@pu...> wrote: > >> Yes, the --target=iphonec instruction I mentioned below should work. Is >> that what you tried? What kind of Xcode errors do you get? >> >> Arno >> >> >> On Feb 12, 2011, at 2:10 AM, Kevin Glass<ke...@co...> wrote: >> >> I'm working off the trunk at the moment, is that up to date with the latest >> backend. I just tried to build a project with the iphonec backend and ended >> up with xcode project with a lot of errors. It it expected to work out of >> the box yet? >> >> Kev >> >> On 11 February 2011 20:43, Arno Puder< <ar...@pu...>ar...@pu...>wrote: >> >>> Kevin, >>> >>> things are changing in XMLVM. We are in the middle of transitioning to >>> the new C backend which will make the Objective-C backend obsolete. One >>> benefit is that we can cross-compile Apache Harmony, so there is no >>> longer the need for hand-writing J2SE classes in Objective-C (which >>> means, the java.nio.Buffer bug will go away with the C backend). >>> >>> There is still API missing from both the Objective-C and the C backend. >>> Patches are certainly more than welcome, however, I would prefer if you >>> submitted patches for the C backend, since we will deprecate the >>> Objective-C backend soon. >>> >>> To get you started: >>> - add the missing Cocoa API in xmlvm/src/xmlvm2obj/compat-lib/java >>> - run "ant gen-c-wrappers" >>> - this will generate C wrappers in src/xmlvm2c/compat-lib/iphone >>> - provide implementation in those wrappers between the special >>> //XMLVM_BEGIN_ and //XMLVM_END_ markers >>> >>> If you want to use the C backend to cross-compile iFireworks, you can do >>> the following: >>> >>> java -Xmx700m -jar dist/xmlvm.jar --target=iphonec \ >>> --in=demo/iphone/ifireworks/build/classes/ \ >>> --resource=demo/iphone/ifireworks/res/ \ >>> --app-name=iFireworks --out=out >>> >>> There are also some slides in xmlvm/doc/slides that give a quick >>> overview of the C backend (in the middle of the slide deck). >>> >>> When you have a patch, you can upload it to our review system as >>> described here:<http://xmlvm.org/contribute/> >>> http://xmlvm.org/contribute/ >>> >>> Arno >>> >>> >>> >>> >>> On 2/11/11 7:03 AM, Kevin Glass wrote: >>>> There's a couple of bugs in the java.nio.Buffer implementations for >>>> ObjC. There's also a method on CGFont (CopyFullName) that'd be really >>>> useful given the changes in iOS 4 - how do I go about submitting patches >>>> for things these days? >>>> >>>> Kev >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------------ >>>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio >>> XE: >>>> Pinpoint memory and threading errors before they happen. >>>> Find and fix more than 250 security defects in the development cycle. >>>> Locate bottlenecks in serial and parallel code that limit performance. >>>> <http://p.sf.net/sfu/intel-dev2devfeb> >>> http://p.sf.net/sfu/intel-dev2devfeb >>>> >>>> >>>> _______________________________________________ >>>> xmlvm-users mailing list >>>> <xml...@li...>xml...@li... >>>> <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >>> >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> <http://p.sf.net/sfu/intel-dev2devfeb> >>> http://p.sf.net/sfu/intel-dev2devfeb >>> _______________________________________________ >>> xmlvm-users mailing list >>> <xml...@li...>xml...@li... >>> <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Sun, 13 Feb 2011 15:37:28 +0100 > From: Miggi<mig...@go...> > Subject: [xmlvm-users] Cross-compiling Java-classes into Objective-C > To: XMLVM User<xml...@li...> > Message-ID:<4D5...@go...> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hi there > > I've some problems with cross-compiling Java-files into Objective-C. > When I tried it, I got a .h and .m for every .class file. That's ok. But > when I tried to build it in Xcode, I got several errors because things > like java.lang.Object or java.lang.String couldn't be found. What did I > wrong that such simple and basic classes weren't found? > > The way I've cross-compiled the classes were: > java -jar<path to xmlvm.jar> --in=<path to folder with java-files> > --out=<path to an empty folder> --target=objc > > Do I have to add something? Or isn't it possible to copy the resulting > files in an empty Xcode-project and to build it? > > Thanks for your answers. > > Miggi > > > > ------------------------------ > > Message: 3 > Date: Sun, 13 Feb 2011 18:12:56 +0200 > From: Panayotis Katsaloulis<pan...@pa...> > Subject: Re: [xmlvm-users] Cross-compiling Java-classes into > Objective-C > To: XMLVM User<xml...@li...> > Message-ID:<1E5...@pa...> > Content-Type: text/plain; charset=us-ascii > > > On Feb 13, 2011, at 4:37 PM, Miggi wrote: > >> Hi there >> >> I've some problems with cross-compiling Java-files into Objective-C. >> When I tried it, I got a .h and .m for every .class file. That's ok. But >> when I tried to build it in Xcode, I got several errors because things >> like java.lang.Object or java.lang.String couldn't be found. What did I >> wrong that such simple and basic classes weren't found? >> >> The way I've cross-compiled the classes were: >> java -jar<path to xmlvm.jar> --in=<path to folder with java-files> >> --out=<path to an empty folder> --target=objc >> >> Do I have to add something? Or isn't it possible to copy the resulting >> files in an empty Xcode-project and to build it? >> >> Thanks for your answers. >> >> Miggi > > I believe if you have a look at the documentation > http://www.xmlvm.org/documentation/ > you will be able to solve your problem. > > > > > ------------------------------ > > Message: 4 > Date: Sun, 13 Feb 2011 08:43:00 -0800 > From: Arno Puder<ar...@pu...> > Subject: Re: [xmlvm-users] Cross-compiling Java-classes into > Objective-C > To: xml...@li... > Message-ID:<4D5...@pu...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > note that --target=objc only cross-compiles to Objective-C, nothing > else. The dependent classes (such as the ones you've mentioned) will not > be copied to the --out directory. The other targets (such as 'iphone') > will do this. > > Arno > > > On 2/13/11 6:37 AM, Miggi wrote: >> Hi there >> >> I've some problems with cross-compiling Java-files into Objective-C. >> When I tried it, I got a .h and .m for every .class file. That's ok. But >> when I tried to build it in Xcode, I got several errors because things >> like java.lang.Object or java.lang.String couldn't be found. What did I >> wrong that such simple and basic classes weren't found? >> >> The way I've cross-compiled the classes were: >> java -jar<path to xmlvm.jar> --in=<path to folder with java-files> >> --out=<path to an empty folder> --target=objc >> >> Do I have to add something? Or isn't it possible to copy the resulting >> files in an empty Xcode-project and to build it? >> >> Thanks for your answers. >> >> Miggi >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------ > > Message: 5 > Date: Sun, 13 Feb 2011 19:32:08 +0100 > From: Mario Heidenreich<ma...@de...> > Subject: [xmlvm-users] Error in WebOsOutputProcess > To: xml...@li... > Message-ID:<4D5...@de...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi XMLVM list, > > i'm playing with the JavaScript/ Qooxdoo/ WebOs backend and i finally > managed to run a simple AWT program on a palm simulator. Any way, there > seems to be a error in the WebOsOutputProcess during the project > generation. The stage-assistant.js and the index.html templates are not > found, due to wrong paths and the getResourceAsStream method. > I rewrote those 2 lines with help of UniversalFiles and attached my > changes as patch, in case anyone is interested :o) > > Greetings, > Mario > > > > Index: src/xmlvm/org/xmlvm/proc/out/WebOsOutputProcess.java > =================================================================== > --- src/xmlvm/org/xmlvm/proc/out/WebOsOutputProcess.java (revision 1502) > +++ src/xmlvm/org/xmlvm/proc/out/WebOsOutputProcess.java (working copy) > @@ -33,6 +33,7 @@ > import org.xmlvm.proc.XmlvmProcessImpl; > import org.xmlvm.util.FileUtil; > import org.xmlvm.util.InputReaderThread; > +import org.xmlvm.util.universalfile.UniversalFile; > import org.xmlvm.util.universalfile.UniversalFileCreator; > > /** > @@ -173,14 +174,15 @@ > return false; > } > > + /** The path to the XMLVM emulation library. */ > + UniversalFile assistantTemplate = > UniversalFileCreator.createFile("/xmlvm2js" > + + STAGE_ASSISTANT_TEMPLATE, "./src/xmlvm2js" + > STAGE_ASSISTANT_TEMPLATE); > // Read template we use to create a custom stage assistant file. > - InputStream stageAssistantTemplate = WebOsOutputProcess.class > - .getResourceAsStream(STAGE_ASSISTANT_TEMPLATE); > - if (stageAssistantTemplate == null) { > + if (assistantTemplate == null) { > Log.error("Stage assistant template file could not be > read."); > return false; > } > - String stageAssistantContent = > FileUtil.readStringFromStream(stageAssistantTemplate); > + String stageAssistantContent = > assistantTemplate.getFileAsString(); > > if (stageAssistantContent.isEmpty()) { > Log.error("Could not read contents of stage assistant > file."); > @@ -258,15 +260,14 @@ > } > > // Read template we use to create a custom stage assistant file. > - InputStream indexHtmlTemplate = WebOsOutputProcess.class > - .getResourceAsStream(INDEX_HTML_TEMPLATE); > - > - if (indexHtmlTemplate == null) { > + UniversalFile indexTemplate = > UniversalFileCreator.createFile("/xmlvm2js" > + + INDEX_HTML_TEMPLATE, "./src/xmlvm2js" + > INDEX_HTML_TEMPLATE); > + if (indexTemplate == null) { > Log.error("Could not read index.html template for Palm Pre > project."); > return false; > } > > - String indexHtmlContent = > FileUtil.readStringFromStream(indexHtmlTemplate); > + String indexHtmlContent = indexTemplate.getFileAsString(); > if (indexHtmlContent.isEmpty()) { > Log.error("Could not read contents of index.html template > file for Palm Pre project."); > return false; > > > > > ------------------------------ > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > > ------------------------------ > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > End of xmlvm-users Digest, Vol 20, Issue 6 > ****************************************** |
From: Tomas V. <tom...@gm...> - 2011-02-14 10:25:56
|
Hi Markus, That sounds interesting. Once you've submitted it I can look and see if there is anything I can do to help. What is your approach? Do you want to do the mapping to cross compile the Android demos into WP7 applications or are you reimplementing the demos using WP7 API? Best regards, Tomas On 11 February 2011 21:32, Markus Neubrand <mar...@gm...>wrote: > Hi Tomas, > > I am one of the two guys working on the WP7 target at the moment. I am > mainly working on the API mapping while Oren (cc) is working on the language > cross compilation from Java to C#. We reached a point where we have a > sufficient enough Java layer for WP7 that we can cross-compile simple demo > programs (SayHello, ...) from Java to C# and run them on WP7. We are at the > moment attempting to expand to the Fireworks demo included in xmlvm and then > port the android compatibility library to WP7. The goal is to have Fireworks > running end-to-end in April. > > We plan on moving everything we did so far to a branch in the xmlvm > repository soon. I will send you an email once that is done. > > Cheers, > Markus > > On Thu, Feb 10, 2011 at 2:19 AM, Tomas Vestelind < > tom...@gm...> wrote: > >> Hi Sascha. >> >> Ok, I will wait for their response. I think XMLVM is a really interesting >> project and I think it has potential to target a lot of different mobile >> targets, but maybe I don't see all the really technical difficulties. >> >> Maybe Symbian and MeeGo is not the way to go at the moment, could Windows >> Phone 7 with Java -> C# work? >> >> Wolfgang and Arno, would this be possible? >> >> Best regards, >> Tomas >> >> On 7 February 2011 19:50, Sascha Haeberling <sa...@xm...> wrote: >> >>> I see, I misunderstood you the first time. Doing a java-based QT API that >>> then maps to the actual API should probably be a bit easier, but it would >>> still require a significant amount of work. >>> >>> Wolfgang and Arno are currently doing this work for the C-backend, so >>> they can actually give you even more advise about how much work would be >>> involved. >>> >>> // Sascha >>> >>> On Mon, Feb 7, 2011 at 7:26 PM, Tomas Vestelind < >>> tom...@gm...> wrote: >>> >>>> Hi Sascha, >>>> >>>> Thank you for your response. >>>> >>>> When I did some tests applications with XMLVM I used the Cocoa Touch >>>> stubs directly without doing Android-to-iPhone conversion. When I added some >>>> wrappers that didn't exist it was quite straightforward. I looked at other, >>>> similar classes and convertion between Java classes like String and >>>> ArrayList to Cocoa classes was all ready implemented by you guys. >>>> >>>> So I imagine that something similar could be done for Qt but as there >>>> aren't anything that I could look at I would probably try to create the >>>> stubs, cross compile them to C and then basically call the proper method in >>>> the wrapper. >>>> >>>> Do you think this approach could work? Maybe someone here knows if I >>>> would have to do something specific for Qt? >>>> >>>> Best regards, >>>> Tomas Vestelind >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> The modern datacenter depends on network connectivity to access >>>> resources >>>> and provide services. The best practices for maximizing a physical >>>> server's >>>> connectivity to a physical network are well understood - see how these >>>> rules translate into the virtual world? >>>> http://p.sf.net/sfu/oracle-sfdevnlfb >>>> _______________________________________________ >>>> xmlvm-users mailing list >>>> xml...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>> >>>> >>> >> >> >> -- >> Quand on veut un mouton, c'est la preuve qu'on existe >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > -- Quand on veut un mouton, c'est la preuve qu'on existe |
From: Mario H. <ma...@de...> - 2011-02-13 18:51:35
|
Hi XMLVM list, i'm playing with the JavaScript/ Qooxdoo/ WebOs backend and i finally managed to run a simple AWT program on a palm simulator. Any way, there seems to be a error in the WebOsOutputProcess during the project generation. The stage-assistant.js and the index.html templates are not found, due to wrong paths and the getResourceAsStream method. I rewrote those 2 lines with help of UniversalFiles and attached my changes as patch, in case anyone is interested :o) Greetings, Mario Index: src/xmlvm/org/xmlvm/proc/out/WebOsOutputProcess.java =================================================================== --- src/xmlvm/org/xmlvm/proc/out/WebOsOutputProcess.java (revision 1502) +++ src/xmlvm/org/xmlvm/proc/out/WebOsOutputProcess.java (working copy) @@ -33,6 +33,7 @@ import org.xmlvm.proc.XmlvmProcessImpl; import org.xmlvm.util.FileUtil; import org.xmlvm.util.InputReaderThread; +import org.xmlvm.util.universalfile.UniversalFile; import org.xmlvm.util.universalfile.UniversalFileCreator; /** @@ -173,14 +174,15 @@ return false; } + /** The path to the XMLVM emulation library. */ + UniversalFile assistantTemplate = UniversalFileCreator.createFile("/xmlvm2js" + + STAGE_ASSISTANT_TEMPLATE, "./src/xmlvm2js" + STAGE_ASSISTANT_TEMPLATE); // Read template we use to create a custom stage assistant file. - InputStream stageAssistantTemplate = WebOsOutputProcess.class - .getResourceAsStream(STAGE_ASSISTANT_TEMPLATE); - if (stageAssistantTemplate == null) { + if (assistantTemplate == null) { Log.error("Stage assistant template file could not be read."); return false; } - String stageAssistantContent = FileUtil.readStringFromStream(stageAssistantTemplate); + String stageAssistantContent = assistantTemplate.getFileAsString(); if (stageAssistantContent.isEmpty()) { Log.error("Could not read contents of stage assistant file."); @@ -258,15 +260,14 @@ } // Read template we use to create a custom stage assistant file. - InputStream indexHtmlTemplate = WebOsOutputProcess.class - .getResourceAsStream(INDEX_HTML_TEMPLATE); - - if (indexHtmlTemplate == null) { + UniversalFile indexTemplate = UniversalFileCreator.createFile("/xmlvm2js" + + INDEX_HTML_TEMPLATE, "./src/xmlvm2js" + INDEX_HTML_TEMPLATE); + if (indexTemplate == null) { Log.error("Could not read index.html template for Palm Pre project."); return false; } - String indexHtmlContent = FileUtil.readStringFromStream(indexHtmlTemplate); + String indexHtmlContent = indexTemplate.getFileAsString(); if (indexHtmlContent.isEmpty()) { Log.error("Could not read contents of index.html template file for Palm Pre project."); return false; |
From: Arno P. <ar...@pu...> - 2011-02-13 17:07:11
|
note that --target=objc only cross-compiles to Objective-C, nothing else. The dependent classes (such as the ones you've mentioned) will not be copied to the --out directory. The other targets (such as 'iphone') will do this. Arno On 2/13/11 6:37 AM, Miggi wrote: > Hi there > > I've some problems with cross-compiling Java-files into Objective-C. > When I tried it, I got a .h and .m for every .class file. That's ok. But > when I tried to build it in Xcode, I got several errors because things > like java.lang.Object or java.lang.String couldn't be found. What did I > wrong that such simple and basic classes weren't found? > > The way I've cross-compiled the classes were: > java -jar<path to xmlvm.jar> --in=<path to folder with java-files> > --out=<path to an empty folder> --target=objc > > Do I have to add something? Or isn't it possible to copy the resulting > files in an empty Xcode-project and to build it? > > Thanks for your answers. > > Miggi > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Panayotis K. <pan...@pa...> - 2011-02-13 16:14:57
|
On Feb 13, 2011, at 4:37 PM, Miggi wrote: > Hi there > > I've some problems with cross-compiling Java-files into Objective-C. > When I tried it, I got a .h and .m for every .class file. That's ok. But > when I tried to build it in Xcode, I got several errors because things > like java.lang.Object or java.lang.String couldn't be found. What did I > wrong that such simple and basic classes weren't found? > > The way I've cross-compiled the classes were: > java -jar <path to xmlvm.jar> --in=<path to folder with java-files> > --out=<path to an empty folder> --target=objc > > Do I have to add something? Or isn't it possible to copy the resulting > files in an empty Xcode-project and to build it? > > Thanks for your answers. > > Miggi I believe if you have a look at the documentation http://www.xmlvm.org/documentation/ you will be able to solve your problem. |
From: Miggi <mig...@go...> - 2011-02-13 14:37:38
|
Hi there I've some problems with cross-compiling Java-files into Objective-C. When I tried it, I got a .h and .m for every .class file. That's ok. But when I tried to build it in Xcode, I got several errors because things like java.lang.Object or java.lang.String couldn't be found. What did I wrong that such simple and basic classes weren't found? The way I've cross-compiled the classes were: java -jar <path to xmlvm.jar> --in=<path to folder with java-files> --out=<path to an empty folder> --target=objc Do I have to add something? Or isn't it possible to copy the resulting files in an empty Xcode-project and to build it? Thanks for your answers. Miggi |
From: Kevin G. <ke...@co...> - 2011-02-13 12:26:43
|
Thats what I tried yep. Was building a largeish library plus some example code. I'll get the specifics of the errors when I'm back on the mac but there were 100s Kev On 12 February 2011 18:22, Arno Puder <ar...@pu...> wrote: > > Yes, the --target=iphonec instruction I mentioned below should work. Is > that what you tried? What kind of Xcode errors do you get? > > Arno > > > On Feb 12, 2011, at 2:10 AM, Kevin Glass <ke...@co...> wrote: > > I'm working off the trunk at the moment, is that up to date with the latest > backend. I just tried to build a project with the iphonec backend and ended > up with xcode project with a lot of errors. It it expected to work out of > the box yet? > > Kev > > On 11 February 2011 20:43, Arno Puder < <ar...@pu...>ar...@pu...>wrote: > >> >> Kevin, >> >> things are changing in XMLVM. We are in the middle of transitioning to >> the new C backend which will make the Objective-C backend obsolete. One >> benefit is that we can cross-compile Apache Harmony, so there is no >> longer the need for hand-writing J2SE classes in Objective-C (which >> means, the java.nio.Buffer bug will go away with the C backend). >> >> There is still API missing from both the Objective-C and the C backend. >> Patches are certainly more than welcome, however, I would prefer if you >> submitted patches for the C backend, since we will deprecate the >> Objective-C backend soon. >> >> To get you started: >> - add the missing Cocoa API in xmlvm/src/xmlvm2obj/compat-lib/java >> - run "ant gen-c-wrappers" >> - this will generate C wrappers in src/xmlvm2c/compat-lib/iphone >> - provide implementation in those wrappers between the special >> //XMLVM_BEGIN_ and //XMLVM_END_ markers >> >> If you want to use the C backend to cross-compile iFireworks, you can do >> the following: >> >> java -Xmx700m -jar dist/xmlvm.jar --target=iphonec \ >> --in=demo/iphone/ifireworks/build/classes/ \ >> --resource=demo/iphone/ifireworks/res/ \ >> --app-name=iFireworks --out=out >> >> There are also some slides in xmlvm/doc/slides that give a quick >> overview of the C backend (in the middle of the slide deck). >> >> When you have a patch, you can upload it to our review system as >> described here: <http://xmlvm.org/contribute/> >> http://xmlvm.org/contribute/ >> >> Arno >> >> >> >> >> On 2/11/11 7:03 AM, Kevin Glass wrote: >> > There's a couple of bugs in the java.nio.Buffer implementations for >> > ObjC. There's also a method on CGFont (CopyFullName) that'd be really >> > useful given the changes in iOS 4 - how do I go about submitting patches >> > for things these days? >> > >> > Kev >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio >> XE: >> > Pinpoint memory and threading errors before they happen. >> > Find and fix more than 250 security defects in the development cycle. >> > Locate bottlenecks in serial and parallel code that limit performance. >> > <http://p.sf.net/sfu/intel-dev2devfeb> >> http://p.sf.net/sfu/intel-dev2devfeb >> > >> > >> > >> > _______________________________________________ >> > xmlvm-users mailing list >> > <xml...@li...>xml...@li... >> > <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> <http://p.sf.net/sfu/intel-dev2devfeb> >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> xmlvm-users mailing list >> <xml...@li...>xml...@li... >> <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > |
From: Arno P. <ar...@pu...> - 2011-02-12 18:58:58
|
On Feb 11, 2011, at 11:40 PM, Sal <sv...@gm...> wrote: > I'm really enjoying learning about xmlvm and I think it's a fascinating project! I had a few questions for the experts here about it. > > - How is performance compared to original Java code? If slower by a factor of how much? Are there any benchmarks done yet? Can intensive things be done i.e. - realtime physics engines for video games Benchmarking is a tricky business because you easily end up comparing apples and oranges. We have not done any benchmarking. The C backend will be much more performant than the Objective-C backend for various reasons, but we don't know how this compares to a JVM. > > - Is boehm gc being used on the iPhone target(s)? If not how does xmlvm get around using reference counting in the new C target Ive read about? We use the Boehm GC for iOS devices. > > - what major tasks are left for the 'C' output target to be a usable one instead of the Obj-c++ one, in case anyone is interested to help =) Look for NOT_IMPLEMENTED in src/xmlvm2c/compat-lib/iphone > > - The idea of byte code to XML to ' XYZ' programming language via xsl is great and very flexible. But has anyone considered taking something like JavaML (http://www.badros.com/greg/JavaML/) which generates XML version of the Java program's AST (abstract syntax tree). XSL could then be used to convert this to a 'high level' target, such as C++, which is very similar to java already. Use the same GC techniques and libraries xmlvm already has - and you have maximal performance via C++ compilation of high level code rather than VM opcodes as xmlvm does today. I would imagine several orders better performance with just as much flexibility - say write c# code for win7, and JavaScript target would be more performant as well. Java byte code is also easily reversed by libraries like JAD to generate 'high level' Java from that byte code, so .class files are still processible if code is not available. Possible that you can do more optimizations on source code level, but this also requires a lot more effort. E.g., there are no bytecode instructions for generics since the Java compiler already converted them to casts from and to java.lang.Object. This makes our life much easier. All in all we found that by using Androids register based instruction set (DEX) to be ideal for creating efficient code in the target language. Arno |
From: Arno P. <ar...@pu...> - 2011-02-12 18:49:04
|
I doubt that the resulting Xcode project would work on a Mac. You have directories such as C:\ in your path that are Windows specific. As for the ${out.dir} problem, I'm not sure. That variable should certainly be defined. How did you compile this? With the ant run-Xcode target? Can you verify that this also does not work on a Mac? Arno On Feb 12, 2011, at 10:41 AM, Marko Žmak <xm...@st...> wrote: > > Arno, thanks for the answer, but I'm not compiling it to an iPhone application, I'm compiling it to a xcode project, and this CAN be done under Windows. > > So my problem is not wether I can compile it to an iPhone application or not, but about an error in the ant build process. To clarify it a little bit... > In the xcode.xml file we have a java call to the xmlvm that converts the application into xcode. In this call, there's an argument like this: > > <arg value="--in=${out.dir}/classes"/> > > The problem is that in the process of ant building the ${out.dir} is not resolved to its value, so I get an error message > > [java] [02/12/11 14:40:18.718] ERROR: UniversalFileCreator: Location is neither a File nor a directory: C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\${out.dir}\classes > > > I tried to replace ${out.dir}/classes with a hardcoded path, like this: > > C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\build/classes > > and after that it works without problem and compiles it to xcode. So it means that it can be done. > > But this is not a sollution, rather a quickfix, and would like to know if there's a sollution to this ${out.dir} problem? > > > P.S. I have investigated a little bit, and it seems like there are ways to compile xcode projects on windows. So when I go past this build problem I plan to follow this road all the way. > > > On 12.2.2011 19:23, Arno Puder wrote: >> You cannot compile for the iPhone under Windows. You need a Mac OS platform. >> >> Arno >> >> On Feb 12, 2011, at 6:52 AM, Marko Žmak<xm...@st...> wrote: >> >>> I tried to compile the iphone demo applications to Xcode project but >>> when executing ant build it stuck at -do-xproject and I got this error: >>> >>> -do-xproject: >>> [echo] Creating Xcode project >>> [java] [02/12/11 14:40:18.718] ERROR: UniversalFileCreator: >>> Location is neither a File nor a directory: >>> C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\${out.dir}\classes >>> [java] [02/12/11 14:40:18.718] ERROR: InputProcessFactory: >>> Could not find input resource: ${out.dir}/classes >>> >>> >>> It seems like it doesn't resolve the ${out.dir}reference, but why? What >>> could be the problem? >>> >>> >>> P.S. I'm using Ant 1.8.2, Eclipse Pulsar edition, and the latest xmlvm >>> from svn. >>> >>> -- >>> Studio Artlan >>> Marko Žmak, dipl.ing.mat. >>> Mob: +385 98 212 801 >>> Email: xm...@st... >>> Web: http://www.studioartlan.com/ >>> >>> >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > -- > Studio Artlan > Marko Žmak, dipl.ing.mat. > Mob: +385 98 212 801 > Email: xm...@st... > Web: http://www.studioartlan.com/ > |
From: Marko Ž. <xm...@st...> - 2011-02-12 18:41:24
|
Arno, thanks for the answer, but I'm not compiling it to an iPhone application, I'm compiling it to a xcode project, and this CAN be done under Windows. So my problem is not wether I can compile it to an iPhone application or not, but about an error in the ant build process. To clarify it a little bit... In the xcode.xml file we have a java call to the xmlvm that converts the application into xcode. In this call, there's an argument like this: <arg value="--in=${out.dir}/classes"/> The problem is that in the process of ant building the ${out.dir} is not resolved to its value, so I get an error message [java] [02/12/11 14:40:18.718] ERROR: UniversalFileCreator: Location is neither a File nor a directory: C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\${out.dir}\classes I tried to replace ${out.dir}/classes with a hardcoded path, like this: C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\build/classes and after that it works without problem and compiles it to xcode. So it means that it can be done. But this is not a sollution, rather a quickfix, and would like to know if there's a sollution to this ${out.dir} problem? P.S. I have investigated a little bit, and it seems like there are ways to compile xcode projects on windows. So when I go past this build problem I plan to follow this road all the way. On 12.2.2011 19:23, Arno Puder wrote: > You cannot compile for the iPhone under Windows. You need a Mac OS platform. > > Arno > > On Feb 12, 2011, at 6:52 AM, Marko Žmak<xm...@st...> wrote: > >> I tried to compile the iphone demo applications to Xcode project but >> when executing ant build it stuck at -do-xproject and I got this error: >> >> -do-xproject: >> [echo] Creating Xcode project >> [java] [02/12/11 14:40:18.718] ERROR: UniversalFileCreator: >> Location is neither a File nor a directory: >> C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\${out.dir}\classes >> [java] [02/12/11 14:40:18.718] ERROR: InputProcessFactory: >> Could not find input resource: ${out.dir}/classes >> >> >> It seems like it doesn't resolve the ${out.dir}reference, but why? What >> could be the problem? >> >> >> P.S. I'm using Ant 1.8.2, Eclipse Pulsar edition, and the latest xmlvm >> from svn. >> >> -- >> Studio Artlan >> Marko Žmak, dipl.ing.mat. >> Mob: +385 98 212 801 >> Email: xm...@st... >> Web: http://www.studioartlan.com/ >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users -- Studio Artlan Marko Žmak, dipl.ing.mat. Mob: +385 98 212 801 Email: xm...@st... Web: http://www.studioartlan.com/ |
From: Arno P. <ar...@pu...> - 2011-02-12 18:23:21
|
You cannot compile for the iPhone under Windows. You need a Mac OS platform. Arno On Feb 12, 2011, at 6:52 AM, Marko Žmak <xm...@st...> wrote: > I tried to compile the iphone demo applications to Xcode project but > when executing ant build it stuck at -do-xproject and I got this error: > > -do-xproject: > [echo] Creating Xcode project > [java] [02/12/11 14:40:18.718] ERROR: UniversalFileCreator: > Location is neither a File nor a directory: > C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\${out.dir}\classes > [java] [02/12/11 14:40:18.718] ERROR: InputProcessFactory: > Could not find input resource: ${out.dir}/classes > > > It seems like it doesn't resolve the ${out.dir}reference, but why? What > could be the problem? > > > P.S. I'm using Ant 1.8.2, Eclipse Pulsar edition, and the latest xmlvm > from svn. > > -- > Studio Artlan > Marko Žmak, dipl.ing.mat. > Mob: +385 98 212 801 > Email: xm...@st... > Web: http://www.studioartlan.com/ > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-02-12 18:22:31
|
Yes, the --target=iphonec instruction I mentioned below should work. Is that what you tried? What kind of Xcode errors do you get? Arno On Feb 12, 2011, at 2:10 AM, Kevin Glass <ke...@co...> wrote: I'm working off the trunk at the moment, is that up to date with the latest backend. I just tried to build a project with the iphonec backend and ended up with xcode project with a lot of errors. It it expected to work out of the box yet? Kev On 11 February 2011 20:43, Arno Puder <ar...@pu...> wrote: > > Kevin, > > things are changing in XMLVM. We are in the middle of transitioning to > the new C backend which will make the Objective-C backend obsolete. One > benefit is that we can cross-compile Apache Harmony, so there is no > longer the need for hand-writing J2SE classes in Objective-C (which > means, the java.nio.Buffer bug will go away with the C backend). > > There is still API missing from both the Objective-C and the C backend. > Patches are certainly more than welcome, however, I would prefer if you > submitted patches for the C backend, since we will deprecate the > Objective-C backend soon. > > To get you started: > - add the missing Cocoa API in xmlvm/src/xmlvm2obj/compat-lib/java > - run "ant gen-c-wrappers" > - this will generate C wrappers in src/xmlvm2c/compat-lib/iphone > - provide implementation in those wrappers between the special > //XMLVM_BEGIN_ and //XMLVM_END_ markers > > If you want to use the C backend to cross-compile iFireworks, you can do > the following: > > java -Xmx700m -jar dist/xmlvm.jar --target=iphonec \ > --in=demo/iphone/ifireworks/build/classes/ \ > --resource=demo/iphone/ifireworks/res/ \ > --app-name=iFireworks --out=out > > There are also some slides in xmlvm/doc/slides that give a quick > overview of the C backend (in the middle of the slide deck). > > When you have a patch, you can upload it to our review system as > described here: http://xmlvm.org/contribute/ > > Arno > > > > > On 2/11/11 7:03 AM, Kevin Glass wrote: > > There's a couple of bugs in the java.nio.Buffer implementations for > > ObjC. There's also a method on CGFont (CopyFullName) that'd be really > > useful given the changes in iOS 4 - how do I go about submitting patches > > for things these days? > > > > Kev > > > > > > > > > ------------------------------------------------------------------------------ > > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Jeremiah B. <jbl...@da...> - 2011-02-12 17:30:56
|
Hi Sascha (and others), I've gotten a little further now. At this point I don't think my current machine has enough memory to actually translate the project in question using the current version of XMLVM, but I wanted to let you know what I found out for future reference. It's a pretty big project and I know that XMLVM is a work in progress, so it may just be a matter of scale. When I get to an upgrade point, or when XMLVM is a bit more mature, I'll try again. Anyway, here's what I've found. It looks like one of the pre-built files - nbproject\xcode.xml - has the setting "-Xmx512m" hard-coded in. I changed it and also added "--debug=all" to the same file. However, it's still running out of memory. After some testing, I went with 1350m - on my machine, anything more than that starts thrashing the hard disk due to excessive paging. The memory for the java process goes up to around 1500M or so according to top. Here's an abbreviated version of the output: -do-xproject: [echo] Creating Xcode project [java] Executing '/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java' with arguments: [java] '-Xmx1350m' [java] '-jar' ... [java] [02/12/11 12:06:09.731] DEBUG: Forcing --enable_ref_counting for target IPHONE [java] [02/12/11 12:06:09.806] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess ... [java] [02/12/11 12:06:25.750] DEBUG: DEXmlvmOutputProcess-ref: Processing method: interpretCode [java] [02/01/11 13:15:12.901] ERROR: Oh no, XMLVM needs more memory. Try running with -Xmx1G. ... and following that, a lot of exception and stack trace info. The file it gets caught on is about 100K, and the function interpretCode is about 1000 lines long and includes a large switch statement (about 140 cases) as it is an interpreter for an instruction set. I'm not sure if this helps narrow it down or not. I could try to come up with a simplified code segment that still exhibits the problem, though it may be difficult as I have to find a way to eat up a comparable amount of memory. :) Regards, Jeremiah Blanchard On Mon, Feb 7, 2011 at 1:48 PM, Sascha Haeberling <sa...@xm...> wrote: > This error message is only printed, if indeed an OutOfMemoryException is > being thrown. I am not too sure what run-Xcode does, but if this error even > happens with 2G of RAM granted, then something seems fishy. > > Can you run with --debug=all and see whether you can find anything > suspicious? > > // Sascha > > On Mon, Feb 7, 2011 at 6:33 PM, Jeremiah J. Blanchard < > jbl...@da...> wrote: > >> Hi there, >> >> I've been trying, without much success, to compile and run a project in >> Xcode. Specifically, XMLVM gives me the following error when build using >> "run-Xcode": >> >> -do-xproject: >> [echo] Creating Xcode project >> [java] [02/01/11 13:10:56.239] DEBUG: Forcing >> --enable_ref_counting for target IPHONE >> [java] [02/01/11 13:15:12.901] ERROR: Oh no, XMLVM needs more >> memory. Try running with -Xmx1G. >> >> I've actually set the ANT_OPTS variable for the memory to various values >> (1G, 2G, etc), but the same error shows up. Is there something I'm >> missing? The process itself usually gets up to around 650M before it >> errors out. Any help would be great! :) >> >> --Jeremiah >> >> >> >> ------------------------------------------------------------------------------ >> The modern datacenter depends on network connectivity to access resources >> and provide services. The best practices for maximizing a physical >> server's >> connectivity to a physical network are well understood - see how these >> rules translate into the virtual world? >> http://p.sf.net/sfu/oracle-sfdevnlfb >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > |
From: Marko Ž. <xm...@st...> - 2011-02-12 14:52:06
|
I tried to compile the iphone demo applications to Xcode project but when executing ant build it stuck at -do-xproject and I got this error: -do-xproject: [echo] Creating Xcode project [java] [02/12/11 14:40:18.718] ERROR: UniversalFileCreator: Location is neither a File nor a directory: C:\MobDev\xmlvm\trunk\xmlvm\demo\iphone\ifireworks\${out.dir}\classes [java] [02/12/11 14:40:18.718] ERROR: InputProcessFactory: Could not find input resource: ${out.dir}/classes It seems like it doesn't resolve the ${out.dir}reference, but why? What could be the problem? P.S. I'm using Ant 1.8.2, Eclipse Pulsar edition, and the latest xmlvm from svn. -- Studio Artlan Marko Žmak, dipl.ing.mat. Mob: +385 98 212 801 Email: xm...@st... Web: http://www.studioartlan.com/ |
From: Kevin G. <ke...@co...> - 2011-02-12 10:10:21
|
I'm working off the trunk at the moment, is that up to date with the latest backend. I just tried to build a project with the iphonec backend and ended up with xcode project with a lot of errors. It it expected to work out of the box yet? Kev On 11 February 2011 20:43, Arno Puder <ar...@pu...> wrote: > > Kevin, > > things are changing in XMLVM. We are in the middle of transitioning to > the new C backend which will make the Objective-C backend obsolete. One > benefit is that we can cross-compile Apache Harmony, so there is no > longer the need for hand-writing J2SE classes in Objective-C (which > means, the java.nio.Buffer bug will go away with the C backend). > > There is still API missing from both the Objective-C and the C backend. > Patches are certainly more than welcome, however, I would prefer if you > submitted patches for the C backend, since we will deprecate the > Objective-C backend soon. > > To get you started: > - add the missing Cocoa API in xmlvm/src/xmlvm2obj/compat-lib/java > - run "ant gen-c-wrappers" > - this will generate C wrappers in src/xmlvm2c/compat-lib/iphone > - provide implementation in those wrappers between the special > //XMLVM_BEGIN_ and //XMLVM_END_ markers > > If you want to use the C backend to cross-compile iFireworks, you can do > the following: > > java -Xmx700m -jar dist/xmlvm.jar --target=iphonec \ > --in=demo/iphone/ifireworks/build/classes/ \ > --resource=demo/iphone/ifireworks/res/ \ > --app-name=iFireworks --out=out > > There are also some slides in xmlvm/doc/slides that give a quick > overview of the C backend (in the middle of the slide deck). > > When you have a patch, you can upload it to our review system as > described here: http://xmlvm.org/contribute/ > > Arno > > > > > On 2/11/11 7:03 AM, Kevin Glass wrote: > > There's a couple of bugs in the java.nio.Buffer implementations for > > ObjC. There's also a method on CGFont (CopyFullName) that'd be really > > useful given the changes in iOS 4 - how do I go about submitting patches > > for things these days? > > > > Kev > > > > > > > > > ------------------------------------------------------------------------------ > > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > > > > > > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |