Hubris: The Ruby/Haskell Bridge
summary
Hubris provides a concrete bridge so Ruby code can call Haskell from Ruby by compiling Haskell into a shared object and exposing it as a Ruby extension. The demo shows a mandelbrot microbenchmark with mandelbrot: Ruby 21s Haskell 2s C 0s, highlighting real speedups. Practical limits include type marshaling quirks—strings map to ByteString—and exported functions currently taking one argument. Setup requires GHC 6.12 and careful cabal/config flags—requires GHC 6.12.
AI-written summary · about
chapters (9)
- 0:00Start
- 2:12About Haskell
- 3:14Referential Transparency
- 5:47Fundamentalist Functional Programming
- 9:36The Mandelbrot Set
- 11:07Run Haskell
- 17:18The Hubris Project
- 27:27Controller Code
- 29:08Haskell Code








