[OpenSCAD] recursion limit on concat()

Hans L thehans at gmail.com
Thu Oct 17 15:06:28 EDT 2019


Hi kitwallace, I also have an L-system implementation which I've posted
about previously on the list:
http://forum.openscad.org/L-systems-demo-Fractal-designs-interpreter-performance-stress-testing-tp23295p25927.html

The latest revision is here:
https://gist.github.com/thehans/a1494db8046a58832e2ebb10a5908a66

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.




<https://gist.github.com/thehans/a1494db8046a58832e2ebb10a5908a66>




On Tue, Oct 15, 2019 at 10:23 AM Torsten Paul <Torsten.Paul at gmx.de> wrote:

> On 15.10.19 16:56, kitwallace wrote:
> > Re the recusion example - I posted it at Torsten's
> > request that so that it could be used as a test case
> > for the enhancement which I believe should handle
> > that case.
>
> Thanks for that, I can confirm it works as expected. The
> nightly does not abort with stack overflow so the tail
> recursion elimination works nicely.
>
> With the range workaround it successfully generates the
> design with k=8.
>
> ciao,
>   Torsten.
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191017/7d1014bd/attachment.html>


More information about the Discuss mailing list