9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] sam vs acme
@ 2001-07-20 22:41 forsyth
  0 siblings, 0 replies; 90+ messages in thread
From: forsyth @ 2001-07-20 22:41 UTC (permalink / raw)
  To: 9fans

>>Does this mean that every interactive display program that
>>does large amounts of file I/O but has low information theoretic
>>bandwidth to the display (e.g. editors, spreadsheets, just
>>about anything but pictures in fact) should be written in a
>>split-process style similarly to sam?  Isn't that a pretty
>>big burden for programmers?  Isn't there some way to solve this
>>problem *once* and reuse the solution?

yes.  consider exporting a computable name space.

i've found it often reduces the burden on the programmer,
offers natural places to split the task, and like interconnection
with pipelines in unix, allows unusual combinations not expected
initially.



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-20 21:55 rob pike
  2001-07-23  8:54 ` Douglas A. Gwyn
  0 siblings, 1 reply; 90+ messages in thread
From: rob pike @ 2001-07-20 21:55 UTC (permalink / raw)
  To: 9fans

> How is "sam -r" be different from running vi (or another tty based
> editor of your choice) in a telnet session in a terminal emulator?

Local echo and mouse-handling make a difference on slow and,
especially, high-latency networks.

> Does this mean that every interactive display program that
> does large amounts of file I/O but has low information theoretic
> bandwidth to the display (e.g. editors, spreadsheets, just
> about anything but pictures in fact) should be written in a
> split-process style similarly to sam?  Isn't that a pretty
> big burden for programmers?  Isn't there some way to solve this
> problem *once* and reuse the solution?

Yes, yes, and wouldn't it be nice?

-rob



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-19  6:14 forsyth
  2001-07-19 13:30 ` Theo Honohan
  2001-07-19 14:45 ` Dan Cross
  0 siblings, 2 replies; 90+ messages in thread
From: forsyth @ 2001-07-19  6:14 UTC (permalink / raw)
  To: 9fans

>>yer base level sysadmin in france.  that was a bit of a shock.  sysadmin
>>pays real well, but it's just as boring for an ex-code cutter as being
>>a bodyguard is for an ex-legionaire.

i noticed in the Shrek credits that sys admins appear to have replaced
key grip and best boy.  there were quite a few sys admins.



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-18 23:57 rob pike
  2001-07-19  0:03 ` Boyd Roberts
                   ` (2 more replies)
  0 siblings, 3 replies; 90+ messages in thread
From: rob pike @ 2001-07-18 23:57 UTC (permalink / raw)
  To: 9fans

I believe - if you think my opinion is relevant about a program I wrote
15 years ago but haven't used much for the last 7 or 8 - that sam has
two major advantages:

1) Structural regular expressions, and the command language that
	derives from them.
2) Sam -r

Advantage 1) feels cool and makes a difference when you're working
on a problem; advantage 2) is the deep, structural improvement that
trumps all else.

-rob



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-11 21:01 rog
  0 siblings, 0 replies; 90+ messages in thread
From: rog @ 2001-07-11 21:01 UTC (permalink / raw)
  To: 9fans

> > the Look command remembers its last chorded argument
> It does?

seems to.
e.g. in this message, double click on 'the', 2-1 chord on
"Look", then continue button-2 (only) clicking: it continues
to search for the same string.

i haven't investigated any further than that...



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-11 20:36 rob pike
  2001-07-11 21:09 ` Dan Cross
  0 siblings, 1 reply; 90+ messages in thread
From: rob pike @ 2001-07-11 20:36 UTC (permalink / raw)
  To: 9fans

> the Look command remembers its last chorded argument
It does?

-rob



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-11 20:36 rog
  0 siblings, 0 replies; 90+ messages in thread
From: rog @ 2001-07-11 20:36 UTC (permalink / raw)
  To: 9fans

> > You can use the 1-2 chord to execute an arbitrarily long Edit command
> Do you mean passing a Snarfed  argument to Edit in the target window tag?

i think rob meant the 2-1 chord.  the only slight problem being that
you have to reselect the argument text every time.

the Look command remembers its last chorded argument, which avoids this
to a certain extent; perhaps Edit could too?

  rog.



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-11 20:16 rob pike
  0 siblings, 0 replies; 90+ messages in thread
