[Felix-language] Closures!

2009-09-27 Thread Erick Tryzelaar
`flxc` now has automatic stack closures! Take that, C99! Check this out! :::felix type tiny = "%i8"; type int = "%i32"; typedef bool = 2; fun add : int*int -> int = "%add"; fun sub : int*int -> int = "%sub"; fun eq : int*int -> bool = "%eq"; fun lnot : bool -> bool

Re: [Felix-language] [felix] Re: tail calls, baby!

2009-09-27 Thread Erick Tryzelaar
On Sun, Sep 27, 2009 at 4:08 AM, john skaller wrote: > > shouldn't this code be in the library? It does, I just noticed that once I got optimizations working it automatically inlined the internal tail call. I expect when I start tail calling external functions then I'll use llvm's tail call mecha

Re: [Felix-language] [felix] tail calls, baby!

2009-09-27 Thread john skaller
On 27/09/2009, at 10:51 AM, Erick Tryzelaar wrote: > > Check this out! I just got the standard felix optimizations working. Cool .. now .. > >:::felix >type int = "%i32"; >typedef bool = 2; >fun add : int*int -> int = "%add"; >fun sub : int*int -> int = "%sub"; >fun eq :