<div dir="ltr">Thanks Benoit!<div><br></div><div>Now, is it really necessary to prevent multithreaded when interfacing Ruby and R?  I understand that since R is not multithreaded, calling it from multiple threads will cause weird problems, but if the programmer is careful and say, only calls R from the same Ruby thread, everything should work fine, no?  If this is the case, then could there be a flag to allow multithreaded applications even in the presence of R?</div><div><br></div><div>Thanks</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 14, 2018 at 2:38 PM Benoit Daloze &lt;<a href="mailto:eregontp@gmail.com">eregontp@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Note that one way to avoid MinitTest creating multiple threads is to give it `N=0` like<div><br></div><div>$ N=0 ruby -Xsingle_threaded=true mytest.rb</div><div><br></div><div>I checked and this seems to work fine with GraalVM RC2 and minitest 5.10.1 (bundled) and 5.11.3 (latest).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 14, 2018 at 5:25 PM, Rodrigo Botafogo <span dir="ltr">&lt;<a href="mailto:rodrigo.a.botafogo@gmail.com" target="_blank">rodrigo.a.botafogo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I&#39;m trying to set up testing for my polyglot lib and I&#39;m having a hard time.  Sorry if I should post somewhere else...</div><div><br></div><div>So I tried to test with rspec, but rspec will run ruby somehow and does not pass to ruby the --polyglot --jvm flags.  Polyglot complains that R is not a known language.  I&#39;ve googled around and could not find an easy way to make rspec pass flags to ruby.  </div><div><br></div><div>Next I tried minitest, since in this case I call ruby directly with the required flags... but polyglot complains that R cannot execute in multithreaded, so I passed -Xsingle_threaded to ruby and minitest complains that it only runs in a multithreaded environment.</div><div><br></div><div>Any suggestions how to move forward?</div><div><br></div><div><br></div><div>Thanks</div><span class="m_884301762383739274HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_884301762383739274m_1500241590509904320gmail_signature">Rodrigo Botafogo<br></div></div></font></span></div>
<br>_______________________________________________<br>
GraalVM-Users mailing list<br>
<a href="mailto:GraalVM-Users@oss.oracle.com" target="_blank">GraalVM-Users@oss.oracle.com</a><br>
<a href="https://oss.oracle.com/mailman/listinfo/graalvm-users" rel="noreferrer" target="_blank">https://oss.oracle.com/mailman/listinfo/graalvm-users</a><br></blockquote></div><br></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Rodrigo Botafogo<br>Integrando TI ao seu negócio<br>21-3010-4802/11-3010-1802</div>