* Why cmark is written in C?
@ 2017-08-06 4:33 Kolen Cheung
[not found] ` <89ae88db-f9be-499c-b743-fe2d2cbc5ee7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Kolen Cheung @ 2017-08-06 4:33 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
Hi, I'm just curious. Why cmark is written in C instead of Haskell?
(A longer but more accurate question should be why write it in C and provide a Haskell binding and not the other way around?)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why cmark is written in C?
[not found] ` <89ae88db-f9be-499c-b743-fe2d2cbc5ee7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-08-06 15:37 ` John MacFarlane
2017-08-06 15:38 ` John MacFarlane
1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2017-08-06 15:37 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
1. Speed.
2. Portability (easy to create bindings to a C library in
any other language).
3. The current parsing algorithm is imperative in style;
the C library gives a model that can easily be copied
in other imperative languages.
+++ Kolen Cheung [Aug 05 17 21:33 ]:
>Hi, I'm just curious. Why cmark is written in C instead of Haskell?
>
>(A longer but more accurate question should be why write it in C and provide a Haskell binding and not the other way around?)
>
>--
>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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/89ae88db-f9be-499c-b743-fe2d2cbc5ee7%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why cmark is written in C?
[not found] ` <89ae88db-f9be-499c-b743-fe2d2cbc5ee7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-08-06 15:37 ` John MacFarlane
@ 2017-08-06 15:38 ` John MacFarlane
1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2017-08-06 15:38 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
That said, I'd be happy to see a pure Haskell CommonMark
parsing library. If there were one, I'd use it in pandoc
instead of cmark.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-06 15:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-06 4:33 Why cmark is written in C? Kolen Cheung
[not found] ` <89ae88db-f9be-499c-b743-fe2d2cbc5ee7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-08-06 15:37 ` John MacFarlane
2017-08-06 15:38 ` John MacFarlane
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).