Thanks, but I still have some doubt (inline)

Il 06/06/2016 19:29, Uwe Fechner ha scritto:
Well, you can load modules on demand in the following way (in this way I
load the module PyPlot on demand):
eval(Expr(:using, :PyPlot))

OK

To load a module from any path, push the directory, where you module
lives into the load path:
cd("/home/ufechner/00PythonSoftware/FastSim")
push!(LOAD_PATH, pwd())

if I've understood your suggestions, I must create a directory structure for each module ('src' dir under a dir with same name than module), but I should load a single file without constraint on dirs


To create an incremental precompiled module file, add |__precompile__()|
at the top of your module file (before the |module| starts).


This can create a precompiled file in cache dir, but how can I load a module (or a function or a structure) from a .ji file?

I hope, this answers your questions.


Thanks again

Leonardo


On Sunday, June 5, 2016 at 12:30:04 PM UTC+2, Leonardo wrote:

    Hi all,
    I want realize a pluggable architecture in Julia, loading
    dinamically some precompiled code from any path (for sure functions,
    but also types, and maybe entire modules).
    Excluding load of source files with include(), can I load some .ji
    file containing chunks of code (also encapulated in function, types,
    modules) or - better - some indipendent precompiled code (like llvm
    code instead native code)?

    Many thanks in advance for your attention

    Leonardo

Reply via email to