I don't think any clone of
ksh can beat the
original in term of speed because Korn's C code cannot be beat.
mksh wants to be compatible with
oksh is a little more true to
ksh however it has gone a different path and has got
less features than
ksh. But I haven't read nor used
near enough about these yet to have any due criticism..
ksh code is also dependent on other software from
Technology suite, developed by Mr Korn and a few others through
many decades of work.
When Siteshwar and Kurtis Rader started to work on
ksh code in 2017 thereabouts, they could not understand
it very well and chose to remove large chunks of the code and
rewrite whatever was left in such a C idiomatics and using
compilers that made the shell terribly slow compared to original
ksh93u+ and ultimately led to the AST code
In retrospective, if Siteshwar and kdrader1961 wanted to change
so much of the code, they should have forked
ksh repo in the first place
I am happy some stepped up and manage to get AST (and
ksh93) official repo back on the correct track.
ksh seems like a suitable default shell for
scripting. Feature-wise, that is comparable to
bash+zsh in some sense. Even though Mr Korn, Mr Glenn
and others stopped developing AST tools, I reckon these tools can
be useful for quite some time yet almost unrivalled..
For example, instead of using GNU or
default utilities such as
grep, one can use AST
wc and so on..
AST repo was easy to compile in my machine and
ksh93 had many features enabled by defaults. I wonder
why Siteshwar decided to change the compiler if this works so well
in my current machine and, as I have read, in so many legacy
hardware architectures, too.
I will be using
ksh for scripting more often. There
are some specific cases
bash by a lot, in other cases just by little. Still,
it does not let the user expectations down as it seems to always be
faster than these other big shells.
In fact, I rewrote a
bash bitcoin parser script in
ksh. Unfortunately, in this case, as the script is so
big, convoluted and makes heavy use of external tools (mainly
jq), it cannot be get
much faster.. Still I got a 10-15% speed increase and sometimes
more than that depending on the functions used. However, if you are
going to use that script parser, prefer the
version as the
ksh code is experimental and not fully
tested to match
Below are some references I spent almost a full day reading.
They are related to
ksh more recent developments and
some other references from a live event I made recently on
- Entrevista David Korn
- Demissão do David Korn , Glenn e outros da AT&T
- Repo Oficial da AT&T (att/ast)
- KornShell 2020 - Impossible Happens!
- Anúncio da Restauração do Repo do Ksh93u+ (att/ast)
- Issue #1466 - Rewinding [ast/ksh93] repo and encouraging community
- Issue #1446
- Issue # 1449
- Issue # 1464
- Site do Korn Shell oficial
- Repo do Ksh93u+m
- Sobre os double floats (notação matemática interna do Ksh/Zsh)
- echo(1) and printf(1)
- Biology for Cynics
- Computer for Cynics (Ted Nelson)