Port of rtosc to Julia