On Saturday, February 27, 2016, Shlomi Fish <shlo...@shlomifish.org> wrote:
> Hi Tom, > > On Sat, 27 Feb 2016 05:52:45 -0600 > Tom Browder <tom.brow...@gmail.com> wrote: > > > On rosettacode.org there is an example of memoization for calculating > > factorials in Perl 6 (contributed by Larry Wall): > > > > constant fact = 1, |[\*] 1..*; > > say fact[5]; > > > > How does one code that so that results are able to be reused by > > multiple programs? > > > > how do you propose these programs to share the values of fact? Some > options are: > > 1. Put it in a module and let every program compile it time and again. I hope Perl 6 will soon have a way to save a compiled version of a program (it working automatically like Python would be even better). -Tom