Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Partial evaluation
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Futamura projections== A particularly interesting example of the use of partial evaluation, first described in the 1970s by Yoshihiko Futamura,<ref>[http://fi.ftmr.info/ Yoshihiko Futamura's website].</ref> is when ''prog'' is an [[Interpreter (computing)|interpreter]] for a [[programming language]]. If ''I''<sub>static</sub> is source code designed to run inside that interpreter, then partial evaluation of the interpreter with respect to this data/program produces ''prog''*, a version of the interpreter that only runs that source code, is written in the implementation language of the interpreter, does not require the source code to be resupplied, and runs faster than the original combination of the interpreter and the source. In this case ''prog''* is effectively a compiled version of ''I''<sub>static</sub>. This technique is known as the first Futamura projection, of which there are three: # Specializing an interpreter for given source code, yielding an executable. # Specializing the specializer for the interpreter (as applied in #1), yielding a compiler. # Specializing the specializer for itself (as applied in #2), yielding a tool that can convert any interpreter to an equivalent compiler. They were described by Futamura in Japanese in 1971<ref>{{citation | title=Partial Evaluation of Computation Process --- An approach to a Compiler-Compiler | volume=54-C | journal=Transactions of the Institute of Electronics and Communications Engineers of Japan | pages=721β728 | year=1971}}</ref> and in English in 1983.<ref>{{cite book |first=Y. |last=Futamura |chapter=Partial computation of programs |chapter-url= |title=RIMS Symposia on Software Science and Engineering |publisher=Springer |series=Lecture Notes in Computer Science |volume=147 |date=1983 |isbn=3-540-11980-9 |pages= 1β35|doi=10.1007/3-540-11980-9_13 |hdl=2433/103401}}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Partial evaluation
(section)
Add topic