Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX (opens external site)

169 points by deyvium 5 hours ago github.com 84 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (19)

  1. 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!

    Replies (3)
    1. Totally fair, and I have huge respect for John MacFarlane. Pandoc and its companion libraries are an incredible piece of work, and sticking with the original when it already works for you makes sense.

      Weavon is mainly for cases where someone needs a small binary, faster batch runs, in process embedding in Rust, Python, Node, or Wasm, or zero-dependency PDF output.

      Replies (2)
      1. Is it not ethically dubious to you that you've automatically rewritten a GPL app based inevitably on someone's extraordinary efforts and you're going to distribute it in ways that disrespect those efforts?

        IMO, two things you should do here:

        1) preserve Pandoc's licence choice

        2) preserve the Pandoc authors' credits in some meaningful form

        Otherwise, ehhh. It's not a show of huge respect for John McFarlane, and I don't think people should have any respect for this at all. To me it's at the very least a kind of piracy of the moral right of authorship.

        Replies (4)
        1. [removed]
          Replies (3)
          1. I said what I said. I consider it a kind of piracy of the moral right of authorship. It is ethically questionable to me to simply clone someone's life's work entirely and yet lop off any sense of preserving the ethical choices that went into the creation of that work and its distribution.

            If your code of ethics doesn't cover this kind of thing, frankly I feel a little sorry for you.

            (Putting that aside, I view this kind of sealion-barking grilling that you do with some distaste, and I won't respond further)

          2. Following the Code of Ethics from ACM[0], it alreay violates

              1.3 Be honest and trustworthy.
            
              1.5 Respect the work required to produce new ideas, inventions, creative works, and computing artifacts.
            
            [0] https://www.acm.org/code-of-ethics
          3. Taste and ethics come from the same thing
        2. I have already explained the MIT and Apache-2.0 choice elsewhere in the thread, and I understand why you disagree with it.

          On credits, you make a fair point. All of John MacFarlane's copyright notices for the BSD companion libraries and default templates were already preserved in third_party/licences/ and listed in https://github.com/weavon/weavon/blob/main/THIRD_PARTY_NOTIC..., but the main README did not credit John MacFarlane and the Pandoc contributors directly. I just added an Acknowledgements section to the README at https://github.com/weavon/weavon#acknowledgements.

        3. FOSS licenses are becoming irrelevant. AI can rewrite any code base without using snippets at all. And it seems evident that no copyright can be claimed, because no human creativity was creating the new code. Just an idea and some prompting will probably not enough, legally spoken. So any AI-vibed clone should be public domain, and forget about the GPL.

          It's not something I wished to come, but I fear we must face reality. Concerning your second point, fully agree. At least some credit for the original author is a minimum we could ask for from a human perspective.

          Replies (1)
          1. And here we get to the funniest curveball: releasing to public domain you speak of is an Americanism, that may or may not have an equivalent in other legal systems. We're absolutely not ready as a society to deal with this problem.
            Replies (1)
            1. As of now, all the AI-models and their impact on the world at large are opinionated and not neutral. The creators of such models determine the game we have to play now. And this is in the hand of a bunch of questionable US-American billionaires. So yes, I agree, we are getting to the core of this whole transition. But it still takes a while until all are awake and start thinking. If it's not too late anyhow.
        4. OSS software has been reimplementing proprietary software for decades. Does this disrespect the moral right of authorship?

          Should Wine, Samba, ReactOS, and FreeDOS morally belong to Microsoft, and respect its license terms?

          OSS hackers fought for years for the right to make new software that interoperates with existing ecosystems. Personally, I think that is an important right, and that people should be able to license their interoperating implementations on their own terms.

          Replies (2)
          1. Samba (and probably all others as well) was true reverse engineering of the protocol/behavior and definitely clean room.

            This one is by a clanker that has been trained on Pandoc. It is not clean room.

            It is different to take from Bell Labs or Microsoft than from a small project. It is different to interoperate with Windows that was forced on almost all PCs.

            In this case it's very easy: Keep the original license and don't launder/steal.

          2. > OSS software has been reimplementing proprietary software for decades. Does this disrespect the moral right of authorship?

            Clean-room re-implementation of the specs, of a commercial application, for interoperability, with considerable human effort behind that re-implementation, is a considerably greater mark of respect than getting an LLM to slop-regenerate someone's existing open source app and relicense it, especially when the app in question is surely directly in the LLM's training set.

            There's an obvious change in degree here, and I find it puzzling that people don't see it.

            Replies (2)
            1. > "getting an LLM to slop-regenerate someone's existing open source app"

              I don't think that is what the author has done here.

            2. Commercial application means people's livelihoods depend on it, and I don't think it implies any less pride of authorship (I'm proud of the code and designs I've produced working both for companies and for OSS).

              I came of age during this era of OSS reimplementations, and I can't remember anyone making the argument that the effort involved is what justified it. If Andrew Tridgell had found a way to make his network analyzer spit out precisely the right code so that all of Samba could be developed in a day, nobody would have said "oh, that was too easy, Microsoft should own it now."

              I personally applaud the author of Weavon for finding a way to make a radically more efficient version of Pandoc. I doubt this accomplishment would have been possible with a prompt like "Reimplement Pandoc in Rust, make no mistakes." It takes creativity, ingenuity, and design insight to achieve such a result, even with an LLM. If the original authors feel that it's inappropriately derivative, they can point to the specific code they feel was copied without authorization.

      2. Given that your pandoc clone was built with LLMs which were trained on pandoc, your work is by any ethical definition a derivative of pandoc. You really ought to respect pandoc's license terms.
    2. I would too. 8 years, 600 contributers, 20k commit history, versus... a 3 day old minimal-effort slop project by a github acct less than a year old.
    3. Agreed, it's not about whether a new project popping up is technically superior e.g. faster, more efficient, safer. It's also about the community behind it, the history of the project, the cumulative knowledge and spirit. Something a vibe coded clone will rarely get.