Outperforming Rust with Functional Programming Posted by nemoniac on Tuesday December 26, 2017 @11:25AM from the blog.vmchale.com dept. http://blog.vmchale.com/article/fast-functional ( 5 comments | 16 points | on HN )
There's no heap allocation in the Rust nor C code.
I haven't looked into the codegen to see what's different here.
tl;dr: the C and Rust versions had signed integers rather than unsigned like the ATS version, and if you make that change they end up more similar.