| ▲ | IsTom 13 hours ago | ||||||||||||||||
> escape hatches for performance These allow the model to cheat in ways that are harder to detect. In actually pure FP you can be sure that it's not counting function invocations to bypass tests. | |||||||||||||||||
| ▲ | xscott 13 hours ago | parent [-] | ||||||||||||||||
Yeah, but sorting algs, FFTs, matrix factorizations, backprop, and many other things just aren't the same with purely functional data structures. Maybe these well known cases could be hidden in the API, but it's easy to come up with other examples. I forget what Clojure calls it, but they have some notion about things where they're mutable during "birth" and then locked down. Someone smarter than me knows how to do this right. | |||||||||||||||||
| |||||||||||||||||