From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.devel Subject: Re: Using the GNU GMP Library for Bignums in Emacs Date: Sat, 21 Apr 2018 19:27:13 +0200 Organization: man Message-ID: References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <87k1t05wz4.fsf@metalevel.at> <83604kxz8c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524331565 18583 195.159.176.226 (21 Apr 2018 17:26:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2018 17:26:05 +0000 (UTC) User-Agent: Emacs/25.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 21 19:26:01 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9wGv-0004gD-Ad for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2018 19:26:01 +0200 Original-Received: from localhost ([::1]:60249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9wJ0-0005j7-CF for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2018 13:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9wIJ-0005ib-9h for emacs-devel@gnu.org; Sat, 21 Apr 2018 13:27:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9wIG-0005aF-5X for emacs-devel@gnu.org; Sat, 21 Apr 2018 13:27:27 -0400 Original-Received: from [195.159.176.226] (port=56520 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9wIF-0005Yl-UR for emacs-devel@gnu.org; Sat, 21 Apr 2018 13:27:24 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f9wG5-0003qs-7d for emacs-devel@gnu.org; Sat, 21 Apr 2018 19:25:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Cd+HjcZORRjgiFqIVurtBzjmWPc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224772 Archived-At: Eli Zaretskii writes: > How are those dangers different from using any other external > library. Like the JSON library, for excample, or libxml2? Please note that in particular the first issue I mentioned is quite specific to GMP: It could be solved by providing a different API, or by generalizing the existing API to let applications safely handle such situations. Some of the libraries you mention may support this. The second issue I mentioned is also quite specific to GMP, since short arithmetic expressions may cause long running times for calculations. Of course, this issue may in principle also arise in other libraries. All the best, Markus