Thanks for the response (and for your work on
PrecompileTools!), what I’m not too keen on, from an aesthetics point of view, is that the
PrecompileTools workflow looks a little out of place in
MyModule.jl, especially when you’re doing a lot of precompilation.
Specifically, everything that comes before
PrecompileTools could (in a Julia world where this were the norm) be written nicely as a
Therefore the following:
export MyType funk unfunk
include("MyType.jl") # MyType
include("funktionality.jl") # funk, unfunk
args = (1, "foo", :bar)
name = "MyModule"
export = ["MyType", "funk", "unfunk"]
dependencies = ["Funkinator"]
includes = ["MyType.jl", "funktionality.jl", "internal_funk.jl"]
PrecompileTools part could be written something like
workloads = ["unfunk_funk.jl", "apply_funk.jl"]
which makes me think it would be better to write the corresponding part of
workloads being a folder inside
a = 1, 2, 3
b = 'a', 'b', 'c'
# some additional nontrivial setup...
# some additional workload...
I know there’s nothing stopping me from doing this in my own projects already, but I would like to see others’ thoughts on doing this as there may be something I’m overlooking or a better way of doing this neatly.