Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upintegers #13
integers #13
Comments
|
Without having looked into details, and as much as I hate added Depends: yes! I do the same in package |
simdjsonitself usesint64_tanduint64_tfor integers."Big-ints" are something I have to deal with on a regular basis, so it would be nice for
RcppSimdJsonto give the user options for handling them.It's easy to check if numbers exceed R's integer type and safely cast accordingly, but I'd like the option to cast them to
characters orbit64::integer64. At the R level, it looks something like this:@eddelbuettel Is it acceptable to add
bit64to theDESCRIPTION'sSuggests? I'm not suggesting RcppSimdJson code itself touchbit64(except for testing), but this flexibility would be nice to have:Underneath the hood it's just an enum-class template argument.
The current implementation can be found in
@cran-dev/inst/include/RcppSimdJson/utils.hppand an example R interface can be found in@cran-dev/src/rcppsimdjson_utils_check.cpp.