Some musings. [RSS]
Building Python wheels with Fortran for Windows¶
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 Python.org?
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.
Does it terminate?¶
Here’s a little puzzler: is the following C code guaranteed to terminate?
Data smoothing in N dimensions¶
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.
Linking to Google Scholar via BibTeX and hyperref¶
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?