[Haskell-cafe] Counting beta reductions for a Haskell program...

Adrian Neumann aneumann at inf.fu-berlin.de
Sat Nov 22 02:18:14 EST 2008


Hugs has, afaik, a "output reduction count" option somewhere. At  
least it had one the last time I used it.

- Adrian

Am 22.11.2008 um 06:22 schrieb kk08:

>
> Thanks.
> I heard that a Gofer compiler (a Haskell dialect) supports counting  
> the Beta
> reductions.
> Hence I thought GHC/Hugs would have a similar facility.
>
>
>
> Ryan Ingram wrote:
>>
>> This doesn't make a whole lot of sense.  One of the reasons
>> GHC-compiled code is so fast is that it turns into straight-line code
>> whenever possible, via inlining, primitive optimizations, etc.
>>
>>
>>   - ryan
>>
>> [1] http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.53.3729
>>
>> On Fri, Nov 21, 2008 at 8:46 PM, kk08 <kdamodar2000 at gmail.com> wrote:
>>>
>>> Does GHC supports/has a command for counting total beta  
>>> reductions taken
>>> by a
>>> program?
>>>
>>> Thanks.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Counting-beta-reductions-for-a-Haskell- 
>>> program...-tp20623025p20623025.html
>>> Sent from the Haskell - Haskell-Cafe mailing list archive at  
>>> Nabble.com.
>>>
>>> _______________________________________________
>>> Haskell-Cafe mailing list
>>> Haskell-Cafe at haskell.org
>>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Counting-beta- 
> reductions-for-a-Haskell-program...-tp20623025p20633639.html
> Sent from the Haskell - Haskell-Cafe mailing list archive at  
> Nabble.com.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: Signierter Teil der Nachricht
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20081122/f394c242/PGP.bin


More information about the Haskell-Cafe mailing list