From: rob pike @ 2001-07-11 20:16 UTC (permalink / raw)
  To: 9fans

Actually I mistyped. It's a 2-1 chord.   Use button 1 to select the
command (minus the Edit word), then move the mouse to the
Edit word, push 2, click (or just press) 1, release 2.  It's easier
to do than to type.  The same method gives arguments to Look,
Put, etc., even echo, cat, and rm.

-rob



^ permalink raw reply	[flat|nested] 90+ messages in thread
[parent not found: <rob@plan9.bell-labs.com>]
* Re: [9fans] sam vs acme
@ 2001-07-11  6:52 nemo
  0 siblings, 0 replies; 90+ messages in thread
From: nemo @ 2001-07-11  6:52 UTC (permalink / raw)
  To: 9fans

:  while wily maintained filenames internally, truncated them to shorter
:  strings with environment variables, and mused over mounted directories.

I used to love that until the day I used a different shell and almost all
my windows were tagged $CWD/blah

Perhaps just a matter of ignoring variables like CWD.



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-10 10:32 rog
  2001-07-10 10:43 ` Lucio De Re
  2001-07-10 22:57 ` Steve Kilbane
  0 siblings, 2 replies; 90+ messages in thread
From: rog @ 2001-07-10 10:32 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

i've not used wily, but IMHO there are some places where a unix-based
acme clone could never approach the real acme, namely those places
where acme leverages the power of plan 9 (e.g. the filesystem
interface, and the stuff you can do with a simple shell command under
plan 9 which is impossible/extremely involved under unix)

much of the power of acme comes from living in happy symbiosis with
plan 9 - acme under unix is kind of like a hacked off limb; it looks
similar to the original, but won't work so well...

> [eg. we had edit interfaces three or was it four years ago :)]

presumably by this you mean the named-pipe RPC interface, not the sam
command Edit command?  (which doesn't seem to be in wily)

  cheers,
    rog.


[-- Attachment #2: Type: message/rfc822, Size: 2001 bytes --]

To: 9fans@cse.psu.edu
Subject: Re: [9fans] sam vs acme
Date: Tue, 10 Jul 2001 09:00:48 GMT
Message-ID: <ycdbsmudxz7.fsf@tiger.cs.yorku.ca>

anothy@cosym.net writes:

> wily is a good effort, but is far inferior. i don't like using it.

in which way is it /far inferior/ please? [eg. we had edit interfaces
three or was it four years ago :)] sure we don't have a general plumb
mechanism, but we are working on it. can you be specific? i maintain
wily, and i'ld like to make sure it is not "that far inferior" to
acme...

thanks...	oz
--
www.cs.yorku.ca/~oz	 | if you couldn't find any weirdness, maybe
york u. computer science | we'll just have to make some!   -- hobbes

^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-28 23:52 David Gordon Hogan
  2001-06-29 21:28 ` Boyd Roberts
  0 siblings, 1 reply; 90+ messages in thread
From: David Gordon Hogan @ 2001-06-28 23:52 UTC (permalink / raw)
  To: 9fans

Boyd writes:
> the only way to write code is with sam.

Ooops!  You mispelled "acme"!  :-)

Anyway, as we all know, ED IS THE STANDARD TEXT EDITOR:

	http://www.red-eagle.com/jokes/ed.html

If you don't find that funny, well, here's a bit of code
from gcc 3.0:

static const char * const ia64_reg_numbers[96] =
{ "r32", "r33", "r34", "r35", "r36", "r37", "r38", "r39",
  "r40", "r41", "r42", "r43", "r44", "r45", "r46", "r47",
  "r48", "r49", "r50", "r51", "r52", "r53", "r54", "r55",
  "r56", "r57", "r58", "r59", "r60", "r61", "r62", "r63",
  "r64", "r65", "r66", "r67", "r68", "r69", "r70", "r71",
  "r72", "r73", "r74", "r75", "r76", "r77", "r78", "r79",
  "r80", "r81", "r82", "r83", "r84", "r85", "r86", "r87",
  "r88", "r89", "r90", "r91", "r92", "r93", "r94", "r95",
  "r96", "r97", "r98", "r99", "r100","r101","r102","r103",
  "r104","r105","r106","r107","r108","r109","r110","r111",
  "r112","r113","r114","r115","r116","r117","r118","r119",
  "r120","r121","r122","r123","r124","r125","r126","r127"};


^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-26  4:55 anothy
  0 siblings, 0 replies; 90+ messages in thread
From: anothy @ 2001-06-26  4:55 UTC (permalink / raw)
  To: 9fans

//I've been planning for some time to have a go at
//splitting acme the way sam is split.

oo, oo! sign me up! should you need a beta user, i'm
your guy. i'm usually running acme on my cpu
server from home, over my 56k (if that) modem, and
throwing around something on the level of sam
rather than raw /dev/draw would be really, really
nice. now, if this makes it into Inferno's Acme, too, i
could use it cross-platform, and retire sam (or at
least samterm) for good.
-α.



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-25 23:59 rob pike
  2001-06-26  0:14 ` Howard Trickey
  0 siblings, 1 reply; 90+ messages in thread
From: rob pike @ 2001-06-25 23:59 UTC (permalink / raw)
  To: 9fans

I've been planning for some time to have a go at splitting
acme the way sam is split.  I didn't do it when I was writing
acme because I had so many other new things to worry
about, not because I didn't think it should be done.  No
promises, but maybe some day...

-rob




^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-25 13:29 William Staniewicz
  0 siblings, 0 replies; 90+ messages in thread
From: William Staniewicz @ 2001-06-25 13:29 UTC (permalink / raw)
  To: 9fans

Some of the folks on the lists:

	rescue@sunhelp.org
         -or-
	geeks@sunhelp.org

... may be able to help with that.

Subscription info is at:

	www.sunhelp.org

> may be on the disk of the Sparcalike in the attic but I don't have a
> monitor cable for it.  Anyone know if I can get a cable to connect a
> monochrome sparc to modern colour monitor?
> 



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-25  7:45 Richard Miller
  0 siblings, 0 replies; 90+ messages in thread
From: Richard Miller @ 2001-06-25  7:45 UTC (permalink / raw)
  To: 9fans

> for one-off file editing, i've finally
> moved from 'sam file' to 'acme file' - my big complaint there
> being that acme still pops up the empty second column, wasting
> screen space.

Try 'acme -c1 file'



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-25  7:10 nigel
  2001-06-25  7:25 ` Matt
  0 siblings, 1 reply; 90+ messages in thread
From: nigel @ 2001-06-25  7:10 UTC (permalink / raw)
  To: 9fans

The pop up button 2 menu for editing under sam is seemed such an
improvement over the tedious point-click point-click stuff necessary
to cut or paste text under, say, Windows.  Yes, I know that under
Windows 98 or better you can get a right button menu (still click
point click because it doesn't remember the last action), or generally
use the keyboard (cop out).

At first I found the lack of a button 2 menu under acme hard but now,
when I return to sam from using acme, the lack of chording makes sam
seem slow and clunky.

I've attempted to use sam as editor of choice under all circumstances,
but all circumstances for me is probably similar for others too.  Once
you enter the Windows world, there are other constraints.  You need an
editor which is kind to carriage returns, and in my case is really
unkind to tabs.  This is in the former case not to screw up some
poorly written tools everyone else is using, and the latter to conform
to coding standards. vi/elvis/vim doesn't even pass, since it preserves tabs.

I did have a version of sam which would remove crs on read, and
replace on write, and could pretend tabs weren't 8 spaces on screen,
and replace them with spaces on write, but I lost it.  Actually, it
may be on the disk of the Sparcalike in the attic but I don't have a
monitor cable for it.  Anyone know if I can get a cable to connect a
monochrome sparc to modern colour monitor?

OK that's enough drivel.  That should, in modern parlance, 'promote
discussion'.  Where's Boyd?



^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-25  1:08 jmk
  0 siblings, 0 replies; 90+ messages in thread
From: jmk @ 2001-06-25  1:08 UTC (permalink / raw)
  To: 9fans

On Sun Jun 24 18:05:29 EDT 2001, aam396@mail.usask.ca wrote:
> hello,
> 
> would anyone recommend using 'sam' as the editor of choice for p9? the
> problem with acme is that it's not generally available for other platforms,
> and if one chooses to use acme as the $EDITOR, s/he is stuck with switching
> back/forth to something else for all other platforms.
> 
> i know there's wily for linux/bsd and i've already happily compiled sam on
> my irix box, so before i jump into learning it i'd like to know how useful
> it is for managing relatively large and numerous source files.
> 
> is sam good for medium/semi-large projects?
> 
> i myself am a 'vi' user so the 'regular expresiveness' of sam is ok with me.
> 
> 
> thanx: andrey
> 
> ps: i guess my question is geared towards non-bell-labs people, since they
> would be the ones useing other OS's

Until recently, there were more people using rio+sam than acme at the Labs,
there's a limit to how many new tricks you can teach old dogs like me. The
balance has changed due to new hires tending to use acme and various forms
of attrition on the old hands.


^ permalink raw reply	[flat|nested] 90+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-06-25  0:28 anothy
  2001-07-10  9:00 ` Ozan Yigit
  0 siblings, 1 reply; 90+ messages in thread
From: anothy @ 2001-06-25  0:28 UTC (permalink / raw)
  To: 9fans

thanks to the Edit functions now being in Acme, there are three
things i find to be advantages in sam:
	sam -r <host>
very nice over connections with limited bandwidth. the entire file
needn't travel over the line, just whatever part you're looking at
currently. works great in plan9→unix (my method for editing files
on a solaris box i manage while at home, over my 56K modem) and in
unix→unix modes. i don't believe win32 can be on either end of
this, which is disapointing. a co-manage this solaris box with a
windows user, and i'd love for him to be able to call sam, so i
could stop getting all these stupid cr's in my files.
	text mode with sam -d
acme has no command line mode (that concept doesn't really make
much sense). in cases like editing files before vga is up on plan
9 or telnet'd into a remote box, sam -d is great. it's also an
improvement (IMHO) over ed or sed for scripts, in that it's less
tied to the idea of a line, and can better operate on arbitrary
character ranges.
	cross platform
sam's available on plan 9, win32, and posix+X. acme's only
available in plan 9 and inferno. as noted earlier, inferno runs
on most popular unixes and win32, and one could easialy set up
inferno for easy access to the underlying files. then you could
use acme most anywhere. you might think it's a bit much work for
an editor, but it's doable. it's a judgement call.

other than that, i think acme is a much superior editor, even
without all the other benefits it gives. i find it to be a much
cleaner interface for multiple files, and the chording is a huge
win (IMHO; it's not for everyone). chording's probably what i
miss most in sam. that also makes acme more consistant with rio,
a win for plan 9 users. for one-off file editing, i've finally
moved from 'sam file' to 'acme file' - my big complaint there
being that acme still pops up the empty second column, wasting
screen space.


wily is a good effort, but is far inferior. i don't like using it.
-α.


^ permalink raw reply	[flat|nested] 90+ messages in thread
[parent not found: <aam396@mail.usask.ca>]

end of thread, other threads:[~2002-09-17 22:08 UTC | newest]

Thread overview: 90+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <dhog@plan9.bell-labs.com>
2001-06-18 18:48 ` [9fans] source code as data not text David Gordon Hogan
2001-06-18 21:31   ` Steve Kilbane
2001-06-19 21:03     ` Richard Elberger
2001-06-19 21:31       ` Steve Kilbane
2001-06-19  7:36   ` Richard Elberger
2001-06-28 22:17   ` Boyd Roberts
2001-07-11 17:53 ` [9fans] sam vs acme David Gordon Hogan
2001-07-11 19:19   ` James A. Robinson
2001-07-11 21:15     ` Steve Kilbane
2001-07-11 23:11   ` Boyd Roberts
2001-11-01 21:19 ` [9fans] Virtual memory in BSD and Plan9 David Gordon Hogan
2001-11-01 21:23   ` Scott Schwartz
2001-11-21  0:12 ` [9fans] on TCP vs IL David Gordon Hogan
2001-11-21  0:21   ` George Michaelson
2001-11-22  9:57   ` Thomas Bushnell, BSG
2001-11-23  9:34     ` Douglas A. Gwyn
2001-11-26 10:00       ` Thomas Bushnell, BSG
2001-11-26 15:21         ` Douglas A. Gwyn
2001-12-07 19:41 ` [9fans] libXg/test.c David Gordon Hogan
2001-12-07 20:08   ` Boyd Roberts
2001-12-07 20:09   ` Scott Schwartz
2001-12-07 20:28     ` Boyd Roberts
2001-12-10 10:01     ` Maarit Maliniemi
2001-12-11 16:51   ` Leo Caves
2002-09-17 22:04 ` [9fans] /sys/src/^(9 boot)^/pc/memory.c David Gordon Hogan
2002-09-17 22:08   ` Scott Schwartz
2001-07-20 22:41 [9fans] sam vs acme forsyth
  -- strict thread matches above, loose matches on Subject: below --
2001-07-20 21:55 rob pike
2001-07-23  8:54 ` Douglas A. Gwyn
2001-07-24 22:13   ` paurea
2001-07-19  6:14 forsyth
2001-07-19 13:30 ` Theo Honohan
2001-07-19 22:18   ` Boyd Roberts
2001-07-19 14:45 ` Dan Cross
2001-07-18 23:57 rob pike
2001-07-19  0:03 ` Boyd Roberts
2001-07-19  3:20 ` Rick Hohensee
2001-07-20 21:19 ` Mike Haertel
2001-07-20 22:37   ` Boyd Roberts
2001-07-23  8:55   ` Douglas A. Gwyn
2001-07-11 21:01 rog
2001-07-11 20:36 rob pike
2001-07-11 21:09 ` Dan Cross
2001-07-11 20:36 rog
2001-07-11 20:16 rob pike
     [not found] <rob@plan9.bell-labs.com>
2001-07-11 19:22 ` rob pike
2001-07-11 20:08   ` James A. Robinson
2001-07-11  6:52 nemo
2001-07-10 10:32 rog
2001-07-10 10:43 ` Lucio De Re
2001-07-18  8:43   ` David Rubin
2001-07-18 21:17     ` Boyd Roberts
2001-07-18 21:40       ` Scott Schwartz
2001-07-18 21:51         ` Boyd Roberts
2001-07-18 22:55           ` George Michaelson
2001-07-18 23:00             ` Scott Schwartz
2001-07-19  0:00             ` Boyd Roberts
2001-07-19  0:12             ` suspect
2001-07-19  0:14               ` Boyd Roberts
2001-07-20  8:54             ` Douglas A. Gwyn
2001-07-20  9:47               ` George Michaelson
2001-07-20 10:08                 ` Boyd Roberts
2001-07-20 16:44                   ` Ozan Yigit
2001-07-20 21:57                     ` Boyd Roberts
2001-07-10 22:57 ` Steve Kilbane
2001-07-10 23:23   ` Boyd Roberts
2001-07-11  6:55     ` Steve Kilbane
2001-07-11 13:24       ` Boyd Roberts
2001-07-11 21:20         ` Steve Kilbane
2001-07-12 10:36           ` Boyd Roberts
2001-07-12  8:31         ` Ozan Yigit
2001-07-12 10:38           ` Boyd Roberts
2001-06-28 23:52 David Gordon Hogan
2001-06-29 21:28 ` Boyd Roberts
2001-06-26  4:55 anothy
2001-06-25 23:59 rob pike
2001-06-26  0:14 ` Howard Trickey
2001-06-25 13:29 William Staniewicz
2001-06-25  7:45 Richard Miller
2001-06-25  7:10 nigel
2001-06-25  7:25 ` Matt
2001-06-28 23:04   ` Boyd Roberts
2001-06-25  1:08 jmk
2001-06-25  0:28 anothy
2001-07-10  9:00 ` Ozan Yigit
     [not found] <aam396@mail.usask.ca>
2001-06-24 23:04 ` andrey mirtchovski
2001-06-24 22:14   ` Matt
2001-06-24 22:33   ` Scott Schwartz
2001-06-25  3:41     ` Dan Cross
2001-06-28 22:58     ` Boyd Roberts

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).