Google Summer of Code 2018: A Preface
First published on my old blog, The Silent Monk’s Retreat.
What is my Project?
I will be creating a Plotting library inspired by Matplotlib in a language independent format which can easily be bridged to any language.
My Journey till now
Before GSoC I have worked extensively on implementing various end to end deep learning pipelines using low level Python frameworks.
I came across the project while I was browsing through the ideas list.
Being a long term user of Matplotlib I was intrigued by the idea of creating a language independent Plotting library.
I decided to implement a basic Line plot script in C++. Initially, I planned on using AGG but due to the lack of documentation (because of the untimely demise of the author), I shifted to Cairo graphics and created a quick prototype .
As per the rules I had to contribute to Sciruby for my application to be considered I had to contribute to the organization. After looking into various open issues in various projects under the organization. I came across request for feature that I felt I could implement. And I did the same in my commit. As someone who had not worked with Ruby before , this was my first encounter with Ruby. I also learned the importance of test driven development for software meant for distribution as well as squashing commits in Git for the sake of readability and easy debugging.
At this point this was all I could do. So I dived into the source code of Matplotlib and gained valuable insight from it.
Why SciRuby?
I will reiterate my answer which I wrote in my proposal (which can be found here ):
I haven’t had an experience with Ruby so I cannot comment on that.However, the reason that I applied for SciRuby is strongly founded. The following is an excerpt from the History section of NumPy’s Wikipedia page:
The Python programming language was not initially designed for numerical computing, but attracted the attention of the scientific and engineering community early on, so that a special interest group called matrix-sig was founded in 1995 with the aim of defining an array computing package.
This led to the creation of two Libraries namely Numeric and Numarray, which were later combined into NumPy. The brilliance and simplicity of NumPy was later complemented with MatPlotlib, which to my limited knowledge, provided the very base for development of Python as a scientific language.
I feel something very similar with SciRuby. With a proper Linear Algebra Library such as NMatrix which when complemented a Plotting Library can give the basic tools to researchers to adapt and utilize the language according to their needs.
However, I am more intrigued by the prospect of a cross-language implementation of a plotting library. Albeit, it will be a challenging task. it will lead to the creation of a fundamental piece of scientific software that can be used to turn any language into a scientific computation language.
Why the Project?
The primary reason that I want to participate in GSoC is to learn Open Source Software (OSS) Development. And there is not better way to learn than by hands on work. The reason why I am excited about the project is that it has the potential to act as a plotting library for any language and would thus be open in a new sense.
Matplotlib Architecture
The Matplotlib Architecture is be broadly divided into three layers (as shown in the masterpiece of a figure which I made below). The Backend, The Artist and the scripting layer.
The Backend layer can further be divided into three parts : The Figure Canvas, The Renderer and the Event.
Matplotlib architecture is mostly written in Python with some of its backend (the renderer AGG and Figure canvas ) written in C++ ( The original AGG backend and helper scripts, which is quite tightly bound to python). But the recently the backends are also written in Python using the renderers which have Python APIs.

Matplotlib architecture
The finer details about Matplotlib architecture can be found in an utterly brilliant post here .
As of the time of writing the post, Me and my mentors are discussing over the details of implementation and considering the possibility to prototype it in Ruby first. The discussion can be found here.
What now?
I will be posting about my project every weekend here under the tag GSoC2018 . And what my posts will do the best (as a Dalek would say) is:

Expect the future posts to be much more technical (compared to this one).
On a serious note the project is not going to be easy. The ground work that I have to do includes (but is not limited to):
- Throughly understanding the Matplotlib Architecture
- Revising C++ STL and features in the latest standard
- Familiarising myself with libraries such as ImageMagick,Qt and Armadillo
- Learning the art of discipline
Is it going to take all I got? Yes.
Will I learn a lot? Yes.
What do I really feel like? Well ….

The journey continues here.