« renaissance period | Main | At the peak »
February 02, 2005
Inches away from the peak
During the redesign of my code base, I've rearranged and optimized the project's file structure, java class names, and the code balance between the implementation language and contex itself.
Everything started with deleting much of my java code. Now, almost all operations boil down to the 'invoke' primitive, which recieves an object, a method name and a list of args. Sounds familiar? This primitive is just a CX wrapper for accessing java reflections, hence instantly giving CX all of the powers of java to build upon. This leads to almost all of the code being made in CX, all sitting ontop of a simple java application which allows the cx code to control the java runtime reflectively. The advantage is that the CX code will end up making a complete runtime out of a small set of code in another language than java, just like it expects little from java now.
The first thing to sort out is how to use this 'invoke' primtive to build CX all the way back to the functionality that it had back when the design was not portible to another implementation langauge. These things include 'set' and '@'. The struggle is to have less primitives.
Once I would have made what was once considered primitives in CX, I will need to play around to figure out the best Object system. The best way to figure it out is by testing out different ways. ConteX is an object oriented programming language, that much is known. The goal will be multiple inheritance by sharing lists of methods, direct object copying.. I dont know how it will work out, but I am stiff with a set of beliefs.
On a higher level, the math lib is being done in CX too, for the same advantage: portible power.
Posted by Rex at February 2, 2005 12:59 PM