First week of Schemepy

May 2, 2008 – 5:23 pm

As I mentioned in my last post, I’ll work on Schemepy in this summer. Though the official begin coding time of GSoC is May 26, I’ve already do some initial research on this the last summer. I’ll try to keep a weekly progress report in my blog.

There were already two backend for Schemepy: guile and pyscheme. I haven’t looked much at pyscheme yet, and it seems that backend isn’t ported to the Schemepy interface yet. I took a look at the guile backend implementation by mithro, discussed with him the interface of Schemepy. I found I was trying to get the final interface designed before start writing the code, which proved to be a bad idea. One won’t be able to find some problems until he gets down to coding. That’s why I get a awkward design of the type mapping from Scheme cons pair to a Python value first.

So I start to write some code: re-implement a guile backend from scratch. I think this is a good way to start. I’ll figure out the common process of writing a Schemepy backend. When I have some problem, I can refer to mithro’s implementation for an answer. Now I have finished parts of the type mapping of the guile backend. When I have a workable backend, I’ll try to get some test suites to run on that before writing other backend.

Schemepy is a platform of running Scheme code in Python. So it is written (mainly) in Python. I also start to know more about Python. At the time when I heard about Python and Ruby, I think they are very similar languages — just some trivial difference in the syntax. But when I get to know more about Ruby, I think I might be wrong. And then when I start to know more about Python, I realized that I am totally wrong: they are very different language — just some trivial similarity in the syntax. Same feeling on git and mercurial, Emacs and VIM. They all have their own philosophy — the way of getting things done.

  1. One Response to “First week of Schemepy”

  2. Good to see your first status report! I look forward to seeing even more of your progress.

    I would be interested to know what you think are the differences between Python and Ruby – I never really got into Ruby myself.

    By Mithro on May 3, 2008

Post a Comment