Sample comparison between C and Ruby