Archive for 2008

Building, playing

By farcaller August 30th, 2008

I’ve almost forgot what a pain is to build Cocotron’s Foundation on linux
Here are two HOWTO’s: one for gcc, and one for Cocotron. Seems that I’ll be rewriting cocotron’s build script in pure Makefile and get some diff’s to simplify installation.

It’s working!

By farcaller August 29th, 2008

I’ve got the first completely working code!
Screenshot shows FOW running a simple fastcgi server on OSX with Apache2.
What’s implemented:

lots of FOWRequest stuff
URL resolver
CTemplate wrapper in objective-c
FastCGI server controller

I’ll see if this thing can work in linux/cocotron in the morning.
If somebody is interested, here’s the controller code for the page above:

@implementation Handler
 
- (FOWResponse *)handle:(FOWRequest *)rq
{
FOWResponse *rs [...]

Status update

By farcaller August 22nd, 2008

There wasn’t much activity here for a pretty long time. I’ve been working on several iPhone projects, mastering Objective-C magic. That was a nice time and I have somewhat changed the way I look at Objective-C. Anyways that are good news for FOW.
I’ve got Cocotron building natively on linux without major problems. The only thing [...]

Extended templating

By farcaller July 14th, 2008

Looks like CTemplate really does not fit FOW. I’m not going to drop it completely (as I’ve already have basic support for it), but I’m going to make more flexible template system available.
Currently I have an idea of building “pre-compiled” tree of plist-like structure. That seems to be pretty fast and there’s a great possibility [...]

Flexible templates

By farcaller July 7th, 2008

Continuing working with RoR. What looks very different from Django is high utilisation of html-generating methods. While this makes life of programmer simpler, it makes overall execution slower.
Some of such magic might go into FOW (pre-compiling templates and binding to SEL’s for faster execution). Anyways I find CTemplate somewhat restricted now. It’s not possible to [...]

Examining RoR

By farcaller July 6th, 2008

I’ve started coding Ruby on Rails today. This would be my first programming experience in RoR (and in Ruby at all). I have several webapps that I’ve been planning to code in Django, but I’ll give RoR a try to see other way of developing web applications (that might be implemented later in FOW).
Currently what [...]

Trac is up and running

By farcaller July 2nd, 2008

It has been a major PITA but I’ve managed to run Trac alongside with PHP/WordPress. Also I’ve done some basic (and pretty ugly) drawing of FOW logo and decided of “official” name. So, welcome the [F o:W] project Project trac is available at http://fow.farcaller.net/trac. Project mercurial repository would be available till the end of [...]

Regular expressions: part 2

By farcaller July 2nd, 2008

“ObjPCRE is a well documented PCRE wrapper written in 100% Objective-C/C. It can be easily implemented into any Cocoa application. (MIT License)” (from cocoadev).
The code is just two files: objpcre.h and objpcre.m. They are easily compiled “in-tree”, and don’t look like some big ugly crap that I have to carry around. “-lpcre” is ok for [...]

In-tree libraries vs. hard-to-compile dependencies

By farcaller July 1st, 2008

I’ve tried to make an in-tree copy of RegexKit. It mostly compiles well failing on:
Linking CXX shared library libFOW.dylib
Undefined symbols:
“.objc_class_name_NSShadow”, referenced from:
literal-pointer@__OBJC@__cls_refs@NSShadow in RKRegex.m.o
“_NSShadowAttributeName”, referenced from:
_NSShadowAttributeName$non_lazy_ptr in RKRegex.m.o
“_NSUnderlineColorAttributeName”, referenced from:
_NSUnderlineColorAttributeName$non_lazy_ptr in [...]

Regular expressions

By farcaller June 29th, 2008

I wonder, why so nice thing as Cocoa has nothing built in for regular expressions matching. There are various 3rd-party frameworks, and I can still use plain PCRE.
If this was Mac-only project I’d just use RegexKit framework. It looks very nice, and has rich documentation. Bad thing that it is a framework. It might be [...]