-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List representation in WASM #22
Comments
Using the array type described in the gc proposal to represent the lists. Sample
Procedure:
|
Using this method doesn't allow us to push content to an array because array length is predefined.
|
Option 2 is the way to go, look at array in C runtime. we do the same there. |
Another option is to wrap javascript array shall we give that a try. |
Array provides gc support in wasm. If we use C or Js wouldn't it remove that advantage |
|
If we are to create a new array when pushing to an array. Then we change the reference of the array. Then the following program fails.
The expected output should be |
I think I didn't make myself clear enough in above 1. |
Current implementation:
|
No description provided.
The text was updated successfully, but these errors were encountered: