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: Sascha H. <sa...@xm...> - 2010-06-23 08:21:16
|
What timing! :) On Wed, Jun 23, 2010 at 10:15 AM, Arno Puder <ar...@pu...> wrote: > > does this mean you have to change the way Xcode projects are generated > by XMLVM for iOS4 and that change would not be backward compatible with > iOS 3.1 and 3.2? > > Also interesting to note that Apple effectively renders all 'old' > iPhone/iPod Touches more or less useless because you cannot update them > to iOS4. Well, I would expect nothing less from Apple. > Well, I don't like Apple either, but that I find is unfair bashing. I think it's fine to make older platforms obsolete when limits are reached. The hardware is slower than today's, and if new features require more power then I think this is a fair step to take. Correct me, if I am wrong, but I think this is just affecting 1st gen devices, right? They are around for quite a while now. > > Arno > > > On 6/23/10 9:43 AM, Panayotis Katsaloulis wrote: > > Hello all! > > > > I have just downloaded the latest stable version of Xcode and with > surprise I found out that all versions of iOS prior of 3.2 (including 3.1) > are cut off! > > > > Which means that officially there is NO way to write applications of iOS > 3 any more. > > It also means that the current produced Xcode project is no longer valid. > > > > What should we do? > > Go on with the flow and cut compatibility with 3.*? > > > > Right now it is not possible any more to write applications with xmlvm, > create a project and compile/send this project for the iphone. > > > ------------------------------------------------------------------------------ > > ThinkGeek and WIRED's GeekDad team up for the Ultimate > > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > > lucky parental unit. See the prize list and enter to win: > > http://p.sf.net/sfu/thinkgeek-promo > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Sascha H. <sa...@xm...> - 2010-06-23 08:17:05
|
Great ... what are the things that need to change right now to write apps with XMLVM for iOS? Did the existing APIs change dramatically? I guess the XCode project creator need to be adapted? If it's just the latter, I would propose to introduce a legacy argument that uses the current XCode code creation and have the current one create new XCode projects. // Sascha On Wed, Jun 23, 2010 at 9:43 AM, Panayotis Katsaloulis < pan...@pa...> wrote: > Hello all! > > I have just downloaded the latest stable version of Xcode and with surprise > I found out that all versions of iOS prior of 3.2 (including 3.1) are cut > off! > > Which means that officially there is NO way to write applications of iOS 3 > any more. > It also means that the current produced Xcode project is no longer valid. > > What should we do? > Go on with the flow and cut compatibility with 3.*? > > Right now it is not possible any more to write applications with xmlvm, > create a project and compile/send this project for the iphone. > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2010-06-23 08:15:48
|
does this mean you have to change the way Xcode projects are generated by XMLVM for iOS4 and that change would not be backward compatible with iOS 3.1 and 3.2? Also interesting to note that Apple effectively renders all 'old' iPhone/iPod Touches more or less useless because you cannot update them to iOS4. Well, I would expect nothing less from Apple. Arno On 6/23/10 9:43 AM, Panayotis Katsaloulis wrote: > Hello all! > > I have just downloaded the latest stable version of Xcode and with surprise I found out that all versions of iOS prior of 3.2 (including 3.1) are cut off! > > Which means that officially there is NO way to write applications of iOS 3 any more. > It also means that the current produced Xcode project is no longer valid. > > What should we do? > Go on with the flow and cut compatibility with 3.*? > > Right now it is not possible any more to write applications with xmlvm, create a project and compile/send this project for the iphone. > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2010-06-23 08:11:51
|
that is a known deficiency of XMLVM. Currently, we cross-compile Java to Objective-C making use of Objective-C's object model. Unfortunately, Objective-C does not permit to re-define a member variable in derived classes. That means, you cannot write a Java program that does that (although we name mangle the member's type into its name so at least we support same member name with different types along an inheritance path). Ordinarily you can easily avoid this by simply refactoring your program. Until I saw your message, I didn't know that javac itself creates this pattern. Unfortunately there is no easy solution. To add proper member lookup in Objective-C would incur a major runtime overhead. That is one of the reasons I want to change XMLVM's backend to C because here we are in control of how to implement Java's object model and don't try to map a statically object model to a dynamically typed one. Sorry for the long-winded explanation. For now, I suggest you don't use inner classes the way you do and way until we have the new C backend (which will take a while to complete). Arno On 6/22/10 1:29 PM, Markus Heberling wrote: > Hi, > > Converting the following class from java to objc generates wrong objc code. > > public class Main extends UIApplication { > > public void applicationDidFinishLaunching(UIApplication app) { > //... > } > > public static void main(String[] args) { > UIApplication.main(args, Main.class); > } > > public abstract class AbstractTest{ > > } > > public class Test1 extends AbstractTest{ > > } > > public class Test2 extends AbstractTest{ > } > } > > I get this in the Objc .h file for AbstractTest > @interface mylib_Main_AbstractTest : MyObject > { > @public mylib_Main* this_0_mylib_Main; > > } > > this for Test1 > @interface mylib_Main_Test1 : mylib_Main_AbstractTest > { > @public mylib_Main* this_0_mylib_Main; > > } > > and this for Test2 > @interface mylib_Main_Test2 : mylib_Main_AbstractTest > { > @public mylib_Main* this_0_mylib_Main; > > } > > So the reference back to the enclosing class is generated in each of > this @interface declarations. This gives compile errors in both > mylib_Main_Test1 and mylib_Main_Test2: > /Users/markus/Documents/workspace/xmlvm/test/src/xcode/trim/mylib_Main_Test1.h:15:0 > /Users/markus/Documents/workspace/xmlvm/test/src/xcode/trim/mylib_Main_Test1.h:15: > error: duplicate member 'this_0_mylib_Main' > > Is it possible to fix xmlvm to generate better code for such java > constructs? > > Regards, > Markus > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Panayotis K. <pan...@pa...> - 2010-06-23 07:43:56
|
Hello all! I have just downloaded the latest stable version of Xcode and with surprise I found out that all versions of iOS prior of 3.2 (including 3.1) are cut off! Which means that officially there is NO way to write applications of iOS 3 any more. It also means that the current produced Xcode project is no longer valid. What should we do? Go on with the flow and cut compatibility with 3.*? Right now it is not possible any more to write applications with xmlvm, create a project and compile/send this project for the iphone. |
From: Panayotis K. <pan...@pa...> - 2010-06-23 06:08:35
|
On Jun 23, 2010, at 1:49 AM, Damian wrote: > I'm using the iphone emulator and trying to capture touches and it seems that there's something I'm doing wrong because It's just not working. > > I'm building the Opengl demo and everything works fine, but when I add the following lines > > @Override > public void touchesBegan(java.util.Set<org.xmlvm.iphone.UITouch> touches, org.xmlvm.iphone.UIEvent event) { > System.out.println("touch"); > } > > to class GLView (extends UIViewGL) the function is never executed. > Any idea? Since there was a recent update to this method, did you try the latest SVN version of XMLVM? |
From: Damian <dam...@gm...> - 2010-06-22 22:49:32
|
I'm using the iphone emulator and trying to capture touches and it seems that there's something I'm doing wrong because It's just not working. I'm building the Opengl demo and everything works fine, but when I add the following lines @Override public void touchesBegan(java.util.Set<org.xmlvm.iphone.UITouch> touches, org.xmlvm.iphone.UIEvent event) { System.out.println("touch"); } to class GLView (extends UIViewGL) the function is never executed. Any idea? Thanks! |
From: Markus H. <ma...@ti...> - 2010-06-22 11:49:13
|
Hi, Converting the following class from java to objc generates wrong objc code. public class Main extends UIApplication { public void applicationDidFinishLaunching(UIApplication app) { //... } public static void main(String[] args) { UIApplication.main(args, Main.class); } public abstract class AbstractTest{ } public class Test1 extends AbstractTest{ } public class Test2 extends AbstractTest{ } } I get this in the Objc .h file for AbstractTest @interface mylib_Main_AbstractTest : MyObject { @public mylib_Main* this_0_mylib_Main; } this for Test1 @interface mylib_Main_Test1 : mylib_Main_AbstractTest { @public mylib_Main* this_0_mylib_Main; } and this for Test2 @interface mylib_Main_Test2 : mylib_Main_AbstractTest { @public mylib_Main* this_0_mylib_Main; } So the reference back to the enclosing class is generated in each of this @interface declarations. This gives compile errors in both mylib_Main_Test1 and mylib_Main_Test2: /Users/markus/Documents/workspace/xmlvm/test/src/xcode/trim/mylib_Main_Test1.h:15:0 /Users/markus/Documents/workspace/xmlvm/test/src/xcode/trim/mylib_Main_Test1.h:15: error: duplicate member 'this_0_mylib_Main' Is it possible to fix xmlvm to generate better code for such java constructs? Regards, Markus |
From: Sascha H. <sa...@xm...> - 2010-06-15 13:15:34
|
Good question. As always it's kind of hard to interpret what they actually mean and want. On Tue, Jun 15, 2010 at 2:46 PM, Panayotis Katsaloulis < pan...@pa...> wrote: > Probably everything is fine now? > > > http://www.macrumors.com/2010/06/11/apple-eases-up-on-restrictions-on-interpreted-code-in-iphone-developer-agreement/ > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Joris V. <jbv...@gm...> - 2010-06-15 13:10:41
|
Sort of.. you'll need approval. Which you probably get when using one of the bigger gameengines? On Tue, Jun 15, 2010 at 14:46, Panayotis Katsaloulis <pan...@pa...> wrote: > Probably everything is fine now? > > http://www.macrumors.com/2010/06/11/apple-eases-up-on-restrictions-on-interpreted-code-in-iphone-developer-agreement/ > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Panayotis K. <pan...@pa...> - 2010-06-15 12:47:03
|
Probably everything is fine now? http://www.macrumors.com/2010/06/11/apple-eases-up-on-restrictions-on-interpreted-code-in-iphone-developer-agreement/ |
From: Panayotis K. <pan...@pa...> - 2010-06-11 06:22:55
|
On Jun 10, 2010, at 8:32 PM, Micki wrote: > Hi all, > I worked with the xmlvm-Project to develop a iPhone application with Java. It’s part of my Master-Thesis. > In my application I should use a scrollable view. I choose the UIScrollView, but that doesn’t seem to work. When I run my application in the simulator I can’t scroll down to see all the content in my view. I hope the simulator supports UIScrollView. > I generate a UIScrollView and add that to the UIWindow. Then I generate a UIView with a height of 1000 and add that to my UIScrollView. In the UIView I add all may Labels, Buttons, and so on. > Is that the right way or can somebody give me an example which shows the right way to do it? > Thanks at all. Unfortunately UIScrollView is not implemented in the simulator. It is only usable for actual iPhone development. I believe everyone in this list will be happy if you could help with this :) |
From: Micki <m.i...@we...> - 2010-06-10 17:32:10
|
Hi all, I worked with the xmlvm-Project to develop a iPhone application with Java. It's part of my Master-Thesis. In my application I should use a scrollable view. I choose the UIScrollView, but that doesn't seem to work. When I run my application in the simulator I can't scroll down to see all the content in my view. I hope the simulator supports UIScrollView. I generate a UIScrollView and add that to the UIWindow. Then I generate a UIView with a height of 1000 and add that to my UIScrollView. In the UIView I add all may Labels, Buttons, and so on. Is that the right way or can somebody give me an example which shows the right way to do it? Thanks at all. |
From: Gergely K. <ger...@ma...> - 2010-06-08 13:01:24
|
Hi, java.net.HTTPUrlConnection is either already merged, or available somewhere in the xmlvm-reviews.appspot.com as a patch. You may use those classes. Also, you may try to cross compile the Apache Http Client, but its performance will probably not be very good right now. Best Regards, Gergely 2010/6/8 Christian Kierdorf <chr...@go...> > Hi all, > I wrote a little Android App, that uses the HttpClient. This is not jet > implemented. Is that correct? > Can someone help me on this. Maybe an example how i write this Wrapper > classes on both sides. > Thanks > Chris > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- Kis Gergely MattaKis Consulting Email: ger...@ma... Web: http://www.mattakis.com Phone: +36 70 408 1723 Fax: +36 27 998 622 |
From: Christian K. <chr...@go...> - 2010-06-08 12:48:03
|
Hi all, I wrote a little Android App, that uses the HttpClient. This is not jet implemented. Is that correct? Can someone help me on this. Maybe an example how i write this Wrapper classes on both sides. Thanks Chris |
From: Leo I. <le...@sc...> - 2010-06-07 19:58:33
|
Hello, I have found a glitch: (the command cat prints the file to the screen). For some reason my email won't let me add an image, but it's Right Here. The problem isn't when I try to compile a java class into *.xmlvm. That works. The problem is when I try to compile XMLVM JVM into XMLVM CLR, or DFA. When I try, xmlvm.jar throws uncaught exceptions. Why? |
From: Damian <dam...@gm...> - 2010-06-07 13:00:15
|
Well I managed to get something working. I cross compiled the library and then stripped it down. I removed actors, xml, DynamicVariable, and a lot more. I'm having some issues with Console (or StringBuilder, don't know yet), and I will surely encounter more problems later. But well, it's working now :D I will watch your video as soon as I can. 2010/6/7 Kühn Wolfgang <wo....@en...> > Hi Damian, > > here some issues I found while trying to cross-compile Scala to JavaScript: > * The footprint may be larger as anticipated. For exampe, Console.scala > uses DynamicVariable.scala, > which uses the JRE class InheritableThreadLocal.java. > * The Scala to Java-Byte-Code compiler emits code different from the JDK > compiler. For example, Scala > makes extensive use of method overloading by return type. In Java, the > return type is not even part of the > method signature. Another example is exception handling, where the > current Scala compiler generates multi- > entrant catch blocks. This is not possible in Java either. > > However, these issues can be handled, but I would stay clear of the > concurrency features of Scale (actors). > Also be aware of extensive method invocations and object creations by Scala > programs, which modern JVMs > handle well, but which may not be the case for cross-compiled code. > > For more details and some demos, please refer to > http://days2010.scala-lang.org/node/138/142 > > Greetings, Wolfgang > > ------------------------------ > *Von:* Damian [mailto:dam...@gm...] > *Gesendet:* Samstag, 5. Juni 2010 05:51 > *An:* Panayotis Katsaloulis > *Cc:* xml...@li... > *Betreff:* Re: [xmlvm-users] Getting started > > Thanks for your reply. > I don't fully understand the problem you expose. > I succeeded cross-compiling the scala library (I wanted to try it anyway) > by adding -Xmx1024m option when launching xmlvm. > But the objective c compiler won't compile it anyway, it seems it can't > find "java_lang_Cloneable.h". Isn't Cloneable interface supported by xmlvm? > I was thinking that maybe I can try to strip down scala library to a > minimum and then write my own library with the functionality I really need > around the java library. Though that's exactly what the scala library is, > the scala library is a 3.5MB jar that's maybe using too many features > unsupported by xmlvm. > Please tell me your thoughts. > > Damian. > > On Fri, Jun 4, 2010 at 7:16 AM, Panayotis Katsaloulis < > pan...@pa...> wrote: > >> >> On 04 Ιουν 2010, at 2:15 ΠΜ, Damian wrote: >> >> > >> > 2. My language of choice is Scala by far, and my point is to code >> > IPhone apps using Scala. Is that possible? Have anyone tried to get >> > xmlvm working with scala? >> >> >> It is possible. >> In theory you should be able to do so with no problems, since I think >> this library does not contain any native code (or maybe am wrong). >> >> But there are a lot of things to consider first, before jumping to >> Scala with xmlvm. >> >> First of all, I believe it is totally non-practical to compile the >> whole scala-lib. It is huge and contains a lot of things that are not >> directly usable, There are methods and tricks to cut down this >> overhead, (like a patch I am preparing and will be submitted soon), >> but still this is not practical - *right now*. >> >> Second there are things that should be addressed first before simply >> compile it with xmlvm, having to do with dependency libraries etc. >> >> Another thing: I strongly believe there is NO reason to create a >> compatibility library for Scala, the only thing that needs to be done >> is to determine the scala-lib dependencies. >> And this is a long talk. >> >> >> To summarize: I believe xmlvm is not ready for Scala yet, although I >> have the same idea as you: I want Scala to be able to be a language of >> choice - and not only Scala but every JVM based language. >> Right now you have to be patient though and go with the flow :) >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > |
From: Kühn W. <wo....@en...> - 2010-06-07 12:42:41
|
Hi Damian, here some issues I found while trying to cross-compile Scala to JavaScript: * The footprint may be larger as anticipated. For exampe, Console.scala uses DynamicVariable.scala, which uses the JRE class InheritableThreadLocal.java. * The Scala to Java-Byte-Code compiler emits code different from the JDK compiler. For example, Scala makes extensive use of method overloading by return type. In Java, the return type is not even part of the method signature. Another example is exception handling, where the current Scala compiler generates multi- entrant catch blocks. This is not possible in Java either. However, these issues can be handled, but I would stay clear of the concurrency features of Scale (actors). Also be aware of extensive method invocations and object creations by Scala programs, which modern JVMs handle well, but which may not be the case for cross-compiled code. For more details and some demos, please refer to http://days2010.scala-lang.org/node/138/142 Greetings, Wolfgang ________________________________ Von: Damian [mailto:dam...@gm...] Gesendet: Samstag, 5. Juni 2010 05:51 An: Panayotis Katsaloulis Cc: xml...@li... Betreff: Re: [xmlvm-users] Getting started Thanks for your reply. I don't fully understand the problem you expose. I succeeded cross-compiling the scala library (I wanted to try it anyway) by adding -Xmx1024m option when launching xmlvm. But the objective c compiler won't compile it anyway, it seems it can't find "java_lang_Cloneable.h". Isn't Cloneable interface supported by xmlvm? I was thinking that maybe I can try to strip down scala library to a minimum and then write my own library with the functionality I really need around the java library. Though that's exactly what the scala library is, the scala library is a 3.5MB jar that's maybe using too many features unsupported by xmlvm. Please tell me your thoughts. Damian. On Fri, Jun 4, 2010 at 7:16 AM, Panayotis Katsaloulis <pan...@pa...<mailto:pan...@pa...>> wrote: On 04 Ιουν 2010, at 2:15 ΠΜ, Damian wrote: > > 2. My language of choice is Scala by far, and my point is to code > IPhone apps using Scala. Is that possible? Have anyone tried to get > xmlvm working with scala? It is possible. In theory you should be able to do so with no problems, since I think this library does not contain any native code (or maybe am wrong). But there are a lot of things to consider first, before jumping to Scala with xmlvm. First of all, I believe it is totally non-practical to compile the whole scala-lib. It is huge and contains a lot of things that are not directly usable, There are methods and tricks to cut down this overhead, (like a patch I am preparing and will be submitted soon), but still this is not practical - *right now*. Second there are things that should be addressed first before simply compile it with xmlvm, having to do with dependency libraries etc. Another thing: I strongly believe there is NO reason to create a compatibility library for Scala, the only thing that needs to be done is to determine the scala-lib dependencies. And this is a long talk. To summarize: I believe xmlvm is not ready for Scala yet, although I have the same idea as you: I want Scala to be able to be a language of choice - and not only Scala but every JVM based language. Right now you have to be patient though and go with the flow :) ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ xmlvm-users mailing list xml...@li...<mailto:xml...@li...> https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Sascha H. <sa...@xm...> - 2010-06-05 17:45:46
|
Hi Damian, what you are seeing is that the scala library itself uses some classes from the Java Runtime, for example Cloneable. However, this class is not yet in our compatibility library. Of course one thing you could try to translating parts of the Java Runtime libraries, but i am sure that some things will fail this way. What you said sounds like the right strategy: Try to limit the cross-compilation to the classes you are actually using. This is a good starting point to see what needs to be supported by XMLVM in order to make it work in the end. // Sascha 2010/6/5 Damian <dam...@gm...> > Thanks for your reply. > I don't fully understand the problem you expose. > I succeeded cross-compiling the scala library (I wanted to try it anyway) > by adding -Xmx1024m option when launching xmlvm. > But the objective c compiler won't compile it anyway, it seems it can't > find "java_lang_Cloneable.h". Isn't Cloneable interface supported by xmlvm? > I was thinking that maybe I can try to strip down scala library to a > minimum and then write my own library with the functionality I really need > around the java library. Though that's exactly what the scala library is, > the scala library is a 3.5MB jar that's maybe using too many features > unsupported by xmlvm. > Please tell me your thoughts. > > Damian. > > On Fri, Jun 4, 2010 at 7:16 AM, Panayotis Katsaloulis < > pan...@pa...> wrote: > >> >> On 04 Ιουν 2010, at 2:15 ΠΜ, Damian wrote: >> >> > >> > 2. My language of choice is Scala by far, and my point is to code >> > IPhone apps using Scala. Is that possible? Have anyone tried to get >> > xmlvm working with scala? >> >> >> It is possible. >> In theory you should be able to do so with no problems, since I think >> this library does not contain any native code (or maybe am wrong). >> >> But there are a lot of things to consider first, before jumping to >> Scala with xmlvm. >> >> First of all, I believe it is totally non-practical to compile the >> whole scala-lib. It is huge and contains a lot of things that are not >> directly usable, There are methods and tricks to cut down this >> overhead, (like a patch I am preparing and will be submitted soon), >> but still this is not practical - *right now*. >> >> Second there are things that should be addressed first before simply >> compile it with xmlvm, having to do with dependency libraries etc. >> >> Another thing: I strongly believe there is NO reason to create a >> compatibility library for Scala, the only thing that needs to be done >> is to determine the scala-lib dependencies. >> And this is a long talk. >> >> >> To summarize: I believe xmlvm is not ready for Scala yet, although I >> have the same idea as you: I want Scala to be able to be a language of >> choice - and not only Scala but every JVM based language. >> Right now you have to be patient though and go with the flow :) >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Damian <dam...@gm...> - 2010-06-05 03:51:15
|
Thanks for your reply. I don't fully understand the problem you expose. I succeeded cross-compiling the scala library (I wanted to try it anyway) by adding -Xmx1024m option when launching xmlvm. But the objective c compiler won't compile it anyway, it seems it can't find "java_lang_Cloneable.h". Isn't Cloneable interface supported by xmlvm? I was thinking that maybe I can try to strip down scala library to a minimum and then write my own library with the functionality I really need around the java library. Though that's exactly what the scala library is, the scala library is a 3.5MB jar that's maybe using too many features unsupported by xmlvm. Please tell me your thoughts. Damian. On Fri, Jun 4, 2010 at 7:16 AM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On 04 Ιουν 2010, at 2:15 ΠΜ, Damian wrote: > > > > > 2. My language of choice is Scala by far, and my point is to code > > IPhone apps using Scala. Is that possible? Have anyone tried to get > > xmlvm working with scala? > > > It is possible. > In theory you should be able to do so with no problems, since I think > this library does not contain any native code (or maybe am wrong). > > But there are a lot of things to consider first, before jumping to > Scala with xmlvm. > > First of all, I believe it is totally non-practical to compile the > whole scala-lib. It is huge and contains a lot of things that are not > directly usable, There are methods and tricks to cut down this > overhead, (like a patch I am preparing and will be submitted soon), > but still this is not practical - *right now*. > > Second there are things that should be addressed first before simply > compile it with xmlvm, having to do with dependency libraries etc. > > Another thing: I strongly believe there is NO reason to create a > compatibility library for Scala, the only thing that needs to be done > is to determine the scala-lib dependencies. > And this is a long talk. > > > To summarize: I believe xmlvm is not ready for Scala yet, although I > have the same idea as you: I want Scala to be able to be a language of > choice - and not only Scala but every JVM based language. > Right now you have to be patient though and go with the flow :) > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Panayotis K. <pan...@pa...> - 2010-06-04 10:17:00
|
On 04 Ιουν 2010, at 2:15 ΠΜ, Damian wrote: > > 2. My language of choice is Scala by far, and my point is to code > IPhone apps using Scala. Is that possible? Have anyone tried to get > xmlvm working with scala? It is possible. In theory you should be able to do so with no problems, since I think this library does not contain any native code (or maybe am wrong). But there are a lot of things to consider first, before jumping to Scala with xmlvm. First of all, I believe it is totally non-practical to compile the whole scala-lib. It is huge and contains a lot of things that are not directly usable, There are methods and tricks to cut down this overhead, (like a patch I am preparing and will be submitted soon), but still this is not practical - *right now*. Second there are things that should be addressed first before simply compile it with xmlvm, having to do with dependency libraries etc. Another thing: I strongly believe there is NO reason to create a compatibility library for Scala, the only thing that needs to be done is to determine the scala-lib dependencies. And this is a long talk. To summarize: I believe xmlvm is not ready for Scala yet, although I have the same idea as you: I want Scala to be able to be a language of choice - and not only Scala but every JVM based language. Right now you have to be patient though and go with the flow :) |
From: Sascha H. <sa...@xm...> - 2010-06-04 09:30:29
|
Hi Damian, to answer your questions from your first e-mail: 1) Yes this is the right place :) 2) In theory yes. I don't know Scala at all, but as it's being compiled down to JVM instructions, it's in theory possible to use XMLVM to cross-compile it. Now on to your error: I don't know what is all contained in scala-library.jar. Trying to cross-compile the whole API library of course sounds reasonable, but you might run into a lot of problems with unsupported functionality. E.g., one of the reasons we don't just cross-compile the whole Java Runtime libraries is because eventually you hit e.g. native methods that do something low level, and we don't support that yet. Now I don't know how the scala-library.jar looks like and what's in there, so I cannot say whether it's reasonable to try to cross-compile it. Your error seems like a bug in XMLVM to be, as there seems to be some infinite recursion going on. I will try to see whether I can reproduce this later. But again, it might not be reasonable to try and compile the whole library. What you could do, however, is the same thing we did with the Java side: You could implement compatibility classes of the the APIs you are using from Scala. This way you only need to cross-compile your actual application, and link it against the xmlvm compat lib. // Sascha On Fri, Jun 4, 2010 at 1:34 AM, Damian <dam...@gm...> wrote: > So I would have to crosscompile the scala standard libraries > (scala-library.jar), right? Because I've tried to do so, but I get an > exception while compiling: > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.OutOfMemoryError: Java heap space at > java.util.Arrays.copyOf(Arrays.java:2882) > at > java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) > at > java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) > ................ more > > On Thu, Jun 3, 2010 at 8:27 PM, <len...@gm...> wrote: > >> Hi yes this is the right place. U will b able to access the Java classes >> for the iphone from Scala, compile to Java byte code and then via xmlvm to >> objective c. >> >> Sent via my BlackBerry from Vodacom - let your email find you! >> >> >> -----Original Message----- >> From: Damian <dam...@gm...> >> Date: Thu, 3 Jun 2010 20:15:27 >> To: <xml...@li...> >> Subject: [xmlvm-users] Getting started >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> >> > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Damian <dam...@gm...> - 2010-06-03 23:34:28
|
So I would have to crosscompile the scala standard libraries (scala-library.jar), right? Because I've tried to do so, but I get an exception while compiling: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) ................ more On Thu, Jun 3, 2010 at 8:27 PM, <len...@gm...> wrote: > Hi yes this is the right place. U will b able to access the Java classes > for the iphone from Scala, compile to Java byte code and then via xmlvm to > objective c. > > Sent via my BlackBerry from Vodacom - let your email find you! > > -----Original Message----- > From: Damian <dam...@gm...> > Date: Thu, 3 Jun 2010 20:15:27 > To: <xml...@li...> > Subject: [xmlvm-users] Getting started > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > |
From: Damian <dam...@gm...> - 2010-06-03 23:15:35
|
Hi, I'm new to xmlvm, I discovered it 2 days ago and I'm trying to get started with it and got some questions: 1. Is this list the right place to ask for help? 2. My language of choice is Scala by far, and my point is to code IPhone apps using Scala. Is that possible? Have anyone tried to get xmlvm working with scala? Well, thanks a lot. Damian. |
From: Sascha H. <sa...@xm...> - 2010-05-28 22:47:01
|
David, what OS are you working on? I guess OSX or Linux? The Python is not originated in XMLVM. It is part of Qooxdoo, which we use in our build process. It creates a skeleton application, provides us with an Object-Oriented model and also an application builder. I am not actually sure what we used in the XML11 times, but XML11 is no longer maintained. It could be that you picked up a version that is not using Qooxdoo. What path did you set for XMLVM_QOOXDOO_PATH? I would like to reproduce this error on the weekend if possible and provide a fix. Thanks // Sascha On Fri, May 28, 2010 at 7:34 PM, D Sledge <dav...@ya...> wrote: > I seem to be having no end of trouble generating the app. It seems that if > the file name has a space in it, java.io.File(String) ignores the space and > everything after it. So it's telling the path assigned to the environment > variable "XMLVM_QOOXDOO_PATH" doesn't exist. The Java API documentation is > oddly silent on the issue. So after a number of futile attempts to > encode/escape the space characters, I commented out the parts in > org.xmlvm.proc.out.QooxdooOutputProcess.peformSanityChecks() that check if > the qooxdoo directory and the app-creating script exist, rebuilt the jar > file, and tried again. XMLVM is now telling me that the output directory > (build/js) isn't a valid qx project because the file > build/js/temp_cache/temp_qx_app/generate.py doesn't exist. > > On a related question, before I started playing around with XMLVM, I > noticed that XML11 generates the JS without the need for python. What is > XML11 using to generate the app? > > Thanks, > > D > > ------------------------------ > *From:* Sascha Haeberling <sa...@xm...> > *To:* D Sledge <dav...@ya...> > *Cc:* xml...@li... > *Sent:* Fri, May 28, 2010 9:05:14 AM > > *Subject:* Re: [xmlvm-users] Demos Translated to JavaScript > > The way you translated the app will only give you the JS code of that > single file, and not a whole app that works. In order to get an app that is > usable and that contains all the required dependencies, you need to use the > --target=qooxdoo flag. I am actually not sure if the AbsoluteCalculator > works, I haven't tried it in a while. But I will keep this in mind and try > to check it on the weekend. > > // Sascha > > > On Fri, May 28, 2010 at 4:47 PM, D Sledge <dav...@ya...> wrote: > >> I used the command: >> >> java -jar "dist/xmlvm.jar" >> --in=build/demo/java-desktop/org/xmlvm/demo/AbsoluteCalculator.class >> --out=build/js --target=js >> >> It generated a single js file (org_xmlvm_demo_AbsoluteCalculator.js), but >> I don't see a way to specify in which HTML element to display it. I also >> see it has some dependencies that where not generated with in the file, such >> as the objects java_lang_Object and qx. The latter I realize is part of the >> qooxdoo framework, but I find that a bit perplexing since the command flag >> "--target=qooxdoo" specifies a qooxdoo js app. >> >> Thanks, >> >> D >> >> ------------------------------ >> *From:* Sascha Haeberling <sa...@xm...> >> *To:* D Sledge <dav...@ya...> >> *Cc:* xml...@li... >> *Sent:* Fri, May 28, 2010 4:00:26 AM >> *Subject:* Re: [xmlvm-users] Demos Translated to JavaScript >> >> Hi D, >> >> how did you cross-compile the demo exactly? I ask, because there a >> different ways of doing it. >> >> Thanks >> // Sascha >> >> On Wed, May 26, 2010 at 11:52 PM, D Sledge <dav...@ya...>wrote: >> >>> So once I cross-complile one of the demos to JavaScript (specifically the >>> Java-base AbsoluteCalculator demo), how do I see the generated script in >>> action? >>> >>> Thanks, >>> >>> D >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >>> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |