Chris Warburton's Homepage

Skip navigation
 

Welcome to my site!

This is a place for me to consolidate my online activities. Here you'll find my blog, and more when I get it uploaded. Feel free to browse around and leave plenty of comments, but I'll tell you now that I've got enough herbal medicine, rich Nigerian relatives and penis enlargement devices to last a lifetime, so please stop asking.
 

News

General
By admin

Concatenative Languages

Posted 13 May 2012, 1:55 AM

I've been looking into the rather pompous-sounding genre of concatenative programming languages recently. They are called "concatenative" (essentially 'joining together') because for any 2 programs A and B, the result of run(AB) is the same as the result of run(run(A)run(B)). This also works in reverse, so we can split any program A at any point; if we call the portion on the left side B and the…

Read more (0 comments)

General
By admin

Search and Optimisation Streams

Posted 07 May 2012, 3:59 PM
After an initial spurt of Javascript hacking, the search algorithm pages in my Wiki seem to have stagnated. Have I given up on yet another project? Not quite; I've been building it into a library!

I realised that it's all well and good explaining what search, optimisation, metaheuristics and the like are, but this information is already available elsewhere. The problem with these techniques is not obscurity (most programmers have probably heard of genetic algorithms, at least), and it's not a lack of…

Read more (0 comments)

General
By admin

Currying in Javascript

Posted 20 February 2012, 1:06 PM

In Computer Science, "Currying" (named after Haskell Curry) is a method for specialising functions.

Let's say we had the following function, which takes 2 numbers and gives their product:

Code

var times = function(x, y) {
    return x * y;
};

We can study functions like this by using Alonzo Church's Lambda Calculus system. Church's system does not allow us to write a function which…

Read more (1 comment)

Older news

15 February 2012, 6:04 PM "Strong typing" in PHP
16 January 2012, 10:00 PM Some Search Algorithms
20 October 2011, 12:07 AM Why Are Physicists Bad In Bed?
16 May 2011, 10:15 AM
    Dear World