Feed on
Posts
Comments

Archive for December, 2007

Recent Progress

Looks like pork is slowly going to get merged back into oink. This makes me happy as it will result in decreased merging headaches and gives more visibility to my work outside of Mozilla. My elkhound changes are already in! Recently I added support for retaining gnu attributes to elsa and corresponding features dehydra and [...]

Exceptions

Often there are two ways to write code. One way is to design an API and have code patterns adhere to how the API is supposed to be used. Another way is to rely on language features to accomplish the same thing. Typically API-pattern approaches are chosen because compilers are too immature or just don’t [...]

Typical It seems that there are 3 stages to doing a rewrite in Moz: Start a new tool. Make sure that it can rewrite some trivial testcases. Add lots of asserts for cases you are unsure about. Run tool on Mozilla and fix crashes caused by above asserts. Get 80% of the code rewriting correctly. [...]

My previous post on outparam rewriting described the wealth of functions that can be rewritten. Unfortunately, most functions in Mozilla are declared in XPIDL interfaces. I have been convinced that my plan to rewrite xpidlgen to avoid outparameters wont be possible because most XPIDLinterfaces can be implemented by JavaScript in a few different ways. That [...]