favorite programming language jokes

These started coming up at work and people kept chiming in new ones. Here’s a list. Sorry in advance for the offensive one.

  • What’s a pirate’s favorite programming language?
  • What’s a miner’s favorite programming language?
  • What’s a hispanic’s favorite programming language?
  • What’s a diver’s favorite programming language?
  • What’s a mongoose’s favorite programming language?
  • What’s a Seattleite’s favorite programming language?
  • What’s the army’s favorite scripting language?
  • What’s the little mermaid’s favorite scripting language?
  • What’s Beethoven’s favorite programming language?
  • What’s a Frenchman’s favorite programming language?

Hilarious. Answers below.

Continue reading favorite programming language jokes

building a python extension with trilinos on linux and windows

Continuing my python extension project, I’ve now successfully built a toy python 2.7 extension in C++ that uses the Epetra package from Trilinos 10.8. I’ve built it on Ubuntu 11.10 (with gcc) and on Windows XP (with Visual Studio 2008) using distutils. It’s a bit of a hack, but it works and is a path forward for me.

I started with Linux, because I figured it would be easier. I learned a few things along the way. First, you have to have built Trilinos with shared libraries enabled. This is required for how Python handles things, I guess, and is made clear under the heading “Shared Libraries” in this file. The PyTrilinos package (which is effectively a professional set of python-trilinos extensions, btw. I needed a custom one!) needs them as well. So run your cmake-gui and check the shared libraries button. Besides the libepetra.a in the build folder, you’ll now also find a libepetra.so. In Windows, you’ll get >500 errors if you compile all of trilinos with shared libraries, but Epetra at least worked.
Continue reading building a python extension with trilinos on linux and windows

my experience compiling against Trilinos on Ubuntu

I’m just embarking on a historic journey to learn a bit about the Trilinos math library.  To get started, I’ve gone through the hands-on tutorial a bit and after a few tries, I’ve gotten something compiled.

Trilinos 10.4 is available in the repositories for Ubuntu (11.10 confirmed). But Trilinos 10.8 is out now, so I had to build my own. Their instructions with CMAKE were quite good and the build process didn’t have too many hiccups. I found that the cmake gui is the way to go. Make sure you enable Didasko (the tutorial) in the cmake gui. When you do this, a few more Didasko options show up so you have to go enable those too.
Continue reading my experience compiling against Trilinos on Ubuntu