Thursday, August 28, 2008

for eachConcurrently

For those who have wondered how to implement Neal Gafter's example 'for eachConcurrently' API with BGGA Closures, here's one attempt:

ForEachConcurrently.java

There's a bonus 'for eachEntryConcurrently' in there as well.

I'm sure it can be improved (suggestions welcome) and it certainly deserves a decent explanation, which is coming, but I'll make one comment at this point:

Adding support for nonlocal transfers across different threads required two lines of code.

Two lines is easy. I like easy. Especially when threads are involved.

Wednesday, August 27, 2008

NetBeans vs Closures

It's alive!



Well, actually it's kinda surviving on life support at the moment, but hey.

It could do with some syntax highlighting support too. And refactoring. And and and...

(If you're wondering what this is all about, it's NetBeans using a hacked into shape version of this compiler)

Sunday, August 24, 2008

Fun with javac and NetBeans

Well, when I say fun, what I really mean is lots of pain and misery persuading NetBeans to use alternative versions of javac, such as the one now available here.

Makes for a nice screenshot though: