Re: StableValue vs Optional

2025-06-17 Thread Mickael Istria
d easily think of completng StableValue.| to get a Supplier. > -- Mickael Istria Eclipse IDE <https://www.eclipse.org/eclipseide> developer, for Red Hat <https://developers.redhat.com/>

Re: StableValue vs Optional

2025-06-17 Thread Mickael Istria
On Tue, Jun 17, 2025 at 3:34 PM Maurizio Cimadamore < maurizio.cimadam...@oracle.com> wrote: > Note that this is already part of the StableValue API: > https://download.java.net/java/early_access/jdk25/docs/api/java.base/java/lang/StableValue.html#supplier(java.util.function.Supplier) > Yes, that

Re: StableValue vs Optional

2025-06-17 Thread Mickael Istria
Thanks for your answer. > the most minimalistic type to model that would be a Supplier. Indeed. I mentioned Optional, but as the discussion goes, what could work instead of an Optional would be a constructor `Supplier.cache(Supplier computer)` that would cache the computed value. That would be ev

StableValue vs Optional

2025-06-17 Thread Mickael Istria
ong feeling that it can be worth having it evaluated as an alternative in the JEP before things get final. Cheers, -- Mickael Istria Eclipse IDE <https://www.eclipse.org/eclipseide> developer, for Red Hat <https://developers.redhat.com/>

Re: RFR: 8352642: Set zipinfo-time=false when constructing zipfs FileSystem in com.sun.tools.javac.file.JavacFileManager$ArchiveContainer for better performance

2025-03-28 Thread Mickael Istria
Hello, On Fri, Mar 28, 2025 at 12:56 AM Jason Zaugg wrote: > A GitHub code search reveals this idea is also pursued in [Eclipse JDT]( > https://github.com/eclipse-jdtls/eclipse-jdt-core-incubator/blob/e3fd9a0c74374951d4c91663a6fd52f16f6ee9c6/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/interna