[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[jl8] SysImage

To embedd your S8 System in a Julia SysImage you should use PackageCompiler.

Uploaded Image: alert.gifThe PackageCompiler is the suggested way to generate binary with Julia machinery.
Support to manage (save & reflection) optimized functions is currently under development by Julia developers.
It is still far to be good enough for us to support saving snapshots in binary form containing optimized/complied code (july 2022).
We must wait for something better from the Julia devs because current suppport is NOT written in Julia and machinery is made at lowest level (by julia executable).

See folder "U8SysImageEnv" to learn how to produce a binary sysimage.

Note that:

How to generate a SysImage?

  1. Prepare your system as a Package
  2. Create a new folder for a project to produce the SysImage
  3. On OS console, go to folder
  4. Start a clean julia environment
  5. Load PackageCompiler
  6. Activate project
  7. Produce the system image evaluating:
  8. Wait minutes for the generation of the SysImage

The SysImage can be used running Julia with -J parameter
julia -q -Ju8_sysimage.dll

After startup evaluate the smalltalk expression to start your system, e.g.:
ServerApp.start(ServerApp.smalltalk.SystemServer)

References