coffeescript: who put sugar in my syntax? let’s put an sugar icing on sugar.

features and flaws Reading the doc about it, what I don’t like is Haskell parsing f(a,b) = f a b How to parse f a b c with f:AxB->C->D , a:A, b:B, c:C f(a,b)(c) would be correct, but f(a,b,c) looks intuitive Explicit is better than implicit. BNF-Grammar parser. python LR1-parser is a reasonable restriction to … Continue Reading

From repository over PyPI to debian package: automated

Employing a server script, which uploads github/bitbucket/whatever repositories, extracts some data from readme files and a second script makes a debian package available, maybe compiles C extensions

functional python: a simple infinite list example

The object oriented, “duck typed” programming language python has also some functional features on par with serious functional languages. One example for these advanced functional elements are the infinite lists (as generators and iterators): # sieve of Erastothenes from itertools import count from itertools import ifilter def sieve(possible_primes): next_prime=possible_primes.next() yield next_prime for i in sieve(ifilter(lambda … Continue Reading

Developing Plone on Ubuntu 9.04 with virtualenv

zuletzt verändert: 18.02.2011 15:52 Technical notes to overcome some obstacles Ubuntu 9.04 “Jaunty Jackalope” removed python 2.4 libraries from the distribution, which are necessary to run Zope/Plone. To work in a more defined environment, where other as the system libraries are installed for a specific python, people use virtualenv. Install virtualenv, python-2.4 from the distribution … Continue Reading

svn: ‘…’ has no ancestry information

zuletzt verändert: 18.02.2011 15:52 subversion (1.6.5) and – depending on it – mr. developer complained about some strange missing ancestry information. I tried to commit code from this directory tree: toplevel/ .svn/ … 2ndlevel/ (no .svn here) … 3rdlevel/ .svn/ code_to_commit Trying cd 3rdlevel svn commit -m ‘bla’ produced the error svn: ‘2ndlevel’ has no … Continue Reading