Talking about Akka, Scala and life with Jonas Bonér
Join the DZone community and get the full member experience.Join For Free
welcome to the fifth in a series of interviews dedicated to learning more about jetbrains development academy experts . this time we will interview jonas bonér . jonas is a java champion, an owner of scalable solutions and an author of the akka framework . he specializes in distributed computing, concurrency and knows a lot about many programming languages, including scala, clojure, erlang and of course java.
members of the jetbrains academy are recognized experts in various areas of software development. they contribute to java and .net communities by advocating development best practices through formal and informal publications and meetings, and serve as a versatile source of expertise.
q: hello jonas, can you tell us who you are, what you do, where you are from and what is your passion?
i'm a programmer living in sweden with my wife, two kids and a cat. i run a product company called scalable solutions the company behind the akka project. one of my passions is to write concurrent code and distributed systems, other passions is skiing, playing music and spending time with my family.
q: most people probably know you as the brain behind akka. undoubtedly, akka has been gaining in popularity over the past couple of months. can you give us a brief introduction into akka?
akka is a toolkit and runtime for building highly concurrent, distributed and fault tolerance systems on the jvm. it is written in scala but has a scala and java api. akka is using actors together with software transactional memory (stm) to create a unified runtime and programming model for scaling both up (utilizing multi-core processors) and out (utilizing the grid/cloud). akka provides location and network transparency by abstracting away both these tangents of scalability by turning them into an operations and configuration task. this gives the akka runtime freedom to do adaptive automatic load-balancing, cluster rebalancing, replication and partitioning. akka is available at http://akka.io under an apache 2 license.
q: i see akka has arrived at an important milestone with its 1.0 release. how do you view the project evolution so far? where do you plan to lead akka next?
currently we are doing most of the work in the distributed computing side of akka; the remote actors. we have just started a refactoring and redesigning that will take you to the next level and this will be available in akka 2.0 in the summer. we are also working hard on a the cloudy akka commercial add-on modules which is embracing the cloud and adding things like adaptive automatic load-balancing, cluster rebalancing, replication for fail-over and partitioning. this product suite will also include monitoring/management, provisioning and excellent amazon ec2 integration.
q: why did you choose scala as the implementation language for akka? does scala meet your needs for a general-purpose programming language? where do you think scala will or should evolve?
scala is the perfect systems language to build high throughput and low latency systems. it runs on the jvm, which is by far the best managed runtime there is. it is a statically typed language which for me mainly means two things;
- i get excellent performance comparable to java (sometimes even better)
- i get solid help from the compiler which helps catching bugs and design errors early in the development process and makes it easier to do refactorings and have the code evolve over time without bitrot.
but while being a statically typed language scala is as expressive and concise as dynamically typed languages like ruby , python or groovy . it has type-inference which in short means that you don’t have to hold the compiler in the hand all the time declaring types all over the place like we are used to in java, but it can draw its own conclusions from the context allowing you to focus on the essence.
scala already is an excellent language to build concurrent and parallel systems, yet here is were most of the work currently being done pushing the boundaries even further. for example, the upcoming scala 2.9 contains parallel collections and 2.10 will include stm (software transactional memory).
q: speaking about programming languages, i know scala is certainly not the only language you have in your tool box. would you be willing to share your opinion on some of them? is there any programming language in particular you'd like to point our attention to?
sure, programming languages and learning new ones is a passion of mine. i'm a big fan of oz (http://www.mozart-oz.org) which is an amazing multi-paradigm language that i really encourage everyone to take a look at. i'm also a fan of erlang and the language that is the basis for both of these two languages; prolog . i'm currently also much in love with clojure and is trying to learn haskell in my spare time.
q: perhaps it is not a coincidence that most of the languages you mentioned all have a good concurrency story. with dual and quad-core chips finding their way into our customers' laptops, concurrency is becoming a hot topic. now, if we played a game of visionaries, how do you think mainstream programmers will write code for multi-core chips, lets say 5 years from now?
i think that everyone will write concurrent code, we will have to either we like it or not. however, i don't think that everyone needs to think about concurrency all the time but it will be abstracted away to a large extent by tools and higher-level abstractions. we are already started going down on that path; actors , stm and dataflow concurrency that we have in akka all three makes it much easier to write and reason about concurrent code. in scala we already have parallel collections , which completely abstracts away the parallelism.
q: a project on the scale of akka could hardly be created without you having deep and broad previous experience with concurrent and distributed systems. can you tell us what projects you worked on before and how it influenced the way you approach distributed systems today?
i learned a lot about concurrency and distributed computing while working at terracotta writing jvm clustering products and also while working with the jrockit jvm at bea systems . i also learned a lot developing the aspectwerkz aspect-oriented programming (aop) framework and as a committer to the aspectj compiler, both how to write performant java code but also how to build and manage an open-source community, bringing great people together making people enthusiastic about your project.
q: i guess this all helped you make the right decisions when creating your current company - scalable solutions. how would you characterize its mission?
make it simpler for developers to write correct scalable and fault tolerant systems, provide a suite of products that gets the job done faster so they can go home to their friends and family instead of spending late nights debugging concurrency and distributed computing problems.
q: these are very attractive goals, indeed. since you are a member of the jetbrains academy, i was wondering whether any of our tools have helped along the way to creating akka.
i'm a happy user of intellij idea and have been for the last 7-8 years. i almost exclusively program in scala nowadays and the intellij scala plugin is really good.
q: do you have a favorite idea feature?
i'd say its intellisense , it's amazing. still much better in java, but the scala plugin is catching up fast. i also used to like its excellent maven integration, but i don't use maven any longer, i use sbt, which could need some more love :-)
q: ok, i'm taking notes. jetbrains also works on a workbench for dsls, called meta programming system (mps). have you had a chance to look at it?
i have been following it from a distance. it looks very interesting but i have not had time to really dig in and use it.
q: you are a frequent and popular speaker at programming conferences. how busy is your schedule for 2011? where can people see you presenting this year?
so far this year i've been doing conferences in stockholm, london and new york. now i’m looking forward to speaking at emerging languages in philadelphia, goto in copenhagen, what's next in paris and scala days at stanford.
q: is there a conference, a place or an on-line site you'd recommend to people interested in concurrency and distributed architectures? a secret source of relevant, thought-provoking, deep material for the domains?
i read a lot of books on the topic and follow some interesting people in this space on twitter . besides that i like reading the case-studies at http://highscalability.com . http://dancres.org/reading_list.html is a great resource for good reading in the distributed systems space. http://nosqltapes.com is a great resource for learning more about scalable databases.
q: great list of on-line resources. have you recently read a book that you'd suggest to our readers?
i'm currently reading the art of multiprocessor programming by herlihy, drive by pink and land of lisp by barski. one book that i recommend all engineers to read is concepts, techniques and models of computer programming by petervan roy and seif haridi, it will change the way you think about software. another great book is release it by nygaard and you can't miss the classic pragmatic programmer by the prags. programming pearls by bentley is another classic and if you are into concurrency then you have to read patterns for parallel programming by mattson. hacker's delight by warren is fun if you are into bit-twiddling and pragmatic thinking and learning by hunt if you want to improve how you think and learn. i have so many great books, hard to pick a few.
q: seeing your agenda, i doubt you have any free time. if you do spare a minute for yourself, what do you typically do?
i read books, watch movies, play with my kids and spend time with my wife. i also really enjoy skiing and playing music; i’m playing saxophone, a bit of piano and harmonica and i just started playing guitar.
q: as our final question, can you tell us something about yourself that most people wouldn’t know?
i started programming pretty late; after i turned 25 and my kids like to tell everyone that i ate a living frog when i was a kid in some stupid “i’m more brave than you” game.
excellent! thank you very much jonas for taking the time. it was well worth it!
links to find out more:
Opinions expressed by DZone contributors are their own.