Hello World from JaM!
We are silly sometimes! Left: Jeena. Right: Malisa. (photo: Malisa/Jeena)
Hello World! We are Team JaM: Jeena and Malisa from beautiful Portland, Oregon, USA. We are two biologists who met each other while studying bioinformatics, the child of biology and computer science. This summer, we are working on Servo, the parallel web browser engine written in Rust, and we cannot be having more fun! Josh Matthews is our project mentor, Stefan Novak and Nick Fitzgerald are our coaches, and Scott Kobewka is our supervisor.
More about us!
On our recent trip to a cat cafe. Jeena debugging next to a cat, and Malisa debugging a cat. (photo: Malisa/Jeena)
Jeena: I spent about half of my life in South Korea, and the other half in the West Coast, USA. I studied genetics in college because I was amazed by how DNA with only 4 letters could translate into so many different flavors of life, ranging from salmonella to elephants. After college I worked at BoltThreads for a few years, where I programmed yeast to make spider silk. I recently realized that programming computers is similar to programming genomes with DNA, and I decided to study bioinformatics. The more I learn programming, the more I realize how fun it is! Maybe it is no surprise that I find programming fun because I like to make things, including ceramics, cooking, and knitting.
Malisa: I’ve spent most of my life in Seattle and Pennsylvania, with bits here and there in Long Island, New Zealand, and Japan. I really love Portland so far! I majored in Biology as an undergrad, but I’ve always wanted to study more computer science because of its emphasis on problem solving and algorithms. To that end, a little over a year ago I decided to get my Master’s in bioinformatics, and since then I’ve been coding full-time. I’m super excited to have an opportunity to broaden my programming skills this summer with RGSoC.
In my free time I enjoy the following in large quantities: eating, reading, cuddling with cats, swing dancing and ballet, and exploring different Portland-area neighborhoods.
Stefan and Nick Our coaches pretending to be not so silly... Left: Stefan. Right: Nick. (photo: Malisa/Jeena)
Stefan works at Oregon Health and Science University, helping researchers and doctors share data. Though he may not admit, he is also a pinball master!
Nick works at Mozilla, where he hacks on Firefox Developer tools and Spider Monkey. On the weekends, you can find him playing bike polo.
What are Rust and Servo?
Rust is a systems-level programming language that was started in 2010 by an employee at Mozilla. It is a compiled language, so creating executable code is slow, but runtime is fast. It is also memory safe, so pointers will only point to things that actually exist. Lastly, it is designed for concurrency and parallelism on multiple cores. You might consider using it for projects where you would otherwise write C++ code. Plus we think Rust is easier to read and write than C++.
(photo: www.rust-lang.org/en-US/, www.servo.org)
Servo is also Mozilla’s baby. It is a parallel browser engine, and it is written in Rust! We are working on Servo this summer.
…what is a browser engine anyway? To generalize, a browser engine takes a URL and displays the document that corresponds to it. Every web browser has one. For example, Firefox’s current browser engine is called Gecko and is written in C++. Mozilla’s long-term plan is to replace bits of Gecko with bits of Servo. You can read more about browser engines here.
(photo: www.slate.com. edited by: Malisa)
Sending an HTTP Request via the Fetch API involves a request and a response. Our task is to follow the class templates for Request, Response, Headers, and Fetch, which are specified by the WHATWG standards for the Fetch API. We’re lucky to have very specific instructions and goals for our project. ;)
What have we achieved so far?
So far we have implemented the Headers API and the Request API. We started out pair programming (which really revealed some of the differences in the way we think and approach programming), but then we moved onto independent tasks.
One cool thing is that because our code is so dependent on the rest of Servo and the WHATWG specifications, over the past month we have had to modify other parts of Servo’s codebase to add additional functionality that our code depends on. We’ve also filed issues with WHATWG where the Fetch spec requires clarification. This has helped us realize “hey, what we’re doing actually affects the rest of the world, and we’re in it for real!”
Probably even more exciting is the influence that this project has had on us.
- The Rust and Servo communities are both really awesome, and since we started working with them our standards for human interaction have gotten higher. ;P
- Coming into this project, we had no experience with low-level languages. We were both used to writing lots of one-off scripts in Python. Working with Rust has really forced us to think about what’s going on in the stack and the heap and what happens in memory when you create or copy an object. It is tough but rewarding.
- On a related note, working on such a big project with such an unfamiliar codebase and lots of contributors is a very valuable experience. Good documentation and collaboration etiquette is appreciated by everybody.
- Plus this is the first time we’ve even heard that web browser engines exist!
What tips do we want to share?
- Document your daily learnings with TIL (“today I learned”). When you feel like you’re not making progress, go through your TILs and realize how far you have come!
- Be vocal about your thoughts, especially when pair-programming. Other people sadly cannot read your mind.
- Asking questions is the fastest way to becoming less dumb fast – Julia Evans
What will we do next for the project?
You can see our goals on Servo’s issue page. Our next steps are to address the remaining components of the Fetch API, which means: - Finish the Request API implementation - Finish the Response API implementation - Implement the fetch method - Implement Promise in Servo - Refine the Request, Response, and Headers APIs
Thanks for reading, and visit our blog for daily updates and in-depth discussions (coming soon)!