Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madsjulia/reusablefunctions.jl
Automated storage and retrieval of results for functions calls
https://github.com/madsjulia/reusablefunctions.jl
checkpoint-restart checkpoints decision-support efficiency high-performance-computing julia mads restarts retrieval retrieve-data
Last synced: about 2 months ago
JSON representation
Automated storage and retrieval of results for functions calls
- Host: GitHub
- URL: https://github.com/madsjulia/reusablefunctions.jl
- Owner: madsjulia
- License: gpl-3.0
- Created: 2016-01-26T14:33:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T21:00:38.000Z (about 1 year ago)
- Last Synced: 2024-11-01T05:30:25.400Z (2 months ago)
- Topics: checkpoint-restart, checkpoints, decision-support, efficiency, high-performance-computing, julia, mads, restarts, retrieval, retrieve-data
- Language: Julia
- Homepage: http://mads.gitlab.io
- Size: 71.3 KB
- Stars: 2
- Watchers: 9
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ReusableFunctions
Automated storage and retrieval of results for Julia functions calls.
ReusableFunctions is a module of [MADS](http://madsjulia.github.io/Mads.jl).Installation
-------------```julia
import Pkg; Pkg.add("ReusableFunctions")
```Example
---------```julia
import ReusableFunctions
function f(x)
@info("function f is executed!")
sleep(1)
return x
end
f_reuse = ReusableFunctions.maker3function(f);julia> f(1) # normal function call
[ Info: function f is executed!
1# function call using ReusableFunctions function
# the first time f_reuse() is called the original function f() is called
julia> f_reuse(1)
[ Info: function f is executed!
1# function call using ReusableFunctions function
# the second time f_reuse() is called the original function f() is NOT called
# the already stored output from the first call is reported
julia> f_reuse(1)
1
```Documentation
-------------ReusableFunctions functions are documented at [https://madsjulia.github.io/Mads.jl/Modules/ReusableFunctions](https://madsjulia.github.io/Mads.jl/Modules/ReusableFunctions)
Projects:
---------* [MADS](https://github.com/madsjulia)
* [SmartTensors](https://github.com/SmartTensors)
* [SmartML](https://github.com/SmartTensors/SmartML.jl)Publications, Presentations
--------------------------* [mads.gitlab.io](http://mads.gitlab.io)
* [madsjulia.github.io](https://madsjulia.github.io)
* [SmartTensors](https://SmartTensors.github.io)
* [SmartTensors.com](https://SmartTensors.com)
* [monty.gitlab.io](http://monty.gitlab.io)
* [montyv.github.io](https://montyv.github.io)