Alexey Zakhlestin's Blog

Programming for Mac and Web

WebForms2 in Mozilla

Permalink

Alex Vincent recently posted this to WhatWG’s mailing-list:

For anyone interested in seeing WF2 implemented in mozilla.org code, I invite you to read and comment on http://wiki.mozilla.org/DOM:Web_Forms_2.0 . Please bear in mind this is intended as an internal design document, and this is very much a first draft - so it will change!

It means that, finally, WebForms2 spec goes mainstream. Good news for all html-coders out there.

p.s. I am thinking about writing a bigger article about webforms2 later this week.

Pecl_http

Permalink

Today I noticed, that PHP’s manual in http section is updated, to reflect API of pecl_http extension. Looks like we will get it as the default PHP extensions soon. That is really cool.

Congratulations to Mike :)

gmane.comp.web.cache.memcached

Permalink

Nathan Neulinger made a patch for memcached, which adds it ability to work over local unix sockets. This might give memcached one more speed-boost in one-server cases. Patches address server-part and perl-based client part. It shouldn’t be difficult to make similiar patch for PHP

Original note can be found at gmane.comp.web.cache.memcached.

This patch didn’t have official response yet, as Brad Fitzpatrick is, supposedly, away on his honeymoon.

Mac OS Forge

Permalink

Apple announced the launch of the new community-portal, dedicated to supporting development of it’s open-source components. Thougn, Only select projects in Mac OS X are featured at Mac OS Forge.

Here it is: Mac OS Forge

Xcode Update

Permalink

so, we have an update about xcode situation, from the official mailing-list:

[Chris Espinosa]: Xcode 2.4, an update to the Xcode 2 IDE, is announced today and available on connect.apple.com (Access will vary by developer type and geography today as we push the content around the world). This is a public release and it can be discussed freely on xcode-users.

Xcode 3.0 was announced today as the development environment for Leopard, for shipment with Leopard in Spring 2007. The existence of Xcode 3.0 is public and announced, but its features, content, and details are under nondisclosure to seeded ADC members.

Xcode 3.0

Permalink

WWDC opening event was finished by mentioning that apple releases XCode 3.0. I wonder if it will be available for tiger, or will only ship with Leopard’s seeds… This subject is still not mentioned on apple’s site…

probably it will be just leopard, and tiger will just get xcode 2.4

MySQL: Prepared Statements vs. Query Cache. Help Request

Permalink

Jay Pipes recently wrote about a problem in mysql, which basically is, that prepared statements do not use query cache, which results in not-as-good-as-it-could-be performance. You should read the details yourself here: Minding My P’s and Q’s (Prepared Statements and Query Cache Episode 3).

Essential part of the message is, that he looks for volunteers to help resolving the situation. If you feel like you can help — drop him a note. thanks.

“Hello World!” in Haskell

Permalink

Everyone wants “hello world” application for being convinced, that the thing can work. Here is one written in Haskell and web-related. It’s quite straight-forward:

import Network.FastCGI
import Text.XHtml

htmlPage
  = header
    << thetitle
      << "Hello World!"
  +++ body ! [ bgcolor "white"] << "Hi"

main = runFastCGIorCGI (output (renderHtml htmlPage))

To make it working, you need GHC and fastcgi library (with all it’s dependencies)

Status Update

Permalink

I am sorry for not blogging anything, lately. Basically I was too busy coding different stuff for money. ;)

Now, that I finally finished all the important stuff I will continue writing here. My main points of interest, for now, are:

  • PHP 5.2 (looking forward to speed optimizations, json and filter)

  • Pake

  • Symfony (I am currently involved in a symfony-based project)

  • Haskell (FP is applicable to web-stuff and is damn elegant)

p.s. (about Haskell…) I actually find myself, lately, insisting on the clean separation of logical part of web-application and IO stuff. The approach is similiar to the recently overhyped MVC paradigm. While such approach takes some effort to achieve in PHP, in the pure functional languages (such as Haskell) this distinction is more than natural. You do all the data-crunching and concatenation stuff in the first layer of your applpication and interact with outer world using the IO monad [FP]: Functional Programming [MVC]: Model View Controller

Brainbench Certs

Permalink

There seems to be a trend, recently, toward passing brainbench tests. Well, why not? It’s been a while since I tried anything like that… ;)

Well, the result is:

PHP 5. Master Score: 4.44 Scored higher than 96% of all previous test takers.

transcript ID# is 168320, if anyone cares about details


I doubt I will say anything new, if I will mention, that brainbench are awfully boring and are mostly solved by manual lookups

The test is here, in case you want to cehck it yourself ;)