Re: [webkit-dev] BigInt implementation

2017-10-23 Thread Robin Morisset
Hello, That sounds good to me. Best regards, Robin > On Oct 20, 2017, at 17:06, Caio Lima wrote: > > 2017-10-20 12:21 GMT-02:00 Robin Morisset >: > Hello, > > I was planning to start implementing the BigInt proposal as

Re: [webkit-dev] BigInt implementation

2017-10-20 Thread Robin Morisset
Hello, I was planning to start implementing the BigInt proposal as soon as I am done optimizing tail calls and tweaking the inliner (probably within a month). My plan was to proceed in several steps: First a very naive implementation, treating them as fairly new kind of JSCell, with all the

Re: [webkit-dev] BigInt implementation

2017-10-19 Thread Jordi Montes
Hello Filip, I spent some time looking for the perfect library to implement BigInts in JS some months ago and I did not find any match. Many of the C++ librearies have or a license problem (GMP, MPFR..), or need the size of the integer at compile time (ttmath,..) or two indirections header + the

Re: [webkit-dev] BigInt implementation

2017-10-19 Thread Michael Catanzaro
On Wed, Oct 18, 2017 at 7:50 PM, Caio Lima wrote: As I have checked with some other implementors, some of them are going to use libgmp (SpiderMonkey case), but I don’t think its license (GPLv2) aligns with WebKit’s license and I heard that V8 is implementing their BigInt

Re: [webkit-dev] BigInt implementation

2017-10-19 Thread Filip Pizlo
Seems like V8’s is an ok place to start. Maybe all you’d have to do is remove the accurate GC artifacts (Handle and such). -Filip > On Oct 19, 2017, at 2:31 AM, Daniel Ehrenberg wrote: > > On 2017-10-19 03:18, Filip Pizlo wrote: >>> On Oct 18, 2017, at 5:50 PM, Caio

Re: [webkit-dev] BigInt implementation

2017-10-18 Thread Filip Pizlo
> On Oct 18, 2017, at 5:50 PM, Caio Lima wrote: > > Hi WebKittens. > > I’m planning to start implement JS BigInt proposal on JSC, however I > would like to sync with you the way you are planning to implement such > feature. > > Right now, I’m thinking in implement

[webkit-dev] BigInt implementation

2017-10-18 Thread Caio Lima
Hi WebKittens. I’m planning to start implement JS BigInt proposal on JSC, however I would like to sync with you the way you are planning to implement such feature. Right now, I’m thinking in implement BigInt operations into C++ (possibly on WTF?) and make the JSBigInt use this implementation. As