From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] add language/wisp to Guile? Date: Fri, 24 Feb 2023 16:15:22 -0800 Message-ID: <8ec74df7-dee2-3e45-aee4-51d6e528d7b4@gmail.com> References: <87h6w2fkz8.fsf@web.de> <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> <87ttzc7gwa.fsf@gnu.org> <1e0d07bc-dcf8-fe56-7f16-a72e5df0c20d@telenet.be> <875ybr2hk9.fsf@gnu.org> <5a5045e0-a785-9f1a-ba82-df0c6679f715@telenet.be> <83328c0f-2ed1-b099-915c-c1ce83a37503@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="36243"; 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 Sat Feb 25 01:15:47 2023 Return-path: 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 ) id 1pViE7-0009JA-39 for guile-devel@m.gmane-mx.org; Sat, 25 Feb 2023 01:15:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pViDu-0007vt-UG; Fri, 24 Feb 2023 19:15:34 -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 ) id 1pViDt-0007vT-Fi for guile-devel@gnu.org; Fri, 24 Feb 2023 19:15:33 -0500 Original-Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pViDn-0001Cw-Lp for guile-devel@gnu.org; Fri, 24 Feb 2023 19:15:33 -0500 Original-Received: by mail-pj1-x1032.google.com with SMTP id u10so714095pjc.5 for ; Fri, 24 Feb 2023 16:15:26 -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=yR145FcPK75hmXZwDEz6llhZASAIpKZUjt/gtey4U+w=; b=auf4StUfb3Tw4XMvg3C8yGqf+Vjlk6O1sq+J7Ork20lxbxGtBkko8f3wSGCYZf0Ofx ah1XBM/0xgveBo2b/CieoM0HHwyNjA0CH7zP0WC70e4O5UrvTCsl47uIhndTzneolB3h Nz2JKP0HbYKz6c7+lUU4+IMFSZFELrvwZZ4rvi2K5EGZfm1QSUa9aE4LOPECIT9w5q35 ykVbPwQeL7UbZUR1F/3v2ZFpdtUtiiJ7D4K7w7gRjw2+X6ZcmXneUZgygxM3yYvC2Odf +c77QOqttM6VkrTtqXPBWoK5E+kbmfkgGkcM5HPd0Z+AeAlFZmVP23c+69IHDmsNvAEy sbvg== 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=yR145FcPK75hmXZwDEz6llhZASAIpKZUjt/gtey4U+w=; b=sg98AHoBfncwm6GwrsJ1qalEi1N/a+aCgiUKt4NgtjdPo+acNI4ZB3qICdMq5fZJi0 ZoJ5w0e7Dai1wHq++MIQx3KnwirkECPQQbgBH0KL7PiHu6YstBEq+chVDi/61coMudn3 yaSj01T7P+LVYzWef2kqwkfFXip7lwTR/10u4O6TZB9JJ1mAeUjHJcNc7FmLcUlioE4J b/Zpya1uUBmqr8dzE/f2l7ZdfcbkQf+HbrlW8J1BzlU0u2vCVwes7MafpF3ycFvQbe+B D9i/DqpQJ9HigNwm+f7f3EdS7n3Q+2QZomzLQqE7kaIBJyWXKUPEaYyFAEmw9YwA4F7k 1gqw== X-Gm-Message-State: AO0yUKWPhbHTFzFS265H7pj4+6bZ4Jw7oGp4B2bdaJT8WHYJDp5ZdijO 7MPKd46p56GzmUeQpxrOejUtd5N7hNI= X-Google-Smtp-Source: AK7set96eKhflUjYJ5gMUGsjl7HFSBfVCvvPAC02m24BoVGedDijwVRH2QQz6zLitxyclmjtYZXgtw== X-Received: by 2002:a17:902:ea07:b0:19c:dedd:2ace with SMTP id s7-20020a170902ea0700b0019cdedd2acemr2961470plg.18.1677284124267; Fri, 24 Feb 2023 16:15:24 -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 q5-20020a170902bd8500b0019908d2c85dsm83933pls.52.2023.02.24.16.15.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Feb 2023 16:15:23 -0800 (PST) Content-Language: en-US In-Reply-To: <83328c0f-2ed1-b099-915c-c1ce83a37503@telenet.be> Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=matt.wette@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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.094, 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:21742 Archived-At: On 2/24/23 3:51 PM, Maxime Devos wrote: > On 25-02-2023 00:48, Maxime Devos wrote: >>>> (**) For compatibility with Racket, it's not like we couldn't >>>> implement both "#lang" and "-*- stuff: language -*-". > > TBC, I mean ‘only support #lang' for values of 'lang' that Racket > supports’, or alternatively ‘support #lang for compatibility, but > recommend -*- ... -*- in the Guile manual.’. The point of this is to tell the compiler what language it needs to parse, if not the default (Scheme).  Using `#lang pascal' or `#!lang pascal' allows the compiler to figure this out in the first few characters read. Using `-*- lang: pascal -*-' might require the compiler to read a lot of text (not knowing if what text is comment or not) to determine if language has been specified. For the `-*-' based design, is there a maximum number of characters to be read before deciding? Matt