in reply to Release: JSON::SIMD

G'day kikuchiyo,

Successfully installed on Cygwin running Perl v5.36.0. I was rather surprised that the CPAN Testers Matrix was updated almost immediately; anyway, there's further details there if you want them.

From "JSON::SIMD vs JSON::XS":

"At this time JSON::SIMD is not supported by JSON, JSON::MaybeXS or any other wrapper or compatibity modules, you have use it explicitly."

That's a pity. I like to code "use JSON;"; then in POD, recommend installation of JSON::XS for the speed bonus. Are you intending to add such support in a future release?

— Ken

Replies are listed 'Best First'.
Re^2: Release: JSON::SIMD
by hippo (Archbishop) on Apr 19, 2023 at 08:08 UTC
    That's a pity. I like to code "use JSON;"; then in POD, recommend installation of JSON::XS for the speed bonus.

    It is a pity. I, OTOH, like to just use JSON::MaybeXS everywhere and then never have to worry about it. Once JSON::SIMD proves to be stable I would like to see it added into the list for JSON::MaybeXS at a higher priority than JSON::XS, which would then be the obvious fallback if jSON::SIMD isn't installed.


    🦛

      That's fair enough. I wasn't trying to push any particular JSON::* module; just reporting my typical usage.

      I suppose, with JSON, you could use the environment variable, $PERL_JSON_BACKEND, along these lines:

      export PERL_JSON_BACKEND=JSON::SIMD,JSON::XS,JSON::PP

      Although, I haven't tried that.

      — Ken

Re^2: Release: JSON::SIMD
by kikuchiyo (Hermit) on Apr 19, 2023 at 18:19 UTC

    I was rather surprised that the CPAN Testers Matrix was updated almost immediately

    I was surprised that it worked at all, for the last few weeks it threw errors for me whenever I tried to check anything. It appears to work right now, though.

    On the other hand, I've found that the fast-matrix view is indeed faster and it seemed to work even when the main one didn't, e.g. see here. Even now it shows more tests than the main view.

    Are you intending to add such support in a future release?

    I'd be all for it, but I'm afraid it's outside my jurisdiction. All I can do is raise the issue with the maintainers of these modules, and hope for the best.

      "... the CPAN Testers Matrix was updated almost immediately"
      "... I've found that the fast-matrix view is indeed faster ..."

      I may have misinterpreted your intent, but I wasn't referring to how quickly the page rendered.

      After successfully installing, probably just a minute or two later, I followed the Testers link purely out of curiosity. I didn't expect my report to be there; normally there's a delay of at least a few hours.

      — Ken