@maybe macro
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading the YAXArrays.jl YAXTools.jl implementation linked in the issue and compare it with the JLD2-based @maybe example. Then inspect FileIO.jl to determine whether this behavior fits its scope and existing interfaces. Done means an agreed general design and a clear decision on whether to integrate it into FileIO.jl.
Written by the indexing model from the issue text.
Description
I have a project with longer calculations and have created a macro to automatically save/calculate/reload object. I am using JLD2 for it and there is something similar in YAXArrays.jl.
Do you think it would be possible to create a more general version that can be integrated into FileIO.jl? And: would it make sense to integrate something like this into FileIO.jl?
Syntax is as follows:
@maybe x => "x.jld2" begin
x = 1
end
If x.jld2 exists, it is loaded and the begin ... end part is skipped, if x.jld2 doesn't exist the expression is run and x is saved in x.jld2.
- Dominant language
- Julia
- Stars
- 228
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaIO/FileIO.jl
-
Drop the hard `Pkg` dependencyPossibly taken @thchr claimed this 26 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Add SVGZ formatOpen
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in JuliaIO/FileIO.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
brown-ccv/Chamber.jl#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaBayes/Wren.jl#404 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 ·
Maintainers usually reply within 1 day