<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 <arigo@tunes.org><br> <b><span style="font-weight: bold;">To:</span></b> Andrew Francis <andrewfr_ice@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "pypy-dev@codespeak.net" <pypy-dev@codespeak.net> <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>>You don't need a PyPy at all, pre-compiled or not. You don't
need<br>>virtualenv either.<br><br>Thanks for clarifying this.<br><br>>As documented at various places, you run the tests by saying:<br>> python ../../../test_all.py test_rstm.py<br><br>Me bad. Ran the tests. All four passed.<br><br>>The only fully-compiled multithreaded demo using stm is in<br>>pypy/translator/stm/test/targetdemo.py, which you can use instead of<br>>bpnn.py in the line above.<br><br>....<br><br>>You are getting this because the support is only good enough to run<br><a target="_blank" href="http://targetdemo.py">>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] AssertionError: cast_ptr_to_adr(gcref) is a bad idea with STM. Consider checking config.stm in <FunctionGraph of (pypy.rpython.memory.gc.minimark:427)MiniMarkGC.post_setup at
0x98f82d4><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> add_at_end_of_chained_list(glob.anchor, i)<br> rstm.transaction_boundary()<br> 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>