// Child actor that does a slow computation and replies with the result
$receiver(function(msg) {
  var n = msg.count
  var sum = 0
  var i = 0
  while (i < n) {
    sum = sum + i
    i = i + 1
  }
  send(msg.reply, {sum: sum})
})
