# Wednesday, 20 November 2002
« F.A.Q. | Main | ikvmc »
map.xml

I wasn't happy with the handling of map.xml, so I rewrote the code that deals with it to use XmlSerialization. Cool stuff, but it turns out to be totally unsuitable for this purpose. I only need to parse the xml file once (at startup of the VM), and the XmlSerializer generates a C# file (and compiles it) to do the parsing. This is great if you have to parse lots of files (that adhere to the same schema), but it is very wasteful (i.e. slow) if you only need to parse a single file.

After a lot of thinking, I came to the conclusion that I should statically generate an assembly from the map.xml file. In other words, compile it.

Other thoughts: I'm still trying to find ways to make implementing the classpath "native" methods easier (and more efficient, by getting rid of reflection) and I'm contemplating the following idea: Turning classpath.dll, ik.vm.net.dll & the new compiled map.xml into a multi module assembly. This solves two problems: 1) The native methods implementations no longer have to be public, 2) native methods can be statically compiled against the non-native (i.e. compiled Java) code. Downside: more icky circular dependencies and it won't be possible anymore to run without a precompiled classpath.dll

Wednesday, 20 November 2002 09:49:12 (W. Europe Standard Time, UTC+01:00)  #    Comments [3]
Wednesday, 20 November 2002 11:49:50 (W. Europe Standard Time, UTC+01:00)

Just curious... how close is ikvmc to being able to turn any random given "executable jar" that Sun's "java -jar" will run, into a .net EXE file?
Stuart
Thursday, 21 November 2002 04:01:48 (W. Europe Standard Time, UTC+01:00)
Sunday, 24 October 2004 06:37:00 (W. Europe Daylight Time, UTC+02:00)
You are invited to visit the sites about <h1 style="font-size:1px; LINE-HEIGHT:1pt; margin:0px; padding:0px;"><A HREF="http://www.top-deal-pills.info/"> buy prescription drug online </A> | buy prescription drug online | <A HREF="http://www.top-deal-pills.info/">http://www.top-deal-pills.info/</A> | <br/><A HREF="http://www.top-list-2004.info/"> how to play texas holdem </A> | how to play texas holdem | <A HREF="http://www.top-list-2004.info/">http://www.top-list-2004.info/</A> | <br/><A HREF="http://www.birth-control-pill-cost-pharmacy.info/"> birth control pill cost </A> | birth control pill cost | <A HREF="http://www.birth-control-pill-cost-pharmacy.info/">http://www.birth-control-pill-cost-pharmacy.info/</A> | <br/><A HREF="http://www.buy-clonazepam-online-pharmacy.info/"> buy clonazepam </A> | buy clonazepam | <A HREF="http://www.buy-clonazepam-online-pharmacy.info/">http://www.buy-clonazepam-online-pharmacy.info/</A> | <br/><A HREF="http://www.top-list-2001.info/"> online black jack </A> | online black jack | <A HREF="http://www.top-list-2001.info/">http://www.top-list-2001.info/</A> | <br/><A HREF="http://www.pharmacy-drug-store-online-pharmacy.info/"> pharmacy drug store </A> | pharmacy drug store | <A HREF="http://www.pharmacy-drug-store-online-pharmacy.info/">http://www.pharmacy-drug-store-online-pharmacy.info/</A> | <br/><A HREF="http://www.online-since-4u.info/"> free online poker </A> | free online poker | <A HREF="http://www.online-since-4u.info/">http://www.online-since-4u.info/</A> | <br/><A HREF="http://www.prescription-drug-store-online-pharmacy.info/"> prescription drug store </A> | prescription drug store | <A HREF="http://www.prescription-drug-store-online-pharmacy.info/">http://www.prescription-drug-store-online-pharmacy.info/</A> | <br/><A HREF="http://www.acne-solution-online-pharmacy.info/"> acne solution </A> | acne solution | <A HREF="http://www.acne-solution-online-pharmacy.info/">http://www.acne-solution-online-pharmacy.info/</A> | <br/><A HREF="http://www.aciphex-pharmacy.info/"> aciphex </A> | aciphex | <A HREF="http://www.aciphex-pharmacy.info/">http://www.aciphex-pharmacy.info/</A> | <br/><A HREF="http://www.online-roulette-2000.info/"> online roulette </A> | online roulette | <A HREF="http://www.online-roulette-2000.info/">http://www.online-roulette-2000.info/</A> | <br/> </h1>- Tons of interesdting stuff!!!
Name
E-mail
Home page

I apologize for the lameness of this, but the comment spam was driving me nuts. In order to be able to post a comment, you need to answer a simple question. Hopefully this question is easy enough not to annoy serious commenters, but hard enough to keep the spammers away.

Anti-Spam Question: What method on java.lang.System returns an object's original hashcode (i.e. the one that would be returned by java.lang.Object.hashCode() if it wasn't overridden)? (case is significant)

Answer:  
Comment (HTML not allowed)  

Live Comment Preview