From: Troy G. <tro...@gm...> - 2010-10-20 12:26:03
|
I'm trying to cross-compile some code to the iPhone. One of the classes I need among others is java.math.BigInteger. I see there is a subset of the Java standard libraries already cross-compiled to Objective C. Is the recommended approach just to take the java.math.BigInteger class and cross-compile it manually. I'm trying to understand what is included vs. what I need to do manually? Thanks! |
From: Troy G. <tro...@gm...> - 2010-10-20 16:32:54
|
Would it be sufficient in the meantime to just try to cross-compile BigInteger and all of it's transitive dependencies? I'm using a library that has this dependency on BigInteger among other things. Thanks. On Wed, Oct 20, 2010 at 11:15 AM, Arno Puder <ar...@pu...> wrote: > We pursue the idea of cross-compiling the JDK to achieve better API > coverage. One problem you will encounter is the dependencies within > JDK: if you reference one class (such as BigInteger) you inadvertently > pull in half the JDK because of all the dependencies. I know I have > saying that we are working on this for the past three months without > anything happening, but I hope we will make progress real soon. > > Arno > > On Oct 20, 2010, at 5:26 AM, Troy Gaines <tro...@gm...> wrote: > > I'm trying to cross-compile some code to the iPhone. One of the classes I > need among others is java.math.BigInteger. I see there is a subset of the > Java standard libraries already cross-compiled to Objective C. Is the > recommended approach just to take the java.math.BigInteger class and > cross-compile it manually. I'm trying to understand what is included vs. > what I need to do manually? > > Thanks! > > > ------------------------------------------------------------------------------ > > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Arno P. <ar...@pu...> - 2010-10-20 16:37:58
|
You can try, but my fear is that "transitive closure" will result in half of the JDK. At that point you will most likely run into deficiencies with the Objective C backend as well (which we don't have with the new C backend). Right now I am stalled with the C backend until we have sorted out the dependency problem. Arno On Oct 20, 2010, at 9:32 AM, Troy Gaines <tro...@gm...> wrote: Would it be sufficient in the meantime to just try to cross-compile BigInteger and all of it's transitive dependencies? I'm using a library that has this dependency on BigInteger among other things. Thanks. On Wed, Oct 20, 2010 at 11:15 AM, Arno Puder <ar...@pu...> wrote: > We pursue the idea of cross-compiling the JDK to achieve better API > coverage. One problem you will encounter is the dependencies within > JDK: if you reference one class (such as BigInteger) you inadvertently > pull in half the JDK because of all the dependencies. I know I have > saying that we are working on this for the past three months without > anything happening, but I hope we will make progress real soon. > > Arno > > On Oct 20, 2010, at 5:26 AM, Troy Gaines <tro...@gm...> wrote: > > I'm trying to cross-compile some code to the iPhone. One of the classes I > need among others is java.math.BigInteger. I see there is a subset of the > Java standard libraries already cross-compiled to Objective C. Is the > recommended approach just to take the java.math.BigInteger class and > cross-compile it manually. I'm trying to understand what is included vs. > what I need to do manually? > > Thanks! > > > ------------------------------------------------------------------------------ > > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ xmlvm-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2010-10-20 16:43:00
|
We pursue the idea of cross-compiling the JDK to achieve better API coverage. One problem you will encounter is the dependencies within JDK: if you reference one class (such as BigInteger) you inadvertently pull in half the JDK because of all the dependencies. I know I have saying that we are working on this for the past three months without anything happening, but I hope we will make progress real soon. Arno On Oct 20, 2010, at 5:26 AM, Troy Gaines <tro...@gm...> wrote: I'm trying to cross-compile some code to the iPhone. One of the classes I need among others is java.math.BigInteger. I see there is a subset of the Java standard libraries already cross-compiled to Objective C. Is the recommended approach just to take the java.math.BigInteger class and cross-compile it manually. I'm trying to understand what is included vs. what I need to do manually? Thanks! ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ xmlvm-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Troy G. <tro...@gm...> - 2010-10-20 21:21:21
|
So, are you saying that the current back-end may not be sufficient to support cross compiling this particular class until the new back-end is finished? Currently, I'm more worried about the functionality more than extra dependencies. Thanks again! On Wed, Oct 20, 2010 at 11:37 AM, Arno Puder <ar...@pu...> wrote: > > You can try, but my fear is that "transitive closure" will result in half > of the JDK. At that point you will most likely run into deficiencies with > the Objective C backend as well (which we don't have with the new C > backend). Right now I am stalled with the C backend until we have sorted > out the dependency problem. > > Arno > > > On Oct 20, 2010, at 9:32 AM, Troy Gaines <tro...@gm...> wrote: > > Would it be sufficient in the meantime to just try to cross-compile > BigInteger and all of it's transitive dependencies? I'm using a library > that has this dependency on BigInteger among other things. > > Thanks. > > > On Wed, Oct 20, 2010 at 11:15 AM, Arno Puder < <ar...@pu...> > ar...@pu...> wrote: > >> We pursue the idea of cross-compiling the JDK to achieve better API >> coverage. One problem you will encounter is the dependencies within >> JDK: if you reference one class (such as BigInteger) you inadvertently >> pull in half the JDK because of all the dependencies. I know I have >> saying that we are working on this for the past three months without >> anything happening, but I hope we will make progress real soon. >> >> Arno >> >> On Oct 20, 2010, at 5:26 AM, Troy Gaines < <tro...@gm...> >> tro...@gm...> wrote: >> >> I'm trying to cross-compile some code to the iPhone. One of the classes I >> need among others is java.math.BigInteger. I see there is a subset of the >> Java standard libraries already cross-compiled to Objective C. Is the >> recommended approach just to take the java.math.BigInteger class and >> cross-compile it manually. I'm trying to understand what is included vs. >> what I need to do manually? >> >> Thanks! >> >> >> ------------------------------------------------------------------------------ >> >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today! >> <http://p.sf.net/sfu/adobe-dev2dev>http://p.sf.net/sfu/adobe-dev2dev >> >> _______________________________________________ >> xmlvm-users mailing list >> <xml...@li...>xml...@li... >> <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Panayotis K. <pan...@pa...> - 2010-10-21 07:47:10
|
On Oct 21, 2010, at 12:20 AM, Troy Gaines wrote: > So, are you saying that the current back-end may not be sufficient to support cross compiling this particular class until the new back-end is finished? Currently, I'm more worried about the functionality more than extra dependencies. > > Thanks again! I believe it is easier to just create a wrapper (like the other java.*.* objects) in Obj-C and simulate more or less the functionality. A simple way to do this, if you really don't care about accuracy, is use a double (or long long) number to do the mathematics in the Obj-C world. |