Re: Converting languages to a purely functional form

Thomas David Rivers <rivers@dignus.com>
23 Jul 2003 10:39:41 -0400

          From comp.compilers

Related articles
Converting languages to a purely functional form dobes@dobesland.com (Dobes Vandermeer) (2003-07-15)
Re: Converting languages to a purely functional form joachim.durchholz@web.de (Joachim Durchholz) (2003-07-17)
Re: Converting languages to a purely functional form derkgwen@HotPOP.com (Derk Gwen) (2003-07-17)
Re: Converting languages to a purely functional form pat@jantar.org (Patryk Zadarnowski) (2003-07-21)
Re: Converting languages to a purely functional form vidar@hokstad.name (2003-07-21)
Re: Converting languages to a purely functional form lars@bearnip.com (2003-07-23)
Re: Converting languages to a purely functional form rivers@dignus.com (Thomas David Rivers) (2003-07-23)
Re: Converting languages to a purely functional form joachim.durchholz@web.de (Joachim Durchholz) (2003-07-25)
| List of all articles for this month |

From: Thomas David Rivers <rivers@dignus.com>
Newsgroups: comp.compilers
Date: 23 Jul 2003 10:39:41 -0400
Organization: Dignus, LLC
References: 03-07-098
Keywords: functional, optimize
Posted-Date: 23 Jul 2003 10:39:41 EDT

Dobes Vandermeer wrote:
>
> Purely functional programs are, as far as I can tell, much easier to
> operate on programmatically than regular procedural ones. Loops,
> destructive updates, etc. make many kinds of very powerful analyses
> rather difficult.
>
    ...


>
> The main problem here, is that once you've analysed all the data flow
> information you get from this conversion, you'd want to be able to
> generate efficient code anyway; e.g. you's still want to generate loops,
> not tail-recursive function calls. This might entail some serious
> additional optimizations/analyses just to get back where you started.
>
> Thoughts/Comments/References?




I though Appel had shown the equivalence of SSA-form and
functional languages.


If that's true - then you should be able to apply SSA-form
algorithms to a function language to arrive at the same
optimizations available there...


Or - am I missing something?


--
rivers@dignus.com Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.