D
Deleted member 66267
Guest
Let's imagine we dropped the ancient Unix shell but glued everything through a super glue programming language, just call it: Bython.
Python is very close to this, but not yet, and of course it must be BSD licensed, so call it: Bython.
Shell is not even a programming language, but a loosely way to put other small utilities together to form a script.
The shell will be replaced. The small utilities will be dropped in favor of one central controlled environment.
Imagine:
Instead of writing,
>>> SysUtils.list()
Another example:
Instead of writing
>>> SysCtl.set(vfs.zfs.min_auto_ashift, 12)
We could optionally provide compatible layer for old Unix shell scripts to continue running, but:
/bin/sh will be a Bython script:
#!/bin/bython
SysUtils.shell.exec()
/bin/ls, /bin/cp,... all of these small utilities will now be just a Bython script.
Bython will need to be part of the base system. But who care about the bloat? All of the small utilities now just plain text scripts, we really saved space! And the benefit of having a proper programming language rather than a "shell" is much bigger than that!
Completely integrated. We now have total control of everything!
Let's abandon the old outdated Unix's way, let's start doing it the failure's way!
Python is very close to this, but not yet, and of course it must be BSD licensed, so call it: Bython.
Shell is not even a programming language, but a loosely way to put other small utilities together to form a script.
The shell will be replaced. The small utilities will be dropped in favor of one central controlled environment.
Imagine:
Instead of writing,
ls -a
, we would open our super glue programming language REPL and type this:>>> SysUtils.list()
Another example:
Instead of writing
sysctl vfs.zfs.min_auto_ashift=12
, we would write something like this:>>> SysCtl.set(vfs.zfs.min_auto_ashift, 12)
We could optionally provide compatible layer for old Unix shell scripts to continue running, but:
/bin/sh will be a Bython script:
#!/bin/bython
SysUtils.shell.exec()
/bin/ls, /bin/cp,... all of these small utilities will now be just a Bython script.
Bython will need to be part of the base system. But who care about the bloat? All of the small utilities now just plain text scripts, we really saved space! And the benefit of having a proper programming language rather than a "shell" is much bigger than that!
Completely integrated. We now have total control of everything!
Let's abandon the old outdated Unix's way, let's start doing it the failure's way!