Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pkg Find Function #5075

Closed
tknopp opened this issue Dec 9, 2013 · 7 comments
Closed

Pkg Find Function #5075

tknopp opened this issue Dec 9, 2013 · 7 comments
Labels
packages Package management and loading

Comments

@tknopp
Copy link
Contributor

tknopp commented Dec 9, 2013

In my perspective it is really great that Julia ships with an build-in package manager!

One issue with this distributed approach is that it is sometimes hard to figure out, whether a specific function has been already implemented in some package.

For instance I was just looking for a median filter implementation and did not really know how to look for it and ended up asking on julia-user.

I think in these situations it would be very helpful if there would be a function

Pkg.find_function("median")

Would this be feasible?

@johnmyleswhite
Copy link
Member

This requires that we build an index of all function names in all packages -- and ship that index with METADATA.jl. It's certainly possible, but it's potentially problematic: you might ship a lot of data and still provide no value to users if the packages don't use the function name you thought of.

@johnmyleswhite
Copy link
Member

One thing we could do is make a website for Julia's package that offers this functionality as an API call. That will keep excess data off disk, while allowing calls to this function in the REPL if you have internet connectivity.

@tknopp
Copy link
Contributor Author

tknopp commented Dec 9, 2013

I was also thinking that it would make more sense to make this in form of a remote procedure call. It would also be equivalently great to just have a searchable website that provides an index with all functions.

@johnmyleswhite
Copy link
Member

I think we should definitely build a pkg.julialang.org. Some element of centralization will make the Julia package system seem much more impressive to non-users.

@nolta
Copy link
Member

nolta commented Jun 19, 2014

pkg.julialang.org exists now.

@nolta nolta closed this as completed Jun 19, 2014
@ivarne
Copy link
Sponsor Member

ivarne commented Jun 19, 2014

But it does not store a list of all exported identifiers for a global function search. Still I agree in closing thus issue, because it can be developed totally independent of base julia.

@tknopp
Copy link
Contributor Author

tknopp commented Jun 19, 2014

While this certainly is not the priority number one issue I cannot understand why this is not considered to be useful. At this point there is no way to determine whether a particular function like median is implemented in a package.

@ivarne I can't follow your argument. Isn't this very very closely related to the Pkg manager? (which lives in base)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Package management and loading
Projects
None yet
Development

No branches or pull requests

4 participants