Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX
- github.com
- By deyvium
- 212 points
- 102 comments
Discussion
Source linksShowing up to 12 top-level comments in Hacker News order.
-
It definitely seems like a huge challenge to the GPL that people can do this. It will raise some significant questions eventually I think. GPL seems to have been successful in an empirical sense in that a lot of GPL projects exist and are highly used. Did that happen because of the GPL? If we believe that, are we losing something valuable by obviating it? To the extent that all GPL facilitated was protection of the intellectual effort in writing code, you can argue that we aren't losing anything fundamental because LLM's do that now. But was GPL protecting more than just the code effort? If it was, does re-implementation mean we are losing that? Is it the community around it? The actual intellectual ideas that were protected by a shield of code but now are so trivially re-implementable? We've seen significant projects that survived via dual licensing, allowing commercial entities to support commercial users while releasing GPL code into the community. Is this dead now? Does it matter? Does it mean we'll have a world full of unsupported vibe coded projects but no way at all for anybody to make money supporting software? I am very curious to see how things evolve. I hope as a community software engineers can be kind to each other along the way.
-
Completely besides the point, but, man, the author's personal website is one of the coolest personal website's I've ever seen. This sort of thing can be tacky, but the implementation is clean and performant. Check the "full site" button if curious. https://dvgyl.com/
-
Mixed feelings here, I think a faster pandoc in rust is probably a good idea but the pandoc author is such an incredible contributor and pandoc is maybe one of the few really amazing Haskell repos out there. I feel like I rather stick with the OG, support the maintainer, and enjoy a bit of Haskell in the wild!
-
While really impressive, useful, and fast, I wonder why you chose to remove GPL. Pandoc works IMHO perfectly in many systems because linking is hardly needed. I personally find "clean-room" rewrites of GPLed software ethically borderline—it basically shows the non-enforceability of software licenses in the age of LLMs. Still, making this point often seems plainly unnecessary to me, at least if one believes a tiny bit in the ideals of free software.
-
I know that latex is super slow and annoying. For a while now there is typst: https://typst.app Which is basically a faster version of latex with an easier syntax. Is your approach faster/more convenient than typst?
-
For direct PDF generation, does Weavon use Knuth-Plass paragraph layout, like TeX does?
-
How do you even do it without actual TeXLive? Pandoc’s flavor of markdown allows embedding arbitrary TeX code. Would appreciate that you explain the software implementation a bit more. EDIT: wait you don’t. Enabling the pandoc compat mode disables PDF output on your website.
-
Looks like the author got the feedback from the thread. Ref: https://github.com/weavon/weavon/commit/689cfccdf0b4a84f1318...
-
cool! For those generating PDFs on the terminal, you might find my clv command (shameless plug) useful: https://github.com/dobladez/clview It's a "Universal" doc viewer for the terminal. View PDFs, images, docx, xlsx, markdown, ebooks, etc.
-
How much did this cost in tokens? The author appears to be 18 so I can't reasonably see how they can afford to spend ~$10,000 on a project like this.
-
Does it support Windows? Since it's a _clean-room_ rewrite in Rust, I expect Windows support because it's one of the most appealing reasons to use Rust in the first place (looking at your uutils/coreutils).
-
Will this be maintained like pandoc? No shade, just curious