To be fair, I don’t think that absolute peak performance is one of the goals of the Roc language. You can read what they mean by “fast” here:
Fast | Roc
What does it mean that the Roc programming language is fast?
To be fair, I don’t think that absolute peak performance is one of the goals of the Roc language. You can read what they mean by “fast” here:
What does it mean that the Roc programming language is fast?
In-place mutating and return-new-object APIs are quite differentthat is terrible!
I think the idea is with pure functions there are no mutating APIs – mutation isn’t even a user-visible property. That way you don’t need pointer-heavy persistent data structures, you can use normal ones (with good cache locality).
It’s explained in more detail on the “functional” page.
What does it mean that the Roc programming language is functional?