Comments (2)
We currently don't consider dart:ffi
as a supported thing that end users will use. There's a limited use in flutter web engine, which is supported. I believe that limited use doesn't use structs by value and is also restricted to static @Native
interop usages. None of the ffi tests in the tests/ffi
test suite run on wasm - we only have tests/web/wasm/ffi_native_test.dart
.
Longer term we'll require multiple memories for wasm. We'll have to see what functionality of dart:ffi
we want to support and how to expose it to users - maybe through dart:ffi
library - maybe not.
So for now we should ensure that the ffi features which the flutter web engine requires are tested in tests/web/wasm/ffi_native_test.dart
and we keep that supported.
from sdk.
Also, it would break nested compounds if the suggestion in #54892 is implemented, as the
_offsetInBytes
would not be saved anywhere.
@mkustermann @osa1 @eyebrowsoffire Are you aware of any uses of nested structs or arrays in current dart:ffi
usage (only skwasm right?) in dart2wasm?
CL breaking nested compounds in dart2wasm: https://dart-review.googlesource.com/c/sdk/+/354226 (We have no dart2wasm tests exercising nested compounds. So nothing goes red.)
from sdk.
Related Issues (20)
- Analyzer and compiler disagree on whether extension type implementing Future is FutureOr HOT 4
- test_fileSystem_deleteFile_packageConfigJsonFile fails
- [dart:js_interop] Warn that @anonymous and @staticInterop don't do anything on extension types
- Type inference resolves to <Diagnosticable> HOT 6
- analyzer throws "type_argument_not_matching_bounds" on extension type HOT 2
- Should inner identifiers in a declaration's signature be referable in doc comments HOT 2
- Simple fixedList.setAll is not working !! - this simple implementation is getting stuck HOT 4
- Package:web usage for migration HOT 1
- log is defined in math and developer packages and has a completely different purpose, we should avoid name collision in the standard library when it make sense HOT 10
- `dart analyze` cannot analyze file without `.dart` extension. HOT 1
- Hover for docs in `analysis_options`
- Autocomplete in `analysis_options` analyzer -> errors/language
- Analysis server fails to initialize/create contexts with an invalid entry in lint rules
- vm crash on dart fuzzer test - SelectRepresentations at CalculateElementAddressInstr HOT 1
- Dart analyzer crashes reliably working with macros. HOT 16
- TSAN: data race between mutator and background compiler
- Dart 3.3.4 docker error HOT 2
- easy way to customize the diagnostic severity of all lint rules HOT 1
- TSAN: data race in reaching reload safepoint with another isolate starting
- TSAN: data race setting growth policy after loading 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 sdk.