Script again
Bwain| No Comments »So after taking almost 1 year off, (big diversion in looking at finance stuff), I started looking at the scripting problem again. What’s good about having stopped is that the proper solution is clear. Start with the scripting language first. Start with that before anything, from that we get everything, expressions, shading language, proper objects, aggregated data types, namespaces, everything. I need to start a new scripting language seperately, implement a new type system, and start from scratch.
Also, I need to focus on the pass by reference/value/pointer issue. Wasn’t solved in the original implementation, so now I have a chance to squash it.
Here is a spec:
Grammar:
- Recursive
- Namespaces
- objects/classes/constructors
Internals:
- Reuse the letter/envelope idiom used for spa. (Was very effective)
- Has axiom data types. Int/Double/Enum/Function/String/void/etc.
- Some contructors are purely script based, but some constructor will have a c++ component as well
- Type dictionary
- Gets compiled into bytecode.
- compiled bytecode is executed, and manipulates a stack
- Objects define themselves as being copied by value or reference.
- handle references, maybe pointers.
- typesafe
- Has an execution stack, and heap.
- Any non-axoim (binary) objects are callable, with a return type.


