Re: [Haskell-cafe] Re: Boost equivalent

2007-02-02 Thread Justin Bailey

On 2/1/07, Slavomir Kaslev <[EMAIL PROTECTED]> wrote:

would be sweet. Even sweeter is easily accessing .Net Framework from
ghc, especially for Windows users. .Net Framework is huge. It is
de-facto _the_ windows framework. Are there any projects going in this
direction?


I would so love to see this happen. I'm actually surprised it hasn't,
considering the GHC "guy" works for MS!

If for nothing else, .NET has an excellent GUI in Windows Forms.
Manipulating that from Haskell would be a dream come true!
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Boost equivalent

2007-02-02 Thread Paul Moore

On 01/02/07, Slavomir Kaslev <[EMAIL PROTECTED]> wrote:

Even sweeter is easily accessing .Net Framework from
ghc, especially for Windows users. .Net Framework is huge. It is
de-facto _the_ windows framework. Are there any projects going in this
direction?


That would indeed be nice - it would make a good replacement for the
old H/Direct COM interface, which sadly no longer seems to be
maintained...

You might also be interested in a couple of "Haskell for .NET" projects:

http://galois.com/~sof/hugs98.net/ (Hugs.NET)
http://kahu.zoot.net.nz/ (Mondrian, includes Haskell.NET)
http://php.cin.ufpe.br/~haskell/haskelldotnet/ (Haskell.NET)

None seem maintained, unfortunately - the last URL is dead, which may
be temporary...

Paul.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Boost equivalent

2007-02-01 Thread Slavomir Kaslev

On 2/1/07, Al Falloon <[EMAIL PROTECTED]> wrote:

Boost.Python is for extending Python with C++, or embedding Python in
C++. This is especially useful because it allows you to use Python as an
extension language for a C++ program.

Presumably Boost.Haskell would be for integrating Haskell code with C++,
which would of course be useful, but the main use case (an embedded
extension language) that draws people to Boost.Python isn't as much of a
draw for Haskell because of the compilation phase.

On the other hand, I suppose you could always integrate a Haskell
interpreter like Hugs, or even go the HsPlugins route and dynamically
load a compiled module, but the fit doesn't seem as natural as it does
with a latently typed scripting language.

There are also technical problems that are hard to overcome. Extending
Python is mostly done in C, so a C++ library to add some nice sugar is a
good fit. Haskell, OTOH, embeds C programs via its FFI. There doesn't
seem to be any way to export functions and value from C++ to Haskell,
but instead the C++ code must import from Haskell. All the heavy lifting
is done on the Haskell side, so there isn't as much opportunity to write
a slick C++ library.

This could change if someone made a version of Hugs that can be linked
in as a library with a documented C API for evaluating Haskell code and
mucking with Haskell values. But I don't think its much of a priority
right now :)

--
Alan Falloon



I think a more common scenario would be using C++ legacy code in
Haskell project. I would imagine Boost.Haskell as collection of code
generation templates for exposing C++ APIs to be used in Haskell. That
would be sweet. Even sweeter is easily accessing .Net Framework from
ghc, especially for Windows users. .Net Framework is huge. It is
de-facto _the_ windows framework. Are there any projects going in this
direction?

--
Slavomir Kaslev
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Boost equivalent

2007-02-01 Thread Al Falloon
Boost.Python is for extending Python with C++, or embedding Python in 
C++. This is especially useful because it allows you to use Python as an 
extension language for a C++ program.


Presumably Boost.Haskell would be for integrating Haskell code with C++, 
which would of course be useful, but the main use case (an embedded 
extension language) that draws people to Boost.Python isn't as much of a 
draw for Haskell because of the compilation phase.


On the other hand, I suppose you could always integrate a Haskell 
interpreter like Hugs, or even go the HsPlugins route and dynamically 
load a compiled module, but the fit doesn't seem as natural as it does 
with a latently typed scripting language.


There are also technical problems that are hard to overcome. Extending 
Python is mostly done in C, so a C++ library to add some nice sugar is a 
good fit. Haskell, OTOH, embeds C programs via its FFI. There doesn't 
seem to be any way to export functions and value from C++ to Haskell, 
but instead the C++ code must import from Haskell. All the heavy lifting 
is done on the Haskell side, so there isn't as much opportunity to write 
a slick C++ library.


This could change if someone made a version of Hugs that can be linked 
in as a library with a documented C API for evaluating Haskell code and 
mucking with Haskell values. But I don't think its much of a priority 
right now :)


--
Alan Falloon

Alexy Khrabrov wrote:
One of the great strengths of Python is Boost.Python.  Practitioners say 
it's a major advantage of Python over Ruby, for example.  So the 
question is not whether there's a Boost in Haskell -- C++ and Haskell 
are too different for it to have much meaning -- but whether there's or 
going to be a Boost.Haskell?


Cheers,
Alexy

On Feb 1, 2007, at 5:03 AM, John Ky wrote:
Does the Haskell community have an equivalent to C++ community's Boost 
project with the aim of writing libraries for the eventual inclusion 
into Haskell?


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe