Skip to content

Docs example for compiling runtime executable using Agents.jl #1184

Description

@Datseris

Following from the discussion at #1182 , user @markusgumbel stated:

Oh wow, that is great news and very interesting! Would you be willing to contribute a section in the documentation about this?
What size are we talking about out of interest?

The size is 2.2 G in total.

$ du -h -d 1 .
52K	./bin
3,0M	./libexec
1,2G	./lib
1023M	./share
2,2G	.

It's an agent based SIR simulation (https://en.wikipedia.org/wiki/Compartmental_models_(epidemiology)#The_SIR_model) with Makie UI (abmplot()), mainly for educational purposes.

Image

Yes, I could contribute a section. Basically, it's just a single Julia script like this (though there a lot of constraints to consider):

using PackageCompiler
using SIRmod

create_app("src/Julia/SIRmod", "src/Julia/SIRmodCompiled";
    filter_stdlibs = false,
    incremental = true,
    force = true,
    precompile_execution_file = "src/Julia/SIRRep.jl",
)

Could you give some advice where such a documentation should go? Probably we could take a model from the zoo as a show case?

Originally posted by @markusgumbel in #1182

would be fantastic to have this in the docs, as a brand new top-level page after "Developer's Docs".

Alternatively, this could be a new section in Developer's Docs, although I'd argue a standard user would also want to see this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions