From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32726 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Oliver Newsgroups: gmane.text.pandoc Subject: Re: Filters in Lua vs in Haskell Date: Wed, 31 May 2023 08:46:02 +1000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 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="21665"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCEMPL7DTEMRBNHZ3GRQMGQEGY4XSYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 31 00:46:18 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f189.google.com ([209.85.208.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q486b-0005SF-EI for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 31 May 2023 00:46:17 +0200 Original-Received: by mail-lj1-f189.google.com with SMTP id 38308e7fff4ca-2af17f626e3sf25217081fa.0 for ; Tue, 30 May 2023 15:46:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685486777; cv=pass; d=google.com; s=arc-20160816; b=V9Kq6g6ron8KwTVIFPjooXydgSowPtmCR9edgU3IbRSaDGdiVyFsREheR5nm6ozZ/E F95uCAoxjeONwYLdtbvJhqXnPf9JFbREYnCBWvkNdbb0ov2TxV/mClZzXtXOdPcc1oEj 4Ms7jexcuHPPG6O02CSzyB1SYJtVIycGBY1TmLXj7/RotrzbAF2QpdsyS6gMyGIGUFUm QjtYfqj7e4PKVl64jHXzU8g7AH0zdZe543TNMyjeOS4n7bcjPbHtaXZpCj2OSofpd3bQ m9wXeQ6D93AaoUEiiVisDN7RpXAgBiNCYN6NNqUsbYE9QqGRZ5lDbiBtOE8mWdWkEfKG 0C/Q== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:sender:dkim-signature; bh=Byx62Qj6fCa2iG7O+moB9Cglh0jaQchdiWeaXlef0lc=; b=otXWm/77+dAtkX0+HX93kuhOh4b7st9UmFXsi/G7Op2tq/+LZaqiCKCIljcPbbcI6Y 6JWHTX78ZpaCuwkCJL+b9XrjDfBDDHw63HzFrA6yJVeiqA6S7lwQhX90HqlH92eKEguD I/zh3U7OJXmiYXR/Ar/DPgzBRmnD0O0sYpUFMOmXSmjDBmcjkGygOId10eByNXBlpd99 JSztLG/XV609xQkWIcukQyQwYELXJu2RH19BvY0kFvRYt4k9+E3CP35EnpeUNdhW+WdQ 5sHqCF0sNX1efqDHS3j87CYKVQhhOhOWlESZoL91aG9tNMl6yBXxbgTRwNwPjFXX6V/R KVHQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm1 header.b=mQ557AxU; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sgSk6Agb; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685486777; x=1688078777; 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:feedback-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=Byx62Qj6fCa2iG7O+moB9Cglh0jaQchdiWeaXlef0lc=; b=FBrMAPj9Z+rQ9wc5+8/BiHYFDKesLqsZxl/RupzX1dolph15o6tusoQYSpjm8ewwKj GWLrQHXJ06N44N5KB0JhrSty/X6hhmPxYZFbFxK9ClMttIEloL/V3QfrW2Fu5xjnJ+kZ cS0tqT3kvcoGpQi4vJciRHWA/VYK+rDB86CTFxdZ846mPOZKXTaylC2Pswzl/vtAcutF WId3JaOWExJfCrVeF3jGTwn/fmkZbaDQxZ48zF0ZSzJ+XJMElCCMYfh0yub00mErIW9a rtXS+J5rfmO2lYtepgoOzfWu8 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685486777; x=1688078777; 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:feedback-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Byx62Qj6fCa2iG7O+moB9Cglh0jaQchdiWeaXlef0lc=; b=M5TvxXxPRt3aOxWXyIPxL/7cnYzW7embQfDQTaJ2zc5/w/9Ev6Q7bOhTvBfvXQLY0d PW2Phl6MxqnXWHfLb+tGQPH89KD/WFVb2qbEWNSDY0May41JVUoSZLe4/BzDIZLNtSWN OvDaMw/M5VjdD+HGIZDosShwkQpNrQSdznQI9e0/sCe/FPOJD3I7x/ZUBPc75j5ADP2p cq91EMryzAN1Pk9vlFUQ02rQR9jnUnvhMZA7 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwrYM/66r5N6WJFax7iZt2bP4GIWLAYlJn2qs949RmrsT/RIuYm dLdFDLiwjixmP6gSEw6p37U= X-Google-Smtp-Source: ACHHUZ7HWp8tCwSZf010PkF7YZJV0hy7oRj0uQocbLkjJV3IOQATAqwvXs6BotKJqoHCSsu6A7cLUA== X-Received: by 2002:ac2:44d6:0:b0:4e8:5576:98f4 with SMTP id d22-20020ac244d6000000b004e8557698f4mr1443906lfm.45.1685486776365; Tue, 30 May 2023 15:46:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:310c:b0:4f1:3be1:1d7 with SMTP id n12-20020a056512310c00b004f13be101d7ls194723lfb.1.-pod-prod-02-eu; Tue, 30 May 2023 15:46:10 -0700 (PDT) X-Received: by 2002:ac2:44ac:0:b0:4f2:509b:87ba with SMTP id c12-20020ac244ac000000b004f2509b87bamr1671589lfm.50.1685486770914; Tue, 30 May 2023 15:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685486770; cv=none; d=google.com; s=arc-20160816; b=jpnMXxP/v0yxKNc/bX50K2WJzM024gNrkIX3w+9NnTQXk7aOyv77yHR5iAoOAhZZA0 yZcWGyLvg98CcU/HCyEfExzz6RaTrES93ozqDtynpfRpj8DMf5H/3DdMlwL+CdJ+FlQW YAmx6Qb9/bMPOQMKfBvD2hkrzS/9nEgBAIw7FWJwoStLUkCTRYbKXUdhoGpYOGndl21G x0ENTPp5cPGjNUOxzFd1SZ4F/+n7mfclci9QKq/mVV80u0CXzlobv6mq9xoHtCBGmwwi rqh+cL4VnDvE7eGrvH1xb/oRReoHZ/PIAthg9YJVj9lrr4pAfDim2dUXm0A9IuCMjXEW koWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:feedback-id:dkim-signature :dkim-signature; bh=503cVIfYczorEBhWQoLCOWmS3MALNLQjMeKYf7g4HwA=; b=hVV+fvTsR8BOt00QYB/xvlvio2SpjdZk83w2iNPXLzxod0n0vlMtEBAlbpJNa5Zkaq +OAQtQFuWtV9SfzYunI+ekfSmTaOxrGyuuOj6l4GUOC8uOe+FlrdDfUow33l34NBhLp6 nYEX66ZYSZyX2VJumkagzhsIq+S/Mc1p2gwVwHua0pI4ecVbutVCsXeOSM8VvxDyGLbq tQ+Q85qb5kxcXd3Rr9pq7rb2/Db4ebOUS5uOxkzbNAdkrjVT7f1beK7UtanIcGRj2BkP 9oCUJjwoni1CiOQwBK5XMKeYF9ZNxfcRhkyKZQ+iNrnNyAcJ1URwUe26frbLkPCc3H1U Fscg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm1 header.b=mQ557AxU; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sgSk6Agb; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net Original-Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com. [64.147.123.25]) by gmr-mx.google.com with ESMTPS id u17-20020a056512129100b004f3a8f89761si317558lfs.11.2023.05.30.15.46.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 15:46:10 -0700 (PDT) Received-SPF: pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.25 as permitted sender) client-ip=64.147.123.25; Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 4604132009A8 for ; Tue, 30 May 2023 18:46:08 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 30 May 2023 18:46:08 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekkedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhephffvufffoffkjghfgggtgfesthhqmhdtredtjeenucfhrhhomhepqfhlihhv vghruceonhgvfihssehhrghllhholhgvohdrhhgrihhlmhgrihhlrdhnvghtqeenucggtf frrghtthgvrhhnpeffgfegudekueeivefgiefghfejfeekkedtfeetveehhedvffeuhedt ffejfeehgfenucffohhmrghinhepghhoohhglhgvrdgtohhmnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepnhgvfihssehhrghllhholhgvohdr hhgrihhlmhgrihhlrdhnvght X-ME-Proxy: Feedback-ID: i02894466:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 30 May 2023 18:46:06 -0400 (EDT) X-Mailer: MailMate (1.14r5937) In-Reply-To: X-Original-Sender: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm1 header.b=mQ557AxU; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sgSk6Agb; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net 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:32726 Archived-At: Thanks for this, John. Do you know, is the performance hit big? Or nothing really to worry? Regards, Olli On 30 May 2023, at 4:18, John MacFarlane wrote: > Because JSON filters involve serializing the Haskell data structure to JS= ON, then decoding that back to a Haskell data structure, modifying it, enco= ding it to JSON, and decoding it back. The Lua interface avoids all of thi= s serialization/deserialization. > >> On May 29, 2023, at 12:46 AM, oliver wrote: >> >> Hi there >> >> 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. >> >> So why are filters in Pandoc=E2=80=99s =E2=80=9Cnative=E2=80=9D language= slower than filters in Lua? >> >> Thanks for clarification! >> Olli >> >> On 29 May 2023, at 11:03, Michael Milton wrote: >> >> 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 not= 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 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/874eb03a-f62b-4ee7-a582-30c798f22083n%40googlegroups.com. >> >> --=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/EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0%40halloleo.hailmail.= 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= 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/F8164DE5-81BB-4E54-88E2-6725324BB184%40gmail.com. --=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/FAE4FE6C-C390-4EB7-9DF9-C31E6CFACF9B%40halloleo.hailmail.net= .