New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recursion_limit bad assumption #3265
Comments
From zefram@fysh.orgsrc/main.nqp features this code: # Bump up recursion limit, for VMs that have one. The code and comment do not match: the comment says that the recursion The only way the code and comment could be interpreted as matching is The trivial way to make the code consistent is to change the comment: # Set recursion limit, for VMs that have one. The other way is to change the code. Any code change that better matches Presuming such an addition to the API, the code can be made to match # Bump up recursion limit, for VMs that have one. What I suspect is the real intent of this code doesn't match either the # Bump up recursion limit, for VMs that default to a low limit. -zefram |
From @cokeOn Thu Nov 07 06:20:28 2013, zefram@fysh.org wrote:
This is only used for parrot - it's a noop on the other 2 nqp backends - I recommend wrapping this line in a #? preprocessor block for parrot only, and changing the comment to reflect that we're just doing this for a single vm. -- |
1 similar comment
From @cokeOn Thu Nov 07 06:20:28 2013, zefram@fysh.org wrote:
This is only used for parrot - it's a noop on the other 2 nqp backends - I recommend wrapping this line in a #? preprocessor block for parrot only, and changing the comment to reflect that we're just doing this for a single vm. -- |
From @pmichaudOn Thu, Nov 14, 2013 at 06:13:39AM -0800, Will Coleda via RT wrote:
In general I greatly prefer to reduce the number of #? preprocessing Even though we don't have a recursion limit for other backends, I Pm |
From @diakopter"Even though we don't have a recursion limit for other backends, I can +1 On Thu, Nov 14, 2013 at 6:34 AM, Patrick R. Michaud <pmichaud@pobox.com>wrote:
-- Login to LinkedIn to see my whole profile and Connect |
@coke - Status changed from 'new' to 'open' |
From @cokeOn Thu Nov 14 06:34:57 2013, pmichaud wrote:
While I agree in general that we should be hiding these differences inside ops in nqp, I disagree on this particular one. It's dealing with a specific behavior needed of the VM by rakudo which isn't appropriate to push into nqp (not every thing using NQP needs the same recursion limit of the lower level VM, e.g.).
At which point the limit on each backend will no doubt need to be different, and we'll need the conditional code even more.
-- |
From zefram@fysh.orgWill Coleda via RT wrote:
Interesting: your view here implies a rather different intent to the If the intent is to cope with, and hide, the fact that Parrot imposes a -zefram |
From @cokeOn Sun Dec 08 17:40:36 2013, zefram@fysh.org wrote:
Rakudo no longer targets the parrot backend of NQP - I've removed the code in rakudo that set the recursion limit since it's a noop on the backends we do target, closing this ticket. The code to attempt to set the recursion limit still exists in NQP - If someone feels strongly about cleaning up NQP, a PR can be opened at https://github.com/perl6/nqp - be sure to include a reference back to this ticket. -- |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#120480 (status was 'resolved')
Searchable as RT120480$
The text was updated successfully, but these errors were encountered: