From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Matt Wette <matt.wette@gmail.com>
Newsgroups: gmane.lisp.guile.devel
Subject: Re: [PATCH] add language/wisp to Guile?
Date: Sun, 26 Feb 2023 09:58:21 -0800
Message-ID: <0182dbd1-383e-21d9-ddf4-8f362362096d@gmail.com>
References: <87h6w2fkz8.fsf@web.de>
 <f31a073e-6b8c-ce48-2917-53a13d76b108@telenet.be> <877cwxe4ar.fsf@web.de>
 <2f7d015d-ceb4-ef8f-b4fe-b69e39b723f8@telenet.be> <87357ldqaq.fsf@web.de>
 <1a70460e-11fb-9f5d-0d5f-1eb507d5af0d@telenet.be> <87ilg4j65e.fsf@web.de>
 <87edqsj5vt.fsf@web.de> <01212259-37dd-5d67-7bbc-101e01d96d01@telenet.be>
 <1a6c8dda-0124-124c-f932-937a11386ced@gmail.com> <87fsb5i912.fsf@web.de>
 <ece631e3-8b04-d538-1d8d-fd09fc8562cb@telenet.be>
 <08c725bd-84d4-4df9-a18c-6ee55d00634f@app.fastmail.com>
 <a20e0a05-8257-ee22-4af5-5d47871c0c90@telenet.be>
 <981b0e74-96c0-4430-b693-7fc8026e3ead@app.fastmail.com>
 <1b428f59-2b82-9a8e-77c0-3cf38b5bc25c@telenet.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="28743"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.7.1
To: guile-devel@gnu.org
Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Feb 26 18:58:47 2023
Return-path: <guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org>
Envelope-to: guile-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org>)
	id 1pWLIN-0007MW-3h
	for guile-devel@m.gmane-mx.org; Sun, 26 Feb 2023 18:58:47 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guile-devel-bounces@gnu.org>)
	id 1pWLI5-0004wd-EP; Sun, 26 Feb 2023 12:58:29 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <matt.wette@gmail.com>)
 id 1pWLI3-0004wF-L6
 for guile-devel@gnu.org; Sun, 26 Feb 2023 12:58:27 -0500
Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <matt.wette@gmail.com>)
 id 1pWLI2-00045V-0g
 for guile-devel@gnu.org; Sun, 26 Feb 2023 12:58:27 -0500
Original-Received: by mail-pl1-x62a.google.com with SMTP id ky4so4515851plb.3
 for <guile-devel@gnu.org>; Sun, 26 Feb 2023 09:58:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id:from
 :to:cc:subject:date:message-id:reply-to;
 bh=2t7RaRMrB0LWQtMWL/SosCZty1X7M7RNmzCmbOFatlg=;
 b=mUJAoRYb+SU352IFCC37WGYPulKzg7c1sv7D5nutNrtQIeXeAYqaVhU8E9JmKhXM17
 2OlZSriWqdvaZXp1q58LDxShp6JLeAnZKb5OeG+ZFKQq9Pp0fpxsdji/JA1GRz0cmLWM
 5AXPT3BuFhAQGB3rmC+hAonYug6m2+h037AvJqV3v+qKf6GEDPVaEllKRqODgnKaPb19
 kaPw10yoGKa/Wp0DuHTr9mK4EUfJfGqeIQpIDxfXRTWLS3zomcyv1jnKlH9d6TemOZY8
 kbOLvewcK6C5krff7bPcI+WTv0PLqU8s3sybaB5uD7pcQzxnapnr3NtacbXc2EQ4dLbD
 PGBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=2t7RaRMrB0LWQtMWL/SosCZty1X7M7RNmzCmbOFatlg=;
 b=4qFU2IrOF8yqZyxii/gJxmOxrIHbIcv8pXXDT06iwFlLXs4b+/j98DwbqOMlo2nYEJ
 prV25FKKQLPVCHl1VXydHKfVrbGZ1Qz5Ybath9sULZOjbjetzIwdpzwyXAFtmXlgb9DV
 zQD2yp0pdNzALOOHp7tGWXzMFu+E1od3YEcYgxXfa/JiArVzyn9Wr8dltbItXKORiNX+
 I3AEVZrBNiy1zTk20vaFoIofCu2xGBmfzdKgx++l1IK/NTUj1RZ3smjyS4x2ycXSJmGh
 /lkZiT0e5uA2kKEserw25YYp91ORkxz1CFP8wszM4pQmBqiMwG9woI+SZSQS9UPxI1lg
 927Q==
X-Gm-Message-State: AO0yUKVayl+OfEaAZhfDyb2ifqxtxAPwu7sH/E1WX4r7gffA9WJp1eMC
 ksC8iKbfa/oom+BkG6auJb+Ch4Y9UHA=
X-Google-Smtp-Source: AK7set+MoJOU7kvX8APY9TEFYmc33SYyht6EkZgM//aUZJr+KrYoA13RYI5W5fjE52tA7dTum+NTNw==
X-Received: by 2002:a17:902:c407:b0:19c:185e:8fc with SMTP id
 k7-20020a170902c40700b0019c185e08fcmr26520983plk.45.1677434303206; 
 Sun, 26 Feb 2023 09:58:23 -0800 (PST)
Original-Received: from [192.168.2.157] (64-52-138-37.championbroadband.com.
 [64.52.138.37]) by smtp.gmail.com with ESMTPSA id
 s22-20020a170902b19600b00198f9fa23a3sm2901643plr.287.2023.02.26.09.58.22
 for <guile-devel@gnu.org>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 26 Feb 2023 09:58:22 -0800 (PST)
Content-Language: en-US
In-Reply-To: <1b428f59-2b82-9a8e-77c0-3cf38b5bc25c@telenet.be>
Received-SPF: pass client-ip=2607:f8b0:4864:20::62a;
 envelope-from=matt.wette@gmail.com; helo=mail-pl1-x62a.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: guile-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Developers list for Guile,
 the GNU extensibility library" <guile-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guile-devel>,
 <mailto:guile-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guile-devel>
List-Post: <mailto:guile-devel@gnu.org>
List-Help: <mailto:guile-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guile-devel>,
 <mailto:guile-devel-request@gnu.org?subject=subscribe>
Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org
Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.lisp.guile.devel:21748
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.devel/21748>

With respect to file extensions, guile does not use file extension:
You can name a file containing Scheme code "foo.js" and "guile foo.js"
will execute it.

The code in the wip-load-lang branch provides file-extension support:
1) Currently emacscript, with "js" extension, elisp, with "el" extension,
     and Scheme, with "scm" extension, are supported.
2) Additional languages can be added by calling add-lang-extension,
     from (system base compile): (add-lang-extension "m" 'nx-mlang)

Matt