Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: CPAN namespace hierarchy

by LanX (Saint)
on Jan 25, 2021 at 01:01 UTC ( [id://11127422]=note: print w/replies, xml ) Need Help??


in reply to Re^2: CPAN namespace hierarchy
in thread CPAN namespace hierarchy

You've described your use case.

That could easily be done by filtering the list of modules with a regular expression.

But you mentioned TK, hence you have more requirements than just running some regex.

Without knowing these requirements I can only guess.

(I can't comment on ELF)

For instance:

RAT has a foldable thread/post view.

You could translate those modules into such a tree.

You could use JS / CSS selectors to interactively filter such a tree.

But I don't think you'll invest in this. ;)

If yes you could use the js-console to interactively try it out.

HTH :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^4: CPAN namespace hierarchy
by GrandFather (Saint) on Jan 25, 2021 at 01:14 UTC

    In the end I found https://www.cpan.org/modules/02packages.details.txt.gz which contains a list of CPAN packages - about 250000 entries. I opened the contained text file in an editor and searched for ELF. Turns out there aren't many entries. Some sort of tree/folding representation wouldn't actually have helped very much as it turns out.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      > Some sort of tree/folding representation wouldn't actually have helped very much as it turns out.

      The question is, would it have helped others? IOW is there a need?

      > Turns out there aren't many entries.

      Well ... searching CPAN for ELF is easy.

      I'm still puzzled what the tree view should display ...

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        My original thought was to look for likely places an ELF reader module might fit in the CPAN namespace hierarchy so a tree browser that started with everything below the top level namespaces collapsed made some sense. I guess my mind blocked out the top level ELF namespace as being inappropriate at that level - even though I knew it was there from the simple search you mentioned.

        There is Discipulus's prior art for searching CPAN packages so maybe I don't need to reinvent that wheel? :-)

        Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

      I wonder if you couldn't (pre-)process that into JSON that you could then drive a d3 treemap pretty quickly.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-19 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found