// for i in {0..5}; do echo -n "impl:$i "; runtime ./hello_world --impl=$i --num=2000000; done
// our CAF environment
// for i in {0..5}; do echo -n "impl:$i "; runtime ./hello_world --caf#scheduler.policy='sharing' --caf#scheduler.max-threads=1 --impl=$i --num=2000000; done
actor_system_configcfg;
voidcaf_main(actor_system&sys,constconfig&cfg){
actor_systemsystem{cfg};
if(cfg.impl==0){
// create a new actor that calls 'mirror()'
sys.spawn(ping,sys.spawn(pong),cfg.n);
automirror_actor=system.spawn(mirror);
return;
// create another actor that calls 'hello_world(mirror_actor)';