in Lost & Found

Orcish programming

I’ve twittered about Orc. Orc is “a novel language for distributed and concurrent programming”. There are three combinators. Which allows function calls: parallel, sequential and pruning.
The presentation about Orc offered by them is a great introduction. It includes the motivation, these combinators and some examples.

This program calculates the fibonacci numbers, as you can see. The special thing about is that it will return every number up to n.

Now something cool. You want to calculate the factorial of this fibonacci numbers? No problem.

Firstly, you’ll need a function to calculate the factorial of a number n.

Secondly, you use the combinator for sequential computing (>>).

There’s a great short tutorial on Orc’s website. Also, there’s a online interpreter for testing short functions. Some examples are juicy like the load balancer.

Write a Comment