9 Apr 2008 tampe   » (Apprentice)

Be brave, walk out into the dark, and light up the world

If you sit on your back waiting for a dead useful smart thing to do you will never ever get a broad experience or be just experienced with a limited region of space and not quite as armed with tools to attack the unknown when it matters. I advocate for anyone to have their share of exploration and quite frankly it will surprisingly more often pay you back than you might think

This is my latest stupid idea and how it went. As you probably know I just decided to lock at a for loop as a kind of functional map operation and just explore the space of these different kind of map operations. The main reason was that I wanted a loop construct and there was none in Qi without turning to Lisp which can be awkward until the next release of Qi. So I made a Qi initial map construct similar to the lisp loop macro but functional and wow, it worked, but wtf, It was 10000 times slower on the problem of doing (for i in (times 1000) summing i) e.g. let i go from 1 to 1000 and sum up the iterate variable. I dumped the Qi code to lisp code and ,hrm, When applying a function variable to a set of argument it automagically constructed a series of currying operations instead of a simple funcall on all arguments. the solution was of cause to directly use funcall. I will ask on Qi:s mailing list for the prefered solution later on. And this knowledge means that my stupid ideas payed off, I will now not need to track a huge pile of my own crap code in Qi to dig down to this fact.

As a side note. I still like Qi, it might not be perfect in all edges but where an imperfection exists the solution is close at hand. Now let's go out to the dark and have some fun ...

Latest blog entries     Older blog entries

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!