OnlineWoerterBuecher.de
Internes

Lexikon


fully lazy lambda lifting


John Hughes' s optimisation of lambda lifting to give {full laziness}. {Maximal free expression}s are shared to minimise the amount of recalculation. Each inner sub-expression is replaced by a function of its maximal free expressions (expressions not containing any bound variable) applied to those expressions. E.g. f = x . ( y . (+) (sqrt x) y) ((+) (sqrt x)) is a maximal free expression in ( y . (+) (sqrt x) y) so this inner abstraction is replaced with ( g . y . g y) ((+) (sqrt x)) Now, if a partial application of f is shared, the result of evaluating (sqrt x) will also be shared rather than re-evaluated on each application of f. As Chin notes, the same benefit could be achieved without introducing the new higher-order function, g, if we just extracted out (sqrt x). This is similar to the code motion optimisation in procedural languages where constant expressions are moved outside a loop or procedure. (1994-12-01)

In addition suitable contents:
[ 2 ] [ = ] [ abstraction ] [ ag ] [ ai ] [ al ] [ am ] [ an ] [ app ] [ application ] [ ar ] [ arc ] [ at ] [ az ] [ b ] [ bd ] [ be ] [ bo ] [ bound variable ] [ bs ] [ by ] [ C ] [ ca ] [ cat ] [ Ch ] [ ch ] [ ci ] [ co ] [ code ] [ con ] [ cons ] [ cu ] [ de ] [ du ] [ E ] [ ec ] [ ed ] [ edu ] [ ee ] [ er ] [ es ] [ expression ] [ fi ] [ file ] [ fr ] [ free ] [ full laziness ] [ function ] [ ge ] [ gh ] [ gi ] [ gu ] [ h ] [ higher-order function ] [ hn ] [ hose ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ int ] [ io ] [ is ] [ it ] [ J ] [ la ] [ lambda lifting ] [ language ] [ laziness ] [ lc ] [ ld ] [ Lex ] [ li ] [ loop ] [ ls ] [ lt ] [ lu ] [ M ] [ ma ] [ maximal free expression ] [ mil ] [ mo ] [ mod ] [ module ] [ mount ] [ N ] [ na ] [ nc ] [ ne ] [ ng ] [ ni ] [ nn ] [ no ] [ ns ] [ op ] [ pa ] [ ph ] [ pl ] [ pr ] [ procedural language ] [ procedure ] [ pt ] [ query ] [ rc ] [ re ] [ ro ] [ sa ] [ sam ] [ se ] [ sh ] [ shar ] [ si ] [ so ] [ st ] [ su ] [ T ] [ th ] [ to ] [ tr ] [ ua ] [ ug ] [ us ] [ va ] [ var ] [ variable ] [ ve ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (5209 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.0994 Seconds, with 17 Database-Queries
Zurück zur Startseite