Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-07 Thread Daniël de Kok
On Apr 5, 2012, at 5:08 PM, Donn Cave wrote: As things stand, it is quite a hassle to use a Haskell library of any complexity called from C. […] I wonder if the fact that we recognize these problems but haven't been super-motivated to solve them, suggests that there hasn't really been that

Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-05 Thread Evan Laforge
I love the idea of easier to use FFI, but isn't the haskell FFI intentionally very low level, and intended to be used with tools? In that light, maybe it would be easier to extend hsc2hs with fancier macros and the ability to generate wrappers to directly call C++ methods and construct C++

Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-05 Thread Brandon Allbery
On Thu, Apr 5, 2012 at 01:53, Sutherland, Julian julian.sutherlan...@imperial.ac.uk wrote: data Tree = Node Left Right | Leaf Could be converted to a struct in C/C++: struct Tree { struct Tree* left; struct Tree* right; }; Shouldn't this actually be a tagged union? Not that

Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-05 Thread Holger Siegel
Am 05.04.2012 um 08:42 schrieb Brandon Allbery: On Thu, Apr 5, 2012 at 01:53, Sutherland, Julian julian.sutherlan...@imperial.ac.uk wrote: data Tree = Node Left Right | Leaf Could be converted to a struct in C/C++: struct Tree { struct Tree* left; struct Tree* right; };

Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-05 Thread Brandon Allbery
On Thu, Apr 5, 2012 at 03:21, Holger Siegel holgersiege...@yahoo.de wrote: Am 05.04.2012 um 08:42 schrieb Brandon Allbery: On Thu, Apr 5, 2012 at 01:53, Sutherland, Julian julian.sutherlan...@imperial.ac.uk wrote: data Tree = Node Left Right | Leaf Could be converted to a struct in

Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-05 Thread Anthony Cowley
On Thursday, April 5, 2012 at 1:53 AM, Sutherland, Julian wrote: Hey Guys, I'm Julian, I am reaching the end of my second year as a JMC (Joint Mathematics and Computer science) Student at Imperial College London and I'd like to apply to GSOC for a project involving Haskell and I just

Re: [Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-05 Thread Donn Cave
Quoth Anthony Cowley acow...@seas.upenn.edu, ... I think this is a consequence of line buffering rather than a bug. If you write your own increment function in Haskell, you get the same behavior. If you `hSetBuffering stdout NoBuffering` before your `putStr` call, you should get the behavior

[Haskell-cafe] Haskell integration with C/C++ (GSOC)

2012-04-04 Thread Sutherland, Julian
Hey Guys, I'm Julian, I am reaching the end of my second year as a JMC (Joint Mathematics and Computer science) Student at Imperial College London and I'd like to apply to GSOC for a project involving Haskell and I just wanted to run my idea past the community. I've already talked about this