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

2008-05-11 Thread Pietro Gagliardi
A new Bentley is up. This defines hopefully all of the bitwise operators I will support: & | ^ << >> ~ (as in C) <@ >@ (roll left and roll right, also called circular shift) I'm still working on the base language, getting type checking working and allowing logical AND, OR, XO

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

2008-05-07 Thread Pietro Gagliardi
On May 7, 2008, at 5:24 AM, Matt Erickson wrote: On 2008-05-02, erik quanstrom <[EMAIL PROTECTED]> pondered onto the tubes: one does if key = 'c' then scanline runcommand else generate(key)

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

2008-05-07 Thread Matt Erickson
On 2008-05-02, erik quanstrom <[EMAIL PROTECTED]> pondered onto the tubes: >> one does >> >> if key = 'c' then >> scanline >> runcommand >> else >> generate(key) >> assemble(key) >> >> This is si

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

2008-05-05 Thread Pietro Gagliardi
On May 4, 2008, at 10:24 PM, andrey mirtchovski wrote: Set for the next release: bit arrays. "I'd use plan 9 before i'd use bitfields" -- pjw I'm aware of that quote. The design of bit arrays will be totally different from the design of bitfields. They are true arrays that can be used in

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

2008-05-04 Thread Bruce Ellis
wow, sounds like a freshman assignment. don't steal ".b" from limbo, use limbo. brucee On Mon, May 5, 2008 at 11:45 AM, Pietro Gagliardi <[EMAIL PROTECTED]> wrote: > I put up a new Bentley. This has support for, hopefully, all control > structures: > >if e then

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

2008-05-04 Thread erik quanstrom
> > Set for the next release: bit arrays. > > "I'd use plan 9 before i'd use bitfields" -- pjw > funny, i've only know him as a bit array. - erik

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

2008-05-04 Thread andrey mirtchovski
> Set for the next release: bit arrays. "I'd use plan 9 before i'd use bitfields" -- pjw

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

2008-05-04 Thread Pietro Gagliardi
I put up a new Bentley. This has support for, hopefully, all control structures: if e then if..then s if e then if..then..else s else

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

2008-05-04 Thread Eric Van Hensbergen
On Sun, May 4, 2008 at 8:48 AM, Pietro Gagliardi <[EMAIL PROTECTED]> wrote: > s/one/two/ # don't forget c++ > If only we could -eric

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

2008-05-04 Thread Pietro Gagliardi
s/one/two/ # don't forget c++ On May 4, 2008, at 8:18 AM, Bruce Ellis wrote: I think the quote of the day was "We already support one C-like language". brucee On Sun, May 4, 2008 at 5:57 PM, <[EMAIL PROTECTED]> wrote: Just out of curiosity, why did alef die, or are some of you still using

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

2008-05-04 Thread Bruce Ellis
I think the quote of the day was "We already support one C-like language". brucee On Sun, May 4, 2008 at 5:57 PM, <[EMAIL PROTECTED]> wrote: > > Just out of curiosity, why did alef die, or are some of you > > still using it? > > A victim of rationalisation and reality: maintaining separate > lib

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

2008-05-04 Thread lucio
> Just out of curiosity, why did alef die, or are some of you > still using it? A victim of rationalisation and reality: maintaining separate libraries for two languages is a luxury Plan 9 colud no longer afford, if I understood the rationale at the time. ++L

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

2008-05-04 Thread Steve Simon
As I understand it the load of supporting two libraries was too much work, also the alef (and perhaps limbo) experience lead to libthread which provides much of the same functionality - abet not quite as neatly. the sources of the 2nd edition alef have been released and there was a one line change

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

2008-05-04 Thread John Stalker
Just out of curiosity, why did alef die, or are some of you still using it? -- John Stalker School of Mathematics Trinity College Dublin tel +353 1 896 1983 fax +353 1 896 2282

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

2008-05-03 Thread Bruce Ellis
Well KenC doesn't have any rat with it. So you want spam spam spam bacon and KenC. Or python and a bucket. brucee On Sun, May 4, 2008 at 12:43 PM, Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > On Sat, May 3, 2008 at 6:32 PM, Bruce Ellis <[EMAIL PROTECTED]> wrote: > > ratpie! tasty. i thought

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

2008-05-03 Thread Steve Simon
> Can I have a piece without so much rat in it? I had stir fried rat in vietnam once - well you gotta try things, tasted a bit like wild (strong chewy) chicken. -Steve

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

2008-05-03 Thread Eric Van Hensbergen
On Sat, May 3, 2008 at 6:32 PM, Bruce Ellis <[EMAIL PROTECTED]> wrote: > ratpie! tasty. i thought a pindent was what a pinhead gets when you > scone him with a frypan. > Can I have a piece without so much rat in it? -eric "Its the Bishop of Liechester"

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

2008-05-03 Thread Pietro Gagliardi
We have two ratpies. They're ruby and perl. Pick your poison. On May 3, 2008, at 7:32 PM, Bruce Ellis wrote: ratpie! tasty. i thought a pindent was what a pinhead gets when you scone him with a frypan. brucee On Sun, May 4, 2008 at 9:28 AM, Skip Tavakkolian <[EMAIL PROTECTED]> wrote: my ori

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

2008-05-03 Thread Bruce Ellis
ratpie! tasty. i thought a pindent was what a pinhead gets when you scone him with a frypan. brucee On Sun, May 4, 2008 at 9:28 AM, Skip Tavakkolian <[EMAIL PROTECTED]> wrote: > my original suggestion for ratpy wasn't taken seriously, so i'll propose it > again: > > http://groups.google.com/grou

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

2008-05-03 Thread Skip Tavakkolian
my original suggestion for ratpy wasn't taken seriously, so i'll propose it again: http://groups.google.com/group/comp.os.plan9/msg/29eb245edcb78e91 >>> I don't use Python for this very reason. This is probably why >>> Ruby exists. I will not use your language for the same reason. >>> By

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

2008-05-03 Thread lucio
> the Python distribution includes a tool called 'pindent'. it happily > annotates Python source with block-closing comments and converts > haphazardly indented source with block-closing comments into > correctly indented Python source. This is irony in a league all of its own! ++L

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

2008-05-03 Thread David Arnold
On 02/05/2008, at 8:34 AM, Chad Dougherty wrote: Robert William Fuller wrote: I don't use Python for this very reason. This is probably why Ruby exists. I will not use your language for the same reason. By adopting such draconian white space rules you automatically alienate a large numb

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

2008-05-02 Thread Robert William Fuller
Chad Dougherty wrote: Robert William Fuller wrote: I don't use Python for this very reason. This is probably why Ruby exists. I will not use your language for the same reason. By adopting such draconian white space rules you automatically alienate a large number of programmers. A blind

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

2008-05-02 Thread Chad Dougherty
Robert William Fuller wrote: I don't use Python for this very reason. This is probably why Ruby exists. I will not use your language for the same reason. By adopting such draconian white space rules you automatically alienate a large number of programmers. A blind programmer once told me

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

2008-05-02 Thread erik quanstrom
> 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? you wascale wabble wowser! you're won of those pwython wuffians, awren't you? - erik

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

2008-05-02 Thread erik quanstrom
> 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 to registers. > Anathema to the Plan 9 philosophy I suppose but given that clock > speeds seem to have hit a wall it's one way

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

2008-05-02 Thread Martin Neubauer
* Bakul Shah ([EMAIL PROTECTED]) wrote: > Clearly he has a lot of enthusiasm but I don't understand why > he is squandering it on implementing boring old language > ideas. Old ideas have the benefit of already being there.

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

2008-05-02 Thread Bakul Shah
On Fri, 02 May 2008 08:49:24 BST John Stalker <[EMAIL PROTECTED]> wrote: > > To ensure programmers will use good style, Bentley will lack goto. To > > break out of nested loops, you can use the breakout statement. > > This worries me. When I need to implement a finite state autonomon I > usual

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

2008-05-02 Thread John Stalker
> The idea is simple: indentation as block style. Religious matter. Do as you wish, but expect flames. > Another feature I hope to supply is bit arrays. ok > Bentley also will have nested functions, a Pascal-like for statement > (with variable steps instead of 1/-1), and a loop statement for

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

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 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 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
> 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 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 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 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 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 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 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: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 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 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 Rob Pike
(By 'indentation' of course I mean 'indentation to define structure') -rob

[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 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