Programming


MacOS X memory alignment

I had a hard time finding a definitive statement on MacOS X memory alignment so I did my own tests. On 10.4/intel, both stack and heap memory is 16 byte aligned. So people porting software can stop looking for memalign() and posix_memalign(). It’s not needed.

Apr 03 2007 12:00 pm | Programming | No Comments »

I love it when a plan comes together

With some help from Daniel Jalkut, Dave Dribin, Chris Hanson, and of course Andy Matuschak’s Sparkle and Reinvented Software’s Feeder, I finally have a system for pushing Gusto updates that are tied to SVN revision numbers. Once it works, it works pretty good. I might run into some trouble in the future if I were to use a different tree than trunk, but that’ll be a good ways away.

I’m not too worried either because:
a) agvtool will let me set whatever version and marketingversion I want
b) Sparkle will let me explicitly name the next version

Mar 27 2007 11:23 pm | Programming and Software | 1 Comment »

Who is awesome? I am

I just got Ardour working on MacOS X without X11. It’s not stable, but it’s pretty sweet. Also fun: submitting patches to important projects like Gtk+ and having people say “thanks!”

Feb 08 2007 05:26 pm | Programming | No Comments »

GSoC 2006 writeup

The conference went great. It was an “unconference” were people reserve rooms to talk about whatever they want. If other people are interested, they’ll show up. I gave a talk called Rewarding Contributors that was about the various project management tricks I’ve done to pay back people who volunteer on Ardour. Sixteen people showed up and the following discussion, mostly with the Drupal team was very rewarding. There was applause afterwards. It was great.

Google’s campus was large and showed signs of rapid growth. They had over 40 buildings, I think. Their security guys were just dudes who sat under umbrellas in lawnchairs at the entrance to the driveway.

I had a good conversation with a couple of the Subversion developers, who work at Google. Their Poisoness People talk was particularly entertaining.

The whole thing really got me excited to work on Ardour again.

Also, the hotel was pretty nice. It had this late 50s intellectual motif. Lots of Jackson Pollock style paintings and such.

Oct 27 2006 11:01 am | Programming and Software | No Comments »

Google Summer of Code conference!

I’m going to the Google Summer of Code conference this Saturday. I’m flying out to San Jose tomorrow morning.

I’m pretty excited. I’ll be leading a discussion of cheap, homegrown ways to reward contributors to open source projects.

Then, I’ll fly to LA to visit some friends. And since I’ve never been to California before, this is all new to me. Too bad I won’t have time to check out San Francisco. Oh well.

Oct 12 2006 12:30 pm | Life and Programming and Software | No Comments »

Objective-C and libsigc++

I’ve started working on a secret MacOSX project. I decided to use Apple’s Cocoa framework, so that means I have to use Objective-C. The backend I’m basing my project on is in C++ and uses the libsigc++ callback library as an important component of its interface with the frontend. So how do you setup ObjC methods to be called back?

Use my glue header. It will create glue functions at compile time for calling objc_msgSend() with the appropriate arguments.

Example:

SignalActivated.connect (sigc::bind(sigc::ptr_fun(objcsigcglue), self, @selector(CatchSignal:)));

This will call [self CatchSignal:boolValue]. Pretty neat, right? For the majority of callbacks that don’t accept arguments, a mere function pointer cast is needed:

BoringSignal.connect (sigc::bind(sigc::ptr_fun((msgFtn)objc_msgSend), self, @selector(boringSignalCatch:)));

Update: I fixed objcsigcglue.h to work with references that are passed to the callback. It should be much more flexible with other types I haven’t anticipated too.

Aug 31 2006 02:04 pm | Programming | 1 Comment »

The Mother of All Dubbers

From Harrison’s marketing materials:

The recording software behind the X-Dubber is an open-source, highly scalable program called Ardour. The stable, full-featured Ardour workstation has the capabilities you would expect from a state of theart workstation. By focusing on the specific needs of thepost-production community, Harrison has packaged the Ardour workstationinto a robust, streamlined re-recording product that meets the needs ofour world-class customers.

Pretty awesome. Go Team Ardour.

Jul 17 2006 06:06 pm | Capitalism and Music and Programming and Software | 1 Comment »

Stop using deprecated dlopen() constructors

As I re-discovered for the third time last evening, LADSPA programmers still haven’t made the switch from _init() to __attribute__((constructor)) void init() {}.

The older mechanism has been deprecated since the early/mid ’90s. Most operating systems still supported it but with MacOSX 10.4, Apple dropped support when they implemented their own dlopen() support.

I’ve sent an email about it to the LAD mailing list, but apparently no one listened.

May 31 2006 10:33 pm | Programming | No Comments »

fftw and intel iMacs

If you are trying to compile fftw3 on an intel iMac (or any Intel Core processor probably), you’ll need to pass to configure:

–with-gcc-arch=prescott

That will prevent compiler errors complaining about illegal i386 instructions.

May 31 2006 07:12 am | Programming and Software | No Comments »