search for: primoffset

Displaying 3 results from an estimated 3 matches for "primoffset".

Did you mean: piooffset
2024 Jan 18
1
Choices to remove `srcref` (and its buddies) when serializing objects
...NaNs with different payloads (except NA_numeric_) are replaced by R_NaN. One of the many downsides to the current approach is that we rely on the non-API entry point getPRIMNAME() in order to hash builtins. Looking at the source code for identical() is no help here, because it uses the private PRIMOFFSET macro. The bitstream being hashed is also, unfortunately, not exactly compatible with R serialization format version 2: I had to ignore the LEVELS of the language objects being hashed both because identical() seems to ignore those and because I was missing multiple private definitions (e.g. the MA...
2024 Jan 18
1
[External] Re: Choices to remove `srcref` (and its buddies) when serializing objects
...s (except NA_numeric_) are replaced by > R_NaN. > > One of the many downsides to the current approach is that we rely on > the non-API entry point getPRIMNAME() in order to hash builtins. > Looking at the source code for identical() is no help here, because it > uses the private PRIMOFFSET macro. > > The bitstream being hashed is also, unfortunately, not exactly > compatible with R serialization format version 2: I had to ignore the > LEVELS of the language objects being hashed both because identical() > seems to ignore those and because I was missing multiple private...
2024 Jan 16
2
Choices to remove `srcref` (and its buddies) when serializing objects
Could you recommend any packages/functions that compute hash such that the source references and sexpinfo_struct are ignored? Basically a version of `serialize` that convert R objects to raw without storing the ancillary source reference and sexpinfo. I think most people would think of `digest` but that package uses `serialize` (see discussion