Anyone know of a good language that can run with 2 processors? I've heard of stacking Python as a way to do it, but is there anything else? Is C# able to do such a thing?
Name:
Anonymous2006-12-12 2:19
Multi-threading isn't a language feature unless you are specifically using a parallel language like Fortran 90, C*, etc. You probably want a library or compiler extension for a language you already know and use, for example pthreads in C/C++, the Thread class in Java, etc. The best option also depends on what you are trying to do, for example OpenMP if you are doing the same operation over an entire array and you just want to exploit parallelism, or pthreads if you want to custom code the behavior of each thread.
>>13 c# is fail, java is fail, python is fail, visual basic is fail, php is fail, perl is fail, delphi is MASSIVE fail, ruby is fail, lisp is fail, haskell is fail
>>21
You won't find anything useful past simple algorithms which are extraordinarily simple (and very arguably elegant) when written in Haskell, because it can be quite the hell for any serious application, which irremediably sways away from Haskell sweet spot.
I'm afraid I cannot understand most of the code though, arrows are still outside my grasp (although I think I have understood monads somewhat, perhaps I should go hunt down the relevant papers.).
Name:
Anonymous2006-12-14 18:58
>>24
Damn man, you not only did not get trolled by my >>23, but also proved it false. Way to spoil the fun.
Name:
Anonymous2006-12-14 18:58
Haskell is a worthless toy of a language.
Name:
Anonymous2006-12-14 19:04
>>25
House, an operating system written in Haskell.
>>29
Troll doesn't need to base on fact; much better if it does, but it doesn't necessarily. You can focus on the arguable, such as Haskell's unnecessarily complicated elements, its lack of popularity, or its lack of a big, complete, all-purpose standard library.
Programming languages typically dont handle multithreaded-ness inherantly because it does not make any sense to do so. Threads are an operating system feature, a bit like pipes, sockets and other concepts.
C++ handles threading fine, most of the applications I write at work are multithreaded, we use a class wrapped around the API that exposes a run function and some other useful functions. With that encapsulation you just spawn threads through the creation of thread objects and communicate with whatever IPC mechanism you wish (mutexes, semaphores, queues, whatever..)
Name:
Anonymous2006-12-19 18:04
>>38
Way to add nothing to this thread, it ended with >>2 you idiot.