<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Armin:<br></span></div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Armin Rigo &lt;arigo@tunes.org&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Andrew Francis &lt;andrewfr_ice@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "pypy-dev@codespeak.net" &lt;pypy-dev@codespeak.net&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, January 5, 2012 5:46 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [pypy-dev] Problems Installing STM<br> </font> <br>&gt;You don't need a PyPy at all, pre-compiled or not.&nbsp; You don't
 need<br>&gt;virtualenv either.<br><br>Thanks for clarifying this.<br><br>&gt;As documented at various places, you run the tests by saying:<br>&gt;&nbsp;&nbsp; python ../../../test_all.py test_rstm.py<br><br>Me bad. Ran the tests. All four passed.<br><br>&gt;The only fully-compiled multithreaded demo using stm is in<br>&gt;pypy/translator/stm/test/targetdemo.py, which you can use instead of<br>&gt;bpnn.py in the line above.<br><br>....<br><br>&gt;You are getting this because the support is only good enough to run<br><a target="_blank" href="http://targetdemo.py">&gt;targetdemo.py</a>.<br><br>Yes I realise running bpnn is pointless in regards to STM. But it did alert me to the --stm option.<br>I ran the targetdemo and the error is:<br><br>[translation:ERROR]&nbsp; AssertionError: cast_ptr_to_adr(gcref) is a bad idea with STM.&nbsp; Consider checking config.stm in &lt;FunctionGraph of (pypy.rpython.memory.gc.minimark:427)MiniMarkGC.post_setup at
 0x98f82d4&gt;<br><br>How is this fixed?<br><br>As a sidenote: I would like to get to a stage where I can take simple Haskell STM examples and transcribe them into RPython. The first being the "Hello World of STM" : the deposit/withdrawl programme.<br><br>I am looking at the targetdemo programme. The only place that references rstm is<br><br>for i in range(LENGTH):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add_at_end_of_chained_list(glob.anchor, i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rstm.transaction_boundary()<br>&nbsp;print "thread done"<br><br>I don't see rstm.begin_transaction() being called. Is this implicit with when a thread starts? <br><br>In general, what sort of feedback are you looking for at this stage?<br><br>Cheers,<br>Andrew<br><br><br><br><br><br><br><br><br><br>A bientôt,<br><br>Armin.<br><br><br> </div> </div>  </div></body></html>