Skip to content

Assure glitch-freedom of propagation algorithm #37

Closed

Description

@amb26

I really appreciate the benchmarks at https://github.com/transitive-bullshit/js-reactivity-benchmark?tab=readme-ov-file#results showing great performance of alien-signals. Previously I had adopted preact-signals not only because of good performance but because of the really substantial test suite verifying glitch-freedom in a good variety of geometries such as https://github.com/preactjs/signals/blob/main/packages/core/test/signal.test.tsx#L1383-L1407

Note that these test cases are sufficiently regarded that they are being adopted wholesale by other implementations e.g. the upcoming "solid signals" at https://github.com/solidjs/signals/blob/main/tests/graph.test.ts#L5-L29

I'm excited by work at proposal-signals/signal-polyfill#44 to produce a TC39 proposal API on alien-signals and would love to be able to get confidence that the implementation remains glitch-free, which is a goal of the TC39 work listed at https://github.com/tc39/proposal-signals?tab=readme-ov-file#core-features

Would it be welcomed to contribute/adopt test cases assuring this or could this be done via another approach?

Activity

  1. johnsoncodehk commented on Jan 14, 2025

    @johnsoncodehk
    Collaborator

    I've always wished there was a framework-agnostic signal test suite repo, like js-reactivity-benchmark, but for testing. I had a quick look at preact's tests and it doesn't seem to be easy to port to alien-signals, if you'd like to open a PR we're definitely welcome!

    On the other hand I've been testing alien-signals in Vue's test suite, so it's been glitch-freedom at least in Vue's use cases.

  2. added 2 commits that reference this issue on Jan 15, 2025
    c09be25
    6e2a39f
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions