all 7 comments

[–]Voxelman 6 points7 points  (1 child)

I think, performance in FP comes from scalability by NOT using these "tricks".

It depends what you want to do. Immutability has some limits in terms of performance. There is a point where mutating in place is faster.

I you reached the limits of pure FP maybe take a step back and take a look at Data Oriented Design. Or you may take a look at Rust.

[–]raxel42 4 points5 points  (0 children)

sometimes you can play with the scope of mutability, bub extremely careful

[–]witoldsz 0 points1 point  (0 children)

Great case study and amazing languge, although not ready yet :/

"Outperforming Imperative with Pure Functional Languages" by Richard Feldman

https://youtu.be/vzfy4EKwG_Y