Watch, Follow, &
Connect with Us

The Oracle at Delphi













Older Stuff



Archive for November, 2007

Placing your code in the forge - Refining a technique

While preparing for this posting, I had the chance to review the code in my Parallel.pas unit.  I was trying to get my implementation of TNestedTask<T> to work properly with nested functions.  The problem I had is that with Win32 generics, you cannot have BASM (Built-in ASseMbler) blocks in the bodies of the methods in [...]

Posted by Allen Bauer on November 21st, 2007 under CodeGear | 11 Comments »

When code lies - A better solution

Many of you wretched and guffawed at my silly post about Stupid Enumerator Tricks. You know what? I agree. It was a hideous misuse of a feature. One comment from Joe White that stood out was the notion that the code was lying. He is right. I was using a a side-effect as the primary [...]

Posted by Allen Bauer on November 21st, 2007 under CodeGear, Delphi, Generics, Work | 3 Comments »

Automated Testing - Learn it, Live it, Love it

 
Steve Trefethen may be an ex-CodeGear employee, but he is still adding significant value to the developer community as a whole.  Looks like he’s started a series of posts where he’ll talking about test automation and the advantages it gives you.  Sure, everyone knows about unit-testing (at least you should), but Steve is talking about [...]

Posted by Allen Bauer on November 14th, 2007 under CodeGear | 1 Comment »

Stupid Enumerator Tricks - And now for something completely different

Sometimes I get admittedly kooky, crazy ideas.  While playing with Tasks, ParallelFor, and Thread Pooling, a rather interesting thought popped into my head.  I’ve been pouring over the very interesting ideas and techniques outlined in this article on MSDN that is referring to the Parallel FX library that is in the works for the .NET [...]

Posted by Allen Bauer on November 12th, 2007 under CodeGear | 17 Comments »

Magical Assembler Incantations - Nested functions and anonymous methods

A few folks left some comments on my Life and Times of a Thread Pool post asking to comment on and explain what those little snippets of assembler do in the LocalParallelLoop() function in the TThreadPool class.  You can get the code to which I’m referring in this Code Central entry.
First a little background.  Object [...]

Posted by Allen Bauer on November 7th, 2007 under CodeGear, Delphi, Work | 11 Comments »

Delphi, Adelphi, & Flickr

Back in March of this year, you may recall that I’d traveled throughout Australia and parts of Asia.  While in Australia I visited Sydney, Melbourne and Brisbane.  While in Melbourne I stayed at a rather eclectic hotel with the rather apropos name, Adelphi. It was very much a "bohemian" place to stay.  So much so [...]

Posted by Allen Bauer on November 5th, 2007 under CodeGear, Delphi, General, Links, Personal, Work | Comment now »

The Life and Times of a Thread Pool

As promised in this post, I’ve uploaded a demo project to Code Central. This is an implementation of Conway’s Game of Life using a thread pool and a parallel loop. It uses a 500×500 wrapping grid in which only a portion is displayed in the UI. No calculations of the next generation are done in [...]

Posted by Allen Bauer on November 2nd, 2007 under CodeGear, Delphi, IDE, Parallel Programming, Work | 14 Comments »

Server Response from: BLOGS1