Archive for category programming

PitaTranslate…online

First, I know it’s been quiet around here. Sorry about that. I have no excuse but laziness, so I can’t promise anything better in the future. Edit: …Ugh…Somehow wordpress didn’t notice the three or four other paragraphs I originally wrote for this post. You’ll have to take my word that it was moving prose indeed.┬áSo, […]

,

2 Comments

APHW

I recently started looking at HamsterDB, a BerkeleyDB-like database system. In a nutshell, it provides simple, bare-bones key-value storage with ACID properties. It promises to be fast and small, and my initial (meager) experimentation seems to bear that out. Unlike Berkeley, it seems to choose simplicity in its API rather than providing every possible knob. […]

, ,

Leave a comment

Boost.Python and Handling Python Exceptions

Handling Python exceptions from C++ code requires diligence
and consistent checking of error codes, and, really, who wants to deal
with that? A more natural system is
one in which Python exceptions are somehow converted to C++ exceptions
at the Python-C++ boundary, and where exception propagation continues
out of Python into C++.

, , ,

2 Comments

New Project: sxs

I started a new project today called sxs (short for “side-by-side”). It’s another translation tool, this one designed to help me read things like newspaper articles. The basic premise is that it takes the source text, splits it into sentences, and then displays each sentence with its translation immediately below it. It’s largely functional now, […]

, ,

Leave a comment

Simplifying branches with virtualenv

In my last post I linked to a review of virtualenv, a tool for creating “isolated Python environments”. In a nutshell, virtualenv builds sandbox installations of Python to which you can “switch” in order to isolate yourself from other installations on your machine. Each sandbox has its own Python executables, libraries, and headers, so, for […]

2 Comments

Doug Hellmann on IPython and virtualenv

Here’s Doug Hellmann’s overview two excellent python tools, IPython and virtualenv. IPython is an enhanced python interactive shell. virtualenv is a tool for creating “sandbox” python installations. http://www.doughellmann.com/articles/CompletelyDifferent-2008-02-ipython-and-virtualenv/index.html

,

Leave a comment

Visualizing in-place sorting algorithms

This guy’s work on statically visualizing sorting algorithms is beautiful and awesome. http://www.hatfulofhollow.com/posts/code/visualisingsorting/index.html http://www.hatfulofhollow.com/posts/code/timsort/index.html

Leave a comment