Caesar.jl icon indicating copy to clipboard operation
Caesar.jl copied to clipboard

Compile Static .so libraries for multi-language or executable use

Open dehann opened this issue 7 years ago • 4 comments

see:

  • https://juliacomputing.com/blog/2016/02/09/static-julia.html
  • https://github.com/JuliaLang/PackageCompiler.jl
  • https://discourse.julialang.org/t/compiler-work-priorities/17623

dehann avatar Nov 25 '18 04:11 dehann

xref documentation: http://www.juliarobotics.org/Caesar.jl/latest/concepts/multilang/#Static,-Shared-Object-.so-Compilation-1

dehann avatar Nov 30 '18 19:11 dehann

will use PackageCompiler.jl

EDIT: or StaticCompiler.

dehann avatar May 22 '20 14:05 dehann

https://discourse.julialang.org/t/successful-static-compilation-of-julia-code-for-use-in-production/79318

Affie avatar Apr 16 '22 17:04 Affie

Oh very cool! I noticed StaticCompiler the other day but wasn't exactly sure how it fit in alongside PackageCompiler. The Discourse post answers that :-) Thanks for sharing! Want to dig in when I get a chance.

The StaticCompiler 90 package was recently registered. This post records a successful experiment to statically compile a piece of Julia code into a small .so library on Linux, which is then loaded from Python and used in training of a deep learning model.

dehann avatar Apr 19 '22 20:04 dehann