Feb 26, 2011

Navel: Day 13 - Something

Yesterday I forgot to make a note.

Today: range(x,y,1) -> x...y

sort.py file from a nltk library is converted ok, but results are printed wrong.

Feb 24, 2011

Navel: Day 11 - not

Skypper is now project Navel.

not is converted to !.

Feb 23, 2011

Skypper: Day 10 - FFI

I have played a bit with Ruby FFI and it had appeared to be not that scaring as I thought. So probably I will get back to Skypper initial target Skype4Py. Although the other Python library I found for transformation is also interesting, but I will keep it in a secret.
20 min update: Skype4Py is unstable and produces core dumps very often. Even simple operation to get user name is not working. The library to be transformed is still unclear.

Transformations made:
  • var is None to var.nil?
  • end added to single while and for blocks


Feb 21, 2011

Skypper: Day 09 - if statements

I implemented adding end to if statements suites for (if, elsif and else). Also I decided to postpone preprocessor and other cosmetic changes till the end and devote more time on transforming features.

Feb 20, 2011

Skypper: Day 08

Now an end is added to a Python's suite (class or function body) to be treated as a Ruby body.

I'm thinking about rewriting Jim Corby's Python preprocessor (INDENT/DEDENT) to have DEDENT just after the last indented line not before the first dedented. Most probably it will be rewritten in Python.

Feb 18, 2011

Skypper: Day 07

I have implemented python len(e) --> e.size() transformation. I spent significant time remembering some Txl and Python grammar details but at the end was impressed by the solution. It was easy and elegant.

Feb 17, 2011

Skypper: Day 06

I'm not working full time with the project now. Only occasionally at work and in spare time.

I will attend Kiev.rb#1 Ruby developers meeting in Kiev, Ukraine organized by Sphere Consulting Inc. with a talk "Transformers. Translation to Ruby from other languages". I'm about to present there the results of the project. That will include Python to Ruby transformation and a Python project translated to Ruby. Initially it was supposed to transform Skype4Py but now I'm not sure what project will translated. It will depend on results of Python to Ruby transformation and time availability.

Feb 14, 2011

Wind of Change

After about 10 years of working on KDE I have switched both my home an work environments to Gnome.

OpenSUSE did not play that good on my laptop and was also removed in favor of Ubuntu. Mostly because of hardware problems.