Login
You're viewing the functional.cafe public feed.
  • Nov 18, 2026, 2:11 PM

    Source code turned into prose:

    "A book about HarfBuzz, the text shaping engine used by [a lot of] software that puts text on a screen. It’s written from HarfBuzz’s source code."

    lorp.github.io/how-harfbuzz-wo

    I change my opinion on all the different aspects of "AI" almost hourly these days, but "if you didn't write it, why should I read it" has been a rule I adopted quite early on. So I was surprised this reads reasonably well, for a draft of an experiment.

    I wonder if code-to-prose will be used more by people who want to actually *learn* about a technical subject. (Or maybe it already has, things happen so fast).

    Interesting project by @lorp!

    #typography #llm #books

    💬 3🔄 0⭐ 0

Replies

  • Nov 18, 2026, 2:14 PM

    Of course, with a foreword written by the esteemed Blabla Estragon, a bit of credibility is added to the project ;-)

    💬 1🔄 0⭐ 0
  • Nov 18, 2026, 6:50 PM

    @pixelambacht I had to double check that you weren't making that part up... 🤦🏻‍♀️

    code-to-prose synthesized documentation is one thing, but a fictional first-person chatty foreward synthesizing a personal need for the project? That's just icky.

    Alan Turing's worst legacy is giving generations of computer programmers the idea that it should be a goal to create software that can pretend to be a human.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 18, 2026, 3:08 PM

    @pixelambacht @lorp A limitation of code-to-prose is that the ‘author’ lacks awareness of things outside the code (which it could presumably be prompted to incorporate?). Reading the sections on USE and choosing a script shaper, I was struck that it talks about Indic 3 shaping without noting that this is not official and those tags are not included in the OT script registry. It’s something that HarfBuzz (and Core Text) experimentally support, but that DWrite does not. That’s important information that can’t be gleaned from the HarfBuzz code.

    💬 1🔄 0⭐ 0
  • Nov 18, 2026, 3:21 PM

    @TiroTypeworks @lorp I would expect _something_ in the code to point that out, so either it wasn't or the LLM didn't pick it up?

    Or, if the "book" is "How HarfBuzz Works", maybe it's fine to leave that out and simply explain how HarfBuzz does this shaping, whatever the non-technical details are?

    Not trying to defend the book, just wondering out loud!

    I only skimmed a few of the parts I am familiar with, but my main thought was: this sounds like the output I'd ask an LLM to generate if I was making myself familiar with other people's code. So would I reach for a book and look something up, or have LLM focus on exactly what I was trying to understand?

    (With the disclaimer, as always, to not be a gullible lazy nerd and accept the LLM output as The Truth™)

    💬 1🔄 0⭐ 0
  • Nov 18, 2026, 3:31 PM

    @pixelambacht @lorp Of course, one could always ask an LLM to produce an annotated version on the book, with reference to related external material. We could eventually end up with the text shaping Talmud.

    💬 0🔄 0⭐ 0
  • Nov 19, 2026, 9:04 AM

    @pixelambacht @lorp
    > Type the word “office” in a good serif font and you get five glyphs, not six: the f, f and i have become one ligature.

    LLMs still don't know how to count.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0