• ☆ Yσɠƚԋσʂ ☆OP
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    2 years ago

    I’m not sure how the statistic for Pedestal was obtained, don’t recall if the talk mentions it or not. There are static analysis tools for Clojure like clj-kondo that can provide these kinds of insights. You could see what parts of the code are pure based on what functions get called for example.

    • bbarker
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Sorry - I didn’t realize your original link was to the video and not the project. After watching it (good talk!), I found the clip in question. It seems like he is just saying that 96% of the codebase is functions (of any sort), not that 96% of the functions in the code are pure.

      • ☆ Yσɠƚԋσʂ ☆OP
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        2 years ago

        OK yeah, I misremembered the exact phrasing. You’re right he doesn’t say the functions are pure necessarily.