OBJECTS - LeFreq/Singularity GitHub Wiki

An Object is an encapsulation (or "named object), like a function, that is both code and data, but what distinguishes functions from objects is that they construct order upwards from the machine, rather than rule over the machine to perform computation.

That is, objects are architecting structure -- functions don't do that. If you are trying to do that in a function, you're doing it wrong -- you should be using OOP.

All objects should follow the Rule of Four which states that there are 4 primary functions (on 2 axiis) + and - 1 in each direction in some cases for scaling.

  • base: getstate (non-zero?), clone
  • container: adds contains, index (size is returned by a more informative getstate result).
  • hardware: read, write,
A non-null value should be inferable without extra code by the object, from the data environment. So, too, possibly, size as well as type of object (set of {hardware, container, inspection, generic, numeric }). Data, structs, and such remain separate and are the values passed in and out of objects. Some function in the ecosystem or object must be able to marshal or serialize this into data and tag it with the object NAME that can be used to re-animate the data into an object, likewise. In Python, STR is the function in the object while REPR is the function outside the object, provided by the ecosystem and outputs, recursively all the relevant [sub]objects until it is into a c-like struct or database-like field and write into a file. The object name should be the first line.
Objects can have a queue for their inputs and a queue at the output for asynchronous processing. Data stacks up in the queue, added by other objects, until the object is run. In effect, duplicating the parameter list for initiating the object with whatever is on the queue. When an object has processed its input and the output is ready, a sound should be emitted. In the visualization, this should show up as activated nodes, that turn dark after their data is read or sent somewhere.
Depicting an object in the Cloud: Rather than show translucent objects... Move to CYBERSPACE?
Object-ives:
  • All objects must do something interesting, otherwise don't make an object.
  • All object must hold one state variable, otherwise break it up into multiple objects or make it a function.
  • Object initialization should require no more than 2 parameters, otherwise check your architecture.
  • An object should not pester it`s parents. but be independent.
⚠️ **GitHub.com Fallback** ⚠️