Strangelights

Another tech blog.

Yesterday’s blog post contains a glaring error. Thanks to Eamon Nerbonne for point this out, his comments are very insightful so rather than reiterating them its best you read them for yourself. The basic problem was that the measurements of the speed of + - * operators was wrong since the compiler had spotted that the results of the operation was not used and therefore had not generated code for the loop. I was a little suspicious that the loops were happening too fast, but didn’t investigate further assumed that no optimization was happening as the loop that tested the / operator was clearly taking place (if there was optimization of a loop contain a / operator then why would there be optimization of a loop containing a + - or * operator?) and also I was expecting a big difference to make it worth mentioning in the disruptor technical paper.

Continue reading ...

I recently read the “Disruptor: High performance alternative to bounded queues for exchanging data between concurrent threads” by the people at LMax. Some deeper thoughts on this are coming later. One interesting little tip-bit I learned is “On most processors there is a very high cost for the remainder calculation”, in other words calculating a modulus is slow. The paper goes on to say “This cost can be greatly reduced by making the ring size a power of 2. A bit mask of size minus one can be used to perform the remainder operation efficiently.” In other words:

Continue reading ...

 

Blog Comments

Published: 2011-08-22

I’ve just noticed blog comments haven’t been working since my upgrade to the latest version of Subtext (about 10 days ago). This seems to be fixed now. Apologies to anyone who had left a comment, feel free to leave it again. I‘ll try and keep a closer eye on this in the future.

Continue reading ...

 

Post-it note art

Published: 2011-08-22

Post-it note art like the below example seems to be popping up all over la Defense. Is this phenomenon limited to la Defense are they just copying what’s popped up elsewhere?

Continue reading ...

As I’ve mentioned before I’m very happy that I’ve been invited to speak at Stack Overflow’s Dev days. Since I first mentioned it the schedule has really been filled and is looking very good. I’m really looking forward to seeing the talks by Julian Browne and Andrew Pattinson on “NoSQL in the Enterprise” (as you might have guessed after yesterday’s post), Mark Levy on “Algorithms on Hadoop” and Michael Barker on “Performance & Technology Folklore”. I’m especially looking forward to Michael Barker’s talk as I’ve been reading about the “Magic Ring Buffer” and also having a look at its source. I’m also looking forward to seeing Joel Spolsky talk, yes I’m a bit of a Joel on Software fan boy.

Continue reading ...

Today’s world is a confusing place. There are literally 1000 of choices available to us, in almost every domain. To take a mundane example there must be about 40 or 50 places to get lunch within easy walking distance of where I work, one could waste a lot of mental energy weighing up the merits or each restaurant and sandwich bar or you could do as I do and eat at the same place most days. It’s a mental shortcut, rather that weighing up the merits or each place and choosing the best I simple take one that I know to be good enough.

Continue reading ...

Way back in 2005 Nguyen Van Thien and Dinh Thi Thuy Nga, two computer science students from Vietnam, got in contact asking me to help them share the “Chinese Chess” computer game they’d written in F#. The game plays well and has nice graphics and sounds, quite an achievement given that F# was still in its infancy back in those days. Naturally I want to help them so I gave it a place on my website.

Continue reading ...

 

I’m on FPish!

Published: 2011-08-15

Just a quick note to say the guys at IntelliFactory have created a great little site called “FPish” dedicated to Functional Programming training material and course. My profile can be found here.

Continue reading ...

I’ve been neglecting strangelights.com a bit lately, mainly due to lack of time. So, today I finally got round to fixing a few things that had been bugging me and clean away some of the old and out of data material, especially in the F# resources section. I’ve also upgraded to the latest version of subtext as a few people have reports some minor bugs with the comments system to me, so hopefully this will fix them.

Continue reading ...

 

A test post

Published: 2011-08-13

Yay!

Feedback:

Continue reading ...
Previous 4 of 19 Next