Comments (4)
Your survey is impressive, thanks so much for such a thorough test.
from wasm-bindgen.
Further literature review suggests that a solution to this problem was attempted by FinalizationRegistry.prototype.cleanupSome
proposal.
However, that proposal was withdrawn on 2023/9.
- tc39/proposals@9b300a2
- https://github.com/tc39/notes/blob/main/meetings/2023-09/september-28.md#withdrawing-finalization-registry-cleanupsome
According to the meeting logs, it seems that it has been decided to attempt to resolve this problem with WebAssembly's JavaScript Promise Integration (JSPI).
Will this issue be resolved in #3633?
from wasm-bindgen.
Interesting, if the conclusion is correct, which would seem intuitive to me (its called GC after all), it seems to me that there isn't really anything wasm-bindgen
can do, right?
Its not clear to me yet if and how the JS Promise integration will be implemented, especially because its just a stopgap for the context switching proposal and isn't even stable yet (and only implemented in Chrome I believe).
from wasm-bindgen.
Thank you for your views. My gut feeling is also that there is nothing wasm-bindgen
can do.
Its not clear to me yet if and how the JS Promise integration will be implemented, especially because its just a stopgap for the context switching proposal and isn't even stable yet (and only implemented in Chrome I believe).
Thanks. That answer is good enough for now. I will check after the JSPI is implemented to see what it is and if it can solve this problem.
from wasm-bindgen.
Related Issues (20)
- `new` constructors for WebIDL bindings introduce undefined behavior by not setting default values HOT 3
- Splitting into multiple lazily-loaded modules HOT 22
- Could I send an option with Element to js function? HOT 2
- `wasm-bindgen` 0.2.92 triggers `clippy::mem_forget` HOT 2
- `wasm-bindgen` appears to trigger new `clippy` lint `clippy::empty_docs` HOT 3
- "memory access out of bounds" on allocating large structs.
- Promise's `then` method doesn't support Closures with return values HOT 1
- Reference count of a javascript object HOT 2
- Allow `typescript_type` on struct fields. HOT 3
- Error when running "cargo leptos watch" HOT 2
- Bench `wasm-bindgen-futures` against `spawn64` HOT 8
- JS Pointer gets nulled if rust method defined as self: &Self instead of &self
- IDBDatabase webidl is incomplete HOT 2
- Still alive for issue #2168 HOT 1
- Library doesn't compile with `default-features=false` HOT 2
- web-sys: unnecessary &mut requirement in WebUSB functions, potentially others HOT 3
- use global paths / #[wasm_bindgen] could not find `ops` in `core`
- docs: add examples docs comment how to use it, instead just put MDN docs. HOT 2
- Is there a reason why `TryFromJsValue` takes ownership of the `JsValue`?
- docs(wasm-bindgen-test): testing using private module still works? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-bindgen.