dbus-native icon indicating copy to clipboard operation
dbus-native copied to clipboard

[proposal] Replace Long.js with native BigInt

Open acrisci opened this issue 7 years ago • 2 comments

BigInt is a native way to represent 64 bit integers (dbus type x) in node.

Available since version 10.8.0.

https://node.green/#ESNEXT-candidate--stage-3--BigInt

https://developers.google.com/web/updates/2018/05/bigint

Do you see any issues with that?

acrisci avatar Nov 08 '18 22:11 acrisci

I was thinking about it, but might be a bit too early? Maybe OK to go with migger api changes ( async/await etc ) in major version.

sidorares avatar Nov 08 '18 23:11 sidorares

I created a PR https://github.com/sidorares/dbus-native/pull/252 with a potential interim solution to at least present the option of marshalling/unmarshalling BigInts when the feature is available. Over time it would probably make sense to shift towards the native type.

CyDragon80 avatar Nov 21 '18 00:11 CyDragon80