[% setvar title Keep C, but make it work. %]

This file is part of the Perl 6 Archive

Note: these documents may be out of date. Do not use as reference!

To see what is currently happening visit http://www.perl6.org/

TITLE

Keep use less, but make it work.

VERSION

  Maintainer: Simon Cozens <simon@brecon.co.uk>
  Date: 25 Sep 2000
  Mailing List: perl6-internals@perl.org
  Number: 303
  Version: 1
  Status: Developing

ABSTRACT

use less is the semi-humorous Perl 5 pragma which should give the interpreter hints as to how to make memory-speed tradeoffs. Make it actually do something in Perl 6.

DESCRIPTION

None.

IMPLEMENTATION

use less should be renamed to use optimize for Perl 6, and memory-speed tradeoffs should be identified and the appropriate choice made; this is of especial merit when compiling to standalone executable. Of course, since we don't know what the memory-speed tradeoffs are going to be until we start coding, it's a bit hard to give a more detailed implementation suggestion.

optimize was chosen because then more fine-grained optimisations may be specified: see "Unrolling loops and tail recursion" for some examples.

REFERENCES

RFC 302: Unrolling loops and tail recursion