Im Licht der neulichen Python-Experimente muss man die Concurrency-Bibliothek von Java 1.5 [↪] sehr lobend erwähnen. Wenn man das manuelle Erstellen von Threads und das mühsame Kommunizieren über Locks oder blocking queues gewöhnt ist, dann ist der CompletionService zusammen mit Callables eine sehr elegante und codesparende API, um parallele Programme im producer-consumer scheme zu implementieren. [...]
Entries Tagged as 'programming'
Not exactly a free lunch, but maybe a discounted dinner?
August 30th, 2007 · No Comments
Tags: java · lang:de · programming · work
I have two cores, where’s my free lunch?
August 26th, 2007 · No Comments
I have tried to optimize the TigerXML parser in STA [↪] a bit, the results (graphs are stored in memory, with a 55 MiB corpus, on my Core 2 Duo 2.2GHz): unoptimized: 61.01s optimized: 39.68s That still seemed a bit too slow to me, and I decided to try out some parallelization: since the ID [...]
Tags: lang:en · programming · python · tech
Verweichlicht…
August 16th, 2007 · No Comments
Die IDE an sich Nach einem Jahr verschärftem Toolmonkeyism auf der Arbeit bin ich zu der Überzeugung gelangt, dass auch beim Python-Programmieren ein wenig IDE-Unterstützung nicht schlecht wäre. Eclipse (besonders das erstaunlich stabile 3.3) wächst einem dann doch ans Herz. Nicht dass ich für Python unbedingt Ctrl-1 bräuchte (z.b. den infernalischen Java-Typinferenz-Hack, Variablen ohne Typ [...]
Tags: lang:de · programming · python · tech
Packaging in the rain
Juni 13th, 2007 · No Comments
Turns out that leaving work early and biking home really fast was one of today’s better ideas. Soon after I got home and had finished showering, it started to rain heavily. Normally, I would have been somewhere along the Isar at that time. This way, I could enjoy the cool brought by the rain inside. [...]
Tags: debian · lang:en · programming
Code Grabbing
Mai 31st, 2007 · No Comments
On my last day on the old project, I just ran some statistics over the code. Over nine months, I’ve touched 494 of 513 source files in our project at least once, which is 96.3%. All the automatic refactorings in Eclipse have made this all too easy.
Tags: lang:en · programming · work
XML parsers? But I know regular expressions…
Mai 31st, 2007 · No Comments
Dear WordPress Developers, I won’t even explain to you what is wrong with this statement above. CDATA and Doubly-Escaped Entities So let’s see. In theory, the XML snippets <bla><![CDATA[ä]]></bla> and <bla>&auml;</bla> represent the same DOM tree. In order to see that this is actually true, one can use the Swiss Army Knife of XML handling, [...]
Tags: lang:en · programming · rant
Stockholm.py: The Source Files
Mai 28th, 2007 · No Comments
Having completed the sample solutions for the final exam, the course is now officially complete and the sources for all slides, exercise sheets and example programs as well as sample solutions for all exercises can be downloaded. I plan to give another course like that in the future, but in the meantime somebody else might [...]
Tags: lang:en · programming · python
Eclipse Shmeclipse, pt. I
Mai 11th, 2007 · No Comments
Content Types in Eclipse do not only feel like spoilers bolted on to a pig in order to make it run faster – they also feel like if the pig decided not to like these spoilers at all. Okay, I do admit that we are not using content types as conceived. Just keep in mind [...]
Tags: eclipse · lang:en · programming · rant · work
WP-Syntax Test
Mai 5th, 2007 · 4 Comments
Well, this post is only here to be a public test of WP-Syntax, a syntax coloring plugin for WordPress. 1 2 3 4 5 6 7 8 9 10 from itertools import islice def fib(): x, y = 1, 1 while True: yield x x, y = y, x + y for num [...]
Tags: lang:en · programming · python

![Validate my RSS feed [Valid RSS]](http://shlomme.diotavelli.net/images/valid-rss.png)