Abstract. PiLib is a library written in Scala that implements the concurrency constructs of the π-calculus. Some discussed features of the programming language Scala make it possible to use almost the same syntax as in the π-calculus. The huge advantage of this library with respect to any simple π-calculus interpreter is that we can transmit any value along names, we can get control over them using the type system, and we have access to the full power of the language in terms of expressiveness and libraries. 1