Fun With C, PHP and Perl

Recently, I have been working on a few non-work projects. They are websites that need to be very extendable so having a seperate backend, middle-ware and UI is very important. After I began looking into how I wanted to design this I began to consider performance, as these sites could potentially have excessive traffic. Now, as I am a Perl and PHP guru I figured I would start there. In thinking about this, I decided that since performance was an issue, and I couldn't decide between Perl or PHP, I turned to C as an alternative.

In the past I have used XS to extend C code to Perl, but I have never used Zend to do the same in PHP. After considering this for some time, I decided this was the only way to go, but before I could start writing the C framework, I needed to make sure I could figure out how to extend it to PHP.

After a few short hours, I had both a static php binary that contained my new test extension, and a dynamic loadable library of the same extension, which is preferrable. I am really suprised at how easy it was to extend this to PHP. In my opinion it is slightly easier then using XS for Perl, but both aren't really that difficult.

Well, now it's time to begin on the C framework for this project. Once that is done, I intend on extending it to both Perl and PHP, that way I'm not locked into one language or the other. All in all though, I think this is a great opportunity to write one API that can be used in 3 languages.

I will be adding a Project for this to http://www.lukedavison.net/index.php?func=projs in case others are interested in extending C code to PHP and/or Perl.

Treacherous Computing

One of my homies Jeff sent me a link the other day to an article written by Richard Stallman regarding "Trusted Computing", or as he puts it "Treacherous Computing". I am somewhat familiar with the topic and have heard it discussed by others, but I wasn't fully aware of what it was until now.

Anyways, I strongly recommend reading it: http://www.gnu.org/philosophy/can-you-trust.html

Back to the Grind

Today I will be coming home to an empty house once again. While it was nice to have my Mom and Brother visit, I'm glad to have my house all to myself again. Peace and quiet again... at last! Other then that, just trying to put together a trip to San Francisco to see some friends early February. Keeping busy with a large project at work. Oh, and trying to figure out New Years.

Ahh yes, New Years. There are always so many options, but I think I'm not "going out" this year, unless I can find a house party that interests me. Seeing how it is Tuesday, I am really thinking about just saying "fuck it!" and throw one at my house. All I know is that I do not want to go downtown. Too many cops, dumb ass bitches and people being stupid - just doesn't seem worth it this year. I guess it doesn't matter what I do though. I know I will be with friends having fun - and that's all I really give a shit about. =)

Xmas 2004

This year marks the first xmas in my first home!! It was alot of fun. My brother flew up from Livermore, CA and my Mom drove over from Kalispell, MT last Wednesday. Since we were having xmas at my house this year, there was alot of things I had to do, that I haven't had to do in the past. Stupid things like getting a xmas tree, putting up decorations and of course cooking a turkey. All in all though, I think I did a pretty good job. Turkey came out awesome! and the stuffing was pretty good too.

It was nice and quiet though. All of my friends took off for the weekend to go home. Most of them were still in state however, so a lot of them came back last night so we went out - showed my brother downtown Bozeman. It was real nice. Now, I just have to make it through New Years.

Google's Blogger

So, after writing a blog for http://www.lukedavison.net I decided that I just don't have the time to spend adding features that I, or others, want. I had heard that Google owned http://blogger.com, and I had considered it.

But today, I ran across this wonderful imaging software for Windows that is published by a company that Google owns now called Picasa. Picasa works with another service Google owns called Hello!. Picasa has the ability with Hello! to post images to Blogger (wow, that's alot of Google services/companies working together!).

Anyways, since I'm moving to an actual blog now, hopefully I'll have time to update it more frequently! =)