Vespa Search Engine

I just heard that Oath have released the Vespa Search Engine open source. When I was in Yahoo! it was used for everything. I predict that a company will exist in a few months selling it as a service.

I think Vespa was one of the best written pieces of infrastructure at Yahoo! that I worked on. It was well documented for an internal app and it was blazingly fast. The guys working on it were also super smart. It will be interesting to see where it goes but I think it will be a contender in the search space

Making Oil paint – Demo at Los Altos Art Club

I did a demo at Los Altos Art Club making oil paint. It was good fun and everyone there got to use the mull to see just how hard it can be to push it around on the glass slab. I was originally going to mull some watercolor as well but the cleanup of both would have taken the demo well past the hour so I decided to just do oil. I picked Burnt Umber since it makes lovely paint with linseed oil and nothing else.

Find powers of 3

I saw this question somewhere and thought I’d jot down an answer. I’m sure there’s a bit twiddling method to do this but I think this is about as fast as you’re going to get…

  int power_of_3(uint32_t n) {
    switch(n) {
      case 1: return 1;break;
      case 3: return 1;break;
      case 9: return 1;break;
      case 27: return 1;break;
      case 81: return 1;break;
      case 243: return 1;break;
      case 729: return 1;break;
      case 2187: return 1;break;
      case 6561: return 1;break;
      case 19683: return 1;break;
      case 59049: return 1;break;
      case 177147: return 1;break;
      case 531441: return 1;break;
      case 1594323: return 1;break;
      case 4782969: return 1;break;
      case 14348907: return 1;break;
      case 43046721: return 1;break;
      case 129140163: return 1;break;
      case 387420489: return 1;break;
      case 1162261467: return 1;break;
      case 3486784401: return 1;break;
    };  
    return 0;
  }