jscl icon indicating copy to clipboard operation
jscl copied to clipboard

WIP: Experimental support for integers as JS bigints

Open davazp opened this issue 4 years ago • 9 comments

Just an experiment.

This is work-in-progress and the PR does not work yet.

davazp avatar Jun 20 '21 19:06 davazp

But probably this should be done in a separate release or use conditional compilation.

Agreed!

I added a internals.n(5) constructor for integers. We should have some accessors to work with them transparently.

I don't know yet how far is the rabbit hole :-) still fixing errors. I think I'll try to get it to boot a bit more as an experiment, trying to make it conditional, and re-evaluate the strategy later.

davazp avatar Jun 22 '21 07:06 davazp

The question is - will we enter the data type "0n123" for reading by the reader ?

vlad-km avatar Jun 24 '21 17:06 vlad-km

The question is - will we enter the data type "0n123" for reading by the reader ?

No. My plan was to read all integers as bigint (if no decimals point is present) and float otherwise.

davazp avatar Jun 24 '21 20:06 davazp

When do we expect a release?

vlad-km avatar Feb 11 '22 03:02 vlad-km

When do we expect a release? I am not actively working on it now. But I might resume it later.

Do you think it would be valuable? I can definitely spend a bit more time on it. Or do you.have interest in experimenting with it yourself?

davazp avatar Feb 11 '22 06:02 davazp

I don't see how to use it. There are not many people who are really involved in this area. And they have other tools.

vlad-km avatar Feb 11 '22 18:02 vlad-km

I'm considering issue #420. And try to measure the depth of the rabbit hole.

vlad-km avatar Feb 11 '22 18:02 vlad-km