3 ms·
This library is showing its age, for sure. Every time I've had to use it has been one headache or another. Not enough for me to drop it entirely but... close.
by junon 5y ago
This library is showing its age, for sure. Every time I've had to use it has been one headache or another. Not enough for me to drop it entirely but... close.
- stncls 5y agoI'm curious about the issues you faced. Could you share some of them? I have used it only lightly, but I always liked its simplistic API. Also, I thought the performance was unbeatable at what it does (of course not comparable with native integers). And I am very impressed by the algorithms implemented (all the different multiplications at various integer widths, for example).
- OskarS 5y agoI've also only used it lightly, but like you I don't remember having much trouble with the API, seemed like a pretty regular C library to me. I wanted some example programs to see how the API looked in use, and the manual said they were in the demos/ folder of the repository. So I clicked the link to the repository, and got this: [1] ("Internal Server Error"), which is honestly pretty concerning... There's a GitHub mirror though, and the API looks perfectly usable to me [2]. [1]: https://gmplib.org/repo/ https://gmplib.org/repo/ [2]: https://github.com/ryepdx/gmp/blob/master/demos/primes.c https://github.com/ryepdx/gmp/blob/master/demos/primes.c