Skip to content

Compare test program output with the other Haxe targets #150

Closed

Description

@dimensionscape

Run the same test programs on hxcpp and on HashLink, eval and JS and diff the output, to find semantic differences systematically instead of one report at a time (see #97 to #135).

Activity

  1. dimensionscape commented on Oct 23, 2026

    @dimensionscape
    MemberAuthor

    Done in 47525836b503f756b9e5a7cbd7f5b45d128bb2e0 and abb37f30d0fc4c5b6e3b61339e9bd2a909df342c. test/targets runs the same programs on C++, cppia (interpreted and with the JIT), JS, eval, Neko, Python and, where CI has them, HashLink, JVM and PHP, and diffs each with C++. A cppia line that differs fails the job; the other targets are reported, each differing line marked with its reason from known-differences.txt or flagged as not explained.

    What it has found so far: the cppia JIT boxing Array Bool results as Int (fixed in a7273a867aa6002e1c858cb225aef54b3c941274, #260). Neko matches C++ on every line, and cppia does too, in both modes. The eval and Python differences are known target differences, apart from two that are eval's own and one in haxe.crypto.Sha256, which gives the String's length rather than its UTF-8 byte count as the message length.

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