9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Eris Discordia <eris.discordia@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] a bit OT, programming style question
Date: Thu,  9 Apr 2009 14:44:19 +0100	[thread overview]
Message-ID: <5EF90081E9B1D745047218E6@[192.168.1.2]> (raw)
In-Reply-To: <3aaafc130904072004v77277c42ic7f7447eeb8d7e36@mail.gmail.com>

> Try env | wc -l in bash. Now tell me why that value is so big.

> [root@host ~]# env | wc -l
> 	37
> [root@host ~]#

Is that very high? I don't even know if it is or how it would mean anything 
bad (or good for that matter) assuming it were high. Not to mention, it's a 
very bad metric. Because:

> [root@host ~]# env | wc -c
> 	1404
> [root@host ~]#

Most of it in the 19 lines for one TERMCAP variable. Strictly a relic of 
the past kept with all good intentions: backward compatibility, and heeding 
the diversity of hardware and configuration that still exists out there. 5 
of the other 18 lines are completely specific to my installation. That 
leaves us with 13 short lines.

Quite a considerable portion of UNIX-like systems, FreeBSD in this case, is 
the way it is not because the developers are stupid, rather because they 
have a "constituency" to tend to. They aren't carefree researchers with 
high ambitions.

--On Tuesday, April 07, 2009 11:04 PM -0400 "J.R. Mauro" 
<jrm8005@gmail.com> wrote:

> On Tue, Apr 7, 2009 at 9:48 PM, Eris Discordia <eris.discordia@gmail.com>
> wrote:
>>> The man page *does* say it's too big and slow. So does the bash
>>> manpage. And getting readline to do anything sane is about as fun as
>>> screwing around with a terminfo file.
>>
>> A bad implementation is not a bad design. And, in fact, the badness of
>> the implementation is even questionable in the light of bash's normal
>> behavior or the working .inputrc files I've been using for some time.
>
> Behavior is not indicative of good design. It just means that the
> bandaids heaped upon bash (and X11, and...) make it work acceptably.
>
> Try env | wc -l in bash. Now tell me why that value is so big.
>
>>
>> Anyway, thanks for the info.
>>
>> --On Tuesday, April 07, 2009 3:57 PM -0400 "J.R. Mauro"
>> <jrm8005@gmail.com> wrote:
>>
>>> On Tue, Apr 7, 2009 at 2:21 PM, Eris Discordia
>>> <eris.discordia@gmail.com> wrote:
>>>>
>>>> I see. But seriously, readline does handle bindings and line editing
>>>> for bash. Except it's a function instead of a program and you think
>>>> it's a bad idea.
>>>
>>> The man page *does* say it's too big and slow. So does the bash
>>> manpage. And getting readline to do anything sane is about as fun as
>>> screwing around with a terminfo file.
>>>
>>>>
>>>> --On Tuesday, April 07, 2009 10:31 PM +0800 sqweek <sqweek@gmail.com>
>>>> wrote:
>>>>
>>>>> 2009/4/7 Eris Discordia <eris.discordia@gmail.com>:
>>>>>>>>
>>>>>>>> Keyboard
>>>>>>>> bindings for example; why couldn't they be handled by a program
>>>>>>>> that just does keyboard bindings + line editing, and writes
>>>>>>>> finalized lines to the shell.
>>>>>>
>>>>>> Like... readline(3)?
>>>>>
>>>>>  No.
>>>>> -sqweek
>>>>>
>>>>
>>>>
>>>>
>>>> --On Tuesday, April 07, 2009 8:09 AM -0700 ron minnich
>>>> <rminnich@gmail.com> wrote:
>>>>
>>>>> On Tue, Apr 7, 2009 at 12:28 AM, Eris Discordia
>>>>> <eris.discordia@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>> Like... readline(3)?
>>>>>
>>>>> one hopes not.
>>>>>
>>>>> ron
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>>
>>
>>
>



  reply	other threads:[~2009-04-09 13:44 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07  5:32 Corey
2009-04-07  5:39 ` erik quanstrom
2009-04-07  7:53 ` sqweek
2009-04-07  7:28   ` Eris Discordia
     [not found]   ` <3AB58E51F3A5C561C4B065E3@192.168.1.2>
2009-04-07 14:31     ` sqweek
2009-04-07 15:09     ` ron minnich
2009-04-07 18:21       ` Eris Discordia
     [not found]       ` <A297371273CD8D67A21A921E@192.168.1.2>
2009-04-07 19:57         ` J.R. Mauro
2009-04-08  1:48           ` Eris Discordia
2009-04-08  2:53             ` erik quanstrom
     [not found]           ` <A411EFAE2566F856F3034B12@192.168.1.2>
2009-04-08  3:04             ` J.R. Mauro
2009-04-09 13:44               ` Eris Discordia [this message]
2009-04-09 15:06                 ` erik quanstrom
2009-04-09 22:34                   ` Eris Discordia
2009-04-10 16:15                     ` john
2009-04-17 13:07                     ` Balwinder S Dheeman
2009-04-17 13:28                       ` erik quanstrom
2009-04-17 13:42                         ` Devon H. O'Dell
     [not found]                   ` <3F6B6589F529BEAECE105A71@192.168.1.2>
2009-04-10 19:35                     ` J.R. Mauro
     [not found]               ` <5EF90081E9B1D745047218E6@192.168.1.2>
2009-04-09 17:32                 ` J.R. Mauro
2009-04-09 18:10                   ` Charles Forsyth
2009-04-09 18:28                     ` Richard Miller
2009-04-09 19:28                       ` Devon H. O'Dell
2009-04-09 19:31                         ` erik quanstrom
2009-04-09 19:34                         ` J.R. Mauro
2009-04-09 22:09                           ` Eris Discordia
     [not found]                           ` <58ADE353D7158CD35973F13B@192.168.1.2>
2009-04-10 19:33                             ` J.R. Mauro
2009-04-11 11:13                               ` Eris Discordia
2009-04-09 21:01                         ` Richard Miller
2009-04-09 21:28                         ` Bakul Shah
2009-04-09 21:34                           ` J.R. Mauro
2009-04-09 22:16                           ` erik quanstrom
2009-04-09 22:37                           ` Devon H. O'Dell
2009-04-09 22:05                         ` Eris Discordia
2009-04-07 15:08 ` ron minnich
2009-04-07 16:05   ` Corey
2009-04-07 16:44     ` ron minnich
2009-04-07 18:34       ` erik quanstrom
2009-04-07 22:50         ` dave.l
2009-04-07 22:56           ` erik quanstrom

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='5EF90081E9B1D745047218E6@[192.168.1.2]' \
    --to=eris.discordia@gmail.com \
    --cc=9fans@9fans.net \
    /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).