Does F# provide you automatic parallelism?

后端 未结 8 2081
栀梦
栀梦 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:02

    On purity annotations: Code Contracts have a Pure attribute. I remember hearing the some parts of the BCL already use this. Potentially, this attribute could be used by parallellization frameworks as well, but I'm not aware of such work at this point. Also, I' not even sure how well code contacts are usable from within F#, so a lot of unknowns here.

    Still, it will be interesting to see how all this stuff comes together.

提交回复
热议问题