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.
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.
show comments
hmokiguess
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!
show comments
riedel
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.
show comments
KingOfCoders
Recently I've started to use Typst for Claude to produce documents and it works very well - and is insanely fast (compared to my LaTeX days)
kleinicke
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?
show comments
KolenCh
Hm… I’m working on something in this space but am taking an approach that build on and work with the pandoc ecosystem, and is more modular and respecting the original license. I don’t have the final products yet, but if some of you are interested:
Porting pandoc-type to python, rust, Julia, and TS: https://github.com/ickc/panir
This is what process pandoc JSON AST and let you write pandoc filters for example.
libpandoc: https://github.com/ickc/libpandoc
A C library for calling pandoc, from which I built the same 4 language variants such as libpandoc-py, etc., so that basically if you build something with a host language such as Python and want pandoc, you don’t need to use subprocess. Command line program are built as pandocpy, etc. that would be a drop in replacement of pandoc with some augmented features. Eg support wasm filters for security isolations.
And I also have a parser, private at the moment, with markdown reader/writer and html writer only, unlike this project. This is intended to be use in a text editor and would leave other pandoc functionality such as other formats, or citeproc, texmath, etc handled by pandoc. (Speed up in a similar ballpark but my concern is primarily keeping it O(N) and its use with a text editor such as source position.) Because I believe we need the core pandoc and its ecosystem to be thriving and continued to be designed by people who have taste as good as jgm, as believe it or not pandoc is still not a done product: it has steadily been improved over the years.
And I’m also developing a pandoc text editor that would be putting the above ideas together, and designed to be secure oriented (wasm filter and running pandoc in wasm are some of the ways to contain filters in sandbox and limit their blast radius.) This is a personal passion that I want Pandoc to be used everywhere, and the pandoc filter ecosystem to be useful in collaborative settings similar to texlive, unlike the current situation that you need to somehow obtain filters and put it somewhere.
And that’s why I’m also starting pandoc-forge, leveraging the conda ecosystem to distribute environments with pandoc and filters that’s guaranteed to be consistent (eg by version constraining the pandoc ast version as well.): https://github.com/pandoc-forge
Note that all these are still alpha, some are still private. Agentic engineering is heavily used. And I’m taking slow but steady progress primarily limited by token budget.
paaloeye
Looks like the author got the feedback from the thread.
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.
show comments
ferd
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.
show comments
flumpcakes
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.
show comments
tmoertel
For direct PDF generation, does Weavon use Knuth-Plass paragraph layout, like TeX does?
show comments
vatsachak
Will this be maintained like pandoc? No shade, just curious
show comments
paaloeye
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).
show comments
spapas82
Thank you very much for this. The fact that I needed tex for PDFs with Pandoc was major turn off for me.
I'm looking forward to try it, keep up the good work!
show comments
mdaniel
it seems a lot of the reply comments by OP are [dead] and AIUI that's from them tripping a "posted an AI response" filter, but https://news.ycombinator.com/item?id=50763805 and https://news.ycombinator.com/item?id=50765827 make me wonder if the heuristic, I dunno, like adds up a score on the account or something? Or maybe I just have a failure of imagination for the circumstances where one would "@claude post a reply on HN for me"
I also just realized citing those links won't help if show-dead is off but I felt it helpful to cite specifics
show comments
up2isomorphism
I would rather using a software that understood by the community instead of an AI slop that might be faster in some cases.
show comments
sergiotapia
Unrelated but funny, this reads like huevon in Spanish lol
cobbal
Can you really call something a clean-room implementation if it was written by ( I assume, website looks like something claude would spit out) a model trained on pandoc's source code? Automated GPL-washing leaves a bad taste in my mouth.
show comments
drnick1
These Rust rewrites of proven software are getting old. Not only the GPL license is typically abandoned, but these projects tend to be one off LLM efforts that will see little to no maintenance in the future.
AnonymousPlanet
Why are you emphasising "safe rust"?! Pandoc is written in Haskell not C. There's nothing to make safer here. For all we know you might have made it less safe.
show comments
cozzyd
Does it support Lua filters?
And, should be licensed GPL. Asking your LLM to not peek at pandoc code is ineffective.
show comments
generalizations
Beautiful work.
But man, the entire "How Weavon is built, and where it stops" section is such a Claude thing.
show comments
genxy
You didn't build Weavon, you built the system that used LLMs to build Weavon.
This is a shitty laundering of GPL code into Apache+MIT. The right thing to do here would be to license Weavon identically to Pandoc.
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/
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.
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.
Recently I've started to use Typst for Claude to produce documents and it works very well - and is insanely fast (compared to my LaTeX days)
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?
Hm… I’m working on something in this space but am taking an approach that build on and work with the pandoc ecosystem, and is more modular and respecting the original license. I don’t have the final products yet, but if some of you are interested:
Porting pandoc-type to python, rust, Julia, and TS: https://github.com/ickc/panir This is what process pandoc JSON AST and let you write pandoc filters for example. libpandoc: https://github.com/ickc/libpandoc A C library for calling pandoc, from which I built the same 4 language variants such as libpandoc-py, etc., so that basically if you build something with a host language such as Python and want pandoc, you don’t need to use subprocess. Command line program are built as pandocpy, etc. that would be a drop in replacement of pandoc with some augmented features. Eg support wasm filters for security isolations. And I also have a parser, private at the moment, with markdown reader/writer and html writer only, unlike this project. This is intended to be use in a text editor and would leave other pandoc functionality such as other formats, or citeproc, texmath, etc handled by pandoc. (Speed up in a similar ballpark but my concern is primarily keeping it O(N) and its use with a text editor such as source position.) Because I believe we need the core pandoc and its ecosystem to be thriving and continued to be designed by people who have taste as good as jgm, as believe it or not pandoc is still not a done product: it has steadily been improved over the years. And I’m also developing a pandoc text editor that would be putting the above ideas together, and designed to be secure oriented (wasm filter and running pandoc in wasm are some of the ways to contain filters in sandbox and limit their blast radius.) This is a personal passion that I want Pandoc to be used everywhere, and the pandoc filter ecosystem to be useful in collaborative settings similar to texlive, unlike the current situation that you need to somehow obtain filters and put it somewhere. And that’s why I’m also starting pandoc-forge, leveraging the conda ecosystem to distribute environments with pandoc and filters that’s guaranteed to be consistent (eg by version constraining the pandoc ast version as well.): https://github.com/pandoc-forge
Note that all these are still alpha, some are still private. Agentic engineering is heavily used. And I’m taking slow but steady progress primarily limited by token budget.
Looks like the author got the feedback from the thread.
Ref: https://github.com/weavon/weavon/commit/689cfccdf0b4a84f1318...
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.
cool! For those generating PDFs on the terminal, you might find my clv command (shameless plug) useful:
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.
For direct PDF generation, does Weavon use Knuth-Plass paragraph layout, like TeX does?
Will this be maintained like pandoc? No shade, just curious
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).
Thank you very much for this. The fact that I needed tex for PDFs with Pandoc was major turn off for me.
I'm looking forward to try it, keep up the good work!
it seems a lot of the reply comments by OP are [dead] and AIUI that's from them tripping a "posted an AI response" filter, but https://news.ycombinator.com/item?id=50763805 and https://news.ycombinator.com/item?id=50765827 make me wonder if the heuristic, I dunno, like adds up a score on the account or something? Or maybe I just have a failure of imagination for the circumstances where one would "@claude post a reply on HN for me"
I also just realized citing those links won't help if show-dead is off but I felt it helpful to cite specifics
I would rather using a software that understood by the community instead of an AI slop that might be faster in some cases.
Unrelated but funny, this reads like huevon in Spanish lol
Can you really call something a clean-room implementation if it was written by ( I assume, website looks like something claude would spit out) a model trained on pandoc's source code? Automated GPL-washing leaves a bad taste in my mouth.
These Rust rewrites of proven software are getting old. Not only the GPL license is typically abandoned, but these projects tend to be one off LLM efforts that will see little to no maintenance in the future.
Why are you emphasising "safe rust"?! Pandoc is written in Haskell not C. There's nothing to make safer here. For all we know you might have made it less safe.
Does it support Lua filters?
And, should be licensed GPL. Asking your LLM to not peek at pandoc code is ineffective.
Beautiful work.
But man, the entire "How Weavon is built, and where it stops" section is such a Claude thing.
You didn't build Weavon, you built the system that used LLMs to build Weavon.
This is a shitty laundering of GPL code into Apache+MIT. The right thing to do here would be to license Weavon identically to Pandoc.
Rewrite in rust. A meme by now
Posting such slop is immoral and disrespectful.