Does F# provide you automatic parallelism?

后端 未结 8 2060
栀梦
栀梦 2020-12-28 17:25

By this I meant: when you design your app side effects free, etc, will F# code be automatically distributed across all cores?

8条回答
  •  甜味超标
    2020-12-28 18:07

    No, I'm pretty sure that it won't automatically parallelise for you. It would have to know that your code was side-effect free, which could be hard to prove, for one thing.

    Of course, F# can make it easier to parallelise your code, particularly if you don't have any side effects... but that's a different matter.

提交回复
热议问题