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 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.
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.
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.
OpenSUSE did not play that good on my laptop and was also removed in favor of Ubuntu. Mostly because of hardware problems.
Nov 29, 2010
Skypper: Day 05
Today I started working on the transformation itself. The code from python2tcl was taken and a lot of unnecessary transforms were removed since Python and Ruby syntaxes are quite close.
I found an interesting issue with destructors (Python's __del__ methods) used in original Skype4Py to release some resources. Ruby's define_finalizer does not work the desired way since the original object is not available inside the finalizer block.
Also the time devoted to the Skypper might be reduced since I start to work on an important commercial project.
I found an interesting issue with destructors (Python's __del__ methods) used in original Skype4Py to release some resources. Ruby's define_finalizer does not work the desired way since the original object is not available inside the finalizer block.
Also the time devoted to the Skypper might be reduced since I start to work on an important commercial project.
Nov 26, 2010
Skypper: Day 04
RubyAddons grammar mix extended. Classes, methods definitions, exception, for, while, ifs are added.
Grammar is able to process Skype4Py sources without any serious issues. Several non-important ones will be solved with preprocessing of source files.
The language transformation does not seem to be very difficult - syntaxes are quite close and rather easily solved with grammar tweaks. As always the problems will be with libraries conversion.
Grammar is able to process Skype4Py sources without any serious issues. Several non-important ones will be solved with preprocessing of source files.
The language transformation does not seem to be very difficult - syntaxes are quite close and rather easily solved with grammar tweaks. As always the problems will be with libraries conversion.
Nov 23, 2010
Skypper: Day 01
I read TXL documentation to remember my language skills.
Also I skimmed some articles and presentations about DSLs, Camplp4 and compilers.
Also I skimmed some articles and presentations about DSLs, Camplp4 and compilers.
Subscribe to:
Posts (Atom)