Re: [Felix-language] Experimental LLVM Backend

2008-05-18 Thread Erick Tryzelaar
On Sun, May 18, 2008 at 7:12 AM, john skaller <[EMAIL PROTECTED]> wrote: > Why fork it? Why not a single compiler with a switch? Eventually I want to do that, but it's a lot easier to hack out all the c++ stuff and replace it with llvm stuff. So, it's completely incompatible. I didn't want my expe

Re: [Felix-language] [felix-lang] Using scheme for our FFI

2008-05-18 Thread Erick Tryzelaar
On Sun, May 18, 2008 at 7:11 AM, john skaller <[EMAIL PROTECTED]> wrote: >> And do the declare if the string starts with @. That loses the ability >> to write arbitrary text. > > Not if you change it to > >fun sin: double -> double :@ "sin"; > > i.e. special syntax which invokes an llvm spe

Re: [Felix-language] Experimental LLVM Backend

2008-05-18 Thread john skaller
On 18/05/2008, at 9:05 AM, Erick Tryzelaar wrote: > I've started a fork of felix to modify our compiler's backend to > target llvm instead of c++. Why fork it? Why not a single compiler with a switch? -- john skaller [EMAIL PROTECTED]

Re: [Felix-language] [felix-lang] Using scheme for our FFI

2008-05-18 Thread john skaller
On 18/05/2008, at 3:34 AM, Erick Tryzelaar wrote: > On Sat, May 17, 2008 at 3:36 AM, john skaller > <[EMAIL PROTECTED]> wrote: >> No, we do just this for C. You do it like this: >> >> fun sin: float -> float = "sin($1)" >> requires header "extern float sin(float);"; >> >> or for llvm I guess: >>