9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] How can I shift a variable other than ?
Date: Tue, 13 Mar 2007 14:59:06 +0000	[thread overview]
Message-ID: <f5a0854171ee48f2df8424e98ee5024f@vitanuova.com> (raw)
In-Reply-To: <20070311202334.GI12719@kris.home>

> If the Inferno people had decided to 'update' mash instead of writing sh(1)

for the record, i believe that i wrote the inferno shell before mash was written
(in fact, it was one of the first limbo programs i wrote, before i came to VN).
certain of its features were only made possible by later inferno changes
however (e.g. the shell module loading structure was enabled by the addition of load self).
i have to say i wouldn't mind seeing a version for plan 9 - the lack of support for quoting
and unquoting lists i find particularly awkward in rc in these days of
space-containing filenames. i still wish plan 9 hadn't relaxed the whitespace ban in names!

somebody (anothy?) made a comment ages ago about how it was "suprisingly slow". i'm not
surprised - i made no attempt at all to be clever about the interpretation strategy
(unlike rc, which builds an intermediate language), and lists are reversed willy nilly.
variable access could probably be speeded up a fair bit.
unfortunately it's probably not possible to improve things without breaking
binary compatibility.

re: the shift thing: changing a feature is always a trade-off between backward
compatibility and feature benefits. in this case, the feature is still available
(if a little more awkwardly), in the original, so i think backward compatibility
considerations win. the I/O feature, <>, on the other hand, provides useful (sometimes
essential) functionality not previously available, so the balance swings
the other way.


  parent reply	other threads:[~2007-03-13 14:59 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-10 12:32 erik quanstrom
2007-03-10 17:30 ` Kris Maglione
2007-03-10 21:20   ` Dan Cross
2007-03-10 21:53     ` Kris Maglione
2007-03-10 22:20       ` Dan Cross
2007-03-11 12:12       ` matt
2007-03-11 20:23         ` Kris Maglione
2007-03-11 22:11           ` erik quanstrom
2007-03-11 23:14             ` Martin Neubauer
2007-03-12  8:50               ` Kris Maglione
2007-03-12 12:26                 ` erik quanstrom
2007-03-12 13:37                   ` Anthony Sorace
2007-03-12 13:39           ` Dan Cross
2007-03-12 15:22             ` Russ Cox
2007-03-12 17:05               ` Dan Cross
2007-03-12 18:41                 ` Kris Maglione
2007-03-13 14:59           ` rog [this message]
2007-03-13 15:22             ` erik quanstrom
2007-03-13 15:40               ` [9fans] minimal-instruction-sets (was: How can I shift a variable other than ?) andrey mirtchovski
2007-03-13 15:40             ` [9fans] How can I shift a variable other than ? C H Forsyth
2007-03-13 17:45               ` Anthony Sorace
2007-03-13 20:39                 ` Paweł Lasek
2007-03-13 17:32             ` Anthony Sorace
  -- strict thread matches above, loose matches on Subject: below --
2007-03-10  4:46 erik quanstrom
2007-03-10  5:14 ` Kris Maglione
2007-03-09  4:38 erik quanstrom
2007-03-09  4:48 ` erik quanstrom
2007-03-09  5:27   ` Federico G. Benavento
2007-03-09  5:31     ` erik quanstrom
2007-03-09  7:00       ` Kris Maglione
2007-03-09 13:55         ` erik quanstrom
2007-03-09 14:09           ` Kris Maglione
2007-03-09 14:33             ` erik quanstrom
2007-03-09 14:37             ` erik quanstrom
2007-03-09  4:57 ` lucio
2007-03-09 14:41   ` erik quanstrom
2007-03-08  8:00 YAMANASHI Takeshi
2007-03-08  8:41 ` Russ Cox
2007-03-09 18:23 ` rog
2007-03-09 19:25   ` Kris Maglione

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=f5a0854171ee48f2df8424e98ee5024f@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).