Showing posts with label 1. Show all posts
Showing posts with label 1. Show all posts

Friday, October 28, 2016

Shed Skin 0 7 1 Help needed!

Shed Skin 0 7 1 Help needed!


I have just uploaded the tarball for Shed Skin 0.7.1, which fixes several important problems in 0.7, and adds a few minor features. The Windows version and hopefully the Debian/Fedora packages will follow shortly. As usual, please see the release notes for an overview of all the changes.

There arent any major new features, because I havent received much feedback since 0.7. Please let me know if you run into any problem, so it can be fixed, or if you know of some interesting program I could play with! Id also like to take this opportunity to ask for some help in specific areas.

Excitingly, Thomas Spura was able to get Shed Skin 0.7 accepted in the Fedora repositories! :D Thanks to Thomas for that! Inspired by this, Id like to hear from anyone who might be interested in assisting/motivating Paul Boddie to get his Debian package accepted in the Debian/Ubuntu repositories. I think if it got past the scrutiny of the Fedora people, this shouldnt be too hard.. :-)

I would also really appreciate to see some description of Shed Skin on Wikipedia (again), because I think it deserves this, especially since the scalability improvements in 0.6. But also of course because it sends lots of users to the homepage. If youd like to work on this, please see this thread with links to independent blog entries and even a book that describe or benchmark Shed Skin. For a summary of how the type inference part works, please see my recent 0.7 announcement.

Since a while, inspired by the LibreOffice project, there has also been a page in the Shed Skin wiki that lists some easy tasks that one could try and tackle, to hopefully make it easier to start contributing to Shed Skin. I try hard not to fix these problems myself, in the hope someone else will pick them up.

update: I just added another great new example to the 0.7.1 tarball, a quantum monte carlo simulator by Mark Dewing. shedskin takes about 10 minutes on my PC to analyze its 1,200 lines of code (sloccount).


Shed Skin 0 7 1 Help needed!

Wednesday, October 26, 2016

Shed Skin 0 0 5 1 Released

Shed Skin 0 0 5 1 Released


I have just released Shed Skin 0.0.5.1. It contains many small bug
fixes, but more importantly it enables GC again (argh! :P) This should
make some of bearos tests run a lot faster. As per his suggestion, I
also copy-pasted float hashing from CPython, which should make his
dict_speed test run much faster. I also made some improvements for
programs consisting of multiple modules. See test 139 for a partial
overview of the smaller bug fixes.

As usual, see shedskin.sourceforge.net for downloading SS.


Shed Skin 0 0 5 1 Released

Friday, October 21, 2016

Shed Skin 0 9 1

Shed Skin 0 9 1


I have just released version 0.9.1 of Shed Skin, a restricted-Python (2.4-2.6) to C++ compiler. This is a maintenance release, so no new major features were added. Most interesting perhaps are optimizations for itertools.product and str.join. Other than that, its mostly bugfixes and a new (hq2x image scaling) example. Please see the release notes for more details.

In the meantime, Paul Boddie has succeeded in getting Shed Skin 0.9 accepted into the Debian repositories, which is awesome for me personally.


Shed Skin 0 9 1

Thursday, October 20, 2016

Shed Skin 0 1

Shed Skin 0 1


(Shed Skin is an experimental (restricted-)Python-to-C++ compiler.)

After several years of development and thirty releases, I have finally released Shed Skin 0.1. While still experimental, all the basic pieces are now in place:

-type inference that works for many smallish programs
-support for a useful subset of Python
-support for a good subset of the standard libraries (about 17 modules, such as random, re, os, os.path..)
-extension module generation (including extension classes)
-support for the most common platforms

For this release, I was able to add a Jpeg decoder, at 1,200 lines, an iPod Shuffle programmer, at 600 lines, and a mastermind program to the set of example programs. This brings the total number of example programs to 30, at about 9,000 lines in total.

For Shed Skin 0.2, I hope to be able to focus on improving type inference scalability. So far, Ive spent surprisingly little time on type inference itself, because what I had worked well enough for most test cases. I have quite a few ideas to further improve scalability, and am sure some of these will help a lot.

This release would not have been possible without the generous help of Google (through their GSOC and GHOP programs) and the following people (please let me know if I missed someone):

-B********e
-Brian Blais
-Paul Boddie
-Djamel Cherif
-Mark Dewing
-James Coughlan
-Michael Elkins
-FFAO
-Luis M. Gonzales
-Karel Heyse
-Denis de Leeuw Duarte
-Van Lindberg
-David Marek
-Jeff Miller
-Joaquin Abian Monux
-Harri Pasanen
-SirNotAppearingInThisTutorial
-Dave Tweed
-Jaroslaw Tworek
-Pavel Vinogradov

Finally, I dedicate this release to Hai Fang Ni. Thanks for all your support, and a happy Chinese newyear!!


Shed Skin 0 1

Monday, October 17, 2016

1 300 Napoleonics

1 300 Napoleonics


I managed to get along to the Maidstone club on Saturday for the first time in quite a while and got another chance to play in a 1/300 Napoleonic game.  I was on the  Franco Bavarian side in command of the Bavarian Division and facing the Prussians.

Having surveyed the terrain, our plan was to deploy in depth in the centre with the French in the lead, the my Bavarians followed by our French Cavalry and to use the cavalry to screen any Prussian advance on our right flank whilst the French attacked on our left.

The Prussians deployed all three of their Divisions on our right and advanced down the table using a stream to cover their right flank.  Our French Division advanced around their flank and crashed into their right hand division whilst their left hand division was focussed on trying to push our Cavalry out of the way.

I had deployed one of my Bavarian brigades and the artillery on some hills to our centre and acted as a hinge for our line whilst holding one brigade in reserve.  With the French assault making headway I added a couple of my unit to the fray but was coming under increasing pressure to my right.  After an artillery bombardment our French cavalry was thrown back by their infantry but my Bavarian cavalry stepped into the breach and continued to hold them up.

With our time running out the Prussian division on our left began to withdraw after a valiant fight but having sustained heavy casualties.  The Prussian central division decided to assault my artillery and infantry support but were thrown back decisively on my left; however, despite the artillery using canister they broke through my right.  But it wasnt enough and the day was ours.

Here are a couple of photos - apologies for the quality but I forgot my proper camera (doh!) and was left with only the rather poor one on my phone:

My Bavarians follow up the French advance

The Prussians advance

The Prussians about to move through the town

Cavalry on our right French then Bavarian



1 300 Napoleonics

Friday, October 14, 2016

Shed Skin 0 1 1

Shed Skin 0 1 1


I have just released version 0.1.1 of Shed Skin, an experimental (restricted) Python-to-C++ compiler. It comes with 5 new example programs (for a total of 35 example programs, at over 10,000 lines) and several important improvements/bug fixes. See here for the full changelog.

The most interesting new example is minilight, an elegant raytracer (more precisely, a global illumination renderer) that utilizes triangle primitives and an octree spatial index. As shown on the minilight homepage, it becomes up to 100 times faster.

Other new examples are Peter Norvigs sudoku solver (which unfortunately doesnt become faster, but is a cool example anyway), yet another raytracer and a mastermind strategy evaluator by Raymond Hettinger.

The fifth new example, an interactive circle packing program, is especially nice, because it is, well, interactive, but also because it shows how easy it is to generate an extension module with Shed Skin and use this in a larger program (a Pygame application in this case).

The biggest improvement (if you can call it this) for this release was to drop support for generic types. This simply means that functions that can be called with different kinds of types of objects for a single argument are no longer supported (unless these types have a common base-class, of course). Similarly, generic datastructures are no longer supported. Dropping support for generic types made the compiler core a lot simpler (and 10% smaller!), and removed the need for the -i command-line option.

Seeing the compiler core shrink so much, I was inspired to further refactor several messy areas of the compiler for readability (most notably in infer.py). This means the compiler core has also become a lot more readable/hackable with this release. I hope to continue this work of refactoring (and adding docstrings) with each release from now on, and invite anyone to help out here.

In general, I would really like to receive more help. For example, if someone could take over maintainership of the Windows version (and possible upgrade the MingW distribution that is packaged with it), that would be great. A suggestion on the coding side might be to add keyword support to generated extension modules (see extmod.py), or to optimize some builtins (for example, string/list slicing, see lib/builtin.?pp). But I would also be happy to receive more interesting test cases (most come from a single person at the moment) and/or more bug reports (which I get far too few of.)


Shed Skin 0 1 1

British Wilderness Force 1

British Wilderness Force 1


Ive just finished basing up the first set of figures from the North Star British Wilderness Force set for Muskets and Tomahawks - here are some photos with the unpainted ones for comparison:









British Wilderness Force 1