APL machine