From: Micah Waddoups <micah@askmicah.net>
To: zsh-workers@zsh.org
Subject: Suggestion for ZSH, who do I send it to?
Date: Wed, 17 Dec 2014 07:36:56 -0800 [thread overview]
Message-ID: <5491A318.5020303@askmicah.net> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1706 bytes --]
So, I have a few suggestions. Are you open to using GNU libraries in
ZSH? If so, I was thinking how ZSH is so powerful (and easy to use),
that it can actually handle all types of data -- like all 256 characters
of ASCII. So with multibyte turned off that means binary, even if its a
little slow. But here is the problem with dealing with binary, or
unusual characters through ZSH, every operation requires using several
ZSH builtin commands / variable expansions. This makes a process that
converts data into something more usable on the input or the output very
CPU heavy and inefficient. My suggestion is to add a few options to the
sysread and syswrite builtins that come stock with ZSH in the system module:
* -d : (sysread) to make the variable created an integer type
containing the numerical value corresponding to the raw byte value,
for -s 1; and for -s 2+ (reading more than a single byte), make it
an array with each indice containing a string of decimal digit(s),
whose numerical value is generated the same way, representing the
value for each byte.
* -h : (sysread) to make a string value that is two characters per
input byte, representing the value of the byte in hexadecimal
(padded with 0 if less than 16, and obviously as with above, a null
would equal 00). This would make Zsh able to function for whatever
given needs (boot environments, less prevalent unix-like systems)
without having to supply an xxd program, and it would be much more
efficient processing when any math is involved in the script.
--
Micah micah@askmicah.net <mailto:micah@askmicah.net>
AskMicah.Net <http://askmicah.net>, Problem Solving Agency
[-- Attachment #1.2: Type: text/html, Size: 2106 bytes --]
next reply other threads:[~2014-12-17 15:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 15:36 Micah Waddoups [this message]
2014-12-17 17:00 ` Bart Schaefer
2014-12-17 17:53 ` Peter Stephenson
2014-12-17 18:46 Micah Waddoups
2014-12-18 5:23 ` Bart Schaefer
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=5491A318.5020303@askmicah.net \
--to=micah@askmicah.net \
--cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).