From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10841 invoked from network); 27 Apr 2023 00:49:58 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 27 Apr 2023 00:49:58 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2AEFD6BA; Thu, 27 Apr 2023 02:49:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id erf0vfADcwxA; Thu, 27 Apr 2023 02:49:36 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E462A7F; Thu, 27 Apr 2023 02:49:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B390FA7F for ; Thu, 27 Apr 2023 02:49:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VHCdng723nzm for ; Thu, 27 Apr 2023 02:49:32 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=69.60.111.174; helo=mailmanlian.computerisms.ca; envelope-from=lynx@polarcom.com; receiver= Received: from mailmanlian.computerisms.ca (mailmanlian.computerisms.ca [69.60.111.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2F1E86BA for ; Thu, 27 Apr 2023 02:49:31 +0200 (CEST) Received: (qmail 15894 invoked from network); 26 Apr 2023 20:50:42 -0400 Received: by simscan 1.4.0 ppid: 15888, pid: 15891, t: 0.0428s scanners: attach: 1.4.0 Received: from unknown (HELO rc.computerisms.ca) (127.0.0.1) by mailmanlian.computerisms.ca with SMTP; 26 Apr 2023 20:50:42 -0400 MIME-Version: 1.0 Date: Wed, 26 Apr 2023 17:50:41 -0700 To: mailing list for ConTeXt users In-Reply-To: References: Message-ID: <86867317c1f1d63323755f4981ad5a7a@polarcom.com> X-Sender: lynx@polarcom.com User-Agent: Roundcube Webmail/1.2.1 Subject: Re: [NTG-context] update X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: lynx--- via ntg-context Reply-To: mailing list for ConTeXt users Cc: lynx@polarcom.com Content-Type: multipart/mixed; boundary="===============5502671075786628313==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============5502671075786628313== Content-Type: multipart/alternative; boundary="=_2e898b63c4472f4401db4201aa42a596" --=_2e898b63c4472f4401db4201aa42a596 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Re: performing update(s) New to conTeXt, have not performed a specific update prior to this. My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will the updates to ConTeXt be handled by tlmgr ? Thanks, On 2023-04-26 14:55, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a new version with some new features discussed at the end of this mail. > > - A next version of luatex will break context (format making etc) but the change is unavoidable because of other macro package demands wrt security (context does that differently). The low level start up command > has been adapted so unless you update indepdently thinsg should work ok. Of course this has no consequences for lmtx. > > - I've done a bit of callback cleanup (like getting rid of some mkiv luatex left-overs). It should have no effect on regular usage. > > - There again a few improvements wrt math (this time dealing with accents artifacts in some fonts). We check all the free math fonts for potential issues and then try to fix it (read: deal with it). It's a lot of work but we're getting there. > > - A few reported buglets have been fixed. > > - The biggest addition is however a new number model. In metapost one can now use 'posit' (positfun instance) as number mode which will use (currently 32 bit but at some point 64 bit) posit unums. It's also bit of a playground because 32 bit posits are not more accurate than 64 bit doubles. It anyhow exposed some potential issues that we'll look into. > > - There's also a (again currently 32 bit) posit library at the Lua end as playground. > > - However, 32 bit posits come in handy at the tex end because they pack better accuracy in 32 bits than floats and it makes it possible to have native floats, so we have: > > \newfloat (uses \floatdef, register like \dimendef is used in \newdimen) > > \newposit (uses \positdef, like \dimensiondef etc) > > \floatexpr (like \numexpr) > > \iffloat (like \ifnum) (also \ifabsfloat and i'll add the others too) > > Actually it adds an extra range of registers so it bumps memory usage a bit. I'm considering lowering the number of registers (currently 64K per category) because after all, if 64K is not enough then we can as well stick to 32K or 16K (for some even less). There's always Lua for unlimited storage of quantities. > > So, > > \newfloat\fooA > > \scratchdimen=123.456pt\relax [\type{dim:} \the\scratchdimen==123.456pt]\par > \fooA =123.456\relax [\type{pos:} \the\fooA ==123.456] \par > \fooA =\scratchdimen\relax [\type{pos:} \the\fooA ==123.456] \par > \scratchdimen=\fooA\relax [\type{dim:} \the\scratchdimen==123.456pt]\par > \scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:} \the\scratchdimen==133.456pt]\par > > produces > > [dim: 123.456pt==123.456pt] > [pos: 123.45600128173828==123.456] > [pos: 123.45599365234375==123.456] > [dim: 123.456pt==123.456pt] > [dim: 133.456pt==133.456pt] > > As you can see dimens will get mapped onto floats not as integers (scaled points) but in pt units. Counts stay numbers. I need to handle glue too (not yet done). > > In the future I might use this for fractions but there might be some rough ends so for now it's experimental. > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl [1] | www.pragma-pod.nl [2] > ----------------------------------------------------------------- > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ Links: ------ [1] http://www.pragma-ade.nl [2] http://www.pragma-pod.nl --=_2e898b63c4472f4401db4201aa42a596 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Re: performing update(s)

New to conTeXt, have not performed a specific update prior to this.

My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will t= he updates to ConTeXt be handled by tlmgr ?

Thanks,



On 2023-04-26 14:55, Hans Hagen via ntg-context wrote:

= Hi,

I uploaded a new ve= rsion with some new features discussed at the end of this mail.

- A= next version of luatex will break context (format making etc) but the chan= ge is unavoidable because of other macro package demands wrt security (cont= ext does that differently). The low level start up command
has been ada= pted so unless you update indepdently thinsg should work ok. =C2=A0Of cours= e this has no consequences for lmtx.

- I've done a bit of callback = cleanup (like getting rid of some mkiv luatex left-overs). It should have n= o effect on regular usage.

- There again a few improvements wrt mat= h (this time dealing with accents artifacts in some fonts). We check all th= e free math fonts for potential issues and then try to fix it (read: deal w= ith it). It's a lot of work but we're getting there.

-=C2=A0A=C2=A0few=C2=A0reported=C2=A0buglets=C2=A0hav= e=C2=A0been=C2=A0fixed.

- The biggest addition is however a = new number model. In metapost one can now use 'posit' (positfun instance) a= s number mode which will use (currently 32 bit but at some point 64 bit) po= sit unums. It's also bit of a playground because 32 bit posits are not more= accurate than 64 bit doubles. It anyhow exposed some potential issues that= we'll look into.

- There's also a (again currently 32 bit) posit l= ibrary at the Lua end as playground.

- However, 32 bit posits come = in handy at the tex end because they pack better accuracy in 32 bits than f= loats and it makes it possible to have native floats, so we have:

\newfloat=C2=A0=C2=A0(uses=C2=A0\floatde= f,=C2=A0register=C2=A0like=C2=A0\dimendef=C2=A0is=C2=A0used=C2=A0in=C2=A0\n= ewdimen)

\newposit=C2=A0= =C2=A0(uses=C2=A0\positdef,=C2=A0like=C2=A0\dimensiondef=C2=A0etc)
\floatexpr=C2=A0(like=C2=A0\nume= xpr)

\iffloat=C2=A0=C2= =A0=C2=A0(like=C2=A0\ifnum)=C2=A0(also=C2=A0\ifabsfloat=C2=A0and=C2=A0i'll= =C2=A0add=C2=A0the=C2=A0others=C2=A0too)

Actually it adds an= extra range of registers so it bumps memory usage a bit. I'm considering l= owering the number of registers (currently 64K per category) because after = all, if 64K is not enough then we can as well stick to 32K or 16K (for some= even less). There's always Lua for unlimited storage of quantities.
So,

\newfloat\fooA

\scratchdimen=3D123.456pt\r= elax =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[\type{dim:} \the\scratchdim= en=3D=3D123.456pt]\par
\fooA =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =3D123.456\relax =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[\ty= pe{pos:} \the\fooA =3D=3D123.456] =C2=A0\par
\fooA =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=3D\scratchdimen\relax =C2=A0=C2=A0=C2=A0[\type{pos= :} \the\fooA =3D=3D123.456] =C2=A0\par
\scratchdimen=3D\fooA\relax =C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[\type{dim:}= \the\scratchdimen=3D=3D123.456pt]\par
\scratchdimen\dimexpr\fooA+10pt\= relax[\type{dim:} \the\scratchdimen=3D=3D133.456pt]\par

produces
[dim:=C2=A0123.456pt=3D=3D123.456= pt]
[pos:=C2=A0123.456001281= 73828=3D=3D123.456]
[pos:=C2= =A0123.45599365234375=3D=3D123.456]
[dim:=C2=A0123.456pt=3D=3D123.456pt]
[dim:=C2=A0133.456pt=3D=3D133.456pt]

As you= can see dimens will get mapped onto floats not as integers (scaled points)= but in pt units. Counts stay numbers. I need to handle glue too (not yet d= one).

In the future I might use this for fractions but there might = be some rough ends so for now it's experimental.

Hans



--------------------------------= ---------------------------------
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Hans=C2=A0Hagen=C2=A0|=C2=A0PRAGMA=C2=A0AD= E
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Ridderstraat=C2= =A027=C2=A0|=C2=A08061=C2=A0GH=C2=A0Hasselt=C2=A0|=C2=A0The=C2=A0Netherland= s
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0tel:=C2=A0038=C2=A0477=C2=A053=C2=A069=C2=A0|=C2=A0www.pragma-ade.nl=C2=A0|=C2=A0www.pragma-pod.nl
------------------------------------------------------= -----------
____________________________________________________= _______________________________
If= =C2=A0your=C2=A0question=C2=A0is=C2=A0of=C2=A0interest=C2=A0to=C2=A0others= =C2=A0as=C2=A0well,=C2=A0please=C2=A0add=C2=A0an=C2=A0entry=C2=A0to=C2=A0th= e=C2=A0Wiki!

maillist=C2= =A0:=C2=A0ntg-context@ntg.nl=C2= =A0/=C2=A0https= ://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0=C2=A0:=C2=A0https://www.pragma-ade.nl=C2=A0/=C2=A0http://context.aanhet.net
archive=C2=A0=C2=A0:=C2=A0https://bitbucket.org/phg/context-mirror/comm= its/
wiki=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0:=C2=A0https://context= garden.net
_________________________________________________= __________________________________


--=_2e898b63c4472f4401db4201aa42a596-- --===============5502671075786628313== 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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============5502671075786628313==--