[Haskell-cafe] JavaScript (SpiderMonkey, V8, etc) embedded in GHC?

Greg Fitzgerald garious at gmail.com
Mon Sep 10 00:24:01 CEST 2012


Hi Bob,

> All I really need is to allow users to write some JavaScript
> that accepts a single JSON 'file/string' from my Haskell
> program and produces another JSON 'file/string' that my
> Haskell program will accept.

One option is to make your Haskell program an HTTP server, and then use
Node.js to send and receive JSON files.

http://www.happstack.com/docs/happstack-lite-7.2.0/doc/html/happstack-lite/index.html

http://nodejs.org/

-Greg


On Sat, Sep 8, 2012 at 12:08 PM, Bob Hutchison <hutch-lists at recursive.ca>wrote:

> Hi,
>
> I've looked around with no success… this surprises me actually. Has anyone
> embedded SpiderMonkey, V8, or any other relatively decent JavaScript
> interpreters in GHC (using the FFI)?
>
> I did find http://justinethier.github.com/husk-scheme/ which is a scheme
> R5RS implementation (I could make this work). There's also some work done
> embedding Lua. I also found a number of packages that compile javascript to
> Haskell, or the other way around, but I don't need that kind of thing.
>
> All I really need is to allow users to write some JavaScript that accepts
> a single JSON 'file/string' from my Haskell program and produces another
> JSON 'file/string' that my Haskell program will accept.
>
> Thanks,
> Bob
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120909/7646adc0/attachment.htm>


More information about the Haskell-Cafe mailing list