Skip to content

[SIMD] Move SIMD fallback bodies into Dart. #64248

Open

Description

@modulovalue

@alexmarkov & @mraleph I see that you're working on the typed_data recognized methods in modular_aot. What do you think about moving the SIMD fallbacks declared on C++-side into Dart. That way we wouldn't have to maintain two fallback implementations. We won't be able to move everything, but I think most of it.

I've been adding them to C++ for consistency, but I personally think declaring those that we can declare on Dart-side would be much cleaner since we already have fallbacks in Dart for, e.g., JS and DDC.

Activity

  1. alexmarkov commented on Sep 9, 2026

    @alexmarkov
    Contributor

    I think this is a good idea. If Dart implementation is possible, we should prefer Dart rather than native fallback.

  2. added
    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
    on Sep 9, 2026
  3. added
    triagedIssue has been triaged by sub team
    type-enhancementA request for a change that isn't a bug
    on Sep 9, 2026
  4. biggs0125 commented on Sep 9, 2026

    @biggs0125

    @modulovalue Is this something you're planning on/interested in adding?

  5. modulovalue commented on Sep 9, 2026

    @modulovalue
    ContributorAuthor

    @biggs0125 Yes!

    We should make sure the implementations are correct before we move things over. Floats are blocked by #63962 (min/max) and #39551 (reciprocalSqrt), clamp & scale. I'm on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamtype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions