Re:What are potential disadvantages of functional programming?
by nerpderp83 on Thursday July 27, 2017 @08:15PM
(#14870941)
Functional code can do better fusion, inference and unrolling than imperative code.
[ Parent
| on HN ]
Re:What are potential disadvantages of functional programming?
by 0xbear on Thursday July 27, 2017 @08:18PM
(#14870949)
Citation needed. Not saying it's not true, just haven't seen it in practice. Usually if you want efficiency, you have to drop down to intrinsics or assembly, no matter how much the compiler is helping you.
Re:What are potential disadvantages of functional programming?
by juliangamble on Thursday July 27, 2017 @08:24PM
(#14870974)
Look at the publications here http://benl.ouroborus.net/
Also look at the Disciplined Disciple Language (related to Haskell).
Re:What are potential disadvantages of functional programming?
by nerpderp83 on Tuesday August 01, 2017 @04:12PM
(#14904832)
Thanks for the links!
Re:What are potential disadvantages of functional programming?
by banachtarski on Friday July 28, 2017 @01:44AM
(#14872241)
It's not a question of whether it "can" or not sometimes. Say there's a performance issue in your code. In my experience, I have a much easier time figuring out where the bottleneck is just by inspection with imperative code than with functional code (especially when concurrency is involved). Sometimes, transparency is more important than raw output.