Archive for the ‘Thousand Parsec’ Category

The weekly status report of Schemepy: final evaluation approaching

Thursday, July 31st, 2008

Another week quickly passed, I was working hard on the macro system for skime last week. It is a little tough, but now I finally managed to finish it. I wrote a summary[Chinese] on the implementation of the hygienic macro system of skime.

skime should be a fairly feature-complete pure-Python Scheme fallback for Schemepy after that. I’ve moved the source to the Schemepy repository. And now the backend wrapper (yes, pure-Python fallback still need backend wrapper) is also finished and most of the existing test cases have passed on that.

Read the rest of this page »

The Schemepy weekly status report: the new fallback

Sunday, July 20th, 2008

I committed almost nothing to the Thousand Parsec repository this week. That’s because I’m mainly working on skime — a pure-Python VM for Scheme. After one-week hard working, the basic shape of the VM is already there.

Although there are still many work (e.g. the macro system) to do before it can be a really useful VM, I decide to write a simple layer to fit the Schemepy API and run the benchmarks to see whether the time spent on a new fallback is worth.

Read the rest of this page »

Schemepy weekly status report

Monday, July 14th, 2008

I was away for several weeks during my final exams. But now I’m in my summer holiday. It seems not having classes is making the everyday life a little boring — you do the same thing every day, you even forget the day of the week. Yes, I don’t know what’s the N in N-th week in Schemepy now, so I changed the title. ;)

Read the rest of this page »

Schemepy Logo

Monday, July 7th, 2008

schemepyThe mid-term evaluation of GSoC 2008 is approaching. We students are requested to write a summary of our work. In the Thousand Parsec project, Mithro said:

This report should be written as if the person who is reading it has no understanding of what Thousand Parsec is or how to play it.

I think I don’t have to introduce what Thousand Parsec is (I myself is not quite sure, in fact) here. However, it is still necessary to describe Schemepy. So I decided to design a logo in order to promote Schemepy. :D

Read the rest of this page »

The 8th week of Schemepy

Saturday, June 21st, 2008

Mithro is just collecting the first-month-status of various Thousand Parsec related GSoC projects. However, since I started early, this is already the end of my 8th week working on Schemepy for me. But as I mentioned before, I spent most of time preparing my final exams. I’ll take my first exam the day after tomorrow. So not too much work has been done this week.

Firstly, I added a (very) simple homepage for Schemepy. It is available here. We’ll setup a shorter URL (like schemepy.thouspandparsec.net) later.

Read the rest of this page »

7th week of Schemepy

Saturday, June 14th, 2008

There’s not too much done in this week. Basically, I looked a bit at the tpserver-py and tried to run it in my local box. If I can successfully run it and test the features, then I can go ahead to port it from pyscheme to Schemepy. In the best case, there should be some regression test cases so that I can simply run the test cases before and after porting to guarantee I don’t broke something. Unfortunately, it seems that I need to test the functionality manually.

Read the rest of this page »

6th week of Schemepy: mzscheme-3m, guile-1.6 and others

Saturday, June 7th, 2008

As I said in the last status report, although I finished the mzscheme backend, I found the currently commonly used version is in fact of another memory model. My original code was written against the CGC memory model, so I need to re-implement part of the backend to adopt the new 3m model.

At first, I have no idea of how to implement it totally. The mzscheme GC is moving the memory, I need to register all local pointers to it — but it is unrealistic for a Python program. So I asked for help on this. I got answer from both the schemepy mailing list and the mzscheme mailing list — use immobile.

Read the rest of this page »

[Schemepy] More about the mzscheme backend

Monday, June 2nd, 2008

I finally finished the mzscheme backend. As I said before, I should have finished it before writing the last week’s status report. However, I’m still pleased to see the result though a little late than scheduled. So I’ll write a follow up of the last status report.

With the experience of implementing the guile backend. It should be not too hard to write yet another backend. It is true for most parts. However, there are many differences between different Scheme implementations. Here are some examples:

Read the rest of this page »

5th week of Schemepy: the mzscheme backend

Saturday, May 31st, 2008

I was all doing the mzscheme backend the last week. I had complained much about the interface before. However, after that, (at least I think) I have figured out how to do various things to finish the backend by reading the document, reading the source code and guessing.

For example, the namespace mechanism is mentioned very vaguely in the Inside PLT MzScheme. Firstly, I guess I can use module to do the namespace. But it doesn’t work. Then I discovered there’s a make_namespace procedure, though not documented, I guess is what I was finding. But I still get some strange errors (related to some #%-prefixed modules). I’m not sure how the namespace should be used. And I’m also having some segment faults.

So that’s the current situation. I have a mzscheme backend, but it doesn’t work as well as I expected. I didn’t find the IRC channel of mzscheme. I think I should started to ask questions in the mailing list for helps. While the email might not be replied immediately, I’ll also contact Jakub about the possibility of using PyPy scheme as a backend of Schemepy, as well as looking at porting the TPCL related code.

4th week of Schemepy: the not-so-friendly API of mzscheme

Friday, May 23rd, 2008

There’s not too much done in this week for Schemepy. At first I was trying to port libtpclient-py from pyscheme to Schemepy. However, the code base of libtpclient-py is not too big, and I only found little code that used pyscheme. I thought I should learn the basic behavior of the lib and the client before I start hacking it. Unfortunately, I have no idea of what 4x game is. I tried several times but still not figured out how to play a TP game.

Read the rest of this page »