nate · @nmoo
782 followers · 137 posts · Server mas.to

My new Commonmark parser () 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.

#ultramark

Last updated 3 years ago

nate · @nmoo
957 followers · 178 posts · Server mas.to

My new Commonmark parser () 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.

#ultramark

Last updated 3 years ago

nate · @nmoo
774 followers · 133 posts · Server mas.to

Considered using for and distributing it as , but I unfortunately don't think the size constraints I have in mind would be feasible...

The README is quite accurate.

#webassembly #ultramark #assemblyscript

Last updated 3 years ago

nate · @nmoo
957 followers · 178 posts · Server mas.to

Considered using for and distributing it as , but I unfortunately don't think the size constraints I have in mind would be feasible...

The README is quite accurate.

#webassembly #ultramark #assemblyscript

Last updated 3 years ago

Craig Doremus 🦕 · @cdoremus
44 followers · 136 posts · Server hachyderm.io

@nmoo
Any chance that will be compatible with ?

#ultramark #deno

Last updated 3 years ago

nate · @nmoo
742 followers · 114 posts · Server mas.to

update!

Over the holidays, I started on a new markdown engine. It's a companion to github.com/natemoo-re/ultrahtm.

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

Last updated 3 years ago

nate · @nmoo
957 followers · 178 posts · Server mas.to

update!

Over the holidays, I started on a new markdown engine. It's a companion to github.com/natemoo-re/ultrahtm.

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

Last updated 3 years ago