Re: [Haskell-cafe] how to write an haskell binding

2006-06-28 Thread Fritz Ruehr
On Jun 27, 2006, at 10:35 AM, Brian Hulley wrote: I suppose they are the exception that proves the rule... :-) Seems like there's a real opportunity here for someone who works in the area of inference systems for error handling ... . (Hmmm, pun-potential may not be the best way to pick a re

Re: [Haskell-cafe] how to write an haskell binding

2006-06-27 Thread Brian Hulley
[EMAIL PROTECTED] wrote: Quoting Brian Hulley <[EMAIL PROTECTED]>: It is defnitely *a* haskell. There is actually no word in English with a silent 'h', though this statement is unfortunately controversial and news to whoever wrote the spell checker used in many printed publications. "There is

Re: Re[2]: [Haskell-cafe] how to write an haskell binding

2006-06-27 Thread minh thu
Brian, mmm, no you wasn't missing the point : actually, i asked if we bind against c or c++. But that way, you answer the "general guidelines" part of the question. thx thu 2006/6/27, minh thu <[EMAIL PROTECTED]>: Brian, Bulat, thank you, thu ___ Ha

Re: Re[2]: [Haskell-cafe] how to write an haskell binding

2006-06-27 Thread minh thu
Brian, Bulat, thank you, thu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re[2]: [Haskell-cafe] how to write an haskell binding

2006-06-27 Thread Bulat Ziganshin
Hello Brian, Tuesday, June 27, 2006, 2:43:15 AM, you wrote: > achieve a goal. One other thing to bear in mind is that foreign calls are > extremely slow, so for example it is much faster to use the > Foreign.Marshal.Array and Foreign.C.String functions to allocate and > populate a temporary arr

Re: [Haskell-cafe] how to write an haskell binding

2006-06-27 Thread lennart
Quoting Brian Hulley <[EMAIL PROTECTED]>: It is defnitely *a* haskell. There is actually no word in English with a silent 'h', though this statement is unfortunately controversial and news to whoever wrote the spell checker used in many printed publications. "There is no English word with a

Re: [Haskell-cafe] how to write an haskell binding

2006-06-26 Thread Brian Hulley
Brian Hulley wrote: minh thu wrote * for c++, is it better to first write a c api for the c++ code before writing the binding [snip] class TimerFactory { static void Construct(); static void Destruct(); }; then the C api functions are given names like: xxx_TimerConstru

Re: [Haskell-cafe] how to write an haskell binding

2006-06-26 Thread Brian Hulley
minh thu wrote: about writing an haskell (or is it *a* haskell ?) binding for a c or a It is defnitely *a* haskell. There is actually no word in English with a silent 'h', though this statement is unfortunately controversial and news to whoever wrote the spell checker used in many printed pub

[Haskell-cafe] how to write an haskell binding

2006-06-26 Thread minh thu
hi, hopefully (well, i liked the discussions) this message will not spawn so much messages :) i'd like to know if there exist some general guidelines/information about writing an haskell (or is it *a* haskell ?) binding for a c or a c++ library. i worry about : * implementation tools : use tool