From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: bug#24514: 24.5; Lispy backtraces Date: Sun, 4 Dec 2016 14:27:59 -0500 Message-ID: <143c480c-a9db-7053-4b70-175633197981@gmail.com> References: <20160922231447.GA3833@odonien.localdomain> <98fbb582-3da4-bd83-a2e9-e341dd7f6140@gmail.com> <20160923075116.GA612@odonien.localdomain> <82e39377-f31b-698c-5a9a-343868686799@gmail.com> <20161202005226.GA4215@odonien.localdomain> <0a69afa7-e9e6-e75f-8e90-6438683db98d@gmail.com> <53ba4534-1ec3-4e4f-d929-1a72f79c1abe@gmail.com> <83mvgblniy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AaNbvpbgXfW5ViHTR7bUmUoWlJE0OjVAX" X-Trace: blaine.gmane.org 1480879735 15355 195.159.176.226 (4 Dec 2016 19:28:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Dec 2016 19:28:55 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 04 20:28:52 2016 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 1cDcSv-00033l-Ne for ged-emacs-devel@m.gmane.org; Sun, 04 Dec 2016 20:28:50 +0100 Original-Received: from localhost ([::1]:35468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDcSy-00018W-Qn for ged-emacs-devel@m.gmane.org; Sun, 04 Dec 2016 14:28:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDcSK-00018D-CT for emacs-devel@gnu.org; Sun, 04 Dec 2016 14:28:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDcSH-0003vo-6v for emacs-devel@gnu.org; Sun, 04 Dec 2016 14:28:12 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.133]:60886) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDcSG-0003vg-U2; Sun, 04 Dec 2016 14:28:09 -0500 Original-Received: from [18.189.42.71] ([18.189.42.71]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.168]) with ESMTPSA (Nemesis) id 0MOVOL-1cHCxX3IWb-005n2N; Sun, 04 Dec 2016 20:28:07 +0100 In-Reply-To: <83mvgblniy.fsf@gnu.org> X-Provags-ID: V03:K0:Q00TsAtc8hr2HAVOHbj9VhUCQRMaX2YUGXe9/7/rk3lfKhrXd3A mcoD7AHi9Wd4hsP+3JJMzYDU/Y1jPwaqbSUm4/QxGvHZnq6krV/6m9r0IG3O2zjw0OjKXFx lhVVP5aSkJK2B2Vf/pnRu9a+8Fb9XS57jWXFUAo14TZxzH07INMaaCWIgJwCKB0A4zuuwjF fs4IaVDxAOX8e5DC2ZRfQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:/HCOHUJ/7/o=:Oo5wZ+mjRovM7vYEGUI2P2 vIw3pTRM6GkD8A4VF/zwoYHh/7sfgBkxK84U4UPQ8SiaP5Vs0drPm/Ws/Lq7prXzRdCdp0lCV IWYwPCf1OU/qWXw1xJIdSLI+kIoxWt+pihWyGnoPPDkKmoKj4RIbjM1k25LFLJtQ1CsqUjaZb 26JF7jLzuQRFXuqRYunzD9HJHZ212tu6P2yf/BfnY/7MC/fAqD9IQ/wKG6XuaTFlac6gn0FL5 SDw7rR4y0A8OlrvQFslyH8vINglyrJMcP843NBPxaHsWDW1YiksQ/dFxYFCxQ9xsg9fOp4seX I9imUK3Op6Jbk2wCG9qOnrB/iMjE9ie+3mV/UZxKdT7zY8EZpIj0uKZYl3kgYpVBN01PeOPdM BssZYYZzWxMTku+DOWjSLaEMK7zWQLEkgzGUd5Xn1fMTLcXn6Qu+DRxIBc8vEnQ5OcE0yFfUT CzDkMCh0aVMxkT1zk/uL/9bm592YEJcjCCj9zjX1VHr3XJR8fgWxGaY6oZ0ksjd7w2mxflg7g 7tBd+B+6lUfa2U7Zt0WDXsOkP/UtYdNROMnyWqDHMGVZDh7Zk5QYWVcHVG08r9VqBhzGmJWx9 XAP6CaR6Df5PcNq4LGYPpq+HIRLi6mVxQe5f4/Jso6wLjD8KaQhhhkIfaOfw34SX896H2hqe6 54Ccr/rRSxePip/Ftq/44MugKhDILgeVBj1tPt0lJhzi1Pc1gSCpgbSQI6XDrvVT5esk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.133 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:210032 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AaNbvpbgXfW5ViHTR7bUmUoWlJE0OjVAX Content-Type: multipart/mixed; boundary="VwBgVbkhVJA79LkxQ5a6VGdAIqx4dXFQ6"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Eli Zaretskii Cc: emacs-devel@gnu.org Message-ID: <143c480c-a9db-7053-4b70-175633197981@gmail.com> Subject: Re: bug#24514: 24.5; Lispy backtraces References: <20160922231447.GA3833@odonien.localdomain> <98fbb582-3da4-bd83-a2e9-e341dd7f6140@gmail.com> <20160923075116.GA612@odonien.localdomain> <82e39377-f31b-698c-5a9a-343868686799@gmail.com> <20161202005226.GA4215@odonien.localdomain> <0a69afa7-e9e6-e75f-8e90-6438683db98d@gmail.com> <53ba4534-1ec3-4e4f-d929-1a72f79c1abe@gmail.com> <83mvgblniy.fsf@gnu.org> In-Reply-To: <83mvgblniy.fsf@gnu.org> --VwBgVbkhVJA79LkxQ5a6VGdAIqx4dXFQ6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-12-04 10:30, Eli Zaretskii wrote: >> From: Cl=E9ment Pit--Claudel >> Date: Sat, 3 Dec 2016 17:15:22 -0500 >> >> On 2016-12-01 21:24, Stefan Monnier wrote: >>>> The discussion below seems to indicate that there's very little miss= ing at >>>> the Lisp level to be able to implement `backtrace' in Lisp; is that = right? >>> >>> Indeed, I think all the info needed is provided by backtrace-frame. >> >> The C implementation of backtrace-frame seems to be linear in the inde= x of the requested frame, so a Lisp implementation of backtrace would be = quadratic in the depth of the stack trace. Would a new function backtrac= e-frames that returns all frames at once be acceptable? >=20 > But such a backtrace-frames function would have to be implemented in > C, right? And you wanted to move the implementation of "backtrace" to > Lisp, AFAIU. So it sounds like we will be replacing one C primitive > with another, or did I miss something? I think you're correct. It would seem good to have the flexible primitive= backtrace-frames available, and it must be in C; then we can move backtr= ace itself to lisp. The idea is that enumerating frames must be done in C, but printing them = doesn't need to be done there. Cl=E9ment. --VwBgVbkhVJA79LkxQ5a6VGdAIqx4dXFQ6-- --AaNbvpbgXfW5ViHTR7bUmUoWlJE0OjVAX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYRG4/AAoJEPqg+cTm90wjlHIP/iwl3+y7Uz+xIfCXCWtVhCqD VszGFZBBLHQxip3ZLapUj5GelO5d5hDF4SLLaw38mikfQtoIoZHEstCb0mIsMFV7 r7TCXpdpFtS0ajRFuqQs2IOCxqLapO2MlhYwVp1JCrgUpkTlNhH+DagVUVHLkngW AryRTGuKel4bclgVgH3pb/kp+WOcjdzr5Yhg/hv5AeMTC9JWGV+wczJbfoEykBKa Hp2HL1/J2gyQuDnVkdWFl0gz7D0soLv5bMc9jivTmwy0DwFnEwJ/znO/txpxkm3E rAEP2ilPI4WYbjcCFkCOJo/akABRfuGnZZ7YOE6naqVPU39RyATVmlHe34381/Hl QW85wEt3jZCy5ijyupzweGhsclV57QMAp+B9EYBAQGFAh/yXsjqZw7QO5i0Tid74 xveHUpspiSUyZKexCr7nIOVZPyGBy0PZ8r0wYUALd7QiMnlb+PE9OIglyO64eHYB l5osmoIHyD23z3DqaWFlnAH4+kuisB/20ggmq1iTjBM+5ImkSTqYc/0c37pn/SFt EhO2VpO/euN2MN/w9nr65LSx1lDDlBoGxdBA5W4X8dnWGDcSUfjdiIzCeuVY96Up 0LtSGq4czLdQamb80CNLsyOXGQldBSKqQ1+gnNK/w7lJ+js0HpphXPoDVd6CVwNf /cF/kppLPYuCtW8APDxl =b3OE -----END PGP SIGNATURE----- --AaNbvpbgXfW5ViHTR7bUmUoWlJE0OjVAX--