From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32727 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Filters in Lua vs in Haskell Date: Tue, 30 May 2023 15:53:03 -0700 Message-ID: <03C8EA07-C75F-4DEC-B0BB-F3AA469CBCB8@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17392"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBVX43GRQMGQENWXRMYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 31 00:53:14 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f60.google.com ([209.85.219.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q48DJ-0004Hi-Jt for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 31 May 2023 00:53:13 +0200 Original-Received: by mail-qv1-f60.google.com with SMTP id 6a1803df08f44-616731c798dsf2460606d6.1 for ; Tue, 30 May 2023 15:53:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685487192; cv=pass; d=google.com; s=arc-20160816; b=gqCIrNDH3l0kUXXLSJUW8sAXxLqVpz1FrywsNwIEAPmNOtH32vh7vbm444un/vPObS DPaoNsmC+uYHgis03VbIIrayT89twVKhk5HM8JMJWuP6JgczOrLmuYbgZio1mHWOTCgE 00j26jYRRi6Vw6IUj8UdTQZpak8Z3jY61OldKO5tJvySJ9nTRX9f6VYu8WgOCOic8vaw fff7snovpR2fkSQAZ8YXNLbrXvnj/NSmuLtr9nJdXy0WO0BY8gRcM6ndpudbkl4vNXX/ lEr6DTdhLoHrBwVQx/TBJ+Vy4brSoaefda/KscPkuCn7G0YuWMCzWcFETEXWd2rs9g2j Rieg== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=Pqq5IvBIPYsI7AsveNI4m4WVVftpZrn2WNTaf+oeeGU=; b=Gj2yp2u6VCNuvoY+0FhyTN9FxEp9fWhV8iSqisHtu563xzT1G8mvdryrqMfXw9tZxP q5tU0mN2BZ4b3vnq3I4iH+Luu/n1ce4keMeVQRRGQMKbSDQyesmVtg/+D7wgS9yMabT8 +o07Wg6KwFvMqzHMCJZy1pvVVp9h8c2YshbAmOzCqixTtwF4bSjon41OtNn6oiI2D7e7 hYbetWPzh7Vf5oWWiR4UH9RtFUxU4IccVUv1XRpjIBPmln8inOOfokJSKXQ0E2DDLM32 HqzkTHp5fxqGI4A+mKchOOdIlM6gfV+zKWdKNWJNpxVjaZL++UJazkH68z6JIl2vmCZv TnLw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DYAwZkru; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685487192; x=1688079192; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Pqq5IvBIPYsI7AsveNI4m4WVVftpZrn2WNTaf+oeeGU=; b=I/ma85j8cyogS1CDXwig+dVLSxsMrtEOZOGl5/ANNlcPAAbiTs5YJa05TrN6yDAQux M6tJTbeTIMsdR+LpfPuCYqNZ/GjeBHUWgs6GLY6ZVRKT4AGfjjE+pZadYcPPwvgcHhQo +ZCBR7F622qiLwMrPuT1KM5EBWUi/nvj6IJ5o+QlMEs36aVT0TxZgOc00WTQqGZAr125 gkufFI077wxi+4Q1NlRc/fjtJIClhBeaK7gsp1PuIS+18VWGUXJ9s88Yw/tFnSsimmfV 1rjpLGiS+ZrHZhOYy0Rfu9rlKg0KGIlGSyXrP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685487192; x=1688079192; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=Pqq5IvBIPYsI7AsveNI4m4WVVftpZrn2WNTaf+oeeGU=; b=edFTFfQGC7xtsNa2/kLZcoAl5mcunEYaep6OcpsaBT8w4cUBGbbHyP1rSHdNusxO2b aNvN8JQP/QB6VhaVo41lbXYyDk+XIU3lgKmCICQwqDR7w8DDZemuA6b+k17g8dC93jnN zPhTqsUGCFmruRuP2yfCUraqthasZWCgkqnRFz7+e8gP4zq4aRI1WIfuv9yOoiIkhq01 AiycfTrDdhcqLMWDDBpRSz1q4A2zMEVbYbmM/Ij/vIEi/HuYPNkvL4w2Ry/CxuaWc55A 8+/30rsnfttn8IRTwkzpE9UncToGsrePjgPHGd4lWnPs4eo+suk X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685487192; x=1688079192; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=Pqq5IvBIPYsI7AsveNI4m4WVVftpZrn2WNTaf+oeeGU=; b=L8IpAN1bfJFcdAi4GAcOkPapFl74Z9L1FOINRWogomvq80d0LcIOh7KvMaVbzoaHot eC2+8eXDlLlGAK4ejZvMLW8jzKMcGwPtJGqIJ3zhiHcGUeHIRJVwK4FmaGFRyBiZO1ES tw+c0Dd7qAOR3p7zY6RD4g6CUuMvtwIf1UdGPWsulsvVC4Sw8E9E8i2jmGtarYCLKoFb W19EgtfwQ0OiW9cUvchl++K5A1T6eTeO1d9WXpUD/H1cQepsrxCmkX1JN8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwhwBqVtK3KMPhaibNpeg8sDNprOSVNi/wmGwGBR5wuk/IP9JnM AB8xGyfenjWGIqQRWzm8+OU= X-Google-Smtp-Source: ACHHUZ665S7Ihfmqi5HMAK/jnrq5dCZCmdyDYvjtmgEegYLzNXk/smhrU3Gtt+o7hjnt3Ta5v/0Xmg== X-Received: by 2002:a0c:ed2f:0:b0:61a:6edb:423b with SMTP id u15-20020a0ced2f000000b0061a6edb423bmr1520791qvq.1.1685487192501; Tue, 30 May 2023 15:53:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6214:186f:b0:626:24fd:1576 with SMTP id eh15-20020a056214186f00b0062624fd1576ls1494190qvb.0.-pod-prod-00-us; Tue, 30 May 2023 15:53:09 -0700 (PDT) X-Received: by 2002:a05:6122:a09:b0:457:949:ca44 with SMTP id 9-20020a0561220a0900b004570949ca44mr5831528vkn.4.1685487189832; Tue, 30 May 2023 15:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685487189; cv=none; d=google.com; s=arc-20160816; b=ItpdmdbOdIz2HY3+/f6f+aQDYaL/pOAqI+Ae1wzXeRkQANNq7WUmZNvss1ljaLjp6k 2jAlbhpjbsj1wfoW42zjfUe0xcQkTQjJPd1ytE5tA0O15k9j0sjQwihyCB2v2kOpsDqf o3zbUYQy9VsdA1qvn4r17FJlcAsH1IANavtkTQ2ISQI3vQAlGigtfRuj7D5LibCIki47 2ppG62EXgx8HYzR7HKk3fUL6OGDlK+Kp3AE11HHh1nD9WTWXtSwHwbSo+28xE/3tWqP7 h0BO2gPIEvsaGPdVvozysecIH12q1d0cBshMGReIJuI/2dAaScK9af5QKtCDLZIHVRcj m62A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=I3cvm86xxbHs08AMWJA2Fq0p4eRwlleHF8nmPtjXL+c=; b=ROGro2HG8+Z4xwpMMmJBWToTD0fg4YweHUqCoe1DjJrNF0JPpGyCxOTaZya/v9YOhh m39VKIdBcTVwUNF4ECBZQilegsOkaTHB0GQx6cjoL0QAj9U6uM7K0Xadc3nyFT57D5bb NHt/1FAL0s+C8utOPpnu371p0XxBVW50TjRGBHXfZoSoDJHJ1gymsJBfgo7KZ85FfLij k1eiTL9lTHfBBHHnA9M82hkaMtV3DEaV29jyYnrytwRfOIMBIz0MyiPIZT8LLVx9Njl+ BMWPiYSr/A9UkKbLsC11U/g0UII4eQGwYQBiP1d5uUPJNIzsWyVdWnXFDH2pghfhmvqs huKA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DYAwZkru; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com. [2607:f8b0:4864:20::636]) by gmr-mx.google.com with ESMTPS id r74-20020a1fa84d000000b0045391f84a1esi1381404vke.5.2023.05.30.15.53.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 May 2023 15:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) client-ip=2607:f8b0:4864:20::636; Original-Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b065154b79so2473065ad.1 for ; Tue, 30 May 2023 15:53:09 -0700 (PDT) X-Received: by 2002:a17:902:864b:b0:1af:ea40:34f2 with SMTP id y11-20020a170902864b00b001afea4034f2mr3637329plt.11.1685487188579; Tue, 30 May 2023 15:53:08 -0700 (PDT) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id g9-20020a170902740900b001a80ad9c599sm8890440pll.294.2023.05.30.15.53.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2023 15:53:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DYAwZkru; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::636 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32727 Archived-At: See the chart at the beginning of the Lua filters documentation for one dat= a point. > On May 30, 2023, at 3:46 PM, Oliver wrote: >=20 > Thanks for this, John. >=20 > Do you know, is the performance hit big? Or nothing really to worry? >=20 > Regards, > Olli >=20 > On 30 May 2023, at 4:18, John MacFarlane wrote: >=20 >> Because JSON filters involve serializing the Haskell data structure to J= SON, then decoding that back to a Haskell data structure, modifying it, enc= oding it to JSON, and decoding it back. The Lua interface avoids all of th= is serialization/deserialization. >>=20 >>> On May 29, 2023, at 12:46 AM, oliver wrote= : >>>=20 >>> Hi there >>>=20 >>> The doco says Lua filters =E2=80=9Care usually faster than JSON filters= =E2=80=9D and from my understanding Haskell filters are JSON filters. >>>=20 >>> So why are filters in Pandoc=E2=80=99s =E2=80=9Cnative=E2=80=9D languag= e slower than filters in Lua? >>>=20 >>> Thanks for clarification! >>> Olli >>>=20 >>> On 29 May 2023, at 11:03, Michael Milton wrote: >>>=20 >>> I just tried to render a PowerPoint presentation from markdown. However= the template I used is a bit odd, and I noticed that my title slide was no= t populated with text, whereas the regular slides were. I wonder if someone= could explain the logic that Pandoc uses to find a text box to insert text= into? Is there a way to modify my template to avoid these issues? -- >>> You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/874eb03a-f62b-4ee7-a582-30c798f22083n%40googlegroups.com= . >>>=20 >>> --=20 >>> You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0%40halloleo.hailmail= .net. >>=20 >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/F8164DE5-81BB-4E54-88E2-6725324BB184%40gmail.com. >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/FAE4FE6C-C390-4EB7-9DF9-C31E6CFACF9B%40halloleo.hailmail.n= et. --=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/03C8EA07-C75F-4DEC-B0BB-F3AA469CBCB8%40gmail.com.