Friday, December 14, 2018

File streaming on the Bus

FileStream(int *argc,void * args[] ) {
FILE *  fin= argc[idx+1];
long * buf = &args[idx+2];
int count = (int) args[idx+2];
fread(buf,,sizeof(long),count,fin);

I think this fills args directly, and dangerously. I haven;t tried it.   But the syntax engine can read directly onto args,then let another subsytem use it directtly off the args list. Great for loading up dictionaries, the engine make a requests for word from file and gets word from file, right there, in the same spot even.  Your engine fills itself:
 FileName Count FileReadWords;  # rpn notation

Throw that on the bus, look for any takers. See, it is pretty obvious, it is linux command format, add switches if you please.  The interface is a no brainer, nothing changes, all is in units of 64 bit wards, and Moore may not last until 128 bits.  Nothing will change, the world will be argc args, forever. Dont care what kind of software you write, we can wrap in the universal interface, put it on the Bus. You pick your syntax, your market, your loadables. Then cutnpaste a thousand line file. Everything else is a matter of filtering through all that wonderful linux bloat.

No comments: