guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Summer of Code Recap


From: Arne Babenhauserheide
Subject: Re: Summer of Code Recap
Date: Sat, 02 Sep 2017 08:58:55 +0200

Amirouche Boubekki <address@hidden> writes:

> On 2017-08-28 20:56, Ian Price wrote:
> Apparently webkit does ship TCO and safari is the only browser [0] 
> shipping it.
> So it will happen soon enough for chrome, but chrome is not a solution 
> for many
> of us. I don't know when firefox with ship TCO.
>
> [0] https://www.chromestatus.com/feature/5516876633341952

Firefox tracks tail recursion support here:

https://bugzilla.mozilla.org/show_bug.cgi?id=723959

And I just found a JS library which turns functions into tail recursive
ones with 1-4x time overhead:

http://glat.info/pub/tailopt-js/

So it might be possible to check for recursion support and just insert
this as a fallback for browsers which do not support proper tail
recursion (i.e. by implementing it as an identity function in those
which support proper tail recursion).

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]