Skip to content
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

"is cached" isn't. #3463

Open
p6rt opened this issue Jul 28, 2014 · 2 comments
Open

"is cached" isn't. #3463

p6rt opened this issue Jul 28, 2014 · 2 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Jul 28, 2014

Migrated from rt.perl.org#122425 (status was 'open')

Searchable as RT122425$

@p6rt
Copy link
Author

p6rt commented Jul 28, 2014

From @coke

There are two tests in S02-names/is_cached.t that require "is cached"
to function, and not re-execute the sub.

rakudo-jvm fails theses tests, doing the side effect once per invocation.

S06 says​:

This trait is a suggestion to the compiler that caching is okay. The
compiler is free to choose any kind of caching algorithm (including
non-expiring, random, lru, pseudo-lru, or adaptive algorithms, or even
no caching algorithm at all).

So these tests are over-eagerly assuming that is cached will work in this case.

Opening this ticket as a placeholder so I can fudge these for
rakudo.jvm until we get a ruling.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Apr 26, 2016

@coke - Status changed from 'new' to 'open'

@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant