<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thanks. <br><br>Perhaps some one could explain this aside in section 18.9 "Parallelism with futures"<br><br>Other functions, such as <span class="RktSym"><a href="http://docs.racket-lang.org/reference/threads.html#%28def._%28%28quote._%7E23%7E25kernel%29._thread%29%29" class="RktValLink">thread</a></span>, support the
creation of reliably concurrent tasks. However, thread never run truly
in parallel, even if the hardware and operating system support
parallelism.<br><br>Does that mean there is no way in Racket to create threads which a multi-threaded enabled cpu will run truly in parallel?<br><br>Harry Spier<br><br><br><br>> Date: Fri, 14 Jan 2011 15:30:22 -0600<br>> Subject: Re: [racket] Efficiency of tight loops in Racket<br>> From: robby@eecs.northwestern.edu<br>> To: harryspier@hotmail.com<br>> CC: matthias@ccs.neu.edu; eli@barzilay.org; users@racket-lang.org<br>> <br>> Please look at the future and the places library. These are still<br>> relatively new parts of Racket, but we'd love to have your feedback.<br>> Here's an overview, leading to futures:<br>> <br>> http://docs.racket-lang.org/guide/performance.html<br>> <br>> Robby<br>> <br>> On Fri, Jan 14, 2011 at 2:12 PM, Harry Spier <harryspier@hotmail.com> wrote:<br>> > Thanks Matthias.<br>> ><br>> > From whats been said perhaps the way to go is to make a C wrapper to the C<br>> > interface to the latest version of ImageMagick and then go through the FFI<br>> > to interface to Racket.<br>> ><br>> > Also someone mentioned the use of parallel processing. It seems to me that<br>> > an OCR application would be the ideal application for parallel processing.<br>> > I.e. the analysis of one letter is completely independent of the analysis of<br>> > another letter. So for example if you had a dual core processor with<br>> > multithreading enabled you could analyse 4 letters concurrently etc. by<br>> > setting up 4 threads.<br>> ><br>> > Is it possible on a PC (windows or linux) in Racket or in fact in any<br>> > language (even assembler) to check if it has a multi-core processors and how<br>> > many cores and/or multi-threading enabled. In which case you would know how<br>> > many threads to set up to process letters in parallel?<br>> ><br>> ><br>> > Thanks,<br>> > Harry Spier<br>> ><br>> ><br>> ><br>> >> Subject: Re: [racket] Efficiency of tight loops in Racket<br>> >> From: matthias@ccs.neu.edu<br>> >> Date: Fri, 14 Jan 2011 12:12:28 -0500<br>> >> CC: eli@barzilay.org; users@racket-lang.org; robby@eecs.northwestern.edu<br>> >> To: harryspier@hotmail.com<br>> >><br>> >><br>> >> It's an experimental package under development for use with teaching<br>> >> materials. It's not ready for anything really -- Matthias (I know, I wrote<br>> >> it)<br>> >><br>> >><br>> >> On Jan 14, 2011, at 9:59 AM, Harry Spier wrote:<br>> >><br>> >> ><br>> >> > I thought I saw somewhere in the Racket documentation a few weeks ago<br>> >> > that there is another graphics package in Racket that even has a function to<br>> >> > create a binary matrix from a picture. But when I tried to find it yesterday<br>> >> > I couldn't (I don't remember the name or where in the documentation I saw<br>> >> > it).<br>> >> ><br>> >> > Does anyone know what package that could be?<br>> >> ><br>> >> > Thanks,<br>> >> > Harry<br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> > > From: eli@barzilay.org<br>> >> > > Date: Fri, 14 Jan 2011 09:47:24 -0500<br>> >> > > To: vasishtha.spier@gmail.com<br>> >> > > CC: matthias@ccs.neu.edu; users@racket-lang.org;<br>> >> > > robby@eecs.northwestern.edu; harryspier@hotmail.com<br>> >> > > Subject: Re: [racket] Efficiency of tight loops in Racket<br>> >> > ><br>> >> > > 12 hours ago, Harry Spier wrote:<br>> >> > > > 2) interface to ImageMagick (which I use to create my binary page<br>> >> > > > representation)<br>> >> > ><br>> >> > > Note BTW that the ImageMagick interface that comes with racket was<br>> >> > > made as an example for an interface, so it wasn't kept up to date with<br>> >> > > the current API. (I don't know what changed, but given that a number<br>> >> > > of years have passed, I'm guessing that updates are needed.)<br>> >> > ><br>> >> > > --<br>> >> > > ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:<br>> >> > > http://barzilay.org/ Maze is Life!<br>> >><br>> ><br>                                            </body>
</html>