From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?Hans_=C3=85berg?= Newsgroups: gmane.lisp.guile.devel Subject: Re: multi-lingual guile: language strictness Date: Sat, 14 Jul 2018 21:09:08 +0200 Message-ID: <15D46E91-0D20-451A-B73C-99209416F741@telia.com> References: <91fce743-6feb-da96-075f-bd1e123f14be@gmail.com> <87zhyusewm.fsf@posteo.net> <0F8FAB6D-FF98-49AC-9853-86C84B86A807@telia.com> <5b7324d4-a50d-7278-4251-8005a5350214@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1531595237 20011 195.159.176.226 (14 Jul 2018 19:07:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2018 19:07:17 +0000 (UTC) Cc: guile-devel@gnu.org To: Matt Wette Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 14 21:07:12 2018 Return-path: Envelope-to: guile-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 1fePsu-00057J-Mk for guile-devel@m.gmane.org; Sat, 14 Jul 2018 21:07:12 +0200 Original-Received: from localhost ([::1]:42445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fePv1-000184-Gk for guile-devel@m.gmane.org; Sat, 14 Jul 2018 15:09:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fePut-00015r-Hi for guile-devel@gnu.org; Sat, 14 Jul 2018 15:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fePuq-00065O-BP for guile-devel@gnu.org; Sat, 14 Jul 2018 15:09:15 -0400 Original-Received: from v-smtpout2.han.skanova.net ([81.236.60.155]:51344) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fePuq-00063B-3V for guile-devel@gnu.org; Sat, 14 Jul 2018 15:09:12 -0400 Original-Received: from [10.0.1.4] ([90.227.203.185]) by cmsmtp with ESMTPA id ePumfNeEyUtqsePunfU0OD; Sat, 14 Jul 2018 21:09:09 +0200 In-Reply-To: <5b7324d4-a50d-7278-4251-8005a5350214@gmail.com> X-Mailer: Apple Mail (2.3445.9.1) X-CMAE-Envelope: MS4wfAlSInKXj32b2oklX1IG1L3Yb/Rde2S9Le54kFlr9qmW5AEBDsBEwghLJgd1K1Eun4wX5T7cdfMvbzHR6aJFpJ2t3AX9ebrgG8LobunqLRSru4feE0ri f7fiHi1m9zDx8Q5YCItrIFll7R02DScjLCvdJpgNtK7Dw2QAUiskGEOnHdHWQOEBJCJmHIVJtWwsx1iYLuUdqZirKP83dNMH14U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 81.236.60.155 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19597 Archived-At: > On 14 Jul 2018, at 20:45, Matt Wette wrote: >=20 > On 07/14/2018 09:22 AM, Hans =C3=85berg wrote: >>> On 14 Jul 2018, at 15:53, William ML Leslie = >>> wrote: >>>=20 >>> On 14 July 2018 at 12:57, Brett Gilio=20 >>> >>> wrote: >>>=20 >>>> Is this possibility for making Guile multi-lingual a promised = feature, >>>> or more of a wishlist type thing? I'll have to think about some = ways >>>> that might be good to approach this, because the limiting >>>> volunteer-community is definitely going to be an issue. >>>>=20 >>> It's already a thing. >>>=20 >>> = https://www.gnu.org/software/guile/manual/html_node/Other-Languages.html >> Is it possible to call them at the same time, via the C interface? >>=20 > I would think so. In general all languages see the same name space. >=20 > scheme@(guile-user)> ,L ecmascript > Happy hacking with ECMAScript! To switch back, type `,L scheme'. > ecmascript@(guile-user)> function foo(x) { return x + 1; }; > ecmascript@(guile-user)> foo(1); > $1 =3D 2 > ecmascript@(guile-user)> ,L scheme > Happy hacking with Scheme! To switch back, type `,L ecmascript'. > scheme@(guile-user)> (foo 1) > $2 =3D 2 Yes, that is what I asked for, to be able to create objects in one = language and interact with the same objects in another.