My new Commonmark parser (#ultramark) is coming along very nicely! Certainly not feature complete yet, but it is still under 2kB gzip and it's about twice as fast as `commonmark.js` in my initial benchmarks.
I'm pretty happy with the architectural foundation at this point! Surprisingly, tokenization was the main bottleneck from my initial pass, but I was already able to 3× the speed. To my surprise, a RegExp-based approach performed much better than a single `for` loop.
My new Commonmark parser (#ultramark) is coming along very nicely! Certainly not feature complete yet, but it is still under 2kB gzip and it's about twice as fast as `commonmark.js` in my initial benchmarks.
I'm pretty happy with the architectural foundation at this point! Surprisingly, tokenization was the main bottleneck from my initial pass, but I was already able to 3× the speed. To my surprise, a RegExp-based approach performed much better than a single `for` loop.
Considered using #AssemblyScript for #ultramark and distributing it as #WebAssembly, but I unfortunately don't think the size constraints I have in mind would be feasible...
The README is quite accurate.
#webassembly #ultramark #assemblyscript
Considered using #AssemblyScript for #ultramark and distributing it as #WebAssembly, but I unfortunately don't think the size constraints I have in mind would be feasible...
The README is quite accurate.
#webassembly #ultramark #assemblyscript
#Ultramark update!
Over the holidays, I started on a new markdown engine. It's a companion to https://github.com/natemoo-re/ultrahtml.
We need a fast, tiny, browser-friendly, and embeddable solution for Markdown.
Currently have about 25% of the Commonmark test suite passing. Code weighs in at about 800B gzip. Hoping to keep the final thing under 2kB.
For context:
• `marked` is 11kB
• `commonmark.js` is 25kB
• `markdown-it` is 33kB
• `remark` is 37kB
#Ultramark update!
Over the holidays, I started on a new markdown engine. It's a companion to https://github.com/natemoo-re/ultrahtml.
We need a fast, tiny, browser-friendly, and embeddable solution for Markdown.
Currently have about 25% of the Commonmark test suite passing. Code weighs in at about 800B gzip. Hoping to keep the final thing under 2kB.
For context:
• `marked` is 11kB
• `commonmark.js` is 25kB
• `markdown-it` is 33kB
• `remark` is 37kB