Archive for 2008

Primary repo switched to git

By farcaller December 22nd, 2008

Primary FOW repo has switched to git. You can see it via web here and clone from this url:
git://git.hackndev.com/farcaller/fow.git
Mercurial repo is kept in sync.

SQLitePersistentObjects are now working!

By farcaller December 18th, 2008

I’ve did a port of SQLitePersistentObjects to Cocotron, and now it’s part of libFOW (enabled via BUILD_SQLITEPO option).
Cocotron’s Obj-C runtime doesn’t support properties introspection, so for each descendant of SQLitePersistentObject you must define following selector:

+ (NSArray *)getPropertiesList;

It must return an array of all properties in form of NSArrays with two items: property name and encoded [...]

ab-comparing FOW and Django

By farcaller December 2nd, 2008

I’ve fixed all the stuff that prevented CTemplate from running on linux and did a quick test of FOW and Django using ab (apache benchmark).
Benchmark consisted of resolving a typical URL regexp, loading handler, loading template and rendering static context onto it. Both Django and FOW were running with 2 threads attached to lighttpd via [...]

FOW source code at hackndev.com

By farcaller November 5th, 2008

I’ve made FOW repository available for viewing and cloning. You can browse source in trac or use hgweb on Hack&Dev server to browse and clone repository.

FOW, running on real server

By farcaller November 3rd, 2008

Today I’ve thought that FOW is mature enough to be tested on my linux hardware, so I’ve got updated Cocotron and built FOW on linux.
I have to say lots of thanks to Johannes Fortmann, who has been answering all my stupid questions about GCC, Obj-C runtime and Cocotron.
Now, it is time to really publish some [...]

Bundle loader in FOWCore

By farcaller November 3rd, 2008

I’ve made a basic bundle loader in FOWCore, so now it’s absolutely usable.
What’s FOWCore? That’s an FOW-based application, that you can use if you don’t want to go low-level with FOW. You write handlers in bundles, and then FOWCore will dynamically load and register handling stuff.
Currently that works via config file. First you list all [...]

GET and POST. Session stuff

By farcaller November 1st, 2008

I’ve just implemented nearly all the GET/POST support code in FOWRequest. New implementaion is working better, faster and more secure. All the thread handlers are now wrapped with @try/@catch so server is not going to die on runtime exceptions anymore.
Now working on sessions implementation. Still considering between memcached and sqlite3, but seems that latter is [...]

Notes on ORM and templates

By farcaller October 20th, 2008

As usual, not much news here, but I’m still working on FOW ;) Here goes the summary of last updates:

Got HTTP server from Google Toolbox. It might be useful for testing the code;
ActiveRecord looked too complex for me. You can use anything you want for your ORM, but seems that there will be only some DB [...]

Servers are not the same

By farcaller September 8th, 2008

Today was the day when I finally stopped tweaking ugly builtin Apache config and installed lighttpd on my OSX. Bad news, I’ve coded rather big part of FOWRequest based on mod_rewrite-specific variables!
It took some time to re-implement old functionality, unit tests are still broken, but now I consider some of the advertised functionality as useless. [...]

[you write:server and:client codeIn:@"objective style"]

By farcaller September 6th, 2008

So Objective-J/Cappuccino is now available! You can browse through its tutorial here. I have to say that I’m very impressed, and looking forward to make a demo of both FOW and Cappuccino in action. But first I have to finish up my build instructions…