Some musings. [RSS]

Building Python wheels with Fortran for Windows

Published on 2017-10-08 00:00:00

Problem statement: how to build Python wheel binary packages that contain compiled Fortran code, on Windows, so that they are compatible with the Python binaries from

This is not completely trivial, because the compiler choices are limited by (i) that the C runtime library (CRT) must be compatible with that of the main Python executable, which uses some specific version of the Microsoft C runtime, and (ii) as far as free software [1] Fortran 90+ compilers go, GNU Fortran from the mingw project is still largely the only game in town.

The F90 compiler issue is what was blocking Scipy from putting Windows wheels on Pypi. This plumbing issue was solved with some work, as detailed below.

Read more…

Does it terminate?

Published on 2010-09-21 00:00:00

Here’s a little puzzler: is the following C code guaranteed to terminate?

Read more…

Data smoothing in N dimensions

Published on 2010-09-20 00:00:00

A question popped up in thread on the Scipy mailing list: how to smooth scattered data? I got slightly interested and quickly wrote a nonparametric smoother.

Read more…

Linking to Google Scholar via BibTeX and hyperref

Published on 2009-02-13 00:00:00

Clickable links in the bibliography [of scientific writings] are tons of fun, especially in the age of Digital Object Identifiers when nearly every article in any journal can be linked to. Having a pointer to the article you wanted to see pop up just by clicking on a link avoids the annoying hassle of entering volume and page numbers in various WWW forms. But where do you point your hyperlink to if (a) you are too lazy to keep track of DOIs, or (b) the paper is so obscure that it doesn’t have a DOI, [1] or (c) the reference is a book?

Read more…