From: Dr. A. K. S. <al...@se...> - 2010-01-20 11:44:36
|
Hi all, I've finally managed to port the core audio processing library from my android app to iphone and tested it... it works perfectly with <1E-6 difference! (still with --use-jvm) On the way I had to implement some compatibility objectiveC code which I'm willing to contribute. This is basically... * a pretty complete java_util_Vector (based on NSMutableArray) * a pretty complete java_io_FileInputStream (using a memory buffer for simplicity, might have some leaks, did not put the same functions in InputStream as abstract implementations... sorry, was in a hurry) * adding many functions to java_lang_Math * java_lang_Double with conversion functions * minor stuff: + logging the processed code file in ObjectiveCOutputProcess.java This makes finding java source file with still missing opcodes so much easier to find! + adding the wav file type to XCodeFile This automatically adds them to the resources. A workaround to support raw resources would be to rename all Android resources in res/raw to .raw extension, run android build to get R.java, add the .raw file type to XCodeFile and also add an access function to android/content/res/Resources.java like this: public FileInputStream openRawResource(int resourceId) throws Exception { String fileName = getFileNamePath(findResourceNameById(resourceId)); String filePath = NSBundle.mainBundle().pathForResource(fileName,"raw"); return new FileInputStream(filePath); } Works for .wav, at least! What is the best way for me to contribute code? For now there is no major discrepancy with the svn repository, but it is only a matter of time... ;-) Best, Alex -- Dr. Alexander K. Seewald Seewald Solutions www.seewald.at Tel. +43(664)1106886 Fax. +43(1)2533033/2764 |
From: Wolfgang K. <wol...@xm...> - 2010-01-20 13:07:45
|
Great to hear that you would like to contribute to XMLVM! Please have a look at http://xmlvm.org/contribute/. There we describe the process of contributing to XMLVM. Basically you have to sign our Contributor License Agreement (CLA) and submit a patch file to our code review portal at http://xmlvm-reviews.appspot.com/ . After reviewing the changes we will merge them to our SVN repository. If you have any further questions, let us know. -- Wolfgang Dr. Alexander K. Seewald wrote: > Hi all, > > I've finally managed to port the core audio processing library from > my android app to iphone and tested it... it works perfectly with <1E-6 > difference! (still with --use-jvm) > > On the way I had to implement some compatibility objectiveC code > which I'm willing to contribute. This is basically... > * a pretty complete java_util_Vector (based on NSMutableArray) > * a pretty complete java_io_FileInputStream (using a memory buffer > for simplicity, might have some leaks, did not put the > same functions in InputStream as abstract implementations... > sorry, was in a hurry) > * adding many functions to java_lang_Math > * java_lang_Double with conversion functions > > * minor stuff: > + logging the processed code file in ObjectiveCOutputProcess.java > This makes finding java source file with still missing opcodes > so much easier to find! > + adding the wav file type to XCodeFile > This automatically adds them to the resources. A workaround to > support raw resources would be to rename all Android resources > in res/raw to .raw extension, run android build to get R.java, > add the .raw file type to XCodeFile and also add an access function > to android/content/res/Resources.java like this: > public FileInputStream openRawResource(int resourceId) throws Exception { > String fileName = getFileNamePath(findResourceNameById(resourceId)); > String filePath = NSBundle.mainBundle().pathForResource(fileName,"raw"); > return new FileInputStream(filePath); > } > Works for .wav, at least! > > What is the best way for me to contribute code? For now there is no > major discrepancy with the svn repository, but it is only a matter > of time... ;-) > > Best, > Alex > |
From: Dr. A. K. S. <al...@se...> - 2010-01-20 16:18:20
|
Hi Wolfgang, I've signed the CLA and uploaded the first batch of patches. Most of these should be ok; for java_io_FileInputStream Gergely's version will surely be better. ;-) The changes should work well with Rev. 862. Best, Alex On Wed, Jan 20, 2010 at 01:15:31PM +0100, Wolfgang Korn wrote: > Great to hear that you would like to contribute to XMLVM! Please have a > look at http://xmlvm.org/contribute/. There we describe the process of > contributing to XMLVM. Basically you have to sign our Contributor > License Agreement (CLA) and submit a patch file to our code review > portal at http://xmlvm-reviews.appspot.com/ . After reviewing the > changes we will merge them to our SVN repository. > > If you have any further questions, let us know. > > -- Wolfgang |
From: Gergely K. <ger...@ma...> - 2010-01-20 14:30:49
|
Hi, We are also in the process of preparing a similar patchset, with some overlaps: - Parts of Collections framework (List, Map, Vector, ArrayList, LinkedList, Hashtable): All based on NSMutableArrays and NSMutableDictionaries. - Parts of the IO framework (FileInputStream, FileOutputStream, ByteArray*Stream, InputStreamReader) - Synchronization (Threads, proper implementation of synchronized blocks and methods, wait, notify) - and various other bits and pieces (Math, different number classes ... etc.) We are struggling with getting our private xmlvm branch up to the latest trunk so we can send back the patches, and also with trying to meet a deadline with our project. Best Regards, Gergely 2010/1/20 Dr. Alexander K. Seewald <al...@se...> > Hi all, > > I've finally managed to port the core audio processing library from > my android app to iphone and tested it... it works perfectly with <1E-6 > difference! (still with --use-jvm) > > On the way I had to implement some compatibility objectiveC code > which I'm willing to contribute. This is basically... > * a pretty complete java_util_Vector (based on NSMutableArray) > * a pretty complete java_io_FileInputStream (using a memory buffer > for simplicity, might have some leaks, did not put the > same functions in InputStream as abstract implementations... > sorry, was in a hurry) > * adding many functions to java_lang_Math > * java_lang_Double with conversion functions > > * minor stuff: > + logging the processed code file in ObjectiveCOutputProcess.java > This makes finding java source file with still missing opcodes > so much easier to find! > + adding the wav file type to XCodeFile > This automatically adds them to the resources. A workaround to > support raw resources would be to rename all Android resources > in res/raw to .raw extension, run android build to get R.java, > add the .raw file type to XCodeFile and also add an access function > to android/content/res/Resources.java like this: > public FileInputStream openRawResource(int resourceId) throws Exception > { > String fileName = getFileNamePath(findResourceNameById(resourceId)); > String filePath = > NSBundle.mainBundle().pathForResource(fileName,"raw"); > return new FileInputStream(filePath); > } > Works for .wav, at least! > > What is the best way for me to contribute code? For now there is no > major discrepancy with the svn repository, but it is only a matter > of time... ;-) > > Best, > Alex > -- > Dr. Alexander K. Seewald > > Seewald Solutions > www.seewald.at > Tel. +43(664)1106886 > Fax. +43(1)2533033/2764 > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > 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 |
From: Arno P. <ar...@pu...> - 2010-01-20 19:11:08
|
there seems to be a little overlap, but both of you have done some interesting extensions. We are definitely interested to merge these back with the trunk. We'll work with you to make that happen. Arno On 1/20/10 6:30 AM, Gergely Kis wrote: > Hi, > > We are also in the process of preparing a similar patchset, with some > overlaps: > > - Parts of Collections framework (List, Map, Vector, ArrayList, > LinkedList, Hashtable): All based on NSMutableArrays and > NSMutableDictionaries. > - Parts of the IO framework (FileInputStream, FileOutputStream, > ByteArray*Stream, InputStreamReader) > - Synchronization (Threads, proper implementation of synchronized blocks > and methods, wait, notify) > - and various other bits and pieces (Math, different number classes ... > etc.) > > We are struggling with getting our private xmlvm branch up to the latest > trunk so we can send back the patches, and also with trying to meet a > deadline with our project. > > Best Regards, > Gergely > > > 2010/1/20 Dr. Alexander K. Seewald <al...@se... > <mailto:al...@se...>> > > Hi all, > > I've finally managed to port the core audio processing library from > my android app to iphone and tested it... it works perfectly with <1E-6 > difference! (still with --use-jvm) > > On the way I had to implement some compatibility objectiveC code > which I'm willing to contribute. This is basically... > * a pretty complete java_util_Vector (based on NSMutableArray) > * a pretty complete java_io_FileInputStream (using a memory buffer > for simplicity, might have some leaks, did not put the > same functions in InputStream as abstract implementations... > sorry, was in a hurry) > * adding many functions to java_lang_Math > * java_lang_Double with conversion functions > > * minor stuff: > + logging the processed code file in ObjectiveCOutputProcess.java > This makes finding java source file with still missing opcodes > so much easier to find! > + adding the wav file type to XCodeFile > This automatically adds them to the resources. A workaround to > support raw resources would be to rename all Android resources > in res/raw to .raw extension, run android build to get R.java, > add the .raw file type to XCodeFile and also add an access function > to android/content/res/Resources.java like this: > public FileInputStream openRawResource(int resourceId) throws > Exception { > String fileName = > getFileNamePath(findResourceNameById(resourceId)); > String filePath = > NSBundle.mainBundle().pathForResource(fileName,"raw"); > return new FileInputStream(filePath); > } > Works for .wav, at least! > > What is the best way for me to contribute code? For now there is no > major discrepancy with the svn repository, but it is only a matter > of time... ;-) > > Best, > Alex > -- > Dr. Alexander K. Seewald > > Seewald Solutions > www.seewald.at <http://www.seewald.at> > Tel. +43(664)1106886 > Fax. +43(1)2533033/2764 > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important > issues through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > <mailto:xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > > -- > Kis Gergely > MattaKis Consulting > Email: ger...@ma... <mailto:ger...@ma...> > Web: http://www.mattakis.com > Phone: +36 70 408 1723 > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |