Skip to content

Conversation

@alexander-yakushev
Copy link
Member

@alexander-yakushev alexander-yakushev commented Feb 2, 2026

This PR simplifies how finding namespaces on classpath is performed.

  1. Instead of reading every .clj file on the classpath and looking for ns form in it, infer the namespace name from the filename. This is what Compliment does; and it always served well enough. Surely, this may lead to some false positives that we try to filter out to the best of our ability, but overall it's not the end of the world.
  2. With file reading gone, pmap stuff is no longer necessary, the computation is fast enough serially.
  3. I moved some of the file-locating code into orchard.util.classpath where it sits more cosily.
  4. Removed a few more public functions, except for orchard.util.classpath/claspath-seq which is occasionally used in other projects.

  • You've updated the changelog (if adding/changing user-visible functionality)

@alexander-yakushev alexander-yakushev force-pushed the namespace-3 branch 5 times, most recently from caf7525 to b86542a Compare February 4, 2026 00:41
@alexander-yakushev
Copy link
Member Author

Tests pass now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants