From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.bugs Subject: bug#21013: Evaluation expression from C assumes that lambda is present Date: Wed, 8 Jul 2015 20:48:38 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c20c84487ac2051a619686 X-Trace: ger.gmane.org 1436381727 29298 80.91.229.3 (8 Jul 2015 18:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2015 18:55:27 +0000 (UTC) To: 21013@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 08 20:55:19 2015 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZCuV4-0008KC-Gk for guile-bugs@m.gmane.org; Wed, 08 Jul 2015 20:55:18 +0200 Original-Received: from localhost ([::1]:36484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuV4-0007Z3-0J for guile-bugs@m.gmane.org; Wed, 08 Jul 2015 14:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuP2-0006H2-7o for bug-guile@gnu.org; Wed, 08 Jul 2015 14:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCuP1-0000ps-0M for bug-guile@gnu.org; Wed, 08 Jul 2015 14:49:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuP0-0000pm-PZ for bug-guile@gnu.org; Wed, 08 Jul 2015 14:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZCuP0-0005PH-Iw for bug-guile@gnu.org; Wed, 08 Jul 2015 14:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Israelsson Tampe Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 08 Jul 2015 18:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21013 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143638133220765 (code B ref -1); Wed, 08 Jul 2015 18:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2015 18:48:52 +0000 Original-Received: from localhost ([127.0.0.1]:44481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCuOp-0005Oq-Lc for submit@debbugs.gnu.org; Wed, 08 Jul 2015 14:48:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55088) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCuOn-0005Od-G6 for submit@debbugs.gnu.org; Wed, 08 Jul 2015 14:48:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCuOg-0000gZ-V4 for submit@debbugs.gnu.org; Wed, 08 Jul 2015 14:48:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuOg-0000gR-SP for submit@debbugs.gnu.org; Wed, 08 Jul 2015 14:48:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuOf-0005ap-Pb for bug-guile@gnu.org; Wed, 08 Jul 2015 14:48:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCuOe-0000fW-NO for bug-guile@gnu.org; Wed, 08 Jul 2015 14:48:41 -0400 Original-Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:36076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCuOe-0000f1-DY for bug-guile@gnu.org; Wed, 08 Jul 2015 14:48:40 -0400 Original-Received: by pddu5 with SMTP id u5so62785711pdd.3 for ; Wed, 08 Jul 2015 11:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HMmhplqVTK5HWfM4smSjGZgSazuNvNiiRmITOfP7k8s=; b=l+9S+M23n/xgjmTNl1+gPd1Lh6Wtn7+zSbkw6yMaeGZXEwnTIIzfp6KA2qZjZfRnNb PguaoH5wIfVOApotSQOVGIh3itS0rbO+T+7tRPcDOWaUOpRrP/EkGlrhMt/ar0dIhC7A oSPNVpuuAS0w1uF34n9ux6YPVfKjTPgZnrzq8Qkcf7GzYlVAgEcTqGDTziQwViUhxBZv BbAf5t6a0PgqnG0EekNIIzAqD/IMBtZwC0c4WsmNzjQgBk4VvfjiyXyP/tjuNHvPSrj1 1R6y8INr5w0bKsyu4IWQ1Ij3KBdQ8thT1YC8vVIKUeWmJ68N18N6nC3wQMOOdVYal/ms eZ0A== X-Received: by 10.70.87.195 with SMTP id ba3mr23562873pdb.154.1436381319032; Wed, 08 Jul 2015 11:48:39 -0700 (PDT) Original-Received: by 10.70.78.132 with HTTP; Wed, 8 Jul 2015 11:48:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7809 Archived-At: --001a11c20c84487ac2051a619686 Content-Type: text/plain; charset=UTF-8 When using the profiler in a pure module ,profile does not work The reason is that in scmsigs.c, At an evaluation occurs from C e.g. static SCM close_1 (SCM proc, SCM arg) { return scm_primitive_eval_x (scm_list_3 (scm_sym_lambda, SCM_EOL, scm_list_2 (proc, arg))); } This means that languages in guile that want's profiling needs to export lambda from (guile). Maybe this is a feature but there are two things that can improve, 1. We can export @@ or @ as the only symbol from guile and fix all evaluatoins like the above to issue a (@ (guile) lambda) in stead of lambda etc. Maybe we should use a more uncommon symbol for @ and @@ to be used in situations like that for which should always be reexported for langages that want to support guile features. lambda is a very common symbol and I would expect profiling to fail under elisp no so this issues seams to be urgent. I will for know export lambda. Regards Stefan --001a11c20c84487ac2051a619686 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When using the profiler in a pure module ,profile doe= s not work

The reason is that in=C2=A0
= =C2=A0 =C2=A0 scmsigs.c,=C2=A0

At an evaluation oc= curs from C e.g.

static SCM
close_1 (SCM= proc, SCM arg)
{
=C2=A0 return scm_primitive_eval_x (s= cm_list_3 (scm_sym_lambda, SCM_EOL,
=C2=A0 scm_list_2 (proc, arg)));
}

This means that languages in guile that want's pr= ofiling needs to export lambda from (guile). Maybe this is a feature but th= ere are two things that can improve,

1. We can exp= ort @@ or @ as the only symbol from guile and fix all evaluatoins like the = above to issue a (@ (guile) lambda) in stead of lambda etc. Maybe we should= use a more uncommon symbol for @ and @@ to be used in situations like that= for which should always be reexported for langages
that want to = support guile features.

lambda is a very common sy= mbol and I would expect profiling to fail under elisp no so this issues sea= ms to be urgent. I will for know export lambda.

Re= gards
Stefan

--001a11c20c84487ac2051a619686--