<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Blue Dwarf</title>
	<atom:link href="http://blue-dwarf.de/wp/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blue-dwarf.de/wp</link>
	<description>Frank&#039;s blog and obviously not an early-type main sequence star</description>
	<lastBuildDate>Sun, 15 Nov 2009 18:00:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on b is a power of 2 by Fletcher Tomalty</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-3567</link>
		<dc:creator>Fletcher Tomalty</dc:creator>
		<pubDate>Sun, 15 Nov 2009 18:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-3567</guid>
		<description>Hey, nice solution! I had never heard of that equation before. I wrote about the same thing, and I think my solution is totally different. Basically, it says &quot;all factors of b are multiples of 2&quot;. Check it out:

http://nomulous.com/blog/translating-b-is-a-power-of-2-into-tnt/</description>
		<content:encoded><![CDATA[<p>Hey, nice solution! I had never heard of that equation before. I wrote about the same thing, and I think my solution is totally different. Basically, it says &#8220;all factors of b are multiples of 2&#8243;. Check it out:</p>
<p><a href="http://nomulous.com/blog/translating-b-is-a-power-of-2-into-tnt/" rel="nofollow">http://nomulous.com/blog/translating-b-is-a-power-of-2-into-tnt/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting git-svn tag branches to real tags by Frank</title>
		<link>http://blue-dwarf.de/wp/2008/08/30/converting-git-svn-tag-branches-to-real-tags/comment-page-1/#comment-3540</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 11 Nov 2009 13:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=116#comment-3540</guid>
		<description>Short update: The &lt;a href=&quot;http://github.com/nothingmuch/git-svn-abandon&quot; rel=&quot;nofollow&quot;&gt;git-svn-abandon&lt;/a&gt; scripts seem to be a more sophisticated way of cleaning a &lt;code&gt;git-svn&lt;/code&gt; repository.</description>
		<content:encoded><![CDATA[<p>Short update: The <a href="http://github.com/nothingmuch/git-svn-abandon" rel="nofollow">git-svn-abandon</a> scripts seem to be a more sophisticated way of cleaning a <code>git-svn</code> repository.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatic generation of a C header from Fortran code? by Frank</title>
		<link>http://blue-dwarf.de/wp/2009/10/31/automatic-generation-of-a-c-header-from-fortran-code/comment-page-1/#comment-3537</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 11 Nov 2009 08:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://blue-dwarf.de/wp/?p=610#comment-3537</guid>
		<description>@jldugger; ANTLR grammar:
The first interesting Google hit for &quot;Fortran ANTLR grammar&quot; pointed to the &lt;a href=&quot;http://fortran-parser.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;Open Fortran Parser&lt;/a&gt; which looked promising but I encountered some problems while compiling it that I couldn&#039;t fix easily. Thus I didn&#039;t look further into it.

@Alberto; ISO_C_BINDING + Doxygen parser:
Alberto, you are of course right that the intrinsic Fortran 2003 module ISO_C_BINDING solves the problem of name mangling and knowing the right C types for the corresponding Fortran types. But if one is bound to older Fortran standards this is not an option. I also tried to &quot;misuse&quot; Doxygen for what I want to accomplish but instead of touching the parser code, I looked into transforming Doxygen&#039;s XML output to C declarations. But it seemed that the types of function parameters weren&#039;t available in the XML output. So I also skipped this option.

@PeterP; DWARF debugging infos:
Using debugging infos from object files to create source code is another interesting idea. I actually wrote a simple and half done script (&lt;a href=&quot;http://blue-dwarf.de/download/misc/dwarf2cdecl.py.txt&quot; rel=&quot;nofollow&quot;&gt;dwarf2cdecl.py&lt;/a&gt;) that can extract functions with their parameters from the output of &lt;code&gt;dwarfdump -di&lt;/code&gt;. However, I think that this approach is to fragile and not as straightforward as I&#039;d like it.

So I&#039;m still open to suggestions.</description>
		<content:encoded><![CDATA[<p>@jldugger; ANTLR grammar:<br />
The first interesting Google hit for &#8220;Fortran ANTLR grammar&#8221; pointed to the <a href="http://fortran-parser.sourceforge.net/" rel="nofollow">Open Fortran Parser</a> which looked promising but I encountered some problems while compiling it that I couldn&#8217;t fix easily. Thus I didn&#8217;t look further into it.</p>
<p>@Alberto; ISO_C_BINDING + Doxygen parser:<br />
Alberto, you are of course right that the intrinsic Fortran 2003 module ISO_C_BINDING solves the problem of name mangling and knowing the right C types for the corresponding Fortran types. But if one is bound to older Fortran standards this is not an option. I also tried to &#8220;misuse&#8221; Doxygen for what I want to accomplish but instead of touching the parser code, I looked into transforming Doxygen&#8217;s XML output to C declarations. But it seemed that the types of function parameters weren&#8217;t available in the XML output. So I also skipped this option.</p>
<p>@PeterP; DWARF debugging infos:<br />
Using debugging infos from object files to create source code is another interesting idea. I actually wrote a simple and half done script (<a href="http://blue-dwarf.de/download/misc/dwarf2cdecl.py.txt" rel="nofollow">dwarf2cdecl.py</a>) that can extract functions with their parameters from the output of <code>dwarfdump -di</code>. However, I think that this approach is to fragile and not as straightforward as I&#8217;d like it.</p>
<p>So I&#8217;m still open to suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatic generation of a C header from Fortran code? by PeterP</title>
		<link>http://blue-dwarf.de/wp/2009/10/31/automatic-generation-of-a-c-header-from-fortran-code/comment-page-1/#comment-3501</link>
		<dc:creator>PeterP</dc:creator>
		<pubDate>Sun, 01 Nov 2009 20:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://blue-dwarf.de/wp/?p=610#comment-3501</guid>
		<description>If your Fortran compiler can be set to generate output object files in the ELF format (see http://en.wikipedia.org/wiki/Executable_and_Linkable_Format) with debug info, type information for all symbols in the global symbol table can be found in the debug sections (see http://dwarfstd.org/Dwarf3.pdf for the debug info specification).

It should be straightforward to convert this into the corresponding C declarations.
As the info comes from the object file, this also means that the mapping from unmangled to mangled names must be in the file, too (otherwise source code debugging would not work), courtesy of your compiler!</description>
		<content:encoded><![CDATA[<p>If your Fortran compiler can be set to generate output object files in the ELF format (see <a href="http://en.wikipedia.org/wiki/Executable_and_Linkable_Format)" rel="nofollow">http://en.wikipedia.org/wiki/Executable_and_Linkable_Format)</a> with debug info, type information for all symbols in the global symbol table can be found in the debug sections (see <a href="http://dwarfstd.org/Dwarf3.pdf" rel="nofollow">http://dwarfstd.org/Dwarf3.pdf</a> for the debug info specification).</p>
<p>It should be straightforward to convert this into the corresponding C declarations.<br />
As the info comes from the object file, this also means that the mapping from unmangled to mangled names must be in the file, too (otherwise source code debugging would not work), courtesy of your compiler!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatic generation of a C header from Fortran code? by Alberto</title>
		<link>http://blue-dwarf.de/wp/2009/10/31/automatic-generation-of-a-c-header-from-fortran-code/comment-page-1/#comment-3500</link>
		<dc:creator>Alberto</dc:creator>
		<pubDate>Sun, 01 Nov 2009 09:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://blue-dwarf.de/wp/?p=610#comment-3500</guid>
		<description>As you say, the problem has two parts:

1. Name mangling, different between compilers.
2. Writing the prototype.

In order to solve the first, consider using the new ISO C bindings. Take a look from the page 31 in ftp://ftp.nag.co.uk/sc22wg5/N1601-N1650/N1648.pdf . 

The second part would be a matter of writing a filter, or learning from Doxygen code how it parses Fortran structures.</description>
		<content:encoded><![CDATA[<p>As you say, the problem has two parts:</p>
<p>1. Name mangling, different between compilers.<br />
2. Writing the prototype.</p>
<p>In order to solve the first, consider using the new ISO C bindings. Take a look from the page 31 in <a href="ftp://ftp.nag.co.uk/sc22wg5/N1601-N1650/N1648.pdf" rel="nofollow">ftp://ftp.nag.co.uk/sc22wg5/N1601-N1650/N1648.pdf</a> . </p>
<p>The second part would be a matter of writing a filter, or learning from Doxygen code how it parses Fortran structures.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatic generation of a C header from Fortran code? by jldugger</title>
		<link>http://blue-dwarf.de/wp/2009/10/31/automatic-generation-of-a-c-header-from-fortran-code/comment-page-1/#comment-3499</link>
		<dc:creator>jldugger</dc:creator>
		<pubDate>Sun, 01 Nov 2009 00:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://blue-dwarf.de/wp/?p=610#comment-3499</guid>
		<description>I don&#039;t know of such a tool, but you can probably find an ANTLR grammar for fortran and write a quick program to process the AST for declarations. Just implement the right toString() functions and a decorator and you&#039;re done!</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know of such a tool, but you can probably find an ANTLR grammar for fortran and write a quick program to process the AST for declarations. Just implement the right toString() functions and a decorator and you&#8217;re done!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting git-svn tag branches to real tags by stezz</title>
		<link>http://blue-dwarf.de/wp/2008/08/30/converting-git-svn-tag-branches-to-real-tags/comment-page-1/#comment-2083</link>
		<dc:creator>stezz</dc:creator>
		<pubDate>Mon, 20 Apr 2009 06:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=116#comment-2083</guid>
		<description>Hi Franck, thanks for the tips. I tried to make an all-in-one script from cloning to starting the gitk here: http://stezz.blogspot.com/2009/04/really-convert-your-svn-to-git-with-one.html</description>
		<content:encoded><![CDATA[<p>Hi Franck, thanks for the tips. I tried to make an all-in-one script from cloning to starting the gitk here: <a href="http://stezz.blogspot.com/2009/04/really-convert-your-svn-to-git-with-one.html" rel="nofollow">http://stezz.blogspot.com/2009/04/really-convert-your-svn-to-git-with-one.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting git-svn tag branches to real tags by Miek Gieben</title>
		<link>http://blue-dwarf.de/wp/2008/08/30/converting-git-svn-tag-branches-to-real-tags/comment-page-1/#comment-1652</link>
		<dc:creator>Miek Gieben</dc:creator>
		<pubDate>Thu, 12 Feb 2009 20:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=116#comment-1652</guid>
		<description>Great! First sane page on this subject. :)</description>
		<content:encoded><![CDATA[<p>Great! First sane page on this subject. <img src='http://blue-dwarf.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on b is a power of 2 by Frank</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-933</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 17 Nov 2008 22:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-933</guid>
		<description>Of course it does not work for b=3 because 3 is not a power of 2. If you want to state in TNT that &quot;b is not a power of 2&quot; I would write it like this:
&lt;strong&gt;&#8707;a: &lt;&#8764;&#8707;c: a=(c+c) &#8743; &#8707;d: b=(SSa&#8901;d)&gt;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Of course it does not work for b=3 because 3 is not a power of 2. If you want to state in TNT that &#8220;b is not a power of 2&#8243; I would write it like this:<br />
<strong>&#8707;a: &lt;&#8764;&#8707;c: a=(c+c) &#8743; &#8707;d: b=(SSa&#8901;d)&gt;</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on b is a power of 2 by MPomme</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-928</link>
		<dc:creator>MPomme</dc:creator>
		<pubDate>Mon, 17 Nov 2008 14:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-928</guid>
		<description>Hello,

I&#039;m not very familiar with TNT but I read the statement as:

There does not exist a such that:
There does not exist c such that a = c+c (=&gt;  a is odd)
AND
Whatever the value of d, b=(a+2)*d

As i understand it, this doesn&#039;t work for b=3 for example:
let&#039;s pick a=1
b = 3*d &lt;= this is only true for d=1, not &quot;whatever the value of d&quot;

I would rather agree with:
∼∃a: 

Baz already pointed that out earlier, but it&#039;s not clear he still agrees with himself so I&#039;m left in doubt...</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m not very familiar with TNT but I read the statement as:</p>
<p>There does not exist a such that:<br />
There does not exist c such that a = c+c (=&gt;  a is odd)<br />
AND<br />
Whatever the value of d, b=(a+2)*d</p>
<p>As i understand it, this doesn&#8217;t work for b=3 for example:<br />
let&#8217;s pick a=1<br />
b = 3*d &lt;= this is only true for d=1, not &#8220;whatever the value of d&#8221;</p>
<p>I would rather agree with:<br />
∼∃a: </p>
<p>Baz already pointed that out earlier, but it&#8217;s not clear he still agrees with himself so I&#8217;m left in doubt&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on b is a power of 2 by Frank</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-912</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sun, 16 Nov 2008 18:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-912</guid>
		<description>Baz, I&#039;m relieved to hear that. :-)

It might be helpful for everyone else, to have the above statement translated into English: &quot;There does not exist an odd number &lt;strong&gt;a&lt;/strong&gt; such that for every &lt;strong&gt;d&lt;/strong&gt; &lt;strong&gt;b&lt;/strong&gt; equals (&lt;strong&gt;a&lt;/strong&gt;+2).&lt;strong&gt;d&lt;/strong&gt;.&quot; This statement should only be true if &lt;strong&gt;b&lt;/strong&gt; is a power of 2. For every other natural number such an odd &lt;strong&gt;a&lt;/strong&gt; exists.</description>
		<content:encoded><![CDATA[<p>Baz, I&#8217;m relieved to hear that. <img src='http://blue-dwarf.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>It might be helpful for everyone else, to have the above statement translated into English: &#8220;There does not exist an odd number <strong>a</strong> such that for every <strong>d</strong> <strong>b</strong> equals (<strong>a</strong>+2).<strong>d</strong>.&#8221; This statement should only be true if <strong>b</strong> is a power of 2. For every other natural number such an odd <strong>a</strong> exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on b is a power of 2 by Baz</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-911</link>
		<dc:creator>Baz</dc:creator>
		<pubDate>Sun, 16 Nov 2008 17:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-911</guid>
		<description>Sorry for the noise; I was completely wrong above. Of course it works. Don&#039;t know what I was thinking.</description>
		<content:encoded><![CDATA[<p>Sorry for the noise; I was completely wrong above. Of course it works. Don&#8217;t know what I was thinking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on b is a power of 2 by Baz</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-909</link>
		<dc:creator>Baz</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-909</guid>
		<description>Oops, actually no - your solution looks wrong for all odd primes as well (b=prime, a=b-2, d=1, c doesn&#039;t exist - boom). The problem is that you assert that no odd factor exists, but you didn&#039;t assert that b is even. Just adding either &quot;and exists e: b = (SS0.Se)&quot; or &quot;and exists e: b=(Se+Se)&quot; would fix both the b=0 and the b=prime cases.

-Baz</description>
		<content:encoded><![CDATA[<p>Oops, actually no &#8211; your solution looks wrong for all odd primes as well (b=prime, a=b-2, d=1, c doesn&#8217;t exist &#8211; boom). The problem is that you assert that no odd factor exists, but you didn&#8217;t assert that b is even. Just adding either &#8220;and exists e: b = (SS0.Se)&#8221; or &#8220;and exists e: b=(Se+Se)&#8221; would fix both the b=0 and the b=prime cases.</p>
<p>-Baz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on b is a power of 2 by Baz</title>
		<link>http://blue-dwarf.de/wp/2008/11/16/b-is-a-power-of-2/comment-page-1/#comment-906</link>
		<dc:creator>Baz</dc:creator>
		<pubDate>Sun, 16 Nov 2008 14:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=208#comment-906</guid>
		<description>(not done maths like that in years, intrigued) .... doesn&#039;t that fail for b=0, d=0? Easy to fix tho.

Also, I think that should read &#039;there exists d&#039; not &#039;for every d - typo?&#039; I like your answer though, took me a moment or two to see that you were using SSa to exclude (1.d)

-Baz</description>
		<content:encoded><![CDATA[<p>(not done maths like that in years, intrigued) &#8230;. doesn&#8217;t that fail for b=0, d=0? Easy to fix tho.</p>
<p>Also, I think that should read &#8216;there exists d&#8217; not &#8216;for every d &#8211; typo?&#8217; I like your answer though, took me a moment or two to see that you were using SSa to exclude (1.d)</p>
<p>-Baz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Converting git-svn tag branches to real tags by denro</title>
		<link>http://blue-dwarf.de/wp/2008/08/30/converting-git-svn-tag-branches-to-real-tags/comment-page-1/#comment-440</link>
		<dc:creator>denro</dc:creator>
		<pubDate>Sun, 05 Oct 2008 21:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=116#comment-440</guid>
		<description>great, thx</description>
		<content:encoded><![CDATA[<p>great, thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goddies with bts&#8217; &#8220;status&#8221; and &#8220;select&#8221; by Sandro Tosi</title>
		<link>http://blue-dwarf.de/wp/2008/09/21/goddies-with-bts-status-and-select/comment-page-1/#comment-352</link>
		<dc:creator>Sandro Tosi</dc:creator>
		<pubDate>Mon, 22 Sep 2008 11:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://frank.thomas-alfeld.de/wp/?p=126#comment-352</guid>
		<description>Thanks thanks, my pleasure :)

Now that I think of, I got a couple more to report: I&#039;ll do once back home ;)

Cheers,
Sandro</description>
		<content:encoded><![CDATA[<p>Thanks thanks, my pleasure <img src='http://blue-dwarf.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now that I think of, I got a couple more to report: I&#8217;ll do once back home <img src='http://blue-dwarf.de/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Sandro</p>
]]></content:encoded>
	</item>
</channel>
</rss>
