[squeak-dev] C++ DCI implementation of Monte Carlo techniques

Gleb Averchuk altermn at gmail.com
Sun Aug 12 20:26:31 UTC 2012


Hello.

This spring, I've met with the paradigm of DCI, after reading
http://www.artima.com/articles/dci_vision.html article, as well as saw some
presentations, and code examples. I really liked this new approach. As far
as I understand, one of DCI features - what you can first write the serial
algorithm (which is expressed in the Roles are used) and then write new
Roles using the technology of parallel programming. However, the code will
be clear and clean...

I tried to apply the DCI, when I started working on some project. The
purpose of my project - modeling of chemical processes on the catalyst
surface. Modeling is carried out using the Monte Carlo method, implemented
by various existing algorithms of this method in order to compare their
performance. My result can be found here:
https://github.com/newmen/monte-carlo_techs. I think that I got is not very
good because a lot of logic is concentrated in the Contexts of modeling,
and code uses very little Roles. Correct implementation of existing Roles -
is questionable, since I sometimes use a partial template specification.
At the moment there is only a serial version of the program. I want to use
OpenMP for parallelize my program, and to compare the performance of
existing algorithms working in parallel. But unfortunately, I do not know
how to implement it in terms of DCI. I would be very grateful if you could
look at what I got, and advised me how to improve the code, more correctly
applying the paradigm of DCI.

Thanks for your attention. %)

-- 
Regards, Gleb Averchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120813/892f8cc6/attachment.htm


More information about the Squeak-dev mailing list