OnlineWoerterBuecher.de
Internes

Lexikon


Weak Head Normal Form


(WHNF) A lambda expression is in weak head normal form (WHNF) if it is a head normal form (HNF) or any lambda abstraction. I.e. the top level is not a redex. The term was coined by Simon Peyton Jones to make explicit the difference between head normal form (HNF) and what graph reduction systems produce in practice. A lambda abstraction with a reducible body, e.g. x . (( y . y+x) 2) is in WHNF but not HNF. To reduce this expression to HNF would require reduction of the lambda body: ( y . y+x) 2 --> 2+x Reduction to WHNF avoids the name capture problem with its need for alpha conversion of an inner lambda abstraction and so is preferred in practical graph reduction systems. The same principle is often used in strict languages such as Scheme to provide call-by-name evaluation by wrapping an expression in a lambda abstraction with no arguments: D = delay E = () . E The value of the expression is obtained by applying it to the empty argument list: force D = apply D () = apply ( () . E) () = E (1994-10-31)

In addition suitable contents:
[ 2 ] [ = ] [ abstraction ] [ ad ] [ ag ] [ ai ] [ al ] [ alpha conversion ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ arg ] [ argument ] [ as ] [ at ] [ av ] [ b ] [ bd ] [ be ] [ bo ] [ bs ] [ bt ] [ by ] [ ca ] [ call-by-name ] [ ch ] [ ci ] [ co ] [ con ] [ cu ] [ D ] [ de ] [ diff ] [ du ] [ E ] [ ed ] [ edu ] [ ee ] [ er ] [ es ] [ et ] [ evaluation ] [ expression ] [ fi ] [ file ] [ fo ] [ for ] [ ge ] [ gr ] [ graph ] [ graph reduction ] [ gu ] [ h ] [ hat ] [ hr ] [ id ] [ iff ] [ il ] [ in ] [ inc ] [ io ] [ ir ] [ is ] [ it ] [ J ] [ ke ] [ la ] [ lambda abstraction ] [ lambda expression ] [ language ] [ lc ] [ ld ] [ Lex ] [ li ] [ list ] [ lu ] [ ly ] [ ma ] [ mo ] [ mod ] [ module ] [ mp ] [ ms ] [ N ] [ na ] [ name capture ] [ nc ] [ ne ] [ ng ] [ nn ] [ no ] [ norm ] [ normal form ] [ op ] [ ph ] [ ping ] [ pl ] [ ply ] [ pr ] [ pt ] [ query ] [ rc ] [ re ] [ Red ] [ redex ] [ reduction ] [ ro ] [ S ] [ sa ] [ sam ] [ Scheme ] [ se ] [ si ] [ so ] [ st ] [ strict ] [ su ] [ sy ] [ system ] [ T ] [ th ] [ to ] [ tr ] [ tw ] [ ua ] [ um ] [ us ] [ va ] [ value ] [ ve ] [ version ] [ vi ] [ WHNF ] [ yt ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (5415 Reads)

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

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