Archive for the ‘General’ Category

Jeene update: Performance, features and backlog

Sunday, September 21st, 2008

Don't know what Jeene is? It will make your JavaScript code run faster ;-) read the intro first, then come back to this! Performance examples I was curious about the performance gains of functions specialized via Jeene, so I ran a simple performance example in Firefox 2 and 3; Safari 3.1.2; Opera ...

Jeene: Status

Tuesday, September 16th, 2008

I am happy that Jeene was mentioned on Ajaxian today. This is good ;-) it means that the project is more likely to attract potential contributors which is nice since there is quite some work yet to be done. I thought, I would provide a status update on Jeene ...

Jeene: An automatic partial evaluator for JavaScript

Sunday, September 14th, 2008

The purpose of this posting is to show that is is possible to create an online partial evaluator for JavaScript, written also in JavaScript. As far as I know, this has been not been done before. This post is the first in a series describing the inner workings of Jeene. A ...

Probability Theory: The Logic of Science

Monday, August 18th, 2008

This is a bit of an unusual posting. It was triggered because I am frustrated, having just written my third review for the journal TAAS, which I accidentally agreed to do reviews for at some point during my PhD studies. I still review papers on computational trust models which was ...

Fibers: an exercise

Friday, August 15th, 2008

I was involved with arranging and hosting the RubyFools 2008 conference (it was a great conference btw). One of my jobs was to come up with a bunch of Ruby exercises for our Ruby cave. I decided to go with exercises on the new Ruby 1.9 Fiber class since it ...

Fibers: a solution

Friday, August 15th, 2008

Here I will post a solution to the Fibers exercise... Post your solutions as comments. Your code should at least pass the following simple test: require 'fiber_stack' require 'test/unit' class FiberStackTest < Test::Unit::TestCase def test_simple fs = FiberStack.new assert fs.empty? ...

Keeping it dry: Generating JavaScript models from Rails models

Tuesday, August 12th, 2008

As I've mentioned before, I advocate using a Model-View-Controller pattern for certain types of JavaScript-heavy web-app clients. In spite of recent licensing issues, I still think ExtJS is among the better libraries supporting MVC. For example, (if you don't know what namespace/using are, please read this) namespace('dk.okooko.model'); using(dk.okooko.model).run(function(m){ ...

Syntax-highlighting in web pages

Tuesday, July 29th, 2008

I've recently moved my blog to http://blog.higher-order.net. In this transition I used Wordpress' feature of importing blog content from my old blog: higher-order.blogspot.com. Unfortunately all the line-breaks from the pre-formatted JavaScript source code disappeared in the process, and so, I will have to insert it manually. This whole process reminded me ...

blog moved

Monday, July 21st, 2008

I've moved my blog to blog.higher-order.net -- welcome again ;-)

Manual code specialization:a poor-mans partial evaluation in JavaScript

Friday, July 4th, 2008

Recall the object function that Douglas Crockford is promoting in his work on prototypal inheritance in JavaScript: function object(p) { function F(){} F.prototype = p; return new F(); } The object function creates a new object which has the input object (p) as it's prototype. On the comp.lang.javascript ...