9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dave Lukes <davel@anvil.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: OT: Re: [9fans] too good to pass up (SRB Comments)
Date: Fri, 28 Apr 2006 15:16:05 +0100	[thread overview]
Message-ID: <445223A5.80301@anvil.com> (raw)
In-Reply-To: <790d46fb49d0b5be9d9300797ec1e698@coraid.com>

The story from the horse's mouth was that the PWB shell already used the
sigsegv trick
because they were concerned about (groan) speed,
so before they'd use Bourne's shell they insisted that it use the same hack.

Of course, the PWB people didn't care:
after all it was "portable" in the Humpty-Dumpty sense: it worked on
Vaxes & PDP/11s.

I wonder how many different people had to rewrite that code for the M68K?:-)
(luckily someone had already done it before I got there:-)

    DaveL

Brantley Coile wrote:
> That was really John Mashy's fault, as I understand it.  He suggested
> it to SRB.  I had to deal with it when I ported V7 to the 68K.  Too
> bad every processor wasn't as clean in this reguard as the PDP-11.
>
> For those who might not have heard of this, SRB caught segfault
> signals, allocated more memory and just returned.  The instruction
> that caused the segfault would restart.  It was an automatic memory
> allocator.  Problem was that not all processors could pull off this
> sort of stunt.
>
> Geoff cleaned this up years ago.
>
>
>> not even his allocator?
>>
>> - erik
>>
>> On Fri Apr 28 08:02:29 CDT 2006, brantley@coraid.com wrote:
>>
>>>> Not that I'm defending writing C as
>>>> though it were Algol 68...
>>>>
>>> I kind of liked it after the initial shock.
>>> Even inspired the Obfuscated C Contest.
>>> I don't think SRB's code was obfuscated, though.
>>>
>>>
>>>
>
>



  reply	other threads:[~2006-04-28 14:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-28 13:01 [9fans] too good to pass up erik quanstrom
2006-04-28 13:10 ` [9fans] too good to pass up (SRB Comments) Brantley Coile
2006-04-28 14:16   ` Dave Lukes [this message]
2006-04-28 14:18     ` OT: " Brantley Coile
2006-05-02  6:32   ` Roman Shaposhnik
2006-05-01 21:22     ` Taj Khattra
2006-04-28 21:57 ` [9fans] too good to pass up Charles Forsyth

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=445223A5.80301@anvil.com \
    --to=davel@anvil.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).