Idea for Threads

janderson askme at me.com
Sat May 12 03:15:34 PDT 2007


[snip]
> 
> Personally, I think the future of threading is not in making it easier
> for programmers to write threaded code, but to make compilers smart
> enough to automatically thread code.
> 
> I mean, from what I've seen, humans have displayed a real nack for not
> being able to write multi-threaded code in any sane way.  I just don't
> think we're wired up the right way.
> 
> That's why I've suggested things in the past like the concept of a
> "pure" function--one which has no side effects.  If a function has no
> side-effects, then the compiler can thread it automatically.  List
> comprehensions and other functional features would help here, too,
> allowing for loop parallelism.
> 
> I tell you what; the person who comes up with a general-purpose C-style
> language that makes multithreading brain-dead simple will be one
> seriously rich bugger.
> 
> Just my AU$0.02.
> 
> 	-- Daniel
> 

Very true.

-Joel



More information about the Digitalmars-d mailing list