Stream: git-wasmtime

Topic: wasmtime / PR #2869 Add example of execution limits using...


view this post on Zulip Wasmtime GitHub notifications bot (May 02 2021 at 23:29):

ryanpbrewster opened PR #2869 from rpb/fuel-example to main:

This is a quick example of using the "fuel consumption" logic introduced in https://github.com/bytecodealliance/wasmtime/pull/2611/.

It computes larger and larger Fibonacci numbers (using the expensive recursive algorithm) until the computation requires more than 10k fuel.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 02:51):

ryanpbrewster updated PR #2869 from rpb/fuel-example to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 14:33):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 14:33):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 14:33):

alexcrichton created PR Review Comment:

Could this be written in either the "naive" form (which should be easier to read) or as a Rust program where the source is more readable? I'm a bit worried that digesting this *.wat file is a little complicated.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 16:31):

ryanpbrewster updated PR #2869 from rpb/fuel-example to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 16:32):

ryanpbrewster submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 16:32):

ryanpbrewster created PR Review Comment:

I took a stab at re-implementing this using a more natural style. PTAL.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 18:54):

ryanpbrewster updated PR #2869 from rpb/fuel-example to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 19:27):

ryanpbrewster updated PR #2869 from rpb/fuel-example to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 03 2021 at 19:35):

ryanpbrewster updated PR #2869 from rpb/fuel-example to main.

view this post on Zulip Wasmtime GitHub notifications bot (May 04 2021 at 15:39):

alexcrichton merged PR #2869.


Last updated: Nov 22 2024 at 17:03 UTC