--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "component-framework-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to component-framewo...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CA%2BX8dX86B%3D-q%3DLyiOQVQfgxBANCxwAOkXUQow1v4uaGLNTHQpw%40mail.gmail.com.
I agree, that seems like an implementation that fits the fuzzy shape I'm describing.On Tue, Sep 7, 2021 at 11:29 AM Aaron Wood <aaro...@google.com> wrote:This seems pretty similar to what I proposed here: fxr/557361.On Tue, Sep 7, 2021 at 10:35 AM 'Justin Mattson' via component-framework-dev <component-f...@fuchsia.dev> wrote:A recent discussion hit on thoughts I've been having about whether it would be beneficial to have what I'll call "realm-scoped resolvers".
The idea is that these resolvers would use a package index available in the Realm itself. The benefit of such a thing is that we could then have Realms that include certain packages at certain versions. This resolves some tension we have, particularly in testing, about whether to depend on package URLs or bundle components inside the test packages themselves.
----If something like a test can express a dependency on another package, but not include the dependency's components and other files in its own package then we maintain a separate package-internal namespace, eliminating naming conflicts. It also means that both the test package and dependency package can carry their own, appropriate, versions of libraries or other things.This idea also provides some interesting optimization opportunities. If a Realm carried this index and we could read it up front we could make choice about pre-fetching things. One could imagine, for example, prefetching the package meta FARs so that we'd be more quickly able to resolve manifests.I am eager for feedback on this idea.Cheers,Justin
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "component-framework-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to component-framewo...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CA%2BX8dX86B%3D-q%3DLyiOQVQfgxBANCxwAOkXUQow1v4uaGLNTHQpw%40mail.gmail.com.
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "component-framework-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to component-framewo...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CA%2BX8dX9LUoNr9hTovadBv%2Bzbpvgs%3DA4NH7Z%2B8L6eqkKNe3NAog%40mail.gmail.com.
On Tue, Sep 7, 2021 at 2:33 PM 'Justin Mattson' via component-framework-dev <component-f...@fuchsia.dev> wrote:I agree, that seems like an implementation that fits the fuzzy shape I'm describing.On Tue, Sep 7, 2021 at 11:29 AM Aaron Wood <aaro...@google.com> wrote:This seems pretty similar to what I proposed here: fxr/557361.On Tue, Sep 7, 2021 at 10:35 AM 'Justin Mattson' via component-framework-dev <component-f...@fuchsia.dev> wrote:A recent discussion hit on thoughts I've been having about whether it would be beneficial to have what I'll call "realm-scoped resolvers".This already exists, doesn't it? Rather than "realm-scoped" it's environment-scoped, but I think this use case is exactly what environments were meant for.
On Tue, Sep 7, 2021 at 12:36 PM Hunter Freyer <hjfr...@google.com> wrote:On Tue, Sep 7, 2021 at 2:33 PM 'Justin Mattson' via component-framework-dev <component-f...@fuchsia.dev> wrote:I agree, that seems like an implementation that fits the fuzzy shape I'm describing.On Tue, Sep 7, 2021 at 11:29 AM Aaron Wood <aaro...@google.com> wrote:This seems pretty similar to what I proposed here: fxr/557361.On Tue, Sep 7, 2021 at 10:35 AM 'Justin Mattson' via component-framework-dev <component-f...@fuchsia.dev> wrote:A recent discussion hit on thoughts I've been having about whether it would be beneficial to have what I'll call "realm-scoped resolvers".This already exists, doesn't it? Rather than "realm-scoped" it's environment-scoped, but I think this use case is exactly what environments were meant for.I would say yes, but also no. Resolvers exist and are passed via environments, it is true. However, we currently don't have a reasonable way to construct and provider a resolver that meets the idea I'm trying to express. Specifically around the use case of constructing a realm and knowing at that time what packages you would like to be available in that realm at particular versions and creating a resolver that can resolve exactly those.
This type of resolver would be in contrast to general-purpose resolvers, typically meant to resolve any number of packages, typically at the most recent version.
Perhaps that's a sign that resolvers should behave more like what you're describing, and less like how they are today.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CA%2BX8dX917fj%3DtG5O6Bfs2r_1v%2BAKdi--gx5XYz-%2BQ2MZx_c1NQ%40mail.gmail.com.