4 ms·
Immutability can have performance issues I believe...not sure you'd use it to write a game engine for a modern FPS.
by throwaway7645 9y ago
Immutability can have performance issues I believe...not sure you'd use it to write a game engine for a modern FPS.
- eyelidlessness 9y agoPersistent data structures can generally overcome a lot of the performance issues with immutability, but generally at the cost of memory.
- warcher 9y agoEhhhhhh hard ass real time stuff like heavy dsp or a game engine, you're on the metal and you're pitching your code to the CPU, not to humans. And the CPU thinks (kind of) imperatively. And the GPU does its own thing which is basically neither, haha. Stuff like web apps, or honestly, the vast, vast majority of programming, functional is just fine. The deep stuff is gonna stay imperative, but that's a small fraction of the work that needs doing out there.
- throwaway7645 9y agoThat sums up my thoughts better.
- deleted 9y ago[deleted]
- tome 9y agoYou might want to read what John Carmack has to say on the matter, for example http://functionaltalks.org/2013/08/26/john-carmack-thoughts-on-haskell/ http://functionaltalks.org/2013/08/26/john-carmack-thoughts-... I'm not saying he disagrees with you, but he doesn't agree with you either and it might help you refine your point of view.