Julia implementation