[Felix-language] GC reimplementation

2007-05-25 Thread skaller
The current Felix GC is rather slow and heavy. Now I have Judy arrays working, I'm considering changing it. Felix current has something like a 6 word overhead on heap blocks, and, interior pointers use a special Felix pointer type: struct { void *data; offset_t offset; } so that pointers

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread skaller
On Fri, 2007-05-25 at 11:34 -0700, Erick Tryzelaar wrote: > Oh sorry, you're right. That should be: > > #syntax light > > whilst x do > x = 1 > y = 2 > > #endsyntax You can do this now: while { x } $$ x = 1 y = 2 ; because that uses a the

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread skaller
On Fri, 2007-05-25 at 17:39 +, Martin Percossi wrote: > Erick Tryzelaar wrote: > > #syntax light > > whilst x do > >x = 1 > >y = 2 > > done > > #endsyntax > > I don't like this because users will forget about the one on the bottom, > if, as I suspect they will, they surround the en

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread skaller
On Fri, 2007-05-25 at 10:24 -0700, Erick Tryzelaar wrote: > We talked about this when skaller implemented "$$". I believe his reason > against "#syntax light" was that it was a global declaration, and he'd > prefer not to have them. This is not quite the case: the first step is to get somethin

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread Erick Tryzelaar
Martin Percossi wrote: > Erick Tryzelaar wrote: > >> #syntax light >> whilst x do >>x = 1 >>y = 2 >> done >> #endsyntax > > I don't like this because users will forget about the one on the bottom, > if, as I suspect they will, they surround the entire file with the > directives. Also, w

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread Martin Percossi
Erick Tryzelaar wrote: > We talked about this when skaller implemented "$$". I believe his > reason against "#syntax light" was that it was a global declaration, > and he'd prefer not to have them. I think it may also complicate the > lexer. One alternative idea (that I never mentioned) I did h

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread Erick Tryzelaar
Martin Percossi wrote: >> Optional indentation has just been implemented, but it requires >> an introduction: >> >> whilst x do $$ >> x = 1 >> y = 2 >> >> This integrates fairly seamlessly with free form, without >> any special knowledge of the syntax. I'm not sure I

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread Martin Percossi
skaller wrote: >What do you mean I can't inline? Felix inlines almost everything, >inlining is its primary optimisation technique. > > I mean you can't write whilst x do #syntax light x = 1 y = 2 Sorry, I overloaded the word inline there! Cheers, Martin

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread skaller
On Fri, 2007-05-25 at 16:37 +, Martin Percossi wrote: > skaller wrote: > You are of course completely right. Come to think of it, I remember a > discussion about this on haskell list. Must be getting senile in my old > age ;-) Cool .. I was senile in my youth .. :) > >Note also, Felix uses

Re: [Felix-language] Fixing the Felix expression Grammar

2007-05-25 Thread Martin Percossi
skaller wrote: >>Another cool thing: the use of backquotes to get infix notation. 5 `mod` >>2 is just very nice in my opinion. >> >> > >Actually it sucks because backquotes can't be nested without >gratuitous brackets > > You are of course completely right. Come to think of it, I remember