Tuesday, December 11, 2018

Version 2.0 of linux bus

The linux bus interface version 2.0

typedef struct {
long Code[ARGSSACK];
long Data[VARSTACK];
long Out[OUTSTACK];
} Args;

int * Argc

OK, the idea here is that I am putting the shunting algorithm on the bus, it needs full duplex, Version2.0. Completely compatible with version 1.0.

We still start args from the bottom, and interfaces now have to remember version, if this changes.  Argc can be an array here, then it is always obvious that an argc can point to start of output. Leave it up to the pros, call my version experimental.

// Expr my_var + your_var - (8 * dx) ; // For example, throw that on the bus.

With shunt on the bus,   I have that completely separated arithmetic  from my brackets and while loops, and if the shunt is made efficient, then any other ad hoc syntax loaded can still use it, while swapping out the Default residual.

Remember, when I say bus, I mean sub systems that interpret linux commands, and they are local, loaded right inside console loop, or easily swapped. They are mostly managed by console, all it does is load them and search their command lists, that is the bus. Extraordinarily simple, universal interface.

Bus Glossary:

Console Loop - Loads, unloads loadables, searches their entry point, has standard stdio.
Loadable - Has the standard entry point, compiled as shared lib, and does linux command format
Linux Command Format - cmd arg1 arg2 arg3 // as a string, gcc for example
                                              (int *argc,void * args[])  //in binary.
EntryPoint - Called with Entry(argc,args);  // it is the only interface exposed anywhere on the bus.
Bus - Any loadable within reach of the console loop is on the bus
Syntax Engine - The Entry points that accepts strings of syntax.
SubSystem - Any of the thousands of Linux utilities that are ultimately loadable, one way or the other.
Shuntng Yard - Loadable does stack style parsing
Default - Syntax engine does standard c ints, char*, while and brackets.  Comes with standard symbol service. Relies on the shunting module.
Xchars - A loadable does NewWindow and OutString to X and Y. Universal standard since Samuel Morse and earlier, often called plain structured text. Derived from the old wooden presses of 1720. Predates ncurses.


Join - An entirely separate thing, the intelligence of the collective bots.  Join uses standard linux command and control but join has its own data path, separate from http and separate from the bus. Joins generally built in high speed co-processors capable of directed graph and set slicing operations, generally dense, asynchronous, massively parallel; and they all talk LazyJ. Considered as a massive population of independent bots raversing global semantic networks with power of attorney.


No comments: