Archive for the “programming” category

Closure compiler externs files for underscore and backbone js

by Luke Rodgers on May 8, 2012

As part of some other things I’m working on I’ve begun building upon some existing closure compiler externs files for the Underscore and Backbone js libraries. Both are still in quite early stages, but if you need something like this, (…)

Read the rest of this entry »

Project Euler problem 9 in one line of Haskell

by Luke Rodgers on December 28, 2011

Problem 9 of Project Euler asks you to find the product of the sole Pythagorean triplet, the sum of whose values is 1000, where a Pythagorean triplet (familiar from elementary school math) is a set of natural numbers  a < (…)

Read the rest of this entry »

Performance comparison of doubling a number in javascript

by Luke Rodgers on October 8, 2011

Three ways of doubling, inspired by Will it optimize?
Opera 10.6.3 failed to run the tests.