[Haskell] ANNOUNCE: Hubris 0.0.2, the Ruby-Haskell bridge

Mark Wotton mwotton at gmail.com
Sun Nov 29 19:39:04 EST 2009


The first vaguely usable version of Hubris is out on Hackage now.

New stuff
   * now capable of building dynamic libs so that you don't need to  
have GHC installed on the production server.
   * extensible marshalling through a pair of typeclasses
   * automatically generated interface to Haskell from Ruby rather  
than the hacked-up manual packing/unpacking solution the first version  
had.


For example:

strings.rb:
----------------------
require 'hubris'
class HsString
   hubris :module => 'Data.ByteString', :packages => ['bytestring']
end

HsString.new.reverse("abcd")
   => "dcba"
------------------------
It requires the ghc 6.12 release candidate, and if you're on Mac,  
you'll need to apply the cabal patch at http://hackage.haskell.org/trac/hackage/ticket/591 
  and the ghc patch at http://hackage.haskell.org/trac/ghc/ticket/3550

You'll need to follow the installation instructions at http://github.com/mwotton/Hubris 
, as it needs a little extra info about ruby headers etc.

Let me know if it works, if it breaks, if I've missed an obvious  
better way, if it's at all useful to you...

Cheers
Mark


More information about the Haskell mailing list