JuliaIO / JuliaIO/FileIO.jl

@maybe macro

Open
#359 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
228
Forks
81
Avg merge
1d 29m
Merged PRs (30d)
1

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.