Re: Support for really big numbers in GLib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi;

On 5 January 2016 at 19:12, Per <pmknutsen@xxxxxxxxx> wrote:
> I'm working on a gnome-shell extension and using glib to pull in various
> resources.

This isn't likely to be a good place to ask for that; you probably
want gnome-shell list.

Also, JavaScript numeric integer types are limited to 32 bits, so even
if GLib had some facilities, you wouldn't be able to pass around
JavaScript native number objects that span over the required range.

> I also need to work with a library for handling (really) big numbers (up 100
> digits). Does GLib provide any methods for working with such large
> numbers/integers?

No. You probably want GMP - https://gmplib.org/ - but that library is
not introspectable by itself, so it cannot be accessed via JavaScript.

To be absolutely fair, the idea of a GNOME Shell extension that deals
with big numbers is weird to me. Why not write an application?

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux