Skip to content

document why the ppx can't be the same for melange and native #54

Open

Description

@Khady

at first glance it's not obvious why a melange project can't just use the usual ppx_deriving_yojson/ppx_yojson_conv. And then why melange-json exposes 2 different ppx depending on the compilation target.

Activity

  1. jchavarri commented on Mar 11, 2025

    @jchavarri
    Member

    Don't have time now to write proper docs, but the main reason is that in the browser you can leverage Json.parse, which can be faster than any other alternative, and requires much less runtime.

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