From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id B7384212C8 for ; Fri, 19 Jan 2024 10:01:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 94DA6483E37 for ; Fri, 19 Jan 2024 09:59:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dB3lFuRsTl7M for ; Fri, 19 Jan 2024 09:59:41 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0B36E4841EB for ; Fri, 19 Jan 2024 09:58:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4908C483CFF for ; Fri, 19 Jan 2024 09:57:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5WRFOVsOVu2E for ; Fri, 19 Jan 2024 09:57:50 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.185]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id EC622483CFE for ; Fri, 19 Jan 2024 09:57:50 +0100 (CET) X-KPN-MessageId: b93609b8-b6a8-11ee-abd4-005056999439 Received: from smtp.kpnmail.nl (unknown [10.31.155.7]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id b93609b8-b6a8-11ee-abd4-005056999439; Fri, 19 Jan 2024 09:57:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=w6xslTTCniDAz3W2cldFdttHEOU8Sd75/GL3aJWgOko=; b=EYYwXdUqqnJ+RpVIuMTLFYRNkBkaPDC7sbOdgnQ1l/5n94sPXpqkN/nIPgSmIloanlHa7ZI0sY5/Q LS3ZOVV1q+TgxxZkq4srzWglx8PDSTVKnwNrTqBiVL6S1JKwh9pa7/gltBnQbEdobz7BQIlGA5GXav 1LhHg5fGAuD4s7Q1dG9AN3EZ1wIq+Gq7t9S/Aj2XbdQkSTRkDlBoWyVnUpqF2qKc1wUeNWBSy5qjK0 thOhvNordusc3dfHvlbKq2YbmnalOyF0eQSUybp+i0Q7yYHCbvq//47gD2Pgzn/RdYT/oag9l+XGxx zvJrxl8WFDkVT1bQwfm+b9V1Hr0hV/A== X-KPN-MID: 33|VbRRaUnooAZtTnLeB4AhQYHPnyu0K+UFOXam0jHhICimNuEasNPu0FwzHm3o1Jh fqZc6Rnyb+ThI2A50hTxkoDq+YzcgV6Jloc3woKt2y8I= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|BAYEsn3IcysD724qcqX+ksXI8zZwbZUT9pkq1/HMbMs9kwHIpf/sNtmk8SXiVqY 4vef/3hmYK6zuCOqF5d9YqQ== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.105] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id d2d24473-b6a8-11ee-ad2d-005056998788; Fri, 19 Jan 2024 09:57:50 +0100 (CET) Message-ID: <93ceadaf-6573-45ae-b0a4-62a79121684f@xs4all.nl> Date: Fri, 19 Jan 2024 09:57:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ntg-context@ntg.nl References: From: Hans Hagen In-Reply-To: Message-ID-Hash: G6Q2FWU542Y353CH6GMELEBSL4IIEPZB X-Message-ID-Hash: G6Q2FWU542Y353CH6GMELEBSL4IIEPZB X-MailFrom: j.hagen@xs4all.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: LuaMetaTeX code List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 1/19/2024 9:26 AM, Shiv Shankar Dayal wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good coding practice. These potions of code which have goto should be > refactored. > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help with refactoring of code to make is more > efficient/easier. Luametatex evolves out of traditional tex so we have/keep some and although i grew up in the 'anti goto' times (pascal) there are plenty cases where i see no problem. Occasionaly I clean up such bits (when it makes sense). And I'm not going to enter coding practice discussions. Forget about refactoring ... there has already be done a lot of that and we want to stay sort of close to the original (also due to doicumentation). I know the code quite wel now and refactoring is for me counter productive. These are projects running for decades and engines need to be stable so changes come slow. You can compare the luanmetatex source to luatex and pdftex to see how we proiceed. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________