I&#39;m not alone! <div>FWIW, I still have that problem in 5.2.0.6.</div><div>And I confirm the &quot;.1&quot; minimalist test case.</div><div><br></div><div>When running &#39;racket&#39; from the command line, this does not occur however:</div>

<div><div>laurent:~$ racket</div><div>Welcome to Racket v5.2.0.6.</div><div>Edit ~/.racketrc to modify inits.</div><div>&gt; .1</div><div>0.1</div><div>&gt; </div></div><div><br></div><div>But this still happens with gracket:</div>

<div><div>Welcome to Racket v5.2.0.6.</div><div>This is a simple window for evaluating Racket expressions.</div><div>Quit now and run DrRacket to get a better window.</div><div>The current input port always returns eof.</div>

<div>&gt; .1</div><div>0.0</div><div>&gt; </div></div><div><br></div><div>Probably irrelevant: Could the GPU be in the loop somehow?</div><div><br></div><div>Good luck,</div><div>Laurent</div><div><br></div><div><br><div class="gmail_quote">

On Tue, Dec 27, 2011 at 14:26, Marijn <span dir="ltr">&lt;<a href="mailto:hkBst@gentoo.org">hkBst@gentoo.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 24-12-11 16:23, Matthew Flatt wrote:<br>
&gt; At Wed, 14 Dec 2011 16:49:23 +0100, Marijn wrote:<br>
&gt;&gt; #lang racket (* .1 pi)<br>
&gt;&gt;<br>
&gt;&gt; produces 0.0 reliably in a freshly started drracket even when<br>
&gt;&gt; rerunning it, but:<br>
&gt;&gt;<br>
&gt;&gt; $ racket -e &#39;(* .1 pi)&#39; 0.3141592653589793<br>
&gt;&gt;<br>
&gt;&gt; and the program:<br>
&gt;&gt;<br>
&gt;&gt; #lang racket pi (* .1 pi)<br>
&gt;&gt;<br>
&gt;&gt; on the first run (drracket again) produces:<br>
&gt;&gt;<br>
&gt;&gt; 3.141592653589793 0.0<br>
&gt;&gt;<br>
&gt;&gt; while on subsequent runs it produces:<br>
&gt;&gt;<br>
&gt;&gt; 3.141592653589793 0.3141592653589793<br>
&gt;<br>
&gt; Thanks --- this is very helpful!<br>
&gt;<br>
&gt; I&#39;m still stumped, unfortunately. It looks the same as PR 12070,<br>
&gt; which we never figured out:<br>
&gt;<br>
&gt; <a href="http://bugs.racket-lang.org/query/?debug=&amp;database=default&amp;cmd=view+audit-trail&amp;cmd=view&amp;pr=12070" target="_blank">http://bugs.racket-lang.org/query/?debug=&amp;database=default&amp;cmd=view+audit-trail&amp;cmd=view&amp;pr=12070</a><br>


<br>
Interesting!,<br>
&gt;<br>
though it is a bit hard to read the Audit Trail because<br>
everything is jumbled together.<br>
<br>
I reproduce that bug and step 7) and 8) can be replaced with a single<br>
re-evaluate for me.<br>
<br>
It seems to indicate very clearly that the problem is in the floating<br>
point start-up somehow and has nothing to do with `pi&#39; or variable<br>
references.<br>
<br>
Another possibility would be that multiplication (*) was at fault, but<br>
my new smallest test-case rules that out:<br>
<br>
#lang racket<br>
.1<br>
<br>
=&gt; 0.0<br>
<br>
And actually it works also directly in the REPL without running any<br>
program:<br>
<br>
Welcome to DrRacket, version 5.2.0.7--2011-12-15(-/f) [3m].<br>
Language: racket; memory limit: 128 MB.<br>
&gt; .1<br>
0.0<br>
&gt; 1<br>
1<br>
&gt; .1<br>
0.0<br>
&gt; .2<br>
0.0<br>
&gt; .3<br>
0.0<br>
&gt; .4<br>
0.0<br>
&gt; .5<br>
0.0<br>
&gt; .6<br>
0.0<br>
&gt; .7<br>
0.0<br>
&gt; .8<br>
0.0<br>
&gt; .9<br>
0.0<br>
&gt; 1.0<br>
1.0<br>
&gt; .1<br>
0.1<br>
<br>
So should we look at the byte-code produced for this (how does one do<br>
that and what is the expected code)?<br>
Is there some way to invoke racket from the command line in such a way<br>
that it behaves like the drracket initial repl?<br>
How does one run the byte-code?<br>
<br>
What external suspects are there? I suppose gcc, but are there any<br>
other? My CFLAGS are set to a very conservative AFAIK<br>
CFLAGS=&quot;-march=native -ggdb -O2 -pipe&quot;, currently on version 4.5.3.<br>
<br>
Marijn<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.18 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAk75x5IACgkQp/VmCx0OL2xZRACcC8dubYCSNXScyOG8wdJQxxN1<br>
xAgAnRVKv8YpTWODEKn2qEMMhcXHZLSk<br>
=n+xT<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div>