-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
default packages? #1906
Comments
I think we will need some resolution of #1692. We may want to ship julia with some default packages - in fact we need julia+Winston+Gadfly by the next week. Also, over time, others will want to create custom distributions of julia with their own set of packages - say at universities, or production setup, etc. This is certainly important and useful. |
Given these issues, what is the benefit of having these default things as packages? Why cant they simply be modules within the standard library, in addition to base. Packages currently provide a distribution mechanism, and a dependency resolution mechanism. For things which are distributed with the compiler/stdlib itself, the distribution mechanism is a no-op, and dependency resolution will, in any case, need to manually maintained at the point of creating a julia distribution (as in, it is the julia packaging managers job to build and test a compatible set of default packages" Also, I think it creates a cognitive overload to have some packages more privileged than the others. If everything that is default is in the standard library (currently only base) and all other packages are similar, it then creates a simpler system to reason about. Just my $.02 |
Part of the problem is that we don't want some packages more privileged than others, and yet there needs to be a way to create easy-to-use julia installs that don't need extra setup steps. |
I'm torn here, because having privileged packages is troubling, but that's exactly the solution that R took in order to make sure that the default language install has enough functionality to be usable. |
I actually think that privileging packages is not a bad thing. It means that these packages are of high quality and seem to be of great interest for the user base. If there are different competing packages it also might be a good thing to get these consolidated into a better standard package. Of course only if its the right time for this move. |
I disagree. I feel that if a package is truly important enough to be "priviledged" and auto-installed in .julia then its good enough to include as a submodule of Base. |
To me the only distinction is "ease of removal". Most of the time most people don't care how big something like |
A lot of LAPACK functionality also has generic counterparts that we use for non-BLAS types. Without BLAS and LAPACK, you should be able to get most of the functionality, just with somewhat less good performance. |
Just adding my 2 bits to the discussion here. If you look at the relationship between C# / .NET, or Java / J2EE or Erlang / OTP, in each of the cases it is the platform that provides much of the functionality for someone to get started easily in that particular environment. Some of the "platforms" are technically specifications, but in practical terms, people use the standard / default SDK that provides the same. I am of the the opinion that we should necessarily have "privileged" packages, call it a standard library if you will, that is spoken for by the JuliaLang community. But over the longer term we should define the contours of a Julia Computing Platform (deployment tools, database/storage, cluster tools, web interfaces, etc) and what goes into it. However, it is to be noted that C#/Java/Erlang platforms are all backed by enterprises (deep pockets) and I cannot think of any open source community equivalents. |
I've been thinking recently about various ideas for GSoC, and this eventually came to mind. I was originally thinking about the help system/documentation and eventually had the thought that it even it could be a separate package (i.e. there are cases where you don't necessarily want the extra baggage of documentation with a headless server install for example). |
It's a shame that the words "Base" and "Core" are already used, since that seems like the name you'd want for this. |
I think it would be great to experiment with this. I'd like to see the system structured this way. |
Thinking through this a little more, I guess one of the biggest changes would be porting the I guess what's convenient about this idea is that it's fairly easy to break it into tiny chunks. First step would be to iron out the package install process (i.e. including arbitrary packages in Julia build process), and then subsequently creating standalone packages for various deps. |
"Kernel"? |
"Prelude" has precedent. |
One problem is that the dependency network is denser than you'd think. For example, lots of fairly basic things in the system use regular expressions (e.g. for processing file paths). The dependencies do have to be dealt with one by one. |
Yes, I imagine the dependency network can be quite hairy with some of these. I would imagine that would be a huge side-benefit though of going through this: the chance to parse out dependency-dependent code, though my impression is that things have been kept fairly clean. |
+1 for a stripped down distribution of Julia. I think there's a lot of people interested in the language per se without all the scientific/technical computing stuff (e.g. for going things like embedding Julia, GUI application development, emscripten as @karbarcca mentioned). Having a lightweight distribution would be great for this kind of thing. |
I have no idea what that would look like ;) |
For the sake of discussion I'll choose to take the question seriously :) Stuff that is "part of the language" is listed in |
In #5155 I have made the proposal to shrink base and introduce a "standard library" which in sum is much larger than current base. I think this proposal goes in line with @karbarcca thoughts. Jeff, I think its simpler to define what shrinked I would really love if this proposal could move forward. One technical question would be where the standard library should be hosted. My thought is that this should follow the Julia release cycle and not be put into .julia but into the global julia directory (i.e. as with current base). One completely alternative approach that would not live in Julia is to make different distributions of Julia by pulling the Julia source, putting some packages to it and the distribute it. But I think that the centralized approach is better. |
And with stripped down Julia and |
Maybe a good wording for stripped down Julia would be |
Ok I think in order to move this proposal forward the following things have to be discussed:
|
|
|
I believe this is subsumed by #5155. |
$ git log --pretty=oneline --abbrev=commit f9a5cc7..13456b9 13456b944fd21ec180111c6c29d06b610d47d088 Deprecate the REPL command `] generate` (#1923) 3eee6eb25974c2f320706da1b81ce1f7e1d82165 BinaryPlatforms: Recognize MacOS(:aarch64) (#1916) a8cc6d670ebe55002c5d5efb7fb19315c0c1cd55 Telemetry CI variables: add CI_SERVER, JULIA_PKGEVAL, JULIA_REGISTRYCI_AUTOMERGE, and PKGEVAL (#1906) ae897bc44070f902b5b01da80478ed51c1b518c0 Fix invalidations from loading OrderedCollections (#1897) 69bc387b3932d3d709b656e1ef929c4a2592fcee fix path returned from find_install (#1908) 46c9d430d545ecd70b147942857d775b2834e54b Update environments.md (#1896) 20f9b9e14ab59d81991b5984a2f9eb87d38b6230 Merge pull request #1869 from JuliaLang/teh/inval3 605f48849fa6b3bf29e6785967d4ef2249da9976 - only test on nightly, test without Pkg server as well - CI: build docs on nightly 7e0c911591f5d62acb476f74c59a9cad9c7a1f7d Avoid a strange inference limit when broadcasting f92ee5786468a7d0e836a94b0bb09711faef78da Use `maximum(itr; init=default)` d524d0f7f8cfef8abe429d3b947157eacb84f8ea Avoid calling ==(::Any, ::Nothing) in read_field 2acb2f9ca7f8b908954d6fdde074b65e30b8395f Add more type info 9b5e38e0ee2a0747b5ca7125a3a1f347cbd61708 Improve inference for Platform 0ebffb95d9793689d4c72198ae4804b0745ee16e Pre-allocate `seen` to improve inference in `unique(f, itr)` 160efbea2b56dc8a7a9a5ed8f795fa8995a4f09b Eliminate some boxing cdfc445873fc1d5df8838dd080e125bcce587dc6 docs: delete note about gen-project script (#1887) 531861f6677f434f6d594212d1085ac5bc309328 Make tree hash computation non-fatal when installing artifacts. (#1885) ce4a41ee7d232b90da925fa9ebe246618de8ada4 Misc fixes (#1884) f80d44345f61d0c1a02650f33322f9a330aa77d1 Disable SIGQUIT test that regularly segfaults on CI. (#1883) 2328d1bcd919bd9fc038af3f1cedf43a22d28e30 telemetry: don't send hash without active project 08fe651707d6deb392950f71c3ea776a2c8337c9 telemetry: use RandomDevice for random values c213096ea6210f66945443658b6548012dff5ec9 Improve Artifacts documentation by adding a Basic Usage section (#1879) d8fde7e85b72c86cdae395a1ea13485c193dc35e fix typo in telemetry notice (#1877) 188893dfdb6608cd5bcab18c6d365843cf1c6056 Merge pull request #1871 from JuliaLang/sk/telemetry ab88ea9c3ea05a70c2e014e6ceb5ce55a7fa9cf7 telemetry notice: reword a bit, factor into function 341dfd0bfafb994bd7c71271d2a458e314f3af4c telemetry: don't send salt hash header ae99ba2ed9d9cd7f9962a2515fd62054eb644097 telemetry notice: only print once per process 636d333a263640650d09b08a568e8e128bf6c00c Add a poor-mans file lock for telemetry file. b24ca68ed000139507d179f49a04df7c7b93d14c telemetry: print legal notice first time talking to each pkg server bd07a8d6439ffbe55f9aaf22ea5e2c451ee480cb telemetry: ~/.julia/servers/telemetry.toml for defaults 70dfbd2c59c4110a6c4775414202b4df840acf21 telemetry: HyperLogLog estimator 3e3f9d7a3baf3a96c860d2b1bc895d5fd2d40d35 README: howto build Julia with git checkout of Pkg (#1864) 100eaa9b0ea0a2b95072c77bdf7060e72479fe13 Fix bug which made `registry up` a no-op instead of updating all user-registries. (#1862)
$ git log --pretty=oneline --abbrev=commit f9a5cc7..13456b9 13456b944fd21ec180111c6c29d06b610d47d088 Deprecate the REPL command `] generate` (#1923) 3eee6eb25974c2f320706da1b81ce1f7e1d82165 BinaryPlatforms: Recognize MacOS(:aarch64) (#1916) a8cc6d670ebe55002c5d5efb7fb19315c0c1cd55 Telemetry CI variables: add CI_SERVER, JULIA_PKGEVAL, JULIA_REGISTRYCI_AUTOMERGE, and PKGEVAL (#1906) ae897bc44070f902b5b01da80478ed51c1b518c0 Fix invalidations from loading OrderedCollections (#1897) 69bc387b3932d3d709b656e1ef929c4a2592fcee fix path returned from find_install (#1908) 46c9d430d545ecd70b147942857d775b2834e54b Update environments.md (#1896) 20f9b9e14ab59d81991b5984a2f9eb87d38b6230 Merge pull request #1869 from JuliaLang/teh/inval3 605f48849fa6b3bf29e6785967d4ef2249da9976 - only test on nightly, test without Pkg server as well - CI: build docs on nightly 7e0c911591f5d62acb476f74c59a9cad9c7a1f7d Avoid a strange inference limit when broadcasting f92ee5786468a7d0e836a94b0bb09711faef78da Use `maximum(itr; init=default)` d524d0f7f8cfef8abe429d3b947157eacb84f8ea Avoid calling ==(::Any, ::Nothing) in read_field 2acb2f9ca7f8b908954d6fdde074b65e30b8395f Add more type info 9b5e38e0ee2a0747b5ca7125a3a1f347cbd61708 Improve inference for Platform 0ebffb95d9793689d4c72198ae4804b0745ee16e Pre-allocate `seen` to improve inference in `unique(f, itr)` 160efbea2b56dc8a7a9a5ed8f795fa8995a4f09b Eliminate some boxing cdfc445873fc1d5df8838dd080e125bcce587dc6 docs: delete note about gen-project script (#1887) 531861f6677f434f6d594212d1085ac5bc309328 Make tree hash computation non-fatal when installing artifacts. (#1885) ce4a41ee7d232b90da925fa9ebe246618de8ada4 Misc fixes (#1884) f80d44345f61d0c1a02650f33322f9a330aa77d1 Disable SIGQUIT test that regularly segfaults on CI. (#1883) 2328d1bcd919bd9fc038af3f1cedf43a22d28e30 telemetry: don't send hash without active project 08fe651707d6deb392950f71c3ea776a2c8337c9 telemetry: use RandomDevice for random values c213096ea6210f66945443658b6548012dff5ec9 Improve Artifacts documentation by adding a Basic Usage section (#1879) d8fde7e85b72c86cdae395a1ea13485c193dc35e fix typo in telemetry notice (#1877) 188893dfdb6608cd5bcab18c6d365843cf1c6056 Merge pull request #1871 from JuliaLang/sk/telemetry ab88ea9c3ea05a70c2e014e6ceb5ce55a7fa9cf7 telemetry notice: reword a bit, factor into function 341dfd0bfafb994bd7c71271d2a458e314f3af4c telemetry: don't send salt hash header ae99ba2ed9d9cd7f9962a2515fd62054eb644097 telemetry notice: only print once per process 636d333a263640650d09b08a568e8e128bf6c00c Add a poor-mans file lock for telemetry file. b24ca68ed000139507d179f49a04df7c7b93d14c telemetry: print legal notice first time talking to each pkg server bd07a8d6439ffbe55f9aaf22ea5e2c451ee480cb telemetry: ~/.julia/servers/telemetry.toml for defaults 70dfbd2c59c4110a6c4775414202b4df840acf21 telemetry: HyperLogLog estimator 3e3f9d7a3baf3a96c860d2b1bc895d5fd2d40d35 README: howto build Julia with git checkout of Pkg (#1864) 100eaa9b0ea0a2b95072c77bdf7060e72479fe13 Fix bug which made `registry up` a no-op instead of updating all user-registries. (#1862)
$ git log --pretty=oneline --abbrev=commit f9a5cc7..13456b9 13456b944fd21ec180111c6c29d06b610d47d088 Deprecate the REPL command `] generate` (JuliaLang#1923) 3eee6eb25974c2f320706da1b81ce1f7e1d82165 BinaryPlatforms: Recognize MacOS(:aarch64) (JuliaLang#1916) a8cc6d670ebe55002c5d5efb7fb19315c0c1cd55 Telemetry CI variables: add CI_SERVER, JULIA_PKGEVAL, JULIA_REGISTRYCI_AUTOMERGE, and PKGEVAL (JuliaLang#1906) ae897bc44070f902b5b01da80478ed51c1b518c0 Fix invalidations from loading OrderedCollections (JuliaLang#1897) 69bc387b3932d3d709b656e1ef929c4a2592fcee fix path returned from find_install (JuliaLang#1908) 46c9d430d545ecd70b147942857d775b2834e54b Update environments.md (JuliaLang#1896) 20f9b9e14ab59d81991b5984a2f9eb87d38b6230 Merge pull request JuliaLang#1869 from JuliaLang/teh/inval3 605f48849fa6b3bf29e6785967d4ef2249da9976 - only test on nightly, test without Pkg server as well - CI: build docs on nightly 7e0c911591f5d62acb476f74c59a9cad9c7a1f7d Avoid a strange inference limit when broadcasting f92ee5786468a7d0e836a94b0bb09711faef78da Use `maximum(itr; init=default)` d524d0f7f8cfef8abe429d3b947157eacb84f8ea Avoid calling ==(::Any, ::Nothing) in read_field 2acb2f9ca7f8b908954d6fdde074b65e30b8395f Add more type info 9b5e38e0ee2a0747b5ca7125a3a1f347cbd61708 Improve inference for Platform 0ebffb95d9793689d4c72198ae4804b0745ee16e Pre-allocate `seen` to improve inference in `unique(f, itr)` 160efbea2b56dc8a7a9a5ed8f795fa8995a4f09b Eliminate some boxing cdfc445873fc1d5df8838dd080e125bcce587dc6 docs: delete note about gen-project script (JuliaLang#1887) 531861f6677f434f6d594212d1085ac5bc309328 Make tree hash computation non-fatal when installing artifacts. (JuliaLang#1885) ce4a41ee7d232b90da925fa9ebe246618de8ada4 Misc fixes (JuliaLang#1884) f80d44345f61d0c1a02650f33322f9a330aa77d1 Disable SIGQUIT test that regularly segfaults on CI. (JuliaLang#1883) 2328d1bcd919bd9fc038af3f1cedf43a22d28e30 telemetry: don't send hash without active project 08fe651707d6deb392950f71c3ea776a2c8337c9 telemetry: use RandomDevice for random values c213096ea6210f66945443658b6548012dff5ec9 Improve Artifacts documentation by adding a Basic Usage section (JuliaLang#1879) d8fde7e85b72c86cdae395a1ea13485c193dc35e fix typo in telemetry notice (JuliaLang#1877) 188893dfdb6608cd5bcab18c6d365843cf1c6056 Merge pull request JuliaLang#1871 from JuliaLang/sk/telemetry ab88ea9c3ea05a70c2e014e6ceb5ce55a7fa9cf7 telemetry notice: reword a bit, factor into function 341dfd0bfafb994bd7c71271d2a458e314f3af4c telemetry: don't send salt hash header ae99ba2ed9d9cd7f9962a2515fd62054eb644097 telemetry notice: only print once per process 636d333a263640650d09b08a568e8e128bf6c00c Add a poor-mans file lock for telemetry file. b24ca68ed000139507d179f49a04df7c7b93d14c telemetry: print legal notice first time talking to each pkg server bd07a8d6439ffbe55f9aaf22ea5e2c451ee480cb telemetry: ~/.julia/servers/telemetry.toml for defaults 70dfbd2c59c4110a6c4775414202b4df840acf21 telemetry: HyperLogLog estimator 3e3f9d7a3baf3a96c860d2b1bc895d5fd2d40d35 README: howto build Julia with git checkout of Pkg (JuliaLang#1864) 100eaa9b0ea0a2b95072c77bdf7060e72479fe13 Fix bug which made `registry up` a no-op instead of updating all user-registries. (JuliaLang#1862)
It might be nice to ship Julia with some default packages. There are issue, however. This implies the creation of a .julia package directory, which we currently don't do automatically, plus the installation, at julia install time, of some packages there. While that's feasible, if someone later changes to a different .julia directory, those packages would need to be installed there as well, which seems strange. One solution would be to install them in a system-wide location and add complex layered package resolution support (see #1692). Another option would be having some packages installed inside of the julia home directory and not participating in normal version resolution, although at that point it seems a bit weird to even deal with that via the package manager.
The text was updated successfully, but these errors were encountered: