[Haskell-cafe] Re: Haskell vs Ruby as a scripting language
simonmarhaskell at gmail.com
Tue Feb 13 07:35:17 EST 2007
Neil Mitchell wrote:
>> > Also, I recommend looking into embedding YHC. I have not had a
>> > chance to use
>> > it yet, but it looks like it is a better fit to an "interpreter-only"
>> > embedding situation than GHC--with GHC, you are getting a lot more
>> > than you
>> > seem to be asking for.
>> I would want to compile code as well. Compile bits of code <100 lines
>> at a time and load them back into my app for execution. Does YHC
>> compile and how efficiently?
> Yhc can happily compile code and run it. You'll probably pay a factor
> of 2-8 times slower than GHC, depending on what the code does.
Benchmarks please! Let's see some comparisons on the nofib suite. If there's a
factor of 2 or less between GHC -O2 and YHC for any of the nofib programs, I'll
eat my keyboard for lunch :-)
More information about the Haskell-Cafe