Memo

  • Authors:
  • Andreas Geyer-Schulz

  • Affiliations:
  • -

  • Venue:
  • ACM SIGAPL APL Quote Quad
  • Year:
  • 1989

Quantified Score

Hi-index 0.00

Visualization

Abstract

MEMO is an APL2 operator which implements the strategy of memoizing function values for all APL2 functions free from all side-effects without global variables. Memoizing function values means substitution of function execution by table lookup on repetitive function calls with the same arguments. MEMO maps the set of all APL2 functions free from all side-effects without global variables to the (derived) set of memoizing APL2 functions. MEMO allows the programmer to benefit from the speed advantage of memoized functions while still maintaining a precise and clear code. Moreover, it is possible to perform this speed optimization automatically.