A fully-Julian implementation of derived quantities--no Python calls!