<?xml version='1.0' encoding='utf-8' ?>
<rss version="2.0">
  <channel>
    <title>The Twilight Report</title>
    <link>http://www.wdlabs.com/twilight</link>
    <description>The Twilight Report - WhiteDactyl.com</description>
    <lastBuildDate>Fri, 25 May 2012 08:33:52 GMT</lastBuildDate>
    <generator>NX</generator>
    <image>
      <url>http://www.wdlabs.com/twilight/icon/twilight.jpg</url>
      <title>The Twilight Report</title>
      <link>http://www.wdlabs.com/twilight</link>
      <width>100</width>
      <height>100</height>
    </image>
      <item>
        <guid isPermaLink="true">http://www.wdlabs.com/twilight/entry/20080925.1203</guid>
        <pubDate>Thu, 25 Sep 2008 16:03:00 GMT</pubDate>
        <title>lp0 on fire</title>
        <link>http://www.wdlabs.com/twilight/entry/20080925.1203</link>
        <description>&lt;p&gt;I wonder why they bother teaching concurrency in computer science.
There is this &lt;a href=&quot;http://en.wikipedia.org/wiki/Dining_philosophers_problem&quot;&gt;funny problem&lt;/a&gt; 
they teach you,
involving &lt;i&gt;n&lt;/i&gt; philosophers and &lt;i&gt;n&lt;/i&gt; forks and a big pot of spaghetti
which, if you solve it wrongly, could cause &lt;i&gt;n&lt;/i&gt; philosophers to
die of starvation.  It's a well understood problem, and there are tones
of tools to address it properly, most of which have been around for 
decades on every platform imaginable.&lt;/p&gt;

&lt;p&gt;When I was working on parallel abstraction and timing at The Company,
I went to a lot of effort to make sure that it worked concurrently.
This put me in conflict with people who were too lazy to make sure
their code worked properly in parallel.  I even tried to make tools
to make it easier for them to make code parallel safe, but no, that
was too much effort, even though it mostly amounted to using a different
class with the exact same interface.&lt;/p&gt;

&lt;p&gt;In my current job at &lt;small&gt;s-mart&lt;/small&gt; we use a locking mechanism which 
has an inherent race condition.  Which means if something goes wrong
it might corrupt data.  Admittedly, the odds of that are quite low,
but I don't understand why we don't use proper locking (ie. flock),
which isn't conceptually any more complicated than the
&quot;simple&quot;&lt;sup&gt;[&lt;a href=&quot;#20080925.12031&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt; locking scheme that we use.  In my 
last job at Company 2, we had a similar locking scheme, but
it was hand coded, they didn't even bother to re-use the &quot;simple&quot;
locking scheme provided by perl for systems that don't have 
flock&lt;sup&gt;[&lt;a href=&quot;#20080925.12032&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt;.&lt;/p&gt;

&lt;p&gt;I found this list of the 
&lt;a href=&quot;http://technologizer.com/2008/09/18/errormessage/&quot;&gt;The Thirteen Greatest Error Messages of All Time&lt;/a&gt;.
I can't help but wonder if a bit more time thinking about 
concurrency could have kept some of these from happening often
enough to make the list.&lt;/p&gt;
&lt;br/&gt;&lt;br/&gt;&lt;hr width=&quot;20%&quot; align=&quot;left&quot;/&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;a name=&quot;20080925.12031&quot;&gt;&lt;/a&gt;read as: broken&lt;/li&gt;
	&lt;li&gt;&lt;a name=&quot;20080925.12032&quot;&gt;&lt;/a&gt;and even Windows perl has adequate flock emulation now,
so why is anyone using this again?&lt;/li&gt;
&lt;/ol&gt;
</description>
        <comments>http://www.wdlabs.com/twilight/entry/20080925.1203</comments>
      </item>
      <item>
        <guid isPermaLink="true">http://www.wdlabs.com/twilight/entry/20041218.1818</guid>
        <pubDate>Sat, 18 Dec 2004 23:18:00 GMT</pubDate>
        <title>Paper Clips</title>
        <link>http://www.wdlabs.com/twilight/entry/20041218.1818</link>
        <description>I'm thinking about cooking some pasta for dinner, which of course brings up the whole low carb thing.  It's a serious inconvenience that pasta is now worse than slathering your blood red cow stake with the thickest bacon grease imaginable, because when cooking for people you have to think up something more complicated to make.  So I send Tyler an IM asking: &quot;are you on any of those funky low carb diets?&quot;  in hopes that if he comes out to visit me in New York I can make something simple like pasta.  But he doesn't answer me right away.
&lt;BR&gt;&lt;BR&gt;
I decided I really needed a paper clip.  I riffled through my desk drawer, but come up with nothing.  I decide to go buy some and tell Tyler: &quot;i need to go get paper clips.  i'll be back in a bit.&quot;
&lt;BR&gt;&lt;BR&gt;
To which he responds: &quot;no; they don't work.  my dad actually wrote a book which describes why&quot;
&lt;BR&gt;&lt;BR&gt;
I was about to walk out of the room, but I stop with a feeling of dread in my heart.  Suddenly I had been thrust into some strange universe where Mr. Spock has a goatee and for some reasons all paper clips have become non functional.  I wonder what else is different about this parallel universe?  And why did Tyler's father write an entire book on why paper clips don't work?  I've been so wrapped up in the future and being an optimist and all that B.S. that I have made myself susceptible to believing it just may be true when somebody tells me something like &quot;paper clips don't work.&quot;
&lt;BR&gt;&lt;BR&gt;
&quot;huh?  what?&quot;  I type.
&lt;BR&gt;&lt;BR&gt;
Then I remember the question before that.  &quot;oh.  heh.  cool.  got confused there.&quot;
&lt;BR&gt;&lt;BR&gt;
Tyler responds with: &quot;the diets&quot;
&lt;BR&gt;&lt;BR&gt;
&quot;i thought you were saying PAPER CLIPS didn't work.&quot;
&lt;BR&gt;&lt;BR&gt;
Relieved that I wouldn't have to double check my Star Trek DVDs to insure that Spock didn't have any extra whiskers (except of course for that one episode that he did), I went off to get some paper clips.
&lt;BR&gt;&lt;BR&gt;
On the way back I'm listening to a CD I burned with just music that I like to listen to and none of the extra chaff which is on those CDs that those musical corporations expect us to buy.  It struck me recently that with the exception of the first (&quot;reptile&quot;) and last song (&quot;suicide notes&quot;) it is all &quot;happy&quot; music, and that I haven't been much interested in listening to the &quot;unhappy&quot; tracks.  Guthrie used to imply that the fact that I used to listen to depressing music made me unhappy.  I contend (as I did then) that I listened to depressing music because I &lt;I&gt;was&lt;/I&gt; depressed, and now that I prefer to listen to &quot;happy&quot; music because I am optimistic.
&lt;BR&gt;&lt;BR&gt;
For a second there it didn't even bother me that I still don't have plans for New Years Eve.  It occurs to me that New Years Eve is really Old Years Night... and is so about the past, not The Future.</description>
        <comments>http://www.wdlabs.com/twilight/entry/20041218.1818</comments>
      </item>
  </channel>
</rss>


