Does F# provide you automatic parallelism?

后端 未结 8 2058
栀梦
栀梦 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 17:56

    Like the others mentioned, F# will not automatically scale across cores and will still require a framework such as the port of ParallelFX that Josh mentioned.

    F# is commonly associated with potential for parallel processing because it defaults to objects being immutable, removing the need for locking for many scenarios.

提交回复
热议问题