From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel Subject: Re: multi-lingual guile: language strictness Date: Sat, 14 Jul 2018 11:45:42 -0700 Message-ID: <5b7324d4-a50d-7278-4251-8005a5350214@gmail.com> References: <91fce743-6feb-da96-075f-bd1e123f14be@gmail.com> <87zhyusewm.fsf@posteo.net> <0F8FAB6D-FF98-49AC-9853-86C84B86A807@telia.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------077E6DE1266619DE8DC1C3B7" X-Trace: blaine.gmane.org 1531593831 26027 195.159.176.226 (14 Jul 2018 18:43:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2018 18:43:51 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 14 20:43:47 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 1fePWE-0006fk-Ja for guile-devel@m.gmane.org; Sat, 14 Jul 2018 20:43:46 +0200 Original-Received: from localhost ([::1]:42407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fePYL-0006rs-Mu for guile-devel@m.gmane.org; Sat, 14 Jul 2018 14:45:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fePYD-0006rX-4u for guile-devel@gnu.org; Sat, 14 Jul 2018 14:45:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fePYA-0001T1-3O for guile-devel@gnu.org; Sat, 14 Jul 2018 14:45:49 -0400 Original-Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:40818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fePY9-0001S1-Qq for guile-devel@gnu.org; Sat, 14 Jul 2018 14:45:46 -0400 Original-Received: by mail-pf0-x229.google.com with SMTP id e13-v6so10963773pff.7 for ; Sat, 14 Jul 2018 11:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=Ih5B3f07hhJIWyxINh011oLpd2T42XOKpB3oX7oI838=; b=q/nM7LSDGkmS4Jnsy1ssU2krNFZZQqDO8TanB8EnH9V2+OebzUCnz+2F7K+mV8s873 b0dwbDyAGvzNqpUN+5lcaytTvZNU//fDfxJUgp13wVZuVPB7GEb1weNvp9TJyBes11GH QaMTRvj/83N4s3NhWXgBJ3/tV+RHnmE1++Iuh43kry3JRvVzc3RypggK5kXszIvI6GxA 97iSgYTLSqiiUfE9sl3gbzwqNaV4Vx7laC9pkLKuMwg/7I2D+Nc1Lz8k7mJnFv8gz5du B5yEWZU/U0opLQOP25sY1lIlaTobnM+2XsusDdLPyPRWP0l/SdjkbR8UBd80m2hC2PlA YlUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Ih5B3f07hhJIWyxINh011oLpd2T42XOKpB3oX7oI838=; b=bHvjPau5F1JcaTyLhoMyl+kQlua73YLU/TgDKk6AeY8vpyJwea/j4Xd3mw0p1ac8e0 IHGByNibn71Ab9go6XX7q9F1MYKpNWH+GC9XLxhJo3pycBPIDvmWBkjUwLq4i6qJpOim bmbS1xujbX+AdThNTh983tKUTnNJ8Ca7koW1sRqm2bOyyvNJIwaJi5FuD+B6CrKRWyUp NqfWHmEo/ne4RuTEvrhX6nCDIRYtjClO5rnKE1QCHD37HiwVL3x3ZNYjRnEfAQ4UUVKH AaaQN4sq/QI+dM/i5HCv/7L7ZXn/rKdQ23XdgCZw0PPeB7UKxcKFuaS08DAzctymWCIU QUjg== X-Gm-Message-State: AOUpUlFy/3ahouylrmnMnxRJ8EO8armBKA3I5Up6xtjyJTRlB64dBdPy 9JBaS4Bo0SpncSQ8NuIUNuZ2bZQw X-Google-Smtp-Source: AAOMgpflCwDLMamgyZxcYEUjga5nGdFMqR8Yq+ULVJxNFYCMtHOcsog3oz1LYvLu2Tl1cexSOo/auw== X-Received: by 2002:a62:404e:: with SMTP id n75-v6mr11953305pfa.232.1531593944417; Sat, 14 Jul 2018 11:45:44 -0700 (PDT) Original-Received: from [192.168.2.183] (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id z8-v6sm8455845pfe.163.2018.07.14.11.45.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Jul 2018 11:45:43 -0700 (PDT) In-Reply-To: <0F8FAB6D-FF98-49AC-9853-86C84B86A807@telia.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::229 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:19596 Archived-At: This is a multi-part message in MIME format. --------------077E6DE1266619DE8DC1C3B7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 07/14/2018 09:22 AM, Hans Åberg wrote: >> On 14 Jul 2018, at 15:53, William ML Leslie wrote: >> >> On 14 July 2018 at 12:57, Brett Gilio wrote: >>> 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. >>> >> It's already a thing. >> >> 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? > > > I would think so. In general all languages see the same name space. 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 = 2 ecmascript@(guile-user)> ,L scheme Happy hacking with Scheme! To switch back, type `,L ecmascript'. scheme@(guile-user)> (foo 1) $2 = 2 --------------077E6DE1266619DE8DC1C3B7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 07/14/2018 09:22 AM, Hans Åberg wrote:
On 14 Jul 2018, at 15:53, William ML Leslie <william.leslie.ttg@gmail.com> wrote:

On 14 July 2018 at 12:57, Brett Gilio <brettg@posteo.net> wrote:
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.

It's already a thing.

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?



I would think so.  In general all languages see the same name space.

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 = 2
ecmascript@(guile-user)> ,L scheme
Happy hacking with Scheme!  To switch back, type `,L ecmascript'.
scheme@(guile-user)> (foo 1)
$2 = 2

--------------077E6DE1266619DE8DC1C3B7--