Giter Club home page Giter Club logo

Comments (2)

jafingerhut avatar jafingerhut commented on July 17, 2024

It appears from a brief skim of this that it is intended to help detect when source files have been updated since the last time the file was loaded into the running JVM. Are you thinking that we would add this feature to clj-ns-browser?

If you were hoping that it would help detect changes to a namespace's contents, i.e. which symbols were defined, or tracking when their definitions have changed, I suspect that the polling method used now is as good a method as any.

from clj-ns-browser.

franks42 avatar franks42 commented on July 17, 2024

Correct, but there is more hidden in the source…

It has private functions that allow you to build-up the dependency graph for namespaces, like:

#<Var@33dce164:
{:dependencies
{clj-ns-browser.utils
#{cd-client.core clj-info.doc2txt clojure.tools.namespace
clojure.java.shell clj-info.doc2map clojure.string clojure.set
seesaw.core clojure.tools.trace clojure.java.io clojure.pprint
clj-info.doc2html},
clj-ns-browser.sdoc #{clj-ns-browser.browser},
clj-ns-browser.core
#{seesaw.dev clj-ns-browser.sdoc clj-info seesaw.core
clj-ns-browser.browser},
clj-ns-browser.browser
#{clojure.java.browse cd-client.core seesaw.bind seesaw.selector
clojure.java.shell seesaw.dev seesaw.clipboard seesaw.mig
clj-info.doc2map seesaw.dnd clj-ns-browser.utils clojure.string
seesaw.meta clj-info seesaw.border clojure.set seesaw.core
clojure.java.javadoc clj-ns-browser.inspector clojure.tools.trace
clojure.java.io seesaw.rsyntax clojure.pprint}},
:dependents
{clojure.java.browse #{clj-ns-browser.browser},
cd-client.core #{clj-ns-browser.utils clj-ns-browser.browser},
seesaw.bind #{clj-ns-browser.browser},
clj-info.doc2txt #{clj-ns-browser.utils},
clojure.tools.namespace #{clj-ns-browser.utils},
seesaw.selector #{clj-ns-browser.browser},
clojure.java.shell #{clj-ns-browser.utils clj-ns-browser.browser},
seesaw.dev #{clj-ns-browser.core clj-ns-browser.browser},
clj-ns-browser.sdoc #{clj-ns-browser.core},
seesaw.clipboard #{clj-ns-browser.browser},
seesaw.mig #{clj-ns-browser.browser},
clj-info.doc2map #{clj-ns-browser.utils clj-ns-browser.browser},
seesaw.dnd #{clj-ns-browser.browser},
clj-ns-browser.utils #{clj-ns-browser.browser},
clojure.string #{clj-ns-browser.utils clj-ns-browser.browser},
seesaw.meta #{clj-ns-browser.browser},
clj-info #{clj-ns-browser.core clj-ns-browser.browser},
seesaw.border #{clj-ns-browser.browser},
clojure.set #{clj-ns-browser.utils clj-ns-browser.browser},
seesaw.core
#{clj-ns-browser.utils clj-ns-browser.core clj-ns-browser.browser},
clojure.java.javadoc #{clj-ns-browser.browser},
clj-ns-browser.inspector #{clj-ns-browser.browser},
clojure.tools.trace #{clj-ns-browser.utils clj-ns-browser.browser},
clojure.java.io #{clj-ns-browser.utils clj-ns-browser.browser},
clj-ns-browser.browser #{clj-ns-browser.sdoc clj-ns-browser.core},
seesaw.rsyntax #{clj-ns-browser.browser},
clojure.pprint #{clj-ns-browser.utils clj-ns-browser.browser},
clj-info.doc2html #{clj-ns-browser.utils}}}>

which shows you what other namespaces a certain namespace depends on and what other namespaces depend on a specific one.

The idea was that it could be an interesting additional doc-pane for a namespace.

If only we could easily add the version numbers and the namespaces in the jars (currently only source files).

On May 14, 2012, at 10:38 AM, Andy Fingerhut wrote:

It appears from a brief skim of this that it is intended to help detect when source files have been updated since the last time the file was loaded into the running JVM. Are you thinking that we would add this feature to clj-ns-browser?

If you were hoping that it would help detect changes to a namespace's contents, i.e. which symbols were defined, or tracking when their definitions have changed, I suspect that the polling method used now is as good a method as any.


Reply to this email directly or view it on GitHub:
#44 (comment)

from clj-ns-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.