In total, it comes in at 560 lines, without the test code. Add a hundred lines for keyboard and mouse; this is still a snippet. Email it, cut and pasted it pass it round. Just keep it under 800 lines of code, or I will. Keep the universal interface. Add 8 more APIs only to delete stuff and start messages and set controls. The whole idea here is to make add on packages, so the enhancement might be to make a universal graphics buffer based compositor, Wayland compatible, then add on a bunch of various packages, small, just like Xchars. The concept is the users mix and match snippets to make a complete application. They are guided by their powerful enterprise syntax engine.
I keep my loadables in /home/so, and all files have the extension so, nothing more, as in: xchars.so. Then I fire up console loop and load em up. The snippet is small, has no version number in the file name Instead snippet users agree n a version command with standard output that a bot can read. So rather than go fire up the file manager to pickout the name, you might say: module xchars version, and the module built in will execute the command line query. But is is all inside your current address space, you still make the one and only system call, this time t the loadable itself, on disk, as a main(arg,argv) program.
So, in everything, Default, console loop, loadable, snippets, Bus control; kick it upstairs to python, node.js, Golang, Forth,... Stay down and dirty at the bus level generating snippets.
Snippets, an industry
The snippet community agrees to some basics, like version and help commands. Then they break into families of snippets, the group sharing a name space and interactive protocol. The important idea is to recast that args line into useful structures, then build tightly integrated systems by sharing the bindings. Very powerful method to manage large projects with independent developers because of the independence. Any snippet developer can re-purpose their snippets to different semantics via bindings and the Bus. And snippets are fun fun fun, especially when you are in an industry of growing snippet buyers and sellers; very liquid, easy to adapt, and great snippet writers, like trading bot writers, make bucks.
Right now I am debugging a Load error I introduced by specifying /home/so as default. But I will be in console loop tonight, with Xchars and Default both loaded.
No comments:
Post a Comment