Personal tools
You are here: Home Weblog Archive 2009 January

Entries For: January 2009

2009-01-31

SimPy 2.0

Filed Under:

SimPy 2.0 has been released! I haven't played with it much yet, but it looks like a substantial improvement over 1.9. The object oriented API requires about 10% more code for small models, but should pay off for larger ones.

What is new in SimPy 2.0?

Object Oriented API

In addition to its existing API, SimPy now also has an object oriented API.

The additional API

  • allows running SimPy in parallel on multiple processors or multi-core CPUs, using Parallel Python.
  • supports better structuring of SimPy programs,
  • allows easy extension of model classes by sub-classing, thus providing a capability for developing application libraries,
  • allows subclassing of class Simulation and thus provides users with the capability of creating new simulation modes/libraries like SimulationTrace, and
  • reduces the total amount of SimPy code, thereby making it easier to maintain.

Note that the OO API is in addition to the old API. SimPy 2.0 is fully backward compatible.

You may download SimPy 2.0 from: http://sourceforge.net/project/showfiles.php?group_id=62366

2009-01-29

Pylons and CouchDB

Filed Under:

PylonsHQ has been remodeled using CouchDB as the database. The most interesting Python web framework meets the most interesting non-relational database. It'll be interesting to see how this works out.

2009-01-25

Iron Mind

Filed Under:

Iron Mind: Stronger Minds, Stronger Bodies by Randall Strossen covers psychological aspects of weight training in considerable detail. While it contains some useful insights, many of the points are presented as stories which seemed contrived to me.

2009-01-20

Snowshoeing

Filed Under:

Not enough snow near by, so my wife and I went to Frisco Sunday and Monday to try out our new snowshoes at the Nordic Center there. Since it was our first time out, I booked a private tour. If you can walk, you can snowshoe, but there is some technique involved, and having someone experienced to guide us was helpful. Snowshoeing is easy on bum knees, and we had a great time.

2009-01-13

Volkswagen BlueSport

Filed Under:

Volkswagen showed it's BlueSport concept roadster at Detroit. It looks like a great combination of fun and fuel economy.

2009-01-10

SimPy Plans

Filed Under:

Good news from the SimPy mailing list:

SimPy Plans for 2009

  1. New Year Greetings to all Simpy users.

  2. I thought you might be interested in current plans for SimPy this year. We have had no bug reports on the current SimPy 1.9.1.

  3. Klaus Muller and other, have been busy in two directions: the next version of SimPy and the eventual transition to Python 3.0.

  4. A beta of a new object-oriented version of SimPy is under test and is available on the Subversion repository. Since this is such a significant change it will be released as SimPy 2.0. The object-oriented capability will allow the development of much cleaner programs and will be a great help in running multiple simulations.

    Many of you will be relieved to know that this will be completely compatible with the current versions and NO CHANGES IN YOUR PROGRAMS WILL BE REQUIRED -- unless, of course, you wish to use the new object-oriented capabilities.

    We are still working on the documentation, using the Sphinx documentation system, the same as that now used for Python.

  5. Klaus is developing a Python 3.0 version of SimPy but we have no plans for immediate release. A beta version could be out as soon as mid 2009 but the current Python 2+ version will be continued for some time in any case.

Tony Vignaux

2009-01-08

Palm Pre

Filed Under:

The Palm Pre looks like a worthy successor to my trusty Treo. Not ready to make the plunge yet, but this is tempting. If only it were world wide capable.

2009-01-06

Programming in Lua

Filed Under:

The small size, speed, and ease of embedding promised by Lua caught my attention, so I downloaded it and began playing. I bought a copy of Programming in Lua, 2nd. ed. to facilitate my explorations. The book is an excellent introduction to the language.

Lua is, for the most part, fairly concise, but requires explicit declaration of local variables which adds some annoying verboseness. I prefer variables to be implicitly local and explicitly declared global. Lua's origin as an interactive data description language probably drove this choice. It is lexically scoped like Scheme, but without all the parentheses and without Python's syntactically significant indentation, so variable scope is determined by code chunks. A chunk may be file, a function, control structure, or a single line. Single line chunks are quite common when using the interactive shell and declaring all your variables global to do much of anything would be a bigger annoyance. I prefer the Python solution, but will keep Lua in the quiver if I need it for resource constrained situations.

2009-01-02

The Last Centurion

Filed Under:

John Ringo's The Last Centurion tells the tale of an American soldier dealing with apocalypse. The premise of the story is to suppose that things generally continue along the path of the early 2000's until 2019, when our planet is hit with both a significant cooling event and a global bird flu epidemic that decimates the population.

With the Four Horsemen on the loose, Bandit Six finds himself responsible for a huge cache of arms and supplies in Iran after most U.S. military forces have been pulled back to the States to deal with the emergencies at home. He has only an augmented company to provide security and eventually has to destroy the weapons and try to get his command across the chaotic Middle East to friendlier territory. They have to fight their way home, rearranging the map in the process.

In this fast paced novel, Ringo explores a possible future that turns a lot of today's presumptions inside out. Current trends are not a reliable indicator of future performance. It's a good read that I found hard to put down.


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: