> My question is: does Julia's serialization produce completely
> self-containing code that can be run on workers? In other words, is it
> possible to send serialized function over network to another host / Julia
> process and applied there without any additional information from the first
> process?
>
> I made some tests on a single machine, and when I defined function without
> `@everywhere`, worker failed with a message "function myfunc not defined on
> process 1". With `@everywhere`, my code worked, but will it work on
> multiple hosts with essentially independent Julia processes?
>
According to Jey here
<https://groups.google.com/forum/#!searchin/julia-users/jey/julia-users/bolLGcSCrs0/fGGVLgNhI2YJ>,
Base.serialize does what we want; it's contained in serialize.jl
<https://github.com/JuliaLang/julia/blob/master/base/serialize.jl>