dependabot[bot] opened a new pull request, #26342: URL: https://github.com/apache/beam/pull/26342
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero) from 1.0.1 to 1.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tetratelabs/wazero/releases">github.com/tetratelabs/wazero's releases</a>.</em></p> <blockquote> <h2>v1.0.2</h2> <p>wazero 1.0.2 improves compiler performance, supports non-blocking stdin and adds a couple new experimental APIs.</p> <p>Many people were involved in a lot of work in the last 3 weeks. Please reach out and thank them!</p> <h2>Improved compiler performance</h2> <p>wazero has a compile phase (CompileModule) which lowers WebAssembly bytecode into an intermediate representation (IR) and into machine code. This process is CPU and memory intensive and has been optimized significantly since 1.0.1.</p> <p>We used <a href="https://github.com/ncruces/go-sqlite3">SQLite</a> wasm, to ensure the encouraging improvements were relevant to real-world use cases.</p> <pre><code>goos: linux goarch: amd64 pkg: github.com/tetratelabs/wazero/internal/integration_test/bench cpu: AMD Ryzen 9 3950X 16-Core Processor │ v1.0.1.txt │ new.txt │ │ sec/op │ sec/op vs base │ Compilation_sqlite3/compiler-32 1001.9m ± 2% 544.0m ± 2% -45.70% (p=0.001 n=7) Compilation_sqlite3/interpreter-32 208.57m ± 5% 83.81m ± 5% -59.82% (p=0.001 n=7) <pre><code> │ v1.0.1.txt │ new.txt │ │ B/op │ B/op vs base │ </code></pre> <p>Compilation_sqlite3/compiler-32 305.10Mi ± 0% 55.31Mi ± 0% -81.87% (p=0.001 n=7) Compilation_sqlite3/interpreter-32 142.24Mi ± 0% 51.77Mi ± 0% -63.60% (p=0.001 n=7)</p> <pre><code> │ v1.0.1.txt │ new.txt │ │ allocs/op │ allocs/op vs base │ </code></pre> <p>Compilation_sqlite3/compiler-32 5217.0k ± 0% 343.2k ± 0% -93.42% (p=0.001 n=7) Compilation_sqlite3/interpreter-32 1770.43k ± 0% 14.00k ± 0% -99.21% (p=0.001 n=7) </code></pre></p> <p>The changes to bring the above included a series of refactoring by <a href="https://github.com/evacchi"><code>@evacchi</code></a> on <a href="https://redirect.github.com/tetratelabs/wazero/issues/1202">union types</a>, as well <a href="https://github.com/tetratelabs/wazero/compare/v1.0.1...v1.0.2"><code>dozens of optimizations by @mathetake</code></a>, and a couple by <a href="https://github.com/ckaznocha"><code>@ckaznocha</code></a>.</p> <p>All of this was easier due to frequent and thorough advice by <a href="https://github.com/achille-roussel"><code>@achille-roussel</code></a> and our latest core maintainer <a href="https://github.com/ncruces"><code>@ncruces</code></a>. Thanks to all involved for the epic improvement in less than 3 weeks!</p> <h2>Non-blocking stdin</h2> <p><a href="https://github.com/ktock/container2wasm">container2wasm</a> is an interesting project that converts containers such that they can run in a webassembly runtime, such as a browser or wazero.</p> <p>One feature this relies on is non-blocking access to STDIN. Like some other runtimes, wazero didn't handle this properly.</p> <p>Thanks to a lot of effort by <a href="https://github.com/evacchi"><code>@evacchi</code></a> with advice from <a href="https://github.com/achille-roussel"><code>@achille-roussel</code></a> and support from the container2wasm author <a href="https://github.com/ktock"><code>@ktock</code></a>, wazero now handles non-blocking STDIN properly (via the select syscall).</p> <h2>Experimental changes</h2> <p>Code in our "experimental" directory isn't under an API guarantee, so can change even in a patch version. Here are a couple new experiments since last release.</p> <ul> <li><a href="https://github.com/pelletier"><code>@pelletier</code></a> added a StackIterator parameter to listeners, allowing inspection of the stack leading to a function call. Thanks to <a href="https://github.com/Pryz"><code>@Pryz</code></a> for the initial design and background, as this is used for CPU profiling data.</li> <li><a href="https://github.com/codefromthecrypt"><code>@codefromthecrypt</code></a> added <code>emscripten.InstantiateForModule</code> to dynamically build function imports given a CompiledModule. Thanks to <a href="https://github.com/jerbob92"><code>@jerbob92</code></a> for the idea and testing with various PDF tools.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tetratelabs/wazero/commit/ea336061c2b18538ae5d55b2372814db7d5ad88c"><code>ea33606</code></a> wasi: introduce platform.Select and use it for poll_oneoff (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1346">#1346</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/ab785919152e16ebc1c3fee7c9136af9c303fc6c"><code>ab78591</code></a> Revert "examples(allocation): free memory after unmarshalling a result from t...</li> <li><a href="https://github.com/tetratelabs/wazero/commit/df0faa5d1681bcc75abc15a806976db2bdd546c8"><code>df0faa5</code></a> emscripten: adds experimental InstantiateForModule for invoke exports (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1372">#1372</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/2a2e07a91f30237915f1fcaea211e6e0c16aac41"><code>2a2e07a</code></a> asm/arm64: uses enum for operand types (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1378">#1378</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/5aafcc4836498eb2919148214d268b82cfcf28a2"><code>5aafcc4</code></a> examples(allocation): free memory after unmarshalling a result from the guest...</li> <li><a href="https://github.com/tetratelabs/wazero/commit/6a4bdd31db6917e66297dc2511407a057c8ccb86"><code>6a4bdd3</code></a> compiler: fixes false-positive invalid ptr detection in -race (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1376">#1376</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/9aca08c5e61cf8ed7c55b35f8ce503c227de9aba"><code>9aca08c</code></a> Provide new StackIterator to Before Listener hook (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1363">#1363</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/cd34767954177c7f7eb839c1c6dba6df202ddae1"><code>cd34767</code></a> Fixes race where HostFunc names are needlessly lazy set (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1375">#1375</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/b32189e5a9282984a9b7d2384714d26214a94b5b"><code>b32189e</code></a> wasi: fix zig-cc/wasi.c repeat arg (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1371">#1371</a>)</li> <li><a href="https://github.com/tetratelabs/wazero/commit/9263bef174b4fd21ef717566ddada0616cd1c9aa"><code>9263bef</code></a> logging: fixes bug where unsampled logger is called from a sampled one (<a href="https://redirect.github.com/tetratelabs/wazero/issues/1369">#1369</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tetratelabs/wazero/compare/v1.0.1...v1.0.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
