Category Archives: Python

Clouds

I have been having a play with some cloud stuff recently, as hinted at in my last post, and have put together some nice Python objects wrapping APIs/command-line tools so I can do things like: VBox is just my local … Continue reading

Posted in Cloud, Linux, Postgres, Python, Random thoughts, Virt | Tagged , , , , | Leave a comment

How To Interview

One of the things I do at my present job is interview candidates for my team, and occasionally other teams too. I estimate I’ve seen ~150 people over the last 5 years. Of those very few that I do say … Continue reading

Posted in Business, Linux, Oracle, Python | Tagged , , , | 1 Comment

Why

A few thoughts on why I decided to start working on an open source project: I enjoy working in OCaml (functional languages in general, in fact), and need a project to work on that I can take in any direction … Continue reading

Posted in Ocaml, OCIML, Oracle, Python, Random thoughts | Leave a comment

Database types in OCaml and Python

Consider the following Oracle table: Note that both the values inserted were identical. In Python: Same results in SQL and Python. But in OCaml: What happened there? Well, OCaml is seeing the first column as “1.” and the second as … Continue reading

Posted in Ocaml, Oracle, Python | Leave a comment

Dictionary format strings

There is quite a nice feature of Python that allows dictionaries to be applied to format strings, rather than just relying on the position of each conversion specification. To give a trivial example: Becomes: I use this technique all the … Continue reading

Posted in Ocaml, Python | 15 Comments

The List Monad in Python terms

Understanding Monads Via Python List Comprehensions

Posted in Haskell, Python | Leave a comment

The State Monad in Python terms

Consider a function like sin. It is a “pure” function, which is to say that it is referentially transparent – every time you call sin(pi) it will return the same value. You could in fact in C say #define sin(pi) … Continue reading

Posted in Haskell, Python | 5 Comments