From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33222 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gwern Branwen Newsgroups: gmane.text.pandoc Subject: Re: User story: typst multiline math in pandoc markdown and pandoc AST Date: Fri, 20 Oct 2023 15:08:35 -0400 Message-ID: References: <672a5917-b04d-4eb9-966d-75b54df97837n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000922c7206082a9b09" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21823"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCVYBVU4ZQIRB3PO36UQMGQE7HVKVUY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 24 18:57:23 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f63.google.com ([209.85.161.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qvKiW-0005PH-KC for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 24 Oct 2023 18:57:20 +0200 Original-Received: by mail-oo1-f63.google.com with SMTP id 006d021491bc7-581d755f1afsf7226501eaf.3 for ; Tue, 24 Oct 2023 09:57:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698166639; cv=pass; d=google.com; s=arc-20160816; b=HAMeTqa47taLaf/dQD3XmPBxNzVXjJNI/nPMFt2aTOFzhTCN/UQZVD/VALpSXDSc5N Scb4sHcnL0TZ4TCzKLtgBy9OExr/u86N91tsB7pyeEvFRqwgTdMso6zKk3HYI6k294VJ jOl00AFOUaG+NGOC/41Tl4nX9kSJIvqJUxUWQw+8VWFNOfDOgpdU3+ldNHU4uUUnTGJI qKOsqzJhz4EeODcBRNyf/ZY3gTDJ7FegchS4c/GyQXIpsoTGYso1x2e3VRmDzn9PSkCF 9K8e4pO9ViXwkB3xLqm2ug2uz/bn+j+ZEPftnkAXvLnxN6eQj2sKEYKtHB9UIjU5lxHv Sv6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=mj7elPiV/kDMhiOzhURtqj3alBq1QKaSNY9eij2AWRw=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=XbXKhpbDDkJsrRfTFXCujWF+/CS1OQlpDBT7qHJDNOqZYiD5Pm+gvMP7lZ6XvDjoPS IOT7mnDfKSXqacqz2RC8vjITJGuP7/8/rGlTKWr1qNbW2uqkC6ugqOTwcu5g12yg2QwM EArSm93G2by6CmzjyrsAQHtp2+owuAnrCbaT4GbuVJO23AYEkJsIqKMf2l1Kz3o7pRdq hmZToUtK4DeY3x5sbH6Tb5bpmmKHkDZyTGD4XI8KCzRxt4lJNm37iHFCoV9TZxcuIyTI ngKeWtLg726TClwS+8W8pUYqPiGGLOxjkOJR8C0TpR7wL6HZczrnsV3YTf24+kCKoG6N MCeQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.214.179 as permitted sender) smtp.mailfrom=gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1698166639; x=1698771439; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=mj7elPiV/kDMhiOzhURtqj3alBq1QKaSNY9eij2AWRw=; b=Y7Y6+/jXXqBUfPTgfp6HAEUIdXw2iLKY4WU3SpDvkD4PsKhGRwfEzG1QIWH+nn2dMG I+Rls0UKlLD+OuZkbT/JaO4wWLcv6uao+6mgHloOE6yfPW3xo+4sMGzyaxKeIw+gGfHo 3BWU2enWKvSsAD21aF3euPfOwmap6ooyp1Xy/7gQ4wQhWHwfCXP2+CokLivcLWSvIR9H DjpZbCStA3Wn4E7ZukEXeqFxiB48s+3AYZpBgbAaloSR3JXt2nC26aCjwPH2um5pjdme ijLUMRYjCPyVZ7jLAiytdfmGI/P+ix0igSqMelJQkavKSB2AhGzE X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698166639; x=1698771439; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=mj7elPiV/kDMhiOzhURtqj3alBq1QKaSNY9eij2AWRw=; b=ML5tNGudzm9tMseuAMOc0IIKKxw5chfTaCVS7DC4/edJuo8u+QVqDiNL+JOMjT9h95 t2ew2PWTI0RhmmdWr40VVYSIP/YlFnwh8BfRQXm3wTixR6NgGtZQjvWC3Z4RydalgKYA 4QMexJNZgQ57FNCyRH8H/FfIG9Zo7ukpmmfwLeftbJvMrXgmLp5nhKVPumi54jeMT7RK QUDAx4lKKYJnK0B9J2hmxm2XOPply9+yJCxKNwoy64HgiWPIWakD9ZraGSqIl17V/Ifq lGiySCXTSdhwxWgYRAS9g9UDGuWBWA Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yz0ym0qXVQ4hC55YMiQ6mbuApj17FVwYn4z6Hn97LBWxdjdAjIU Tb3Dn1NgIBVtvOYaITFkkgg= X-Google-Smtp-Source: AGHT+IF20pjl1s5YX7IOH/jl3EdvOgjtvx793OELZZKQsW0CP7zH8gLc3Q+uZhsaHo0QRY170OmRKQ== X-Received: by 2002:a4a:e916:0:b0:57b:63a6:306d with SMTP id bx22-20020a4ae916000000b0057b63a6306dmr12854517oob.6.1698166639498; Tue, 24 Oct 2023 09:57:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:33d3:0:b0:581:e7bb:9ad5 with SMTP id q202-20020a4a33d3000000b00581e7bb9ad5ls2009584ooq.1.-pod-prod-07-us; Tue, 24 Oct 2023 09:57:16 -0700 (PDT) X-Received: by 2002:a05:6808:350f:b0:3a7:86b2:1950 with SMTP id cn15-20020a056808350f00b003a786b21950mr4300559oib.0.1698166636819; Tue, 24 Oct 2023 09:57:16 -0700 (PDT) Original-Received: by 2002:a05:6808:210e:b0:3b2:e349:d5c2 with SMTP id 5614622812f47-3b3eb9ff3a7msb6e; Fri, 20 Oct 2023 12:09:13 -0700 (PDT) X-Received: by 2002:a05:6870:10d8:b0:1ea:2e2c:e9e7 with SMTP id 24-20020a05687010d800b001ea2e2ce9e7mr2928508oar.59.1697828953267; Fri, 20 Oct 2023 12:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697828953; cv=none; d=google.com; s=arc-20160816; b=kL11U9rQI+HuP2XrbX9bx0HhndXXUZJKczZU2xFtn3BSbjI3arORjROe6nvyaF5t3f NnxinmS4ysbEwGCoud9w8OtnZiEw8WMkKvD6+fOIKw2HYcky2hxHYYkBfoA0woNgIZeQ GqSQIPRl/aR5bvJ77nPs008b0kOaa9d9Az5LCt/IIjM2VzdcSV4pFvGP2xXuWlBPmilk 2mlEZ+VnJWyLepuJUvgDFkafzcFBCHiBH5NswAIBpiEjSu4Tki3XUcof5+iMIx9SFn+/ l5pboaLmPC36InGy8XEn/bwconrJ84ypJVOYffLNxa0o4Xv0xb1UsWer0M3/pHANA3i2 puGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version; bh=DyrXO1QrohIodAvnUz6XFgm3SCfnz9dQLArh7YoDwVU=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=kKtfE7Cf9azxj8OUiJ0utupMsNrOPtqCze9sfSDsVXpDrczWPVnw78WT4GEYZT/IaG 3Wvo5VW3CNQL+FKU8QHgAhljopi8FpQvrZnXAaoC30atRBb5F9nOFvkZo+jj6AZjDkpm /BOCeWhMUsOgALRSs0eorR+kpHHeC6h9LplRSdELSdcCMo3B7x4ghgMI7oyWFwqYFri4 RQZ6lYybalMOX1WwWznnzbzDlzZmzpCyegfq9L+p4BqjKxifTtve9ygllJZKzbI6/Fep c34CVK0euao9gPuxY1QjI2jWa5FeSnkDVFre/Z/qu+iR6OBWg68a4u/NJ2f3owIdOR8T DzVQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.214.179 as permitted sender) smtp.mailfrom=gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com. [209.85.214.179]) by gmr-mx.google.com with ESMTPS id nw34-20020a056871742200b001e99e02fa4csi379875oac.3.2023.10.20.12.09.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Oct 2023 12:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.214.179 as permitted sender) client-ip=209.85.214.179; Original-Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1cac80292aeso8130435ad.1 for ; Fri, 20 Oct 2023 12:09:13 -0700 (PDT) X-Received: by 2002:a17:902:eb8c:b0:1ca:2330:196a with SMTP id q12-20020a170902eb8c00b001ca2330196amr2940633plg.6.1697828951957; Fri, 20 Oct 2023 12:09:11 -0700 (PDT) In-Reply-To: X-Original-Sender: gwern-v26ZT+9V8bxeoWH0uzbU5w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.214.179 as permitted sender) smtp.mailfrom=gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33222 Archived-At: --000000000000922c7206082a9b09 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 19, 2023 at 12:11=E2=80=AFPM John MacFarlane wrote: > Any change to our algebraic data types is a breaking change that would > require modifications throughout the ecosystem (all writers and readers, > filters, etc.). That's why we're very conservative about such changes an= d > make them infrequently and only with very strong reasons. > This expression-problem topic merits an FAQ entry at this point. Dehaene's puzzlement here is a common & understandable one, because in many languages there would be little problem, and it's intuitive: how could merely tucking in an additional optional completely-backwards-compatible field be such a big deal? Only to a hardcore static-typing Haskeller, I think, is it immediately obvious that adding to the AST is a huge deal which will break *everything*, almost, because the problem is not backwards-compatibility, but forward-compatibility. It's an instance of the 'expression problem': the cost of static type safety of code operating on the AST is that they are going to break that static type safety should the type ever change. You can tell it's common & understandable because it comes up several times a year on this mailing list or the bugtracker, and shows no sign of going away. I think at this point it'd be good to have a short section somewhere on the expression problem and why changes to the AST are not going to happen... Not in https://pandoc.org/MANUAL.html , of course, as only extension writers will run into this, but perhaps in https://pandoc.org/using-the-pandoc-api.html ? (To explain why 'Yes, your extension just ran into a problem where enriching the AST would help, but that's not going to happen no matter how good it'd be, so don't bother asking'.) --=20 gwern https://gwern.net --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CAMwO0gyPC%3DeknmXkrAzGf%2Byfef1miXF4aFmJn4xG0atzkKJCzA%40ma= il.gmail.com. --000000000000922c7206082a9b09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Oct 19, 2023 at 12:11=E2=80=AFPM John MacFarlane &= lt;fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>= wrote:
Any change to our algebraic data types is a breaking change that would requ= ire modifications throughout the ecosystem (all writers and readers, filter= s, etc.).=C2=A0 That's why we're very conservative about such chang= es and make them infrequently and only with very strong reasons.

This expression-problem topic merits= an FAQ entry at this point.

Dehaene's puz= zlement here is a common & understandable one, because in many language= s there would be little problem, and it's intuitive: how could merely t= ucking in an additional optional completely-backwards-compatible field be s= uch a big deal? Only to a hardcore static-typing Haskeller, I think, is it = immediately obvious that adding to the AST is a huge deal which will break = *everything*, almost, because the problem is not backwards-compatibility, b= ut forward-compatibility. It's an instance of the 'expression probl= em': the cost of static type safety of code operating on the AST is tha= t they are going to break that static type safety should the type ever chan= ge.

You can tell it's common & underst= andable because it comes up several times a year on this mailing list or th= e bugtracker, and shows no sign of going away.

I t= hink at this point it'd be good to have a short section somewhere on th= e expression problem and why changes to the AST are not going to happen... = Not in https://pandoc.org/MANUAL= .html , of course, as only extension writers will run into this, but pe= rhaps in https://p= andoc.org/using-the-pandoc-api.html ? (To explain why 'Yes, your ex= tension just ran into a problem where enriching the AST would help, but tha= t's not going to happen no matter how good it'd be, so don't bo= ther asking'.)

-- <= /span>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to
pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CAMwO0gyPC%3DeknmXkrAzGf%2Byfef1miXF4= aFmJn4xG0atzkKJCzA%40mail.gmail.com.
--000000000000922c7206082a9b09--