22.02.18 14:29, Chris Angelico пише:
Not overly misleading; the point of it is to show how trivially easy
it is to memoize a function in Python. For a fair comparison, I'd like
to see the equivalent Julia code: the function, unchanged, with
something around the outside of it to manage caching and memoization.
Can that be done with a couple of trivial lines of code using only the
standard library?

The article contains a reference to a Julia example.

> Note that Julia also can memoize functions, see this example [1] provided by Ismael V.C.
[1] http://nbviewer.jupyter.org/gist/Ismael-VC/b04ad17ee44c89917803


Reply via email to