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, XOR,

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

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 libraries for

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

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:

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

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-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 usually use

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

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

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

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:

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

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 saw

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 too

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