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.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,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 DB2522417A for ; Fri, 19 Jan 2024 09:47:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5EE1A483FD6 for ; Fri, 19 Jan 2024 09:45:43 +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 6zJc4IltZsav for ; Fri, 19 Jan 2024 09:45:42 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id BCAC048415C for ; Fri, 19 Jan 2024 09:44:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 49AA748343C for ; Fri, 19 Jan 2024 09:43:27 +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 bUr7P988oUOA for ; Fri, 19 Jan 2024 09:43:26 +0100 (CET) Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 CE6994833F2 for ; Fri, 19 Jan 2024 09:43:26 +0100 (CET) Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-4b9302191a2so93682e0c.1 for ; Fri, 19 Jan 2024 00:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705653805; x=1706258605; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=s3it6HvWPTj1VsE1tbdXG7XtiKE7TcO2hlGPicv/nps=; b=CyYEfiy5zE1CPEGLF7Bues4a4WiypblXB+07csZAdw9RQYHxHn/5/e5TLakzQReMEM 0/TBEzgjgB5JpKw9BcJIVhWXbQYCzdMKF6IbYE1ZMsDNnkyU9odYBb4Aqq1Df7Q8Hi3Q S4FgDrY1cHpHdHp7O3vbwpA0KwneymAntcxVunAMwEIE3fPBD1EZozdWAv9E9wfem4gj 4qgl2Y2P1XI6UnXhvyzIzGkp4cstSliWHx9W5MwdFo2vfew1DOGLNTHbI/DrksgzJR+o BFGXjM9tQAkmiPFf0gf4w9IggsZHPWIc29tMDR6kaiS2Tf8jav9xFEHeeRR3exPxw1JD IQrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705653805; x=1706258605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s3it6HvWPTj1VsE1tbdXG7XtiKE7TcO2hlGPicv/nps=; b=rSVCm8pjEIkeKYfj7DCw18jNa4C67SkS9AF0GCRv1+Cf1YTPtIwfjn0JoPUiEaw27/ BbjR6ZAnYz5IRpVVc+j/9tQ6H+ZdNdKD8gNSfk8uS6CxqJYPEgRtT6d0ApCDeBA0HlcA oe6byv96rtPiYP30lfWNlyxmIDj0Ny84q6/h7785/Al02iImi9yTfBXhlxJZHQ8zMjF2 z9hS4mCelbVIXKAPAw8nnXsixAS9aWt40c3tPNmO1ZPmC0WWxvqSifXFdHh1e2laVz/Y d4yc1M7UZCMwTT7aOjS67np0dkK+LX1+y8S/4NOWjR1SEODb+JcM9ClNdlWigFU2BQCS 2S6Q== X-Gm-Message-State: AOJu0YxOIYN4O2TlRMPGxhuJj0oC1gMefqmlSVg/A2EWFJitvicXvcqW QhwJZauGoqXpXY483RxZ/fGjhqXrc0jFSWd3QVIO+V4bBePCXyFCqwX1cze11EHJY/DO1kpasHc iDHtSxCfeVFT6+TZq6P1pVxv2nZsb5zzTXUU= X-Google-Smtp-Source: AGHT+IFFKhSFuoFa1TEwum2aygS7GAovmVHnRViSK9iRGVPpzg85uKOkvRSrjWQdLoVYBsbYMNZ+F0hXmL2KFNx83dc= X-Received: by 2002:ac5:c35a:0:b0:4b8:8ae:20e9 with SMTP id l26-20020ac5c35a000000b004b808ae20e9mr1472318vkk.5.1705653805457; Fri, 19 Jan 2024 00:43:25 -0800 (PST) MIME-Version: 1.0 References: <3CDAB6FB-241C-4EA1-83B6-F7B09211AF57@bittext.nl> In-Reply-To: <3CDAB6FB-241C-4EA1-83B6-F7B09211AF57@bittext.nl> From: Shiv Shankar Dayal Date: Fri, 19 Jan 2024 14:13:13 +0530 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: WFM7QBWYRE4SURXHYPG2NHLVFX6WHPYZ X-Message-ID-Hash: WFM7QBWYRE4SURXHYPG2NHLVFX6WHPYZ X-MailFrom: shivshankar.dayal@gmail.com 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: multipart/mixed; boundary="===============7304838402244703836==" --===============7304838402244703836== Content-Type: multipart/alternative; boundary="0000000000002f2ac5060f48790e" --0000000000002f2ac5060f48790e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Taco, I will send new messages to dev mailing lists. Let me join it first. On Fri, Jan 19, 2024 at 2:11=E2=80=AFPM Taco Hoekwater wr= ote: > > Hi Shiv, > > Can you move this discussion to the dev-context list, please? > https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl/ > > Best wishes, > Taco > > > > On 19 Jan 2024, at 09:31, Shiv Shankar Dayal < > shivshankar.dayal@gmail.com> wrote: > > > > I see code like > > > > # define luametatex_version 210 > > # define luametatex_revision 10 > > # define luametatex_release 10 > > # define luametatex_version_string "2.10.10" > > > > starting with C99 these become unnecessary. Rather they should be like > const int luametatex_version=3D210; const char* > luametatex_version_string=3D"2.10.10"; > > > > These ensure type-safety in the code and are good coding practice. > > > > On Fri, Jan 19, 2024 at 1:56=E2=80=AFPM Shiv Shankar Dayal < > shivshankar.dayal@gmail.com> 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. > > > > -- > > Respect, > > Shiv Shankar Dayal > > > > > > -- > > Respect, > > Shiv Shankar Dayal > > > _________________________________________________________________________= __________ > > 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 > > > _________________________________________________________________________= __________ > > =E2=80=94 > Taco Hoekwater E: taco@bittext.nl > genderfluid (all pronouns) > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --=20 Respect, Shiv Shankar Dayal --0000000000002f2ac5060f48790e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Taco,

I will send new m= essages to dev mailing lists. Let me join it first.

On Fri, Jan 19= , 2024 at 2:11=E2=80=AFPM Taco Hoekwater <taco@bittext.nl> wrote:

Hi Shiv,

Can you move this discussion to the dev-context list, please? https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl= /

Best wishes,
Taco


> On 19 Jan 2024, at 09:31, Shiv Shankar Dayal <shivshankar.dayal@gmail.com= > wrote:
>
> I see code like
>
> # define luametatex_version=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 210
> # define luametatex_revision=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A010
> # define luametatex_release=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 10
> # define luametatex_version_string=C2=A0 =C2=A0"2.10.10"
>
> starting with C99 these become unnecessary. Rather they should be like= const int luametatex_version=3D210; const char* luametatex_version_string= =3D"2.10.10";
>
> These ensure type-safety in the code and are good coding practice.
>
> On Fri, Jan 19, 2024 at 1:56=E2=80=AFPM Shiv Shankar Dayal <shivshankar.dayal= @gmail.com> wrote:
> Dear Hans,
>
> I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not g= ood coding practice. These potions of code which have goto should be refact= ored.
>
> I am a C programmer, but I know very little of TeX. If you can point m= e towards where should I start for TeX(perhaps TeX Book or TeX for the Impa= tient), I can help with refactoring of code to make is more efficient/easie= r.
>
> --
> Respect,
> Shiv Shankar Dayal
>
>
> --
> Respect,
> Shiv Shankar Dayal
> ______________________________________________________________________= _____________
> 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=C2=A0 : https://www.pragma-ade.nl / https://context.aanhe= t.net (mirror)
> archive=C2=A0 : https://github.com/contextgarden/contex= t
> wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
> ______________________________________________________________________= _____________

=E2=80=94
Taco Hoekwater=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 E: taco@bittext.nl
genderfluid (all pronouns)


___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
archive=C2=A0 : https://github.com/contextgarden/context=
wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
___________________________________________________________________________= ________


--
Respect,
Shiv Shankar Dayal
--0000000000002f2ac5060f48790e-- --===============7304838402244703836== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============7304838402244703836==--