<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 7:41 AM, James Swaine <span dir="ltr">&lt;<a href="mailto:james.swaine@eecs.northwestern.edu" target="_blank">james.swaine@eecs.northwestern.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi Haiwei, </div><div><br></div><div>AFAIK there isn&#39;t any way to see the actual instructions that the JIT is generating.  Why do you think it would be helpful in this case? </div>
</div></blockquote><div><br></div><div style>That&#39;s not true: Sam has a package for that:</div><div style><br></div><div style><a href="https://pkg.racket-lang.org/info/disassemble">https://pkg.racket-lang.org/info/disassemble</a><br>
</div><div style><br></div><div style>Jay</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div><br></div><div>It may be helpful to use raco decompile, however -- that allows you to see what the bytecode version of your program looks like (which is what is actually being fed to the JIT).</div><div>
<br></div><div>-James</div><div><br></div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Message: 6<br>
Date: Mon, 25 Feb 2013 17:53:34 +0800<br>
From: Haiwei Zhou &lt;<a href="mailto:highfly22@gmail.com" target="_blank">highfly22@gmail.com</a>&gt;<br>
To: Danny Yoo &lt;<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>&gt;<br>
Cc: users &lt;<a href="mailto:users@racket-lang.org" target="_blank">users@racket-lang.org</a>&gt;<br>
Subject: Re: [racket] The performance of fannkuch-redux<br>
Message-ID:<br>
        &lt;CABLXuO9nJAUa=Xn7779377NPnoQX6Ze3Tdkf6bvF=<a href="mailto:sta%2BbG6wQ@mail.gmail.com" target="_blank">sta+bG6wQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<div><div class="h5"><br>
<br>
Updated a parallel version to <a href="https://github.com/highfly22/fannkuch-redux" target="_blank">https://github.com/highfly22/fannkuch-redux</a><br>
It takes about 1m50s in the four cores PC, while the script in the shoutout<br>
takes about 4m30s. It looks like the task division is not perfect.<br>
<br>
I am just curious on the native implement of JIT. How to dump assemble code<br>
after JIT?<br>
<br>
When I try to define count-flips as a macro, racket complains &quot;to many<br>
forms&quot;? What does that mean?<br>
<br>
Thanks,<br>
Haiwei<br>
<br>
<br>
On 24 February 2013 11:03, Danny Yoo &lt;<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>&gt; wrote:<br>
<br>
&gt; &gt;&gt; &gt; It&#39;s amazing fast. If it is only 6 times slower than C version. If<br>
&gt; &gt;&gt; &gt; parallelizing the time consuming operations, it would be 2x slower<br>
&gt; than<br>
&gt; &gt;&gt; &gt; C<br>
&gt; &gt;&gt; &gt; version in the four cores CPU.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Do you mean the version you&#39;ve written, or the one in the Racket<br>
&gt; &gt;&gt; benchmark suite?<br>
&gt; &gt;<br>
&gt; &gt; It&#39;s the one in the benchmark suite.<br>
&gt;<br>
&gt;<br>
&gt; What does the code look like if you add the parallelizing?  Can you<br>
&gt; show us?   Thanks!<br>
&gt;<br></div></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.racket-lang.org/users/archive/attachments/20130225/8e591afb/attachment-0001.html" target="_blank">http://lists.racket-lang.org/users/archive/attachments/20130225/8e591afb/attachment-0001.html</a>&gt;<br>


<br>
------------------------------<br></blockquote></div></div></div>
<br>____________________<br>
  Racket Users list:<br>
  <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jay McCarthy &lt;<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>&gt;<br>Assistant Professor / Brigham Young University<br><a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>&quot;The glory of God is Intelligence&quot; - D&amp;C 93
</div></div>