proposals icon indicating copy to clipboard operation
proposals copied to clipboard

🛤 JavaScript BigInt to WebAssembly i64 integration

Open binji opened this issue 7 years ago • 4 comments

This is a tracking issue for a post-MVP feature It will be updated as the issue progresses.

Topic JavaScript BigInt to WebAssembly i64 integration Champion Dan Ehrenberg @littledan
Status in progress Phase proposed spec text available Linked issues https://github.com/WebAssembly/spec/pull/707 Linked repositories github.com/WebAssembly/JS-BigInt-integration

Details

With this patch, BigInts have support for bidirectionally converting to 64-bit integer WebAssembly values, which appears as

  • Parameters and return values to exported WebAssembly functions
  • Parameters and return values to host functions
  • Imported and exported globals

BigInts can be read or written from WebAssembly memory using the BigInt proposal's BigInt64Array or BigUint64Array; no additional support is needed.

binji avatar Oct 16 '18 22:10 binji

It's implemented in Firefox and it's been baking in Nightly for some time. What's the status of other implementations, tools, spec text? It would be nice to ship this if we can.

lars-t-hansen avatar Mar 19 '20 13:03 lars-t-hansen

It's implemented in Chrome as well. Spec tests were still lacking last time I checked.

gahaas avatar Mar 19 '20 16:03 gahaas

Spec text and tests are done in the proposal repo. Not sure if we need anything on the tools side. Given the restrictions to comment to this issue, I've created https://github.com/WebAssembly/JS-BigInt-integration/issues/32 in for further discussion.

Ms2ger avatar Mar 24 '20 10:03 Ms2ger

CG approved phase 4 in the 2020-05-12 meeting.

Ms2ger avatar May 12 '20 16:05 Ms2ger