Coder Social home page Coder Social logo

Comments (2)

mkustermann avatar mkustermann commented on August 28, 2024 1

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.

dcharkes avatar dcharkes commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.