comparison of scala and sicstus implementation