<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"><<a href="mailto:james.swaine@eecs.northwestern.edu" target="_blank">james.swaine@eecs.northwestern.edu</a>></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'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'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 <<a href="mailto:highfly22@gmail.com" target="_blank">highfly22@gmail.com</a>><br>
To: Danny Yoo <<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>><br>
Cc: users <<a href="mailto:users@racket-lang.org" target="_blank">users@racket-lang.org</a>><br>
Subject: Re: [racket] The performance of fannkuch-redux<br>
Message-ID:<br>
<CABLXuO9nJAUa=Xn7779377NPnoQX6Ze3Tdkf6bvF=<a href="mailto:sta%2BbG6wQ@mail.gmail.com" target="_blank">sta+bG6wQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<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 "to many<br>
forms"? What does that mean?<br>
<br>
Thanks,<br>
Haiwei<br>
<br>
<br>
On 24 February 2013 11:03, Danny Yoo <<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>> wrote:<br>
<br>
> >> > It's amazing fast. If it is only 6 times slower than C version. If<br>
> >> > parallelizing the time consuming operations, it would be 2x slower<br>
> than<br>
> >> > C<br>
> >> > version in the four cores CPU.<br>
> >><br>
> >><br>
> >> Do you mean the version you've written, or the one in the Racket<br>
> >> benchmark suite?<br>
> ><br>
> > It's the one in the benchmark suite.<br>
><br>
><br>
> What does the code look like if you add the parallelizing? Can you<br>
> show us? Thanks!<br>
><br></div></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<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>><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 <<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>><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>"The glory of God is Intelligence" - D&C 93
</div></div>