* RE: [9fans] source code as data not text
@ 2001-06-18 18:48 ` David Gordon Hogan
2001-06-18 21:31 ` Steve Kilbane
` (2 more replies)
0 siblings, 3 replies; 42+ messages in thread
From: David Gordon Hogan @ 2001-06-18 18:48 UTC (permalink / raw)
To: 9fans
> I would rather have code stored in a
> clustered rdbms that is accessed through its own shell [that is
> cross-platform like limbo]
The last thing we need is another shell.
What if the code were accessed through a file system interface
which is cross-platform?
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
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 7:36 ` Richard Elberger
2001-06-28 22:17 ` Boyd Roberts
2 siblings, 1 reply; 42+ messages in thread
From: Steve Kilbane @ 2001-06-18 21:31 UTC (permalink / raw)
To: 9fans
dhog:
> What if the code were accessed through a file system interface
> which is cross-platform?
As has been pointed out, how something is stored isn't that relevant
here; the issue is *what*, and the principle issue is whether your
program is stored as ascii source, or as some other representation
(that presumably adds additional structuring, else why bother?)
If you're storing an ascii file, then whether you store it in
a cvs-like system, an RDBMS or something entirely different isn't
that much more important than whether it's stored in a file system
that's on a local disk or a networked one: you may need to use
special means to retrieve it, but that's your call.
If it's plain ascii, and you've got an editor that can show pretty
colours, then fine. I'm happy for you, and it doesn't mean that anything
special has to be done to the file that'll stop it working on any other
editor.
If your source file is saved as something that represents additional
structure, then I'd suggest you're using the wrong terminology: that's
an object file, that's been compiled into another representation. From
here on in, you need a special set of tools to interpret and manipulate
the contents of that file. Regardless of the means by which you retrieved
the file, it's effectively a black box to most of the surrounding
system.
As I've said for many a year, "standardise on file formats and protocols,
and the applications take care of themselves."
steve
^ permalink raw reply [flat|nested] 42+ messages in thread
* RE: [9fans] source code as data not text
2001-06-18 21:31 ` Steve Kilbane
@ 2001-06-19 21:03 ` Richard Elberger
2001-06-19 21:31 ` Steve Kilbane
0 siblings, 1 reply; 42+ messages in thread
From: Richard Elberger @ 2001-06-19 21:03 UTC (permalink / raw)
To: 9fans
>
>As has been pointed out, how something is stored isn't that relevant
>here; the issue is *what*, and the principle issue is whether your
>program is stored as ascii source, or as some other representation
>(that presumably adds additional structuring, else why bother?)
>
>If you're storing an ascii file, then whether you store it in
>a cvs-like system, an RDBMS or something entirely different isn't
>that much more important than whether it's stored in a file system
>that's on a local disk or a networked one: you may need to use
>special means to retrieve it, but that's your call.
>
How something is stored is very relevant to source management -- you'd
better ask the operations folks who have to run the hardware and are
responsible for maintaining data integrity.
-- rich
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-19 21:03 ` Richard Elberger
@ 2001-06-19 21:31 ` Steve Kilbane
0 siblings, 0 replies; 42+ messages in thread
From: Steve Kilbane @ 2001-06-19 21:31 UTC (permalink / raw)
To: 9fans
> How something is stored is very relevant to source management
Sigh. I was trying to clarify the issues, but obviously failed.
I'll try a different tack.
The discussion started off with syntax-directed editors, picked
up issues concerned with proprietary file formats, and then moved
into proprietary repositories versus things with a file-system.
My apologies for over-simplifying.
My point was merely this: given a file that contains some
representation of source, the issues of the file's internal
structure, the structure of the repository that holds the
file, and the how the file's contents are rendered
to the user are distinct issues and should not be confused.
The storage system is not relevant in all cases, but in the
discussion of what you do with a file _once you've retrieved
it from the storage system_, it is.
steve
^ permalink raw reply [flat|nested] 42+ messages in thread
* RE: [9fans] source code as data not text
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 7:36 ` Richard Elberger
2001-06-28 22:17 ` Boyd Roberts
2 siblings, 0 replies; 42+ messages in thread
From: Richard Elberger @ 2001-06-19 7:36 UTC (permalink / raw)
To: 9fans
Yes, I think my wording was too general. Yes, too many shells like sh and
ksh, but I wasn't thinking a cmd line shell -- just would like to see a
standard wrapper for the handling of code, how it maps to business (or
other) process -- like if a "feature module" will be plugged in or not to
the build, and how that is managed/operated, knowing where the code was
coming from, what environment it was written in, what scenarios/environment
it was unit tested in, etc ... a lot of things to track and imo it is all
important (though varying in degrees of importance). Kind of like an app,
but it is basically a software team's creative bucket -- a system that is
self-enclosed and shares namespaces (be it source, devices, or workspaces).
So much stuff and syntax checking is just part of an app that is part of
what should be a consistent system to minimize risk.
I already thought of styx, and how it would be excellent to leverage this
for a full-on collaborative development environment. It would be a huge
undertaking to create something like this, and it would be very exciting.
-- rich
>-----Original Message-----
>From: 9fans-admin@cse.psu.edu [mailto:9fans-admin@cse.psu.edu]On Behalf
>Of David Gordon Hogan
>Sent: Tuesday, 19 June 2001 6:49 a.m.
>To: 9fans@cse.psu.edu
>Subject: RE: [9fans] source code as data not text
>
>
>> I would rather have code stored in a
>> clustered rdbms that is accessed through its own shell [that is
>> cross-platform like limbo]
>
>The last thing we need is another shell.
>
>What if the code were accessed through a file system interface
>which is cross-platform?
>
>
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
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 7:36 ` Richard Elberger
@ 2001-06-28 22:17 ` Boyd Roberts
2 siblings, 0 replies; 42+ messages in thread
From: Boyd Roberts @ 2001-06-28 22:17 UTC (permalink / raw)
To: 9fans
my man dhog speaks ths truth:
> The last thing we need is another shell.
how many does vita's inferno have? n too many.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] sam vs acme
@ 2001-07-11 17:53 ` David Gordon Hogan
2001-07-11 19:19 ` James A. Robinson
2001-07-11 23:11 ` Boyd Roberts
0 siblings, 2 replies; 42+ messages in thread
From: David Gordon Hogan @ 2001-07-11 17:53 UTC (permalink / raw)
To: 9fans
boyd@fr.inter.net writes:
> no, that _thing_ will bite you further down the track and it
> was foolish to build it.
Sadly, that thing often bites everyone else down the track,
not just its perpetrator.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] sam vs acme
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
1 sibling, 1 reply; 42+ messages in thread
From: James A. Robinson @ 2001-07-11 19:19 UTC (permalink / raw)
To: 9fans
Random thoughts on acme, sam, and the acme clone wily...
I've never used the real acme for any length of time, but I did use wily
for many years under Linux and Solaris. For the past year or so I've
been using sam as my main editor. I just installed the latest Inferno
updates and have played around with the new Inferno acme (now with Edit!).
One thing that wily had in commmon with acme was the concept of a scratch
window, and it had the ability to have guides. While I liked that,
I also very much like sam's ~~sam~~ body. The concept of a window for
edit commands to run on the active window is very nice. With wily,
if you execute >, <, or | commands, it runs it on the selected text in
what it thinks is the active body. That's a nice feature, similar in
concept to the ~~sam~~ window.
The reason I like an entry window or scratch space which works on the
most recent selecteed text is that I don't have enough space to work in
the tag. Because acme uses full file names, often I find myself with
not much space in the tag for |, >, or < commands. I know it will scroll
along, but for some reason I just don't like typing commands into the
tag when the front half gets scrolled off the left-hand edge.
I don't know if Plan 9 acme takes advantage of shell variables, but the
one in inferno doesn't appear to. One thing nice about wily was that
you could have defined $pisa_util/JournalLister.java to reference the
file /home/jimr/proj/pisa/src/org/highwire/util/JournalLister.java.
Now that acme has the Edit command, sam's power is available but,
unless I'm missing something, it's still a bit of a disconnect using
Edit on a window. Using the tag works, but it is kind of restrictive
in terms of space (I often use varitions of x/pat/ { nested commands }).
Using Edit commands picked up from a scratch body (cut, paste, move to
target body's tag and paste into Edit) works well enough, but I'd really
love to see an ~~acme~~ body which just knows the last active body, and
lets me execute commands I type in or mouse2 on. I'm curious whether
or not anyone else has the same interface tastes?
My other thought is that, if an ~~acme~~ window were created so commands
ran on a server on the other side of a wire, it would be very fast to
make edits on large files, since all the data could be processed on the
server side -- you would only pull down updates to the visible portion.
I know Rob mentioned he had thought about a client/server approach to
acme, and think that is an awesome idea.
Jim
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] sam vs acme
2001-07-11 19:19 ` James A. Robinson
@ 2001-07-11 21:15 ` Steve Kilbane
0 siblings, 0 replies; 42+ messages in thread
From: Steve Kilbane @ 2001-07-11 21:15 UTC (permalink / raw)
To: 9fans
Jim mused:
> target body's tag and paste into Edit) works well enough, but I'd really
> love to see an ~~acme~~ body which just knows the last active body
this worked in sam because of click-to-type. i don't know whether it
would work in acme. it *could* work in wily, since wily remembers the
last window on which you clicked; it did so in order that | > < would
work from misc guide files.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] sam vs acme
2001-07-11 17:53 ` [9fans] sam vs acme David Gordon Hogan
2001-07-11 19:19 ` James A. Robinson
@ 2001-07-11 23:11 ` Boyd Roberts
1 sibling, 0 replies; 42+ messages in thread
From: Boyd Roberts @ 2001-07-11 23:11 UTC (permalink / raw)
To: 9fans
From: "David Gordon Hogan" <dhog@plan9.bell-labs.com>
> Sadly, that thing often bites everyone else down the track,
> not just its perpetrator.
oh so true ...
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] Virtual memory in BSD and Plan9
@ 2001-11-01 21:19 ` David Gordon Hogan
2001-11-01 21:23 ` Scott Schwartz
0 siblings, 1 reply; 42+ messages in thread
From: David Gordon Hogan @ 2001-11-01 21:19 UTC (permalink / raw)
To: 9fans
> One big difference I've seen in past examples of paging systems
> can be summarized as: page against everyone vs. page only against
> oneself. The latter is sometimes called the "working set" model.
> The former tends to make the whole system unusable when a process
> lets its address space get out of control, while the latter tends
> to run other processes pretty much the same under such conditions.
I'm wondering if anyone's ever tried to treat this as a `bandwidth sharing'
issue, and applied techniques like Fair Queueing.
Admittedly it's more complex than a simple bandwidth sharing problem.
There are two resources to share: the page pool and the paging device
IO, and there are interactions between the two.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] on TCP vs IL
@ 2001-11-21 0:12 ` David Gordon Hogan
2001-11-21 0:21 ` George Michaelson
2001-11-22 9:57 ` Thomas Bushnell, BSG
0 siblings, 2 replies; 42+ messages in thread
From: David Gordon Hogan @ 2001-11-21 0:12 UTC (permalink / raw)
To: 9fans
> Not to
> mention gorgeously huge address-space, which makes for consideration of
> interesting mappings of persistant datastore into the network address space.
You _could_ do that. But some of us would Persistantly Object.
Do you really want each byte to have its own IP address?
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] on TCP vs IL
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
1 sibling, 0 replies; 42+ messages in thread
From: George Michaelson @ 2001-11-21 0:21 UTC (permalink / raw)
To: 9fans
> >Not to
> >mention gorgeously huge address-space, which makes for consideration of
> >interesting mappings of persistant datastore into the network address space.
>
> You _could_ do that. But some of us would Persistantly Object.
>
> Do you really want each byte to have its own IP address?
>
Um.. why not? I mean, in the reductionist world of theoretical wanking
of which I am an exemplar, isn't this precicely what persistant distributed
programming is maybe about?
There was a school of thought around this stuff from Glasgow a few years
back doing Persistant Pascal. I seem to recall 128-bit disk addressing being
on the table. This was an analogue, a corrollary of the 128bit VLIW model
of instruction wasn't it? Its not a long jump from disk address to network
address if you consider the namespaces ideas is it?
cheers
-George
--
George Michaelson | APNIC
Email: ggm@apnic.net | PO Box 2131 Milton QLD 4064
Phone: +61 7 3367 0490 | Australia
Fax: +61 7 3367 0482 | http://www.apnic.net
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] on TCP vs IL
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
1 sibling, 1 reply; 42+ messages in thread
From: Thomas Bushnell, BSG @ 2001-11-22 9:57 UTC (permalink / raw)
To: 9fans
dhog@plan9.bell-labs.com (David Gordon Hogan) writes:
> > Not to
> > mention gorgeously huge address-space, which makes for consideration of
> > interesting mappings of persistant datastore into the network address space.
>
> You _could_ do that. But some of us would Persistantly Object.
>
> Do you really want each byte to have its own IP address?
Yes, frankly, I would love that. It might be too expensive, but if
not, it would truly be wonderful to have.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] on TCP vs IL
2001-11-22 9:57 ` Thomas Bushnell, BSG
@ 2001-11-23 9:34 ` Douglas A. Gwyn
2001-11-26 10:00 ` Thomas Bushnell, BSG
0 siblings, 1 reply; 42+ messages in thread
From: Douglas A. Gwyn @ 2001-11-23 9:34 UTC (permalink / raw)
To: 9fans
"Thomas Bushnell, BSG" wrote:
> dhog@plan9.bell-labs.com (David Gordon Hogan) writes:
> > Do you really want each byte to have its own IP address?
> Yes, frankly, I would love that. It might be too expensive, but if
> not, it would truly be wonderful to have.
Personally I wish each *bit* in the universe had a unique address.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] on TCP vs IL
2001-11-23 9:34 ` Douglas A. Gwyn
@ 2001-11-26 10:00 ` Thomas Bushnell, BSG
2001-11-26 15:21 ` Douglas A. Gwyn
0 siblings, 1 reply; 42+ messages in thread
From: Thomas Bushnell, BSG @ 2001-11-26 10:00 UTC (permalink / raw)
To: 9fans
"Douglas A. Gwyn" <DAGwyn@null.net> writes:
> "Thomas Bushnell, BSG" wrote:
> > dhog@plan9.bell-labs.com (David Gordon Hogan) writes:
> > > Do you really want each byte to have its own IP address?
> > Yes, frankly, I would love that. It might be too expensive, but if
> > not, it would truly be wonderful to have.
>
> Personally I wish each *bit* in the universe had a unique address.
Heh, yeah, that would be nice. Though, as I was once taught, a "byte"
is officially the minimal addressible unit on an architecture... if
every bit is separately addressed, then hey, we've just switched to
one-bit bytes, right?
But these days the philistines have forgotten about fine old 36-bit
wordsize machines and the like, and have just synonymized "byte" and
the neologism "octet".
Sic transit gloria computorum.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] on TCP vs IL
2001-11-26 10:00 ` Thomas Bushnell, BSG
@ 2001-11-26 15:21 ` Douglas A. Gwyn
0 siblings, 0 replies; 42+ messages in thread
From: Douglas A. Gwyn @ 2001-11-26 15:21 UTC (permalink / raw)
To: 9fans
"Thomas Bushnell, BSG" wrote:
> ... Though, as I was once taught, a "byte"
> is officially the minimal addressible unit on an architecture...
No, although within C the term "byte" is practically synonymous
with "minimum unit addresable by standard language constructs".
Generally, a byte is a collection of bits within a machine word
that are treated as representing a complete field. Some systems
had variable-sized byte instructions, some had fixed-size byte
operations, some had no direct support for bytes (although one
could use word-oriented instructions to manipulate artificially
defined byte fields).
> But these days the philistines have forgotten about fine old 36-bit
> wordsize machines and the like, and have just synonymized "byte" and
> the neologism "octet".
The 8-bit byte became common with 16-bit minicomputers and the
IBM System/360. Consequently when storage devices for those
platforms had their capacity specified in "bytes", everyone
understood that to mean 8-bit bytes. This carried over into
other processors, especially since the 8-bit byte sufficed for
the most common character encodings of the time, ASCII and
EBCDIC. But since "byte" does not logically always imply
8 bits, careful specifications such as the IETF Internet RFPs
tend to use the term "octet" when exactly 8 bits are meant.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] libXg/test.c
@ 2001-12-07 19:41 ` David Gordon Hogan
2001-12-07 20:08 ` Boyd Roberts
` (2 more replies)
0 siblings, 3 replies; 42+ messages in thread
From: David Gordon Hogan @ 2001-12-07 19:41 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
I started unifying all the various ``Plan 9 on Unix & Nt'' thingies
a while ago, but I got bogged down trying to make a better
Inferno, which nobody (here at least) really wanted.
I've shelved the Inferno effort. Russ has been helping with
drawterm, on and off. I might spend some time over the
weekend tidying up the remainder of "9pm". There shouldn't
be all these different versions of sam and the supporting libraries.
[-- Attachment #2: Type: message/rfc822, Size: 1698 bytes --]
From: Boyd Roberts <boyd@strakt.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] libXg/test.c
Date: Fri, 07 Dec 2001 20:15:39 +0100
Message-ID: <3C11155B.9D4309DD@strakt.com>
> The "9libs" version of libXg doesn't appear
> to have this problem.
My version came from:
http://netlib.bell-labs.com/netlib/research/sam.shar.gz
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] libXg/test.c
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-11 16:51 ` Leo Caves
2 siblings, 0 replies; 42+ messages in thread
From: Boyd Roberts @ 2001-12-07 20:08 UTC (permalink / raw)
To: 9fans
> There shouldn't be all these different versions of sam and the supporting libraries.
Right!
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] libXg/test.c
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
2 siblings, 2 replies; 42+ messages in thread
From: Scott Schwartz @ 2001-12-07 20:09 UTC (permalink / raw)
To: 9fans
David writes:
> There shouldn't be all these different versions of sam and the supporting
> libraries.
What he said. Sign me up for the cleanup project.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] libXg/test.c
2001-12-07 20:09 ` Scott Schwartz
@ 2001-12-07 20:28 ` Boyd Roberts
2001-12-10 10:01 ` Maarit Maliniemi
1 sibling, 0 replies; 42+ messages in thread
From: Boyd Roberts @ 2001-12-07 20:28 UTC (permalink / raw)
To: 9fans
> What he said. Sign me up for the cleanup project.
Please try and factor in being able to turn off UTF
to make latin-1 on unix bearable. It's probably a
compile time thing, unless you live in 'mixed' universe.
In a 'mixed' universe it's probably pretty tricky to
do in any simple, general way.
Thanks.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] libXg/test.c
2001-12-07 20:09 ` Scott Schwartz
2001-12-07 20:28 ` Boyd Roberts
@ 2001-12-10 10:01 ` Maarit Maliniemi
1 sibling, 0 replies; 42+ messages in thread
From: Maarit Maliniemi @ 2001-12-10 10:01 UTC (permalink / raw)
To: 9fans
In article <20011207200957.4622.qmail@f.bio.cse.psu.edu>,
9fans@cse.psu.edu wrote:
> Sign me up for the cleanup project.
Since Mark is very busy with other things I am sure that interested
parties can just ask for 9libs. Provided that one wants to use auto-tools,
ofcourse.
Sam-9libs is always avaliable for anybody that wants to do something in C.
After beeing allowed back into heaven (HLL coding) I have great
difficulties persuading myself to start activly maintaing it again.
bengt
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] libXg/test.c
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-11 16:51 ` Leo Caves
2 siblings, 0 replies; 42+ messages in thread
From: Leo Caves @ 2001-12-11 16:51 UTC (permalink / raw)
To: 9fans
David Gordon Hogan wrote:
>
> I started unifying all the various ``Plan 9 on Unix & Nt'' thingies
> a while ago, but I got bogged down trying to make a better
> Inferno, which nobody (here at least) really wanted.
>
David, care to elaborate on how you were trying to better inferno?
Leo
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] /sys/src/^(9 boot)^/pc/memory.c
@ 2002-09-17 22:04 ` David Gordon Hogan
2002-09-17 22:08 ` Scott Schwartz
0 siblings, 1 reply; 42+ messages in thread
From: David Gordon Hogan @ 2002-09-17 22:04 UTC (permalink / raw)
To: 9fans
> Oops. I did not combine using the wavelan and trying
> to use the i81x driver. If I do have a wavelan in the
> pcmcia slot and I let aux/vga be run (trying i81x on
> thinkpad R31, mouseport ps2, vgasize 640x480x8, monitor xga)
> I get:
>
> panic: mmuwalk2: va 80526000 entry 4001E3
The i81x driver uses mmuwalk() to get the PTE of a single
page that it allocates for the hardware cursor. It needs this
to mark the memory as uncached, otherwise the hardware
cursor won't update correctly. Unfortunately, this strategy
only works if the cursor is allocated in the first 4M of memory.
After that, it isn't possible to single out an individual page
in the kernel virtual mapping. Hence the panic.
I'm not sure how to fix this. It might be neccesary to change
the page table to make the appropriate 4M region use a level
2 page table.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
@ 2001-06-28 21:17 Boyd Roberts
0 siblings, 0 replies; 42+ messages in thread
From: Boyd Roberts @ 2001-06-28 21:17 UTC (permalink / raw)
To: 9fans
merde, this message was meant for laura.
----- Original Message -----
From: "Boyd Roberts" <boyd@fr.inter.net>
To: <9fans@cse.psu.edu>
Sent: Thursday, June 28, 2001 11:00 PM
Subject: Re: [9fans] source code as data not text
> > Cutting and pasting code is plain evil.
>
> you said it.
>
> back in paris and i have eurocave catalogue.
>
> that stuff is is _way cool_.
^ permalink raw reply [flat|nested] 42+ messages in thread
* RE: [9fans] source code as data not text
@ 2001-06-18 15:24 anothy
2001-06-19 3:52 ` Richard Elberger
0 siblings, 1 reply; 42+ messages in thread
From: anothy @ 2001-06-18 15:24 UTC (permalink / raw)
To: 9fans
//In my opinion, you're on the right track.
so how do you deal with the concerns raised? for one, the probability that a
database-based source code repository would lock you into a specific vendor?
and while i'm not entirely clear on what exactly lac was refering to, can you
deny the usefulness of being able to "grep ^foo(" in code, or suggest that a
databasse system would make that easier somehow? again, as noted earlier,
db-based source code systems are another failure to use the little-tools
model appropriatly.
and as dan points out, SCCS/CVS style stuff is not what's at issue here.
//In fact, you'd be surprised how many big software companies are already
//moving that way...
much to my dismay, i believe you. but then, i'm often suprised how many big
companies are doing _lots_ of things i consider stupid. PeopleSoft, anyone?
the most involved syntax highlighting i find useful is paren/bracket/quote/&c
matching. i could imagine an editor that did that well (acounting for the
language-specific escapes and such) being quite nice. more than that i've not
found useful, and it's distracting and damaging to people who're learning.
and what acme's got now is good 95 times out of 100.
-α.
^ permalink raw reply [flat|nested] 42+ messages in thread
* RE: [9fans] source code as data not text
2001-06-18 15:24 anothy
@ 2001-06-19 3:52 ` Richard Elberger
0 siblings, 0 replies; 42+ messages in thread
From: Richard Elberger @ 2001-06-19 3:52 UTC (permalink / raw)
To: 9fans
>and while i'm not entirely clear on what exactly lac was refering
>to, can you
>deny the usefulness of being able to "grep ^foo(" in code, or
>suggest that a
>databasse system would make that easier somehow? again, as noted earlier,
>db-based source code systems are another failure to use the little-tools
>model appropriatly.
select .. from .. where ..
What's the difference? The only difference I see is every time you grep you do an fopen/fclose. With databases, information can even be cached, and can perhaps be "smarter" through cross-referencing. While this is a generalization on a massive scale, I think it is comparable.
>
>and as dan points out, SCCS/CVS style stuff is not what's at issue here.
>
But it is -- editing, checking in/out, collaborating, etc. To just have another editor is short-sighted. Imo, Rational Software almost has it 100% right -- they have process, tools, and repositories integrated with 3rd party products. They just don't have the full-blown integration/collaboration that's needed.
>//In fact, you'd be surprised how many big software companies are already
>//moving that way...
>
>much to my dismay, i believe you. but then, i'm often suprised how many big
>companies are doing _lots_ of things i consider stupid. PeopleSoft, anyone?
But people still buy their software ... why? Perhaps to the customers it adds value. In any case, internal process is different than how products realize the customer's need. Maybe your comment is about internal-Peoplesoft, which I know nothing about...
>
>the most involved syntax highlighting i find useful is
>paren/bracket/quote/&c
>matching. i could imagine an editor that did that well (acounting for the
>language-specific escapes and such) being quite nice. more than
>that i've not
>found useful, and it's distracting and damaging to people who're learning.
>and what acme's got now is good 95 times out of 100.
>-α.
>
>
In your particular case... acme still tires me out. When using Inferno, I use that plain-text editor instead of acme -- with the syntax highlighting for limbo. I think it's nice to have the option. I just wish there was a nicely integrated source management system so I wouldn't have to worry.
-- rich
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
@ 2001-06-18 14:45 anothy
2001-06-19 16:51 ` Barry
0 siblings, 1 reply; 42+ messages in thread
From: anothy @ 2001-06-18 14:45 UTC (permalink / raw)
To: 9fans
//I have no idea why close to every human being on the planet
//feels the compelling need to write their own strcmp...
i think i could dig up a _few_ people who've never expressed any
desire to write a strcmp. ☺
-α.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-18 14:45 anothy
@ 2001-06-19 16:51 ` Barry
0 siblings, 0 replies; 42+ messages in thread
From: Barry @ 2001-06-19 16:51 UTC (permalink / raw)
To: 9fans
>//I have no idea why close to every human being on the planet
>//feels the compelling need to write their own strcmp...
>
>i think i could dig up a _few_ people who've never expressed any
>desire to write a strcmp.
>-.
... But I HAD to write my own strcmp(). No one understands me.
"A word means exactly what I say it means." (misquoted from
_Through the Looking Glass_ (?) by Lewis Carrol.
==================================================================
Once a proud programmer of Apple II computers, he now spends his days
and nights in cheap dives fraternizing with exotic dancers.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
@ 2001-06-18 7:45 nigel
0 siblings, 0 replies; 42+ messages in thread
From: nigel @ 2001-06-18 7:45 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 46 bytes --]
Oh, and the link to SeeSoft is broken too.
[-- Attachment #2: Type: message/rfc822, Size: 2009 bytes --]
From: "Matt" <matt@proweb.co.uk>
To: <9fans@cse.psu.edu>
Subject: [9fans] source code as data not text
Date: Mon, 18 Jun 2001 01:31:13 +0100
Message-ID: <00d701c0f78d$fb26d750$6401a8c0@freeze2k>
Maybe I'm not hard-core enough but one thing I miss is syntax highlighting.
And if you go so far as to parse the source code in the editor then you can
use the opportunity to develop the idea.
There are some good ideas in a paper here http://mindprod.com/scid.html
about source code living in a database rather than a plain text file.
The basic premise is that when an editor knows about what source code is and
does it can offer new views of it etc.
Anyone got any views of their own?
matt
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
@ 2001-06-18 7:43 nigel
2001-06-18 9:07 ` Laura Creighton
0 siblings, 1 reply; 42+ messages in thread
From: nigel @ 2001-06-18 7:43 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 2439 bytes --]
>> The basic premise is that when an editor knows about what source code is and
>> does it can offer new views of it etc.
>>
>> Anyone got any views of their own?
Yes.
It's not a matter of being hard-core. The fundamental premise is that
text is the only universal format. If you keep the 'data' in a 'database',
then how do other tools reason on it? Only if they can read the format,
of course. This tends to mean, "only if they're from the same vendor".
Keeping your 'data' in a universally agreed format is important. I would
contend that text is the only one for source code.
Having structural information is important, but the common format
must not thrown away in pursuit of it. The concept is in direct
opposition to the toolset principle.
But, in this case, the guy is actually promoting strict syntax
directed editing, a well-worn-out concept. Under the section "Real
World SCID Implementations", he says
The usual reaction I get from programmers when I mention SCIDs is that
they have tried them and they hate them. What they have tried are
coding templates where you fill in the blanks. These stop you from
coding in the old way, yet offer almost no payback. Granted SCIDs
will force you to rethink how you compose programs. Code must at all
times be 100% syntactically correct. However, a good SCID will pay
back 100 fold for this inconvenience. If you try to import or paste
code that is not correct, you will find much of it being turned into a
special kind of comment
'Nuff said. You really don't want it. The last thing you want when in the
middle of creating something is to have an editor forcing you to dot
the I's and cross the t's.
Composition of programs is not linear, in exactly the same way as a
novelist might be writing the introduction, the guts, and the end all
at the same time. So even if syntactically correct entry is an
improvement over coding templates, they both force an uncomfortable
approach which strangles creativity. The programmers aren't wrong,
there is plenty of research to support this, and he shouldn't be so
dismissive.
Every so often someone ressurects this idea. In this case, despite
his claim to have been promoting it since the 70's, he doesn't mention
any of the classic research on the subject, which started at least as
early as the 70's.
Try reading papers on the Gandalf project as a starting point.
[-- Attachment #2: Type: message/rfc822, Size: 2009 bytes --]
From: "Matt" <matt@proweb.co.uk>
To: <9fans@cse.psu.edu>
Subject: [9fans] source code as data not text
Date: Mon, 18 Jun 2001 01:31:13 +0100
Message-ID: <00d701c0f78d$fb26d750$6401a8c0@freeze2k>
Maybe I'm not hard-core enough but one thing I miss is syntax highlighting.
And if you go so far as to parse the source code in the editor then you can
use the opportunity to develop the idea.
There are some good ideas in a paper here http://mindprod.com/scid.html
about source code living in a database rather than a plain text file.
The basic premise is that when an editor knows about what source code is and
does it can offer new views of it etc.
Anyone got any views of their own?
matt
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-18 7:43 nigel
@ 2001-06-18 9:07 ` Laura Creighton
2001-06-28 21:00 ` Boyd Roberts
2001-06-28 22:02 ` Boyd Roberts
0 siblings, 2 replies; 42+ messages in thread
From: Laura Creighton @ 2001-06-18 9:07 UTC (permalink / raw)
To: 9fans; +Cc: lac
Cutting and pasting code is plain evil. If you need it twice, you
need a library function, or a template, I suppose, though I
dislike templates for other reasons. Any program that attempts to
help you by making sure that you cannot cut and paste things in that
are not syntactically correct is doing you no favour. As you change
things to make the program happier, you are producing two slightly
different versions of essentially the same code -- precisely the evil
you need most to avoid. I have no idea why close to every human
being on the planet feels the compelling need to write their own
strcmp, with their own unique bugs in them, but the problem is that
everybody is out reinventing the square wheel, not that the syntax
in some of them is questionable.
Laura
^ permalink raw reply [flat|nested] 42+ messages in thread
* [9fans] source code as data not text
@ 2001-06-18 0:31 Matt
2001-06-18 8:52 ` Laura Creighton
2001-06-28 21:56 ` Boyd Roberts
0 siblings, 2 replies; 42+ messages in thread
From: Matt @ 2001-06-18 0:31 UTC (permalink / raw)
To: 9fans
Maybe I'm not hard-core enough but one thing I miss is syntax highlighting.
And if you go so far as to parse the source code in the editor then you can
use the opportunity to develop the idea.
There are some good ideas in a paper here http://mindprod.com/scid.html
about source code living in a database rather than a plain text file.
The basic premise is that when an editor knows about what source code is and
does it can offer new views of it etc.
Anyone got any views of their own?
matt
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-18 0:31 Matt
@ 2001-06-18 8:52 ` Laura Creighton
2001-06-18 9:13 ` Matt
2001-06-18 14:56 ` Dan Cross
2001-06-28 21:56 ` Boyd Roberts
1 sibling, 2 replies; 42+ messages in thread
From: Laura Creighton @ 2001-06-18 8:52 UTC (permalink / raw)
To: 9fans; +Cc: lac
The problem with putting source code in a database is that you then need
complicated database tools to read your source code. Then it is harder
to use pipes and shellscripts. When David Slocum, Aaron Markus, somebody
whose name I forget did a study of bit-map fonts and their effect
on the comprehension of C code for a DARPA grant we discovered that it
was much better to build a parser in a displaying tool that you could
make display plain ascii any way you like by some sort of parsing rule,
as opposed to making the source code itself complicated.
In our efforts to learn this we discovered that it is very tough on your
experiemental method to have different versions of source code that are
supposed to be identical except for formatting details. They will vary.
We wasted a fair bit of time proving conclusively that students who
are new to C have a hard time understanding it when you have left out
the odd line or character by mistake, and the like.
Things worked better when the person whose name I can't remember and
I hacked the C pre-processor and the compiler to produce, instead of
machine code, bit maps (which was radical new technology at the time)
which we could then baffle more students with.
There is also the helpless factor. On occasion I have had to write
C code in MS word. It goes very badly. I very much feel a helpless
prisoner while this is going on; locked inside layers and layers of
gorp which contribute absolutely nothing towards my main goal, making
the machine do what I want it to do. It makes writing code hard for me.
Syntax highlighting does catch errors. Does it make you lazier about not
making errors in the first place? How can we test this hypothesis? I
know people who never used line editors like ed extensively are
surprised when old ed hackers sit down and write 20, 50, 100 lines of
code, one line right after each other, without going back and fiddling with
bits. If you started writing programs when there was no cursor addressing,
or screen editors (or they were banned because of the load they
put on those old machines) this is no trick at all.
Laura
ps. we are all safe and sound here. We should all be cleaned up soon.
But I never made it to the used computer store; Saturday's revised
demonstration path made to miss the trashed out area went right down the
street where I live. Thanks for all the support.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-18 8:52 ` Laura Creighton
@ 2001-06-18 9:13 ` Matt
2001-06-18 10:02 ` Richard Elberger
2001-06-18 14:56 ` Dan Cross
1 sibling, 1 reply; 42+ messages in thread
From: Matt @ 2001-06-18 9:13 UTC (permalink / raw)
To: 9fans
bah, my fault but I wasn't really thinking about the database side of
things. Changing the file format is definately a no-no.
What sparked my interest was making the editor do more work.
Maybe it's because I write code that writes code and having string literals
in a different colour from the source code helps me see.
I did like VB's auto parsing if input code. Highlighting a sections that are
stynax errors etc. must reduce the cycle?
I'm glad I asked here though. Can't think of a better bunch of people to run
it past.
matt
^ permalink raw reply [flat|nested] 42+ messages in thread
* RE: [9fans] source code as data not text
2001-06-18 9:13 ` Matt
@ 2001-06-18 10:02 ` Richard Elberger
0 siblings, 0 replies; 42+ messages in thread
From: Richard Elberger @ 2001-06-18 10:02 UTC (permalink / raw)
To: 9fans
In my opinion, you're on the right track.
As for databases storing code, I think it is good. I disagree with Laura's
shell script (etc) theory -- I have a hard time believing she works in
anything else but an academic environment -- I have been doing release
management for a long time and I would rather have code stored in a
clustered rdbms that is accessed through its own shell [that is
cross-platform like limbo] than relying on shell scripts, etc, that aren't
cross-platform. In fact, you'd be surprised how many big software companies
are already moving that way with internal teams building such change
management systems.
2p.
-- rich
>-----Original Message-----
>From: 9fans-admin@cse.psu.edu [mailto:9fans-admin@cse.psu.edu]On Behalf
>Of Matt
>Sent: Monday, 18 June 2001 9:14 p.m.
>To: 9fans@cse.psu.edu
>Subject: Re: [9fans] source code as data not text
>
>
>bah, my fault but I wasn't really thinking about the database side of
>things. Changing the file format is definately a no-no.
>
>What sparked my interest was making the editor do more work.
>Maybe it's because I write code that writes code and having string literals
>in a different colour from the source code helps me see.
>
>I did like VB's auto parsing if input code. Highlighting a
>sections that are
>stynax errors etc. must reduce the cycle?
>
>I'm glad I asked here though. Can't think of a better bunch of
>people to run
>it past.
>
>matt
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-18 8:52 ` Laura Creighton
2001-06-18 9:13 ` Matt
@ 2001-06-18 14:56 ` Dan Cross
1 sibling, 0 replies; 42+ messages in thread
From: Dan Cross @ 2001-06-18 14:56 UTC (permalink / raw)
To: 9fans
In article <200106180852.KAA04199@boris.cd.chalmers.se> you write:
>
> [...]
>
>Syntax highlighting does catch errors. Does it make you lazier about not
>making errors in the first place? How can we test this hypothesis? I
>know people who never used line editors like ed extensively are
>surprised when old ed hackers sit down and write 20, 50, 100 lines of
>code, one line right after each other, without going back and fiddling with
>bits. If you started writing programs when there was no cursor addressing,
>or screen editors (or they were banned because of the load they
>put on those old machines) this is no trick at all.
I think that there has to be a break-even point. Before that point,
the tools are too difficult, thus too restricting. Afterwards, the
tools are too easy and make one lazy. Does syntax highlighting help?
I don't think so; in my experience, programmers who use syntax
highlighting editors don't turn out code as good as that produced by
programmers who use a non-syntax highlighting editor, and they
certainly don't do it as quickly. On the other hand, I've programmed
using ed, and I don't particularly want to go back (though it's really
handy for some things!).
Regarding using a database to store code, please don't confuse the term
``database'' with ``relational database.'' Storing code in an RDBMS
certainly doesn't buy you anything, as code doesn't map well to the
relational model (though I suppose one could argue that the relational
model could implicitly encapsulate the functionality of mk and its ilk
without additional code). An object database with versioning, on the
other hand, might be used to house a repository of code, but that's not
the issue at hand; the issue is a programmer editting within the
context of a database at all times. I don't think this is a good idea,
if for no other reason than yes, it defies the tool-based approach.
Specifically, as Nigel pointed out, I'm forced into using a vendors
proprietary tools to edit my source. Bye bye acme? No thanks.
Besides, tools like CVS, Perforce, etc, already do what the object
database would do for me, but do so using normal text files (okay;
perforce uses a database on the ``back end''). I use these things
in industry all the time (despite my email address :-), and they
can come in really handy. However, I almost never use a syntax
highlighting editor (unless I'm doing something really repeditive),
and I never use a database to store code in my directory.
I do use shell scripts and text-based tools all the time. Good God,
I'd cut off my hands and stop programming forever if I couldn't.
- Dan C.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [9fans] source code as data not text
2001-06-18 0:31 Matt
2001-06-18 8:52 ` Laura Creighton
@ 2001-06-28 21:56 ` Boyd Roberts
1 sibling, 0 replies; 42+ messages in thread
From: Boyd Roberts @ 2001-06-28 21:56 UTC (permalink / raw)
To: 9fans
> Maybe I'm not hard-core enough but one thing I miss is syntax highlighting.
i think this is nonsense, but it makes me think that maybe you could
have a database of buggy code that you had written and it could be used
to warn you of your folies.
^ permalink raw reply [flat|nested] 42+ messages in thread
end of thread, other threads:[~2002-09-17 22:08 UTC | newest]
Thread overview: 42+ 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-06-28 21:17 [9fans] source code as data not text Boyd Roberts
-- strict thread matches above, loose matches on Subject: below --
2001-06-18 15:24 anothy
2001-06-19 3:52 ` Richard Elberger
2001-06-18 14:45 anothy
2001-06-19 16:51 ` Barry
2001-06-18 7:45 nigel
2001-06-18 7:43 nigel
2001-06-18 9:07 ` Laura Creighton
2001-06-28 21:00 ` Boyd Roberts
2001-06-28 22:02 ` Boyd Roberts
2001-06-18 0:31 Matt
2001-06-18 8:52 ` Laura Creighton
2001-06-18 9:13 ` Matt
2001-06-18 10:02 ` Richard Elberger
2001-06-18 14:56 ` Dan Cross
2001-06-28 21:56 ` 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).