Software Factory Speeds up Ruby on Rails

Software Factory, the experimental R&D laboratory at the University of Helsinki, successfully continues its open source collaboration with the software industry, open source community, and leading universities like Stanford University and MIT.

Experiencing Real Work Life in the Software Factory

The Software Factory provides an environment for research and education in software engineering, and that was established by the Department of Computer Science at the University of Helsinki and is operated by the Software Systems Engineering Research Group. Since the first project in 2010, the Software Factory has been used as a platform for teaching software engineering in close collaboration with industry. The goal is to provide students with a realistic environment in which to integrate previous knowledge of computer science and software engineering with experiential insights about conducting real software projects. Close customer involvement, intensive teamwork, and the use of modern software development tools and processes add realism and working life relevance for the students.

Learning from an Experienced Mentor

One Software Factory student team is currently contributing to the Ruby on Rails web framework. Rails is used by many websites, including Twitter, Hulu, and GitHub. GitHub also hosts the code for the Rails project and many other open source projects. The student team has the pleasure of being mentored by Rails core developer Aaron Patterson. During the project experience, students learn important skills for communicating and collaborating in distributed software development environments. The involvement of an experienced mentor has been very beneficial for both the project goals as well as the educational learning goals. Students have been working on the Active Record database access component. Active Record is an object-relational mapper that allows for abstracting an underlying relational database and working with the data in a high-level Ruby syntax. Using Active Record, developers can access and process data using interfaces that are similar to other parts of the application code. Thus developers do not need to write database queries directly.

Speeding up Ruby on Rails

The project has now reached an important milestone by implementing a statement cache for Active Record. The statement cache makes Active Record faster by reusing data structures that would otherwise be re-generated on each database query. This improvement paves the way for faster database access in all Rails applications, since the new code is executed every time a database query is performed. Further improvements are planned with more expressive query construction that allows the use of parameters in the cache. The ultimate goal is to get closer to native database query performance while still maintaining the expressiveness of Active Record. The new statement cache has been merged into the upcoming release of Ruby on Rails 4.0, which is the next major update to the web framework. Further information can be found here.

Created date

15.05.2013 - 15:26

Brain poetry

In the latest research result of the month section, we interview PhD student Jukka Toivanen about his recent work on brain poetry in the Discovery group led by professor Hannu Toivonen. How can humans and machines be creative together?

Kjell Lemström to be new Head of Studies

Since Jaakko Kurhila left the department to head the Open University, we had to find a new university lecturer to act as head of studies in short order. We received a total of 28 applications. Out of these, and after a preliminary qualification round, evaluations, interviews, and a department council hearing, Kjell Lemström (KL) was elected for the post. He started working as the department's Head of Studies on 2 March 2015, so the Head of the department (JP) conducted the following induction interview that very week.

This is by no means the first time Kjell has been employed by the department. He defended his thesis on ‘String Matching Techniques for Music Retrieval’ in 2000, and has held numerous teaching and research positions both before and after that, until he transferred to the Laurea University of Applied Sciences in 2011 (luckily, that was only temporary).

Head of Studies Jaakko Kurhila to head Open University

The Head of Studies at the department, University Lecturer Jaakko Kurhila, has been elected to the post of director of the Open University at the University of Helsinki. It was a tough race: all in all, 39 applicants sought the post, some of them through the Mercuri Urval headhunting process. After a consultant evaluation, interviews, and aptitude assessments, the preparatory committee for the post, the steering committee for the Open University, and the rector of the university came to a unanimous decision to select Jaakko, and the contract is already being drawn up.

Being selected from this prestigious group of applicants, and after such a thorough process, is indisputable proof of the qualifications of Jaakko and the high esteem the academic community has for him. The department extends its warmest congratulations to Jaakko for this career development and is proud of the success of its protégé.

Bridging the Gap Between Research and Standardization

In the fourth research result of the month, we report a joint work between the UH NODES group and the Cambridge NetOS group, lead by Prof. Sasu Tarkoma and Prof. Jon Crowcroft, respectively. Their work recently received the best paper award "Best of CCR" from ACM SIGCOMM.