Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Jared Rypka-Hauer
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Jared Rypka-Hauer@ArmchairDeity )

Dennis Clark

Member since Aug 3, 2009

Recent Blog Comments By Dennis Clark

  • Java's AtomicInteger vs. ColdFusion Named-Locking For Incrementing Values

    Posted on Jan 6, 2010 at 11:19 PM

    WOW! @Ben, I'm honored that you thought my comments worthy enough to inspire your own investigation of AtomicInteger and its performance. You, in turn, have inspired me to take your experiment just a little bit further. You can read about what I did and the discoveries I made back on my own blog... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Jan 5, 2010 at 10:38 AM

    @Ben, Yes, an exclusive named lock around the incrementor would prevent the proxy from assigning duplicate IDs. The advantage of a java.util.concurrent.atomic.AtomicInteger object is that it avoids the overhead of CF-level locking and is optimized to be as short as possible. It would be interesting... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Dec 16, 2009 at 3:08 PM

    @Roman, You're right in that in this case it's not a big problem: it's actually a very tiny problem. However a small problem can sometimes be worse than a big problem. For me, the chances are good that if I left such a race condition in my code, my application would work fine for a year before it ... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Dec 16, 2009 at 1:37 PM

    @Roman, The critical section of this race condition is so small that it would be very difficult to demonstrate empirically. It would likely involve creating a very heavy load on the server and a large number of threads to guarantee a hit on the race condition during a test. The above doesn't mean ... read more »

  • Factoring Out Key-Creation For Use With ColdFusion 9 Caching Methods

    Posted on Dec 16, 2009 at 12:04 AM

    @Raymond, The array="#this.getCacheIDs()#" you pointed out is thread-safe because getCacheIDs() is _NOT_ a property getter, but rather a method that returns a new array on each call. @Ben, I took a look at your code and the only race condition I could find was the ++this.autoIncrementer in the ne... read more »

  • Win A FREE Ticket To CFUNITED 2009

    Posted on Aug 3, 2009 at 12:08 PM

    I would like to see the "Thinking Outside of the CF Box" presentation by John Paul Ashenfelter. I have never seen John Paul in person but I did download his presentation on testing a couple of years ago and it completely changed the way I view testing for ColdFusion development. I have recently no... read more »