threaded interpreter in swift