Article View: comp.lang.functional
Article #602Re: Why functional languages?
From: Patrick Miller
Date: Tue, 29 Sep 1992 17:06
Date: Tue, 29 Sep 1992 17:06
21 lines
1659 bytes
1659 bytes
In article <1992Sep28.183322.29254@m.cs.uiuc.edu>, hasker@m.cs.uiuc.edu (Rob Hasker) writes: |> All you need is a parser which translates the concrete syntax to the abstract |> syntax (i.e., Lisp-like notation), and an "unparser" to translate back. This |> way the user gets the benefit of being able to write readable code and the |> rewrite engine doesn't have to parse anything. This approach works very well |> for the transformation system on which I'm working (Uday Reddy's Focus system). |> |> Rob We do something similar in SISAL (Streams and Iteration in a Single Assignment Langauge for the curious). We maintain a functional intermediate language (IF1) below the programmer source level. We can actually do code optimizations and other code re-writes and then ``uncompile'' the result back to SISAL! Again, we get the advantages of human readible, functional code without losing the advantages of a fully functional backend. -- Pat Miller I have many opinions, but they patmiller@llnl.gov generally aren't humble ones
Technical Details
Message-ID:
<137466@lll-winken.LLNL.GOV>Path:
arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!diego.llnl.gov!millerReferences:
<1992Sep26.212935.26809@eng.umd.edu> <1992Sep28.120225.9524@odin.diku.dk> <TMB.92Sep28144424@arolla.idiap.ch> <1992Sep28.183322.29254@m.cs.uiuc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!diego.llnl.gov!miller From: miller@diego.llnl.gov (Patrick Miller) Newsgroups: comp.lang.functional Subject: Re: Why functional languages? Message-ID: <137466@lll-winken.LLNL.GOV> Date: 29 Sep 92 17:06:30 GMT References: <1992Sep26.212935.26809@eng.umd.edu> <1992Sep28.120225.9524@odin.diku.dk> <TMB.92Sep28144424@arolla.idiap.ch> <1992Sep28.183322.29254@m.cs.uiuc.edu> Sender: usenet@lll-winken.LLNL.GOV Organization: Lawrence Livermore National Laboratory Lines: 21 Nntp-Posting-Host: diego.llnl.gov