simd-json icon indicating copy to clipboard operation
simd-json copied to clipboard

docs: note that simd-json doesn't work on big endian platforms

Open jqnatividad opened this issue 4 months ago • 2 comments

In my project - qsv, I had to put in conditional compilation directives to use serde_json in big endian platforms (e.g. s390x) and only use simd-json, on little endian.

Perhaps, a short note in the README.md?

jqnatividad avatar Oct 12 '25 22:10 jqnatividad

This is not quite correct, I'm running simd_json on little endian (arm) systems both in dev and production. Could you share some details like failing cases, errors, tetss?

Licenser avatar Oct 13 '25 09:10 Licenser

Yep, that's what I'm reporting - simd_json works like a charm on little endian platforms.

However, on the s390x IBM Z mainframe (s390x-unknown-linux-gnu) which is big endian, it doesn't and I had to use serde_json instead with conditional compilation directives.

Check out the CI test runs on - https://github.com/dathere/qsv/actions/workflows/rust-s390x.yml

And these are the changes I needed to make for the s390x CI to work: https://github.com/dathere/qsv/commit/d667aeabcfb2f528dd74d17ed4d101cc47ea9e52 https://github.com/dathere/qsv/commit/f74290e60b058f846613f6bb2a978e5621cd17f2 https://github.com/dathere/qsv/commit/acf2acbb466aa86d0890f68ed47e0fd523c22a21 https://github.com/dathere/qsv/commit/f27113607c2695013969dc89aa356c1774760470

jqnatividad avatar Oct 13 '25 10:10 jqnatividad