From: Steffen Nurpmeso <steffen@sdaoden.eu>
To: Andrew Warkentin <andreww591@gmail.com>
Cc: coff@tuhs.org
Subject: Re: [COFF] Powershell better than Bourne shell?
Date: Fri, 19 Nov 2021 19:44:42 +0100 [thread overview]
Message-ID: <20211119184442.igZY9%steffen@sdaoden.eu> (raw)
In-Reply-To: <CAD-qYGovNTQH-jF4A5bGkCiN55u1e7=8oEhwN=GatqTO+=AVeQ@mail.gmail.com>
Andrew Warkentin wrote in
<CAD-qYGovNTQH-jF4A5bGkCiN55u1e7=8oEhwN=GatqTO+=AVeQ@mail.gmail.com>:
|On 11/18/21, Adam Thornton <athornton@gmail.com> wrote:
...
|The biggest issue I have with PowerShell besides its verbosity is that
|commands have to be implemented as plugins rather than as external
|programs.
|
|I'm thinking at some point I may write a Bourne-like shell with
|object-oriented features for the OS that I'm working on. Instead of
|requiring commands to be plugins to use the object-oriented features I
|am thinking of having a generic facility for serialization and
|deserialization with hooks to deal with the output format of different
|commands (with JSON being an option as well).
I think by the end of the 80s / beginning of 90s David Korn's
shell did offer things like (object|module|x).subcall, aka method
calls in C++ sense or in ruby sense also module functions iirc.
I think there were even modules for graphical user interfaces that
could be driven by Korn shell, but all that i only saw from
glancing over history, i did not live it.
Ruby was slow compared to Perl 19 years ago. I wrote "Monty"
things for TCL, Python, Ruby, Perl, and object based "Monty" for
the same except TCL. AMD Athlon 1600+, 133FSB, 256MB (27MB
used;), linux console, 10000 loops:
monty.php:# ~0.250 secs.
monty.pl:# ~0.100 secs.
monty.py:# ~0.590 secs.
monty.rb:# ~0.178 secs.
monty.tcl:# ~0.360 secs.
monty_obj.php:# ~0.310 secs.
monty_obj.pl:# ~0.175 secs.
monty_obj.py:# ~0.600 secs.
monty_obj.rb:# ~0.218 secs.
Back in around 2011 someone counted script language startup CPU
cycles, and iirc Python was several times that of Perl.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
_______________________________________________
COFF mailing list
COFF@minnie.tuhs.org
https://minnie.tuhs.org/cgi-bin/mailman/listinfo/coff
prev parent reply other threads:[~2021-11-19 18:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-18 23:03 Greg 'groggy' Lehey
2021-11-19 1:12 ` Grant Taylor via COFF
2021-11-19 23:00 ` Theodore Y. Ts'o
2021-11-20 15:54 ` Michael Kjörling
2021-11-19 5:15 ` Adam Thornton
2021-11-19 6:19 ` Andrew Warkentin
2021-11-19 18:44 ` Steffen Nurpmeso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211119184442.igZY9%steffen@sdaoden.eu \
--to=steffen@sdaoden.eu \
--cc=andreww591@gmail.com \
--cc=coff@tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).