Skip to content

Instantly share code, notes, and snippets.

@nico202
Last active October 30, 2018 15:28
Show Gist options
  • Save nico202/b9f32cee5f771c2a578c41e61d5ebd34 to your computer and use it in GitHub Desktop.
Save nico202/b9f32cee5f771c2a578c41e61d5ebd34 to your computer and use it in GitHub Desktop.
Test julia precompilation determinism
#!/usr/bin/env bash
n=$(pwd)
# The folder must be named always the same way
# Since the path is included in the .ji files
d=/tmp/my-julia-tmp-dir
mkdir -p $d
cd $d
HOME=$(realpath .) \julia --startup-file=no -q --depwarn=no -e 'using Pkg; Pkg.add("Lazy"); using Lazy'
ls -lah .julia/compiled/v1.0/Lazy/*
sha256sum .julia/compiled/v1.0/Lazy/*
cd $(pwd)
# echo $d
rm -rf $d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment