Alex Rivera | Logout

Does F# provide you automatic parallelism?

Asked 2009-03-25T17:50:01.580
17

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

Edit
Report

2 Answers

8

F# does not make it automatic, it just makes it easy.

Yet another chance to link to Luca's PDC talk. Eight minutes starting at 52:20 are an awesome demo of F# async workflows. It rocks!

answered 2009-03-25T20:16:48.140
2

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.

answered 2009-03-26T10:42:45.593

Your Answer