use ruby to write core logic to cpp applications