4 ms·
F# is a first class language alongside C# and VB. Major new threading framework which let's you write things like: Parallel.For(0, 100, delegate(int i) {
by dschobel 17y ago
F# is a first class language alongside C# and VB.
Major new threading framework which let's you write things like:
Parallel.For(0, 100, delegate(int i)
{
doWork(i);
}
);
and to parallelize your LINQ queries with the AsParallel() method:
data.AsParallel().Sum(); //does exactly what you think
That's just the stuff which I'm most excited about. See http://msdn.microsoft.com/en-us/library/ms171868(VS.100).aspx http://msdn.microsoft.com/en-us/library/ms171868(VS.100).asp... for a more comprehensive list.
- loikujhygthj 17y ago>//does exactly what you think Bring the database to a grinding halt when it tries to service 1000s of request for different rows in the same table at the same time in parallel rather than just access each line in order and sum them?
- Maascamp 17y agoIs all the data you ever operate on stored in the database? Do you never load things into memory?
- dschobel 17y agoplinq only parallelizes in-memory operations and delegates the interaction with the data-store to whatever adapter you're using. the AsParallel() should make it clear that you're taking an existing data-set (retrieved in whatever manner you like) and signifying you'd like to execute parallel operations on it.
- MichaelGG 17y agoAlso today, F# 2.0 has shipped for 3.5/VS2008 as well. So you don't need to use .NET 4 and 2010 to get it.