shed skin 0.8

49 views
Skip to first unread message

Mark Dufour

unread,
Jun 15, 2011, 4:18:06 AM6/15/11
to shedskin-discuss
hi all,

I have just uploaded the tarball for shed skin 0.8. please test it and report any problems, before I announce things further.

it has been a wonderful cycle for me, with feedback from several directions. thank you all for that!

here's the (full) list of changes:

http://code.google.com/p/shedskin/wiki/releasenotes

my personal highlights:

- the c64 emulator example was synced with its author, and now weighs in at about 3,500 lines (sloccount). it still compiles in about 25 mins here, which is in line with the scalability graph I published before. see attachment for a screenshot of one of my all-time favorite games running on it. using cpython, it runs at around 3 FPS, and after compilation, it's perfectly fluent (at least 50 FPS).

- this triggered me to finally add support for the array and struct modules! struct is used to read programs from tape, and array to contain a packed version of the screen data that is passed out of the extension module.

- three new examples were added, most interestingly to me a fast (havlak) loop recognition algorithm. please keep those examples coming.. ;) I'm planning on doing a type inference round for 0.9, and I can't have enough test cases for that..

- a new option, shedskin -x, makes generated code prints tracebacks for all thrown exceptions. so it also print them when they are actually caught. still I think it can be very useful to investigate why a large program crashes (such as a c64 emulator). I would be interested if anyone knows how to improve this so we only print tracebacks for uncaught exceptions (that is, efficiently of course).

- I just added a 'faq' section to the wiki section (http://code.google.com/p/shedskin/wiki/faq) with responses to some common questions/preconceptions about the approach shedskin takes.

thanks again to those that helped with or provided feedback for this release.

if there are no issues reported with the current tarball, I will proceed to package the windows version and ask thomas and paul to upgrade the rpm/deb packages.

mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

intkarat.png

Thomas Spura

unread,
Jun 15, 2011, 5:10:39 AM6/15/11
to shedskin...@googlegroups.com, mark....@gmail.com
On Wed, 15 Jun 2011 10:18:06 +0200
Mark Dufour wrote:

> hi all,
>
> I have just uploaded the tarball for shed skin 0.8. please test it and
> report any problems, before I announce things further.
>

[snip]


> thanks again to those that helped with or provided feedback for this
> release.
>
> if there are no issues reported with the current tarball, I will
> proceed to package the windows version and ask thomas and paul to
> upgrade the rpm/deb packages.

Now that the tests are included in the tar ball, it's easy possible to
run the testsuite when building the rpms.
So a build is going on right now, and the first tests are passing,
let's keep the fingers crossed :)
Here is the build with the logs of the tests:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3132043

(When anything goes well, I'll further do builds for other fedora
releases and give EPEL a try...)

Greetings,
Thomas

Thomas Spura

unread,
Jun 16, 2011, 3:38:17 AM6/16/11
to shedskin...@googlegroups.com, mark....@gmail.com, Santanu Das
On Wed, 15 Jun 2011 10:18:06 +0200
Mark Dufour wrote:

> I have just uploaded the tarball for shed skin 0.8. please test it and
> report any problems, before I announce things further.

Failing tests on el5:

Here is the build.log from an el5 machine and several tests are failing
there:
http://koji.fedoraproject.org/koji/getfile?taskID=3133926&name=build.log
*** tests failed: 14
[168, 173, 179, 180, 186, 187, 188, 189, 190, 191, 192, 194, 195, 196]

Hopefully, the tests can be fixed without access to an el5 machine (or
maybe Sans can help here). You could also try running shedskin on
scientific linux 5 maybe...

(The build failed completely, because of an packaging error on my side,
will try to build it again, when the tests might be fixed...)

Thomas

Mark Dufour

unread,
Jun 16, 2011, 4:17:41 AM6/16/11
to Thomas Spura, shedskin...@googlegroups.com, Santanu Das
hi thomas,

thanks!

Here is the build.log from an el5 machine and several tests are failing
there:
http://koji.fedoraproject.org/koji/getfile?taskID=3133926&name=build.log
*** tests failed: 14
[168, 173, 179, 180, 186, 187, 188, 189, 190, 191, 192, 194, 195, 196]

hmm, perhaps I should have mentioned there are some tests that depend 2.6 only features or behavior. I looked at a few of these failures, and so far this like the cause for all of them. perhaps we should add some conditionals to the tests, e.g. sys.version >=.., so the tests will also pass on 2.4..


mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Ian Ozsvald

unread,
Jun 16, 2011, 4:55:48 AM6/16/11
to shedskin...@googlegroups.com
Ah - I was running the Mac tests on Python 2.7.1 32bit. Maybe the 4
errors I saw were due to that configuration?
Ian.

> --
> You received this message because you are subscribed to the Google Groups
> "shedskin-discuss" group.
> To post to this group, send email to shedskin...@googlegroups.com.
> To unsubscribe from this group, send email to
> shedskin-discu...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/shedskin-discuss?hl=en.
>

--
Ian Ozsvald (A.I. researcher, screencaster)
i...@IanOzsvald.com

http://IanOzsvald.com
http://SocialTiesApp.com/
http://MorConsulting.com/
http://blog.AICookbook.com/
http://TheScreencastingHandbook.com
http://FivePoundApp.com/
http://twitter.com/IanOzsvald

Thomas Spura

unread,
Jun 16, 2011, 7:11:04 AM6/16/11
to Mark Dufour, shedskin...@googlegroups.com, Santanu Das
I ought to remember, that there is also a python26 package in el5.
We could use that instead too (onls /usr/bin/python needs to be replaced...)
Otherwise, ignoring the failing tests would be another alternative.

In my opinion, it's more important to support python3, than old python2.4 ;)

   Thomas

2011/6/16 Mark Dufour <mark....@gmail.com>

Thomas Spura

unread,
Jun 16, 2011, 7:44:49 AM6/16/11
to shedskin...@googlegroups.com, i...@ianozsvald.com
I don't think so.
fc15 has:
$ python
Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2

And all tests are passing right now on i686:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3133911

Thomas

sunjoy

unread,
Jun 16, 2011, 9:01:43 PM6/16/11
to shedskin-discuss
congratulation!
P.S. I need a windows version of shedskin-0.8.
>  intkarat.png
> 14KViewDownload

Mark Dufour

unread,
Jun 17, 2011, 1:54:59 AM6/17/11
to shedskin...@googlegroups.com
On Fri, Jun 17, 2011 at 3:01 AM, sunjoy <ccn...@gmail.com> wrote:
congratulation!
P.S. I need a  windows version of shedskin-0.8.

if there are no problems reported with the UNIX version, I will package the windows version within in a few days.

if you'd like to try before that, you can copy shedskin/shedskin in GIT over shedskin-0.7.1/shedskin/shedskin, and it should probably work (I already tested thing under WINE not too long ago).


thanks,
mark.
 --
http://www.youtube.com/watch?v=E6LsfnBmdnk

Santanu Das

unread,
Jun 17, 2011, 8:20:18 PM6/17/11
to Thomas Spura, Mark Dufour, shedskin...@googlegroups.com


On Thu, Jun 16, 2011 at 12:11 PM, Thomas Spura <tom...@fedoraproject.org> wrote:
[ ... ]


In my opinion, it's more important to support python3, than old python2.4 ;)

Do you really think so? I think v3 is still not mainstream and most of the people actually use v2.7 for real work. AFAIK, 3 is not backward compatible.

I was kind of away for couple of days. I'll try the tarball on SL5 tomorrow and let you know.

-Santanu



   Thomas


Sans

unread,
Jun 17, 2011, 8:38:13 PM6/17/11
to shedskin-discuss
Just gave quick try: downloaded the "mainline" from git (v0.8) and ran
this way:

python __init__.py -x myScript.py

on SL5 and it seems to be working. Although "-x" doesn't appear to be
doing any "backtrace" at all.
BTW, what's the advantage(s) of installing the tarball in the first
place over the way I'm running? These is at least one disadvantage
though: You should never install tarball on a package based
distribution, like RHEL, debian etc.

-Santanu



On Jun 18, 1:20 am, Santanu Das <r.santanu....@gmail.com> wrote:
> [ ... ]

Mark Dufour

unread,
Jun 18, 2011, 4:40:54 AM6/18/11
to shedskin...@googlegroups.com

on SL5 and it seems to be working. Although "-x" doesn't appear to be
doing any "backtrace" at all.

it will print a traceback if there is an exception raised in your program. at least, it should.. :-)


mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

srepmub

unread,
Jun 19, 2011, 8:09:29 AM6/19/11
to shedskin-discuss
packaged for windows, and announced:

http://shed-skin.blogspot.com/2011/06/shed-skin-08-programming-language.html

thanks,
mark.

junyi sun

unread,
Jun 19, 2011, 9:19:16 AM6/19/11
to shedskin...@googlegroups.com
make failed on windows xp sp2


C:/shedskin-0.8/shedskin/shedskin/lib/builtin.hpp:25:22: fatal error: execinfo.h
: No such file or directory
compilation terminated.
In file included from C:/shedskin-0.8/shedskin/shedskin/lib/sys.hpp:4:0,
                 from C:/shedskin-0.8/shedskin/shedskin/lib/sys.cpp:1:
C:/shedskin-0.8/shedskin/shedskin/lib/builtin.hpp:25:22: fatal error: execinfo.h
: No such file or directory
compilation terminated.
In file included from C:/shedskin-0.8/shedskin/shedskin/lib/re.hpp:7:0,
                 from C:/shedskin-0.8/shedskin/shedskin/lib/re.cpp:1:
C:/shedskin-0.8/shedskin/shedskin/lib/builtin.hpp:25:22: fatal error: execinfo.h
: No such file or directory
compilation terminated.
In file included from C:/shedskin-0.8/shedskin/shedskin/lib/builtin.cpp:1:0:
C:/shedskin-0.8/shedskin/shedskin/lib/builtin.hpp:25:22: fatal error: execinfo.h
: No such file or directory
compilation terminated.
make: *** [fib] Error 1

Mark Dufour

unread,
Jun 19, 2011, 9:58:21 AM6/19/11
to shedskin...@googlegroups.com
thanks for mentioning! :D

I screwed up. after noticing shedskin -x didn't work, I disabled this, but forgot to create a new package.. :-) I'm uploading a new package at this moment..

mark.
--
http://www.youtube.com/watch?v=E6LsfnBmdnk

Reply all
Reply to author
Forward
0 new messages