Stream: wasm

Topic: rust wasm tooling repo


view this post on Zulip Alex Crichton (May 19 2020 at 02:32):

One thought I just had, @Yury Delendik what would you think of merging the wasmparser, wat, and wasmprinter repos? They sort of all change in lockstep anyway and it'd make it a lot easier to do sweeping changes (like implementing new proposals)

view this post on Zulip Alex Crichton (May 19 2020 at 02:33):

It could be a general "low level wasm tooling in that place" perhaps, not a home for something higher level like walrus

view this post on Zulip Yury Delendik (May 19 2020 at 13:34):

I had that thought as well. That's okay with me. What will be a repo name?

view this post on Zulip Alex Crichton (May 19 2020 at 14:01):

hm I hadn't thought that far, we could also do something bland like "wasm-tooling"

view this post on Zulip Yury Delendik (May 19 2020 at 14:09):

okay. I don't know what involved in merging two repos, but first step can be moving wasmparser into bytecodealliance/wat

view this post on Zulip Yury Delendik (May 19 2020 at 14:10):

there are not many issues opened with wasmparser -- I assume it is easy to move them by hand if needed

view this post on Zulip Alex Crichton (May 19 2020 at 14:11):

yeah these are all pretty small

view this post on Zulip Alex Crichton (May 19 2020 at 14:11):

@fitzgen (he/him) do you have thoughts on this perhaps?

view this post on Zulip Till Schneidereit (May 19 2020 at 14:14):

I think this is a good idea, fwiw!

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:12):

Yeah sounds good. Maybe we could call it WART: web assembly rust toolkit :joy:

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:13):

Or maybe bugs, as in bugs bunny, to go along with WABT

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:13):

But yeah the one thing missing is a wasm binary encoder

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:14):

Which we could extract from walrus sometime

view this post on Zulip Yury Delendik (May 19 2020 at 15:15):

keep it wat, as in WebAssembly Toolkit ?

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:17):

We are just naming the repo, right? Not renaming or merging the crates themselves, which are just moving?

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:17):

If so, wat could be confusing since one of the crates has that name

view this post on Zulip fitzgen (he/him) (May 19 2020 at 15:18):

Mostly I was joking with the names, and I agree a boring name like wasm-tools or something is a good fit

view this post on Zulip Alex Crichton (May 19 2020 at 16:18):

yeah I'm not thinking we should reorganize the crates at all, just merge repos

view this post on Zulip Alex Crichton (May 19 2020 at 16:18):

and update test suites so they're all referential

view this post on Zulip Alex Crichton (May 19 2020 at 16:19):

ok so how about bytecodealliance/wasm-tools

view this post on Zulip Alex Crichton (May 19 2020 at 16:19):

and a top-level crate that has src/bin/*.rs for things like wasm2wat and whatnot (probably with a -rs suffix or something like that)

view this post on Zulip Alex Crichton (May 19 2020 at 16:19):

and crates/{wasmparser,wasmprinter,wat,wast} ?

view this post on Zulip Alex Crichton (May 19 2020 at 16:19):

I can prep the repo if that sounds good

view this post on Zulip fitzgen (he/him) (May 19 2020 at 17:37):

@Alex Crichton sounds great!

view this post on Zulip Alex Crichton (May 19 2020 at 21:32):

@fitzgen (he/him) @Yury Delendik WDYT? https://github.com/bytecodealliance/wasm-tools

Low level tooling for WebAssembly . Contribute to bytecodealliance/wasm-tools development by creating an account on GitHub.

view this post on Zulip fitzgen (he/him) (May 19 2020 at 21:35):

looks great!

view this post on Zulip Yury Delendik (May 19 2020 at 21:36):

wfm, what about history?

view this post on Zulip Alex Crichton (May 19 2020 at 21:38):

That repo is currently created by literally using git merge between the all repos

view this post on Zulip Alex Crichton (May 19 2020 at 21:38):

so the history for each repo should be there

view this post on Zulip Alex Crichton (May 19 2020 at 21:38):

with one commit per repo to move everything to a sub-folder

view this post on Zulip Yury Delendik (May 19 2020 at 21:38):

okay, I see, it is just github

view this post on Zulip Alex Crichton (May 19 2020 at 21:41):

I tried to do my best when unifying the test suite

view this post on Zulip Alex Crichton (May 19 2020 at 21:41):

the tests/roundtrip.rs script is pretty gnarly though

view this post on Zulip Alex Crichton (May 19 2020 at 21:41):

it's not entirely trivial to run all the wast tests

view this post on Zulip Alex Crichton (May 19 2020 at 21:41):

esp when we're juggling different implementation levels for various proposals across all the tools

view this post on Zulip Alex Crichton (May 19 2020 at 22:00):

ok I'll pull the trigger on this tomorrow unless an objection comes up?

view this post on Zulip Yury Delendik (May 19 2020 at 22:05):

Do we want to open issue(s) with announcement on merged repos?

view this post on Zulip Alex Crichton (May 19 2020 at 22:05):

What I'd imagine is similar to cranelift, which is to transfer all active issues as well as leaving a comment on open PRs

view this post on Zulip Alex Crichton (May 19 2020 at 22:06):

and otherwise updating the master branch to say it points elsewhere

view this post on Zulip Alex Crichton (May 19 2020 at 22:06):

I'd probably immediately read-only the wat/wasmprinter repos since they don't have open PRs

view this post on Zulip Alex Crichton (May 19 2020 at 22:06):

and we could read-only wasmparser eventually once prs have moved

view this post on Zulip Alex Crichton (May 19 2020 at 22:06):

er, read-only being "archive"

view this post on Zulip Alex Crichton (May 20 2020 at 14:49):

ok I'm pulling the trigger

view this post on Zulip Yury Delendik (May 20 2020 at 18:21):

@Alex Crichton will you publish new versions of wasmparser? or what is the process?

view this post on Zulip Alex Crichton (May 20 2020 at 18:21):

nah I think it's fine to do what you did before

view this post on Zulip Alex Crichton (May 20 2020 at 18:21):

basically just push a commit with a version and hit publish

view this post on Zulip Alex Crichton (May 20 2020 at 18:21):

although there's no need to publish the tail call stuff

view this post on Zulip Alex Crichton (May 20 2020 at 18:21):

I'm just trying to get wat/wasmparser on parity

view this post on Zulip Alex Crichton (May 20 2020 at 18:21):

and get wasmparser pass the current set of spec tests

view this post on Zulip Yury Delendik (May 20 2020 at 18:22):

but it triggers version change

view this post on Zulip Yury Delendik (May 20 2020 at 18:22):

shall we ensure version change goes into PR?

view this post on Zulip Alex Crichton (May 20 2020 at 18:23):

personally I take a look at the changes when publishing a version

view this post on Zulip Alex Crichton (May 20 2020 at 18:23):

so I leave it as-is in the repo until I publish

view this post on Zulip Yury Delendik (May 20 2020 at 18:23):

okay

view this post on Zulip Alex Crichton (May 20 2020 at 18:23):

then when publishing I reverse-engineer whether a bump should happen or not

view this post on Zulip Alex Crichton (May 20 2020 at 18:23):

although I wouldn't say it's a great system


Last updated: Dec 23 2024 at 13:07 UTC