<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://everything2.com/">
    <title>untergeek's New Writeups</title>
    <link rel="alternate" type="text/html" href="http://everything2.com/index.pl?node=Everything%20User%20Search&amp;usersearch=untergeek" />
    <link rel="self" type="application/atom+xml" href="?node=New%20Writeups%20Atom%20Feed&amp;type=ticker&amp;foruser=untergeek" />
    <id>http://everything2.com/?node=New%20Writeups%20Atom%20Feed&amp;foruser=untergeek</id>
    <updated>2000-08-20T21:36:41Z</updated>
<entry><title>raking it in (idea)</title><link rel="alternate" type="text/html" href="http://everything2.com:80/user/untergeek/writeups/raking+it+in"/><id>http://everything2.com:80/user/untergeek/writeups/raking+it+in</id><author><name>untergeek</name><uri>http://everything2.com:80/user/untergeek</uri></author><published>2000-08-20T21:36:41Z</published><updated>2000-08-20T21:36:41Z</updated>
<content type="html">&lt;p&gt;A &lt;a href=&quot;/title/euphamism&quot;&gt;euphamism&lt;/a&gt; for &quot;making lots of &lt;a href=&quot;/title/money&quot;&gt;money&lt;/a&gt;&quot;&lt;/p&gt;</content>
</entry><entry><title>machine code (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com:80/user/untergeek/writeups/machine+code"/><id>http://everything2.com:80/user/untergeek/writeups/machine+code</id><author><name>untergeek</name><uri>http://everything2.com:80/user/untergeek</uri></author><published>2000-06-13T22:05:28Z</published><updated>2000-06-13T22:05:28Z</updated>
<content type="html">&lt;p&gt;&lt;a href=&quot;/title/one&quot;&gt;Ones&lt;/a&gt; and &lt;a href=&quot;/title/zero&quot;&gt;zeros&lt;/a&gt;.  It doesn't get any &lt;a href=&quot;/title/low+level&quot;&gt;lower level&lt;/a&gt; than this, this is the code that the &lt;a href=&quot;/title/computer&quot;&gt;computer&lt;/a&gt; actually reads.  I'm always amazed that people used to &lt;a href=&quot;/title/program&quot;&gt;program&lt;/a&gt; in this.  I have enough trouble with &lt;a href=&quot;/title/assembly+language&quot;&gt;assembly&lt;/a&gt;.&lt;/p&gt;</content>
</entry><entry><title>low level (idea)</title><link rel="alternate" type="text/html" href="http://everything2.com:80/user/untergeek/writeups/low+level"/><id>http://everything2.com:80/user/untergeek/writeups/low+level</id><author><name>untergeek</name><uri>http://everything2.com:80/user/untergeek</uri></author><published>2000-06-13T21:57:13Z</published><updated>2000-06-13T21:57:13Z</updated>
<content type="html">The &lt;a href=&quot;/title/nuts&quot;&gt;nuts&lt;/a&gt; and &lt;a href=&quot;/title/bolt&quot;&gt;bolts&lt;/a&gt; of something, where &lt;a href=&quot;/title/generalist&quot;&gt;generalists&lt;/a&gt; fear to tread.&lt;br&gt;
&lt;br&gt;
In terms of &lt;a href=&quot;/title/programming&quot;&gt;programming&lt;/a&gt; it tends to refer to &lt;a href=&quot;/title/assembly+language&quot;&gt;assembly language&lt;/a&gt;.  Of course to someone who programs in assembly it's probably going to refer to &lt;a href=&quot;/title/machine+code&quot;&gt;machine code&lt;/a&gt; and to someone who deals exclusively in &lt;a href=&quot;/title/algorithm&quot;&gt;algorithms&lt;/a&gt; it could very well mean &lt;a href=&quot;/title/C&quot;&gt;C&lt;/a&gt;, it's all relative.</content>
</entry><entry><title>jump table (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com:80/user/untergeek/writeups/jump+table"/><id>http://everything2.com:80/user/untergeek/writeups/jump+table</id><author><name>untergeek</name><uri>http://everything2.com:80/user/untergeek</uri></author><published>2000-06-13T21:45:07Z</published><updated>2000-06-13T21:45:07Z</updated>
<content type="html">A &lt;a href=&quot;/title/low+level&quot;&gt;low level&lt;/a&gt; &lt;a href=&quot;/title/programming&quot;&gt;programming&lt;/a&gt; construct used in situations where a numerical value x determines what block of &lt;a href=&quot;/title/code&quot;&gt;code&lt;/a&gt; gets executed next.  It generally takes the form of an &lt;a href=&quot;/title/array&quot;&gt;array&lt;/a&gt; of addresses.  The &lt;a href=&quot;/title/indices&quot;&gt;indices&lt;/a&gt; of the array correspond to possible values of x.  Thus x is used as an offset into the array, the address is read from the array and control jumps to that address.  Ideally this can all be done without any &lt;a href=&quot;/title/expensive&quot;&gt;expensive&lt;/a&gt; comparison operations.  In the &lt;a href=&quot;/title/real+world&quot;&gt;real world&lt;/a&gt; there will probably be two comparisons to make sure that x is not above the maximum index in the array or below the minimum.
&lt;br&gt;&lt;br&gt;
A high level representation of this concept is the &lt;a href=&quot;/title/switch%2528%2529&quot;&gt;switch()&lt;/a&gt; which is typically compiled into a jump table.  If you've understood what I've said so far you'll also understand that it's a &lt;a href=&quot;/title/Good+Thing&quot;&gt;Good Thing&lt;/a&gt; to try and keep the conditions in your switch &lt;a href=&quot;/title/contiguous&quot;&gt;contiguous&lt;/a&gt; so as to avoid situations where most of the space the produced jump table is taking up is used to jump to the default code.
&lt;br&gt;&lt;br&gt;
I'd supply a nice&amp;hellip;</content>
</entry><entry><title>break (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com:80/user/untergeek/writeups/break"/><id>http://everything2.com:80/user/untergeek/writeups/break</id><author><name>untergeek</name><uri>http://everything2.com:80/user/untergeek</uri></author><published>2000-06-13T21:06:26Z</published><updated>2000-06-13T21:06:26Z</updated>
<content type="html">&lt;p&gt;In &lt;a href=&quot;/title/C&quot;&gt;C&lt;/a&gt; and &lt;a href=&quot;/title/programming+languages&quot;&gt;programming languages&lt;/a&gt; with C style &lt;a href=&quot;/title/syntax&quot;&gt;syntax&lt;/a&gt; break is used to exit a block of code.  Primarily it is used to exit loops when some &lt;a href=&quot;/title/condition&quot;&gt;condition&lt;/a&gt; is met.&lt;br&gt;&lt;pre&gt;

while (1)
{
  //do something...
  if (done)
  {
    break;
  }
  //do something else...
}

&lt;/pre&gt;&lt;br&gt;Of course break is also used quite heavily in &lt;a href=&quot;/title/switch%2528%2529&quot;&gt;switches&lt;/a&gt; to keep all hell from breaking loose.&lt;/p&gt;</content>
</entry><entry><title>switch() (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com:80/user/untergeek/writeups/switch%2528%2529"/><id>http://everything2.com:80/user/untergeek/writeups/switch%2528%2529</id><author><name>untergeek</name><uri>http://everything2.com:80/user/untergeek</uri></author><published>2000-06-13T20:48:30Z</published><updated>2000-06-13T20:48:30Z</updated>
<content type="html">The &lt;a href=&quot;/title/variable&quot;&gt;variable&lt;/a&gt; given to a switch must be an &lt;a href=&quot;/title/int&quot;&gt;int&lt;/a&gt; or a defined type that resolves to an int (long int might work too, it's been awhile).  The reason for this is that a switch &lt;a href=&quot;/title/compile&quot;&gt;compiles&lt;/a&gt; into a &lt;a href=&quot;/title/jump+table&quot;&gt;jump table&lt;/a&gt;.  This is important because finding what you're looking for in a jump table would take O(1) time instead of the O(n) time (where n is the number of conditionals) it could take to check every &lt;a href=&quot;/title/conditional&quot;&gt;conditional&lt;/a&gt; if you were to implement this as a series of if()/elseif() statements.&lt;br&gt;
&lt;br&gt;
It's also worth pointing out that you'll probably want to put a &quot;&lt;a href=&quot;/title/break&quot;&gt;break&lt;/a&gt;;&quot; at the end of every block of code after a condition.  If you don't your code will go to the correct &lt;a href=&quot;/title/condition&quot;&gt;condition&lt;/a&gt; and then execute all the code after that, including code intended for other conditions.  Of course this may be what you want.  See &lt;a href=&quot;/title/Duff%2527s+Device&quot;&gt;Duff's Device&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Update: &lt;/b&gt;&lt;a href=&quot;/title/wharfinger&quot;&gt;wharfinger&lt;/a&gt; has brought it to my attention that a switch doesn't always compile to a jump table.  This caused me to drag out my copy of the &lt;a href=&quot;/title/Dragon+Book&quot;&gt;Dragon Book&lt;/a&gt;.  On&amp;hellip;</content>
</entry></feed>
