uwiger / sext

Sortable Erlang Term Serialization
Apache License 2.0
106 stars 52 forks source link

Handle OTP-26 external term format changes #38

Closed mikpe closed 11 months ago

mikpe commented 11 months ago

There are two changes in OTP-26:

  1. Atoms embedded in pids/ports/refs are by default encoded as SMALL_ATOM_UTF8_EXT.
  2. Ports switch to a new format with longer IDs, V4_PORT_EXT. This required adding a prefix byte to signal the longer IDs, but also to ensure their sorting is consistent with the sorting of the previous format.

Tested (only eunit since I don't have EQC) with OTP 24.3.4.14 and 26.1.2.

uwiger commented 11 months ago

Thanks. Preparing to run the eqc tests in the near future.

uwiger commented 11 months ago

QuickCheck tests (10 000 tests) succeeded on both OTP 25 and 26. Merged. Thanks!