"Executing WebAssembly in repository rules" #25537
Replies: 7 comments 23 replies
-
@meteorcloudy @Wyverald @meisterT please weigh in! |
Beta Was this translation helpful? Give feedback.
-
Re: "Download a pre-compiled WebAssembly runtime"Can we use this approach as a stepping stone to test out whether and how it is adopted? If it is widely successful, we can smoothen the integration in Bazel at a later point. Seems to me also to be an integral part of supporting older Bazel versions anyway. You state as one of the downsides selecting/downloading precompiled binaries. Is there some shared/common infra that we could provide to ruleset authors so not everyone has to do it by themselves? |
Beta Was this translation helpful? Give feedback.
-
I'm not too enthusiastic about this idea for two reasons:
In addition to these, this would not provide a lot of additional value over downloading a pre-compiled WASM runtime. Yes, I do realize that @jmillikin is explicitly saying above that a pre-compiled WASM runtime doesn't bring too much value, but I don't buy that argument: it hinges on pre-compiled binaries not being good enough, which would require that platforms for which one can't provide one see a lot of use. Bazel provides binaries for six combinations of ARM64/x64 and Linux/Mac OS/Windows, which I hope covers most of the use, otherwise we should be providing more pre-compiled binaries! (I do no have the telemetry to say that definitively, though) |
Beta Was this translation helpful? Give feedback.
-
@jmillikin Have you done any benchmarks for Chicory? For example, how long does it take to parse and generate the BUILD files for some repo rule that currently relies on a native binary? |
Beta Was this translation helpful? Give feedback.
-
I wonder if we can solve the problem using a different solution. Recently, there have been a few talks about "Build rules generating BUILD files", which may let us shift the BUILD file generation into Bazel action graph. I know that any possible solution is quite distant away, but if that feature is available, then the "BUILD gen" action will be subjected to w/e tool and sandbox option configured by user code, bypassing the need for wasm-support in rctx? |
Beta Was this translation helpful? Give feedback.
-
A few of us met in a VC to discuss this. We've decided to approve this proposal.
|
Beta Was this translation helpful? Give feedback.
-
I believe this makes a great sense and will ease the pain of maintainers in a lot of areas and I do agree with the portability argument. Here is some areas where i think a native support will greatly help.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the discussion thread for @jmillikin 's proposal Executing WebAssembly in repository rules.
Beta Was this translation helpful? Give feedback.
All reactions