Coder Social home page Coder Social logo

Comments (3)

mkustermann avatar mkustermann commented on July 21, 2024

We should have disallowed importing dart:ffi so one cannot run into this anymore, right?

As mentioned in may places, dart2wasm doesn't support dart:ffi at this moment. We do support a small subset of it, sufficient for skwasm.

The tracking bug for adding web support for dart:ffi is #46690 (structs-by-value is only one of the many dart:ffi things that haven't been implemented in dart2wasm)

If this isn't an immediate issue for skwasm (@eyebrowsoffire is it?) itself, then I suggest we close it in favor of #46690.

from sdk.

dart-github-bot avatar dart-github-bot commented on July 21, 2024

"The dart compile wasm command crashes when using an FFI struct as a parameter to a @Native function. This suggests an issue with how the Dart FFI types are being mapped to WebAssembly types during compilation."

labels: area-dart2wasm, type-bug

from sdk.

mkustermann avatar mkustermann commented on July 21, 2024

As we currently don't really support dart:ffis full feature set and do not allow 3rd parties to import it anymore, I consider this more a feature request for dart:ffi for the web (or the specific struct-by-value feature) instead of a report of a bug.

So will close this in favor of the more general support dart:ffi on the web. We have started discussions on this topic on the compiler teams and evaluate how we want to expose this in a way that makes sense for the product.

I hope that's ok.

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.