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.

2. On-disk storage (e.g: Berkeley DB, or SQLite).

3. Network storage (e.g: a networked SQL database).

4. A custom TCP client/server architecture.



        Shlomi Fish

> Thanks.
> Cheers!
> -Tom

Shlomi Fish       http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

He who has more is not happier than he who wants less.
    — Source unknown, via Nadav Har’El.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

Reply via email to