<div dir="ltr"><div>Hi kitwallace, I also have an L-system implementation which I've posted about previously on the list: <a href="http://forum.openscad.org/L-systems-demo-Fractal-designs-interpreter-performance-stress-testing-tp23295p25927.html">http://forum.openscad.org/L-systems-demo-Fractal-designs-interpreter-performance-stress-testing-tp23295p25927.html</a></div><div><br></div><div>The latest revision is here:</div><div><a href="https://gist.github.com/thehans/a1494db8046a58832e2ebb10a5908a66">https://gist.github.com/thehans/a1494db8046a58832e2ebb10a5908a66</a><br></div><div><br></div><div>I spent a lot of time optimizing this code (and even made changes to OpenSCAD to support recursion more efficiently specifically because of it).  It's pretty good with high iterations.<br></div><div><br></div><div><br></div><div><br></div><div><br></div><a href="https://gist.github.com/thehans/a1494db8046a58832e2ebb10a5908a66"></a><br><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019 at 10:23 AM Torsten Paul <<a href="mailto:Torsten.Paul@gmx.de">Torsten.Paul@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 15.10.19 16:56, kitwallace wrote:<br>
> Re the recusion example - I posted it at Torsten's<br>
> request that so that it could be used as a test case<br>
> for the enhancement which I believe should handle<br>
> that case.<br>
<br>
Thanks for that, I can confirm it works as expected. The<br>
nightly does not abort with stack overflow so the tail<br>
recursion elimination works nicely.<br>
<br>
With the range workaround it successfully generates the<br>
design with k=8.<br>
<br>
ciao,<br>
  Torsten.<br>
<br>
_______________________________________________<br>
OpenSCAD mailing list<br>
<a href="mailto:Discuss@lists.openscad.org" target="_blank">Discuss@lists.openscad.org</a><br>
<a href="http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org" rel="noreferrer" target="_blank">http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org</a><br>
</blockquote></div>