Re: [9fans] octopus distribution

2008-05-01 Thread a
I've downloaded this new distribution and have been playing around for about a day (much to the dismay of my growing backlog of work tasks). It's very exciting; the wrappers around the speech stuff on OS X are a nice touch. I'd like to have as few copies of the base Inferno install lying around as

Re: [9fans] octopus distribution

2008-05-01 Thread Francisco J Ballesteros
IIRC, unpacking just /dis/o should be enough. There's a separate osrc.tgz at the same web page where you took the distrib. You could perhaps try to unpack that, or just copy it from the one you got. Also, there might be necessary to create some directory in case a mount point is missing. If that'

Re: [9fans] A new language for Plan 9

2008-05-01 Thread erik quanstrom
> one does > > if key = 'c' then > scanline > runcommand > else > generate(key) > assemble(key) > > This is similar to Python, and prevents the nesting ambiguity of C, > Pascal, and some

[9fans] A new language for Plan 9

2008-05-01 Thread Pietro Gagliardi
Hello. I started working on Bentley, a new programming language. This was inspired by and is based on the pseudocode in Jon Bentley's "Programming Pearls" - a column for the CACM that became a book. The compiler generates Assembly in a temporary file, then calls up the assembler to make the

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Rob Pike
(By 'indentation' of course I mean 'indentation to define structure') -rob

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Rob Pike
Indentation by white space is a very bad idea in my experience. Superficially attractive but ultimately very dangerous. I once spent a couple of days tracking down a bug caused by a source-to-source code tool that broke a major program because the code it was injecting into had indented one more sp

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Federico G. Benavento
> Put it this way: It's unwise to make program structure depend on > invisible characters. a white space is something hard to find, some time ago I helped a friend who couldn't get a mkfile working, he got something like: "mk: mkfile:6: syntax error; expected one of :<=" all due to a ' ' in what w

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Pietro Gagliardi
On May 1, 2008, at 9:52 PM, Rob Pike wrote: Indentation by white space is a very bad idea in my experience. Superficially attractive but ultimately very dangerous. I once spent a couple of days tracking down a bug caused by a source-to-source code tool that broke a major program because the cod

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Pietro Gagliardi
On May 1, 2008, at 9:12 PM, Federico G. Benavento wrote: Put it this way: It's unwise to make program structure depend on invisible characters. a white space is something hard to find, some time ago I helped a friend who couldn't get a mkfile working, he got something like: "mk: mkfile:6: s

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Pietro Gagliardi
On May 1, 2008, at 9:26 PM, erik quanstrom wrote: one does if key = 'c' then scanline runcommand else generate(key) assemble(key) This is similar to Python, and prevents the

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Pietro Gagliardi
On May 1, 2008, at 10:21 PM, Pietro Gagliardi wrote: On May 1, 2008, at 9:26 PM, erik quanstrom wrote: one does if key = 'c' then scanline runcommand else generate(key) ass

Re: [9fans] A new language for Plan 9

2008-05-01 Thread Robert William Fuller
Pietro Gagliardi wrote: Put it this way: It's unwise to make program structure depend on invisible characters. There's a language made entirely of said invisible characters, called Whitespace. It's esoteric, but it works. And Python, which has the same style, is a phenomenal success. Whether

Re: [9fans] A new language for Plan 9

2008-05-01 Thread ron minnich
you can do what you will, with your indentation-based language, but that won't change the fact that indentation for lexical scope is a horrible idea. I first saw it in a language in 1978 called Offal, by Aron Insinga. Aron was smart: after 6 weeks, he said, "this sucks", and put it away. When I sa

Re: [9fans] A new language for Plan 9

2008-05-01 Thread John Barham
Rob Pike wrote: > I have lots of other examples of lesser disasters. As code grows, > white space indentation becomes ever more problematic. It's a > maintenance disaster. I beg to differ, at least when it comes to my experience working w/ Python. I work day in and day out on a 50,000+ line P

Re: [9fans] A new language for Plan 9

2008-05-01 Thread John Barham
> I first saw it in a language in 1978 called Offal, by Aron Insinga. Well with a name like Offal at least he wasn't setting expectations too high...

Re: [9fans] A new language for Plan 9

2008-05-01 Thread ron minnich
On Thu, May 1, 2008 at 9:41 PM, John Barham <[EMAIL PROTECTED]> wrote: > > I first saw it in a language in 1978 called Offal, by Aron Insinga. > > Well with a name like Offal at least he wasn't setting expectations too > high... > > Just about as high as Python went, it turns out :-) ron

Re: [9fans] A new language for Plan 9

2008-05-01 Thread John Barham
On Thu, May 1, 2008 at 9:54 PM, ron minnich <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 9:41 PM, John Barham <[EMAIL PROTECTED]> wrote: > > > I first saw it in a language in 1978 called Offal, by Aron Insinga. > > > > Well with a name like Offal at least he wasn't setting expectations

Re: [9fans] A new language for Plan 9

2008-05-01 Thread John Barham
Pietro Gagliardi wrote: > The compiler generates Assembly in a temporary file, > then calls up the assembler to make the program. That sounds somewhat similar to Dan Bernstein's qhasm (http://cr.yp.to/qhasm.html) which is a semi-portable assembly language combining C-like syntax w/ direct access

Re: [9fans] A new language for Plan 9

2008-05-01 Thread andrey mirtchovski
> Indentation by white space is a very bad idea in my experience. it could just be possible that you're using an editor that is not aware of the particular indentation requirements of said language, no? does it, at least, implement color coding? :D