From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Filters in Lua vs in Haskell
Date: Mon, 29 May 2023 11:18:53 -0700 [thread overview]
Message-ID: <F8164DE5-81BB-4E54-88E2-6725324BB184@gmail.com> (raw)
In-Reply-To: <EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
Because JSON filters involve serializing the Haskell data structure to JSON, then decoding that back to a Haskell data structure, modifying it, encoding it to JSON, and decoding it back. The Lua interface avoids all of this serialization/deserialization.
> On May 29, 2023, at 12:46 AM, oliver <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org> wrote:
>
> Hi there
>
> The doco says Lua filters “are usually faster than JSON filters” and from my understanding Haskell filters are JSON filters.
>
> So why are filters in Pandoc’s “native” 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 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/msgid/pandoc-discuss/874eb03a-f62b-4ee7-a582-30c798f22083n%40googlegroups.com.
>
> --
> 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/msgid/pandoc-discuss/EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0%40halloleo.hailmail.net.
--
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/msgid/pandoc-discuss/F8164DE5-81BB-4E54-88E2-6725324BB184%40gmail.com.
next prev parent reply other threads:[~2023-05-29 18:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 7:46 oliver
[not found] ` <EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-05-29 18:18 ` John MacFarlane [this message]
[not found] ` <F8164DE5-81BB-4E54-88E2-6725324BB184-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-05-30 22:46 ` Oliver
[not found] ` <FAE4FE6C-C390-4EB7-9DF9-C31E6CFACF9B-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-05-30 22:53 ` John MacFarlane
[not found] ` <03C8EA07-C75F-4DEC-B0BB-F3AA469CBCB8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-06-01 0:57 ` Oliver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F8164DE5-81BB-4E54-88E2-6725324BB184@gmail.com \
--to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).