diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Actor-based Programming in C++: Control Flow Versus Data Flow

Rick Molloy is back and he’s got some code and coding techniques to share. This tutorial/example is done in C++, but the concepts span languages (actor-based, data flow style of programming)

Here, Rick explores converting a simple loop to a set of actors or agents that communicate via message passing. In particular he looks at the difference between a “control flow” style implementation and a “data flow” style implementation. The actor based approach is great because it separates the guts of the work from the loop logic so code looks more like the flow charts we draw on our whiteboards.

Download the code for this demo (will work in VC++ 2010)

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!