Stroustrup's talk on C++0x

Downs default_357-line at yahoo.de
Fri Aug 24 02:05:03 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ingo Oeser wrote:
> Downs wrote:
>> Ingo Oeser wrote:
>>> - More explicit loop notion which can do map(), reduce(), filter().
>> See also my "Some tools for D" post. I implemented those with iterators,
>> but they're trivial to do as freestanding functions.
> 
> Ok, with your tools, I could already CODE like that right now
> and remove the "import iter;" later. Thanks for that :-)
> 
> But I want to express that there isn't any defined order of execution, 
> as long as data flow is correct. And of course I would like them
> overloadable to compose and distribute them driven by data flow.
> 
> I just like to express the data flow more explicitly instead of 
> depending on the optimizer to figure it out himself. Let's help the
> optimizer greatly here.
> 

FWIW, you can already run a MT foreach variation on the tools.threadpool
class, and it wouldn't be that hard to write a tree reduce that does the
same .. but I see your point and agree. In the end, programming
languages should come as close as possible to capturing your intentions
with a given piece of code, which is why this kind of metadata would be
extremely useful to a clever compiler.
 --downs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzp8/pEPJRr05fBERAkaBAJwKPlb5Y5allxdSLS9yjia72k6iJwCZAXGF
dGP7v6VDgB9eA/NvkFBOto0=
=91hz
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list