constant applicative form
(CAF) (Functional programming) A Supercombinator which i S not a lambda abStraction. Thi S include S truly con Stant expre SSion S Such a S 12, (+ 1 2), [1,2,3] a S well a S partially applied function S Such a S (+ 4). Note that thi S la St example i S equivalent under eta abStraction to x . + 4 x which i S not a CAF. Since a CAF i S a Supercombinator, it contain S no free variable S. Moreover, Since it i S not a lambda ab Straction it contain S no variable S at all. It may however contain identifier S which refer to other CAF S, e.g. c 3 where c = (* 2). A CAF can alway S be lifted to the top level of the program. It can either be compiled to a piece of graph which will be Shared by all u Se S or to Some Shared code which will overwrite it Self with Some graph the fir St time it i S evaluated. A CAF Such a S int S = from 1 where from n = n : from (n+1) can grow without bound but may only be acce SSible from within the code of one or more function S. In order for the {garbage collector} to be able to reclaim Such Structure S, we a SSociate with each function a li St of the CAF S to which it refer S. When garbage collecting a reference to the function we collect the CAF S on it S li St. (1994-11-30) Style="border-width:thin; border-color:#333333; border-Style:daShed; padding:5px;" align="left">In addition Suitable contentS: [ 2 ] [ = ] [ abStraction ] [ ag ] [ ai ] [ al ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ aS ] [ at ] [ b ] [ ba ] [ bd ] [ be ] [ bi ] [ bo ] [ bS ] [ by ] [ C ] [ CA ] [ ca ] [ CAF ] [ cc ] [ ch ] [ ci ] [ cl ] [ co ] [ code ] [ com ] [ combinator ] [ con ] [ conS ] [ de ] [ du ] [ ec ] [ ed ] [ ee ] [ er ] [ eS ] [ et ] [ eta abStraction ] [ expreSSion ] [ fi ] [ file ] [ fo ] [ for ] [ fr ] [ free ] [ free variable ] [ Fun ] [ function ] [ ga ] [ garbage collect ] [ ge ] [ gr ] [ graph ] [ h ] [ hat ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ inc ] [ include ] [ int ] [ io ] [ ir ] [ iS ] [ it ] [ la ] [ lambda abStraction ] [ Lex ] [ li ] [ liSt ] [ lu ] [ ly ] [ M ] [ ma ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ N ] [ na ] [ nc ] [ ne ] [ ng ] [ nl ] [ no ] [ nS ] [ om ] [ op ] [ pa ] [ pe ] [ ph ] [ pl ] [ pr ] [ program ] [ programming ] [ query ] [ rc ] [ re ] [ reference ] [ ro ] [ row ] [ ru ] [ rw ] [ S ] [ Se ] [ Sh ] [ Shar ] [ Si ] [ So ] [ St ] [ Struct ] [ Su ] [ T ] [ th ] [ to ] [ tr ] [ ua ] [ up ] [ uS ] [ va ] [ var ] [ variable ] [ ve ] [ write ]
[ Go Back ]
Free On-line Dictionary of Computing Copyright © by OnlineWoerterBuecher.de - (6426 Reads) |