Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Video Call: August 8th 2019 #54

Closed
jgravelle-google opened this issue Aug 2, 2019 · 5 comments
Closed

Video Call: August 8th 2019 #54

jgravelle-google opened this issue Aug 2, 2019 · 5 comments
Labels
Meeting Tracking label for scheduled meetings

Comments

@jgravelle-google
Copy link
Contributor

jgravelle-google commented Aug 2, 2019

No registration required. Email jgravelle [ at ] google (dot) com for the meeting link. (Meeting will use Zoom software)

Meeting will start at 12noon PDT, and will last one hour (until 1pm PDT).

Please suggest agenda items as comments on this issue.


Notes here

@jgravelle-google jgravelle-google added the Meeting Tracking label for scheduled meetings label Aug 2, 2019
@lukewagner
Copy link
Member

Agenda item: naming/terminology (and what of ☃)

@lukewagner
Copy link
Member

Another agenda item: idea for how to avoid slices/views altogether (at least until wasm adds a first-class sliceref)

@jgravelle-google
Copy link
Contributor Author

Notes here

@PoignardAzur
Copy link

Reading the notes, it sounds like the semantics of passing/returning slices was discussed, but no conclusion was reached? Did I get that right?

@lukewagner Is sliceref as a first-class type defined somewhere? Like, is there a public proposal, or is it an informal idea?

@lukewagner
Copy link
Member

In the call I basically just explained some recent thinking on whether we need slices/views. Namely:

  1. passing out a view to linear memory (as a typed array view or sliceref) is a pretty dangerous thing; it means that you now have to worry about the lifetime of that region of memory (with "use after free" bugs if the caller and callee don't agree)
  2. but a lot of Web APIs take views, where the host both reads and writes from/to the view
  3. a sequence-of-bytes interface value could be optimized to do no more copying than a view when calling a host API (with the right adapter expressions)

And thus perhaps we can leave out slices, at least from the initial proposal so that we can focus on the safer, more composable value semantics.

I'm afraid there's no written-up proposal for sliceref; it's just a very old idea that we assume we'll get around to at some point in time. The idea is basically to have a first-class typed array view that wasm can dynamically load and store from, ideally being able to point into both linear memory and ArrayBuffers (on the web).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Meeting Tracking label for scheduled meetings
Projects
None yet
Development

No branches or pull requests

3 participants