{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/17845","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/17845/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/17845/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/17845/events","html_url":"https://github.com/JuliaLang/julia/issues/17845","id":169663147,"number":17845,"title":"Precompile should check staleness using a hash instead of a timestamp","user":{"login":"tlnagy","id":1661487,"avatar_url":"https://avatars.githubusercontent.com/u/1661487?v=3","gravatar_id":"","url":"https://api.github.com/users/tlnagy","html_url":"https://github.com/tlnagy","followers_url":"https://api.github.com/users/tlnagy/followers","following_url":"https://api.github.com/users/tlnagy/following{/other_user}","gists_url":"https://api.github.com/users/tlnagy/gists{/gist_id}","starred_url":"https://api.github.com/users/tlnagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlnagy/subscriptions","organizations_url":"https://api.github.com/users/tlnagy/orgs","repos_url":"https://api.github.com/users/tlnagy/repos","events_url":"https://api.github.com/users/tlnagy/events{/privacy}","received_events_url":"https://api.github.com/users/tlnagy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/precompile","name":"precompile","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-05T18:02:12Z","updated_at":"2016-08-11T16:34:35Z","closed_at":null,"body":"As discussed in https://github.com/JuliaStats/StatsBase.jl/issues/202, alternating `Pkg.add(X)` and `using X` statements can lead to errors. According to @tkelman, this could be fixed by making `require` check staleness by looking at the timestamp instead of a hash.\r\n\r\nExample:\r\n\r\n```julia\r\n$ rm -rf ~/.julia/v0.4\r\n$ rm -rf ~/.julia/lib/v0.4\r\n$ julia -e \"Pkg.update()\"\r\nINFO: Initializing package repository /Users/tamasnagy/.julia/v0.4\r\nINFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl\r\nINFO: Updating METADATA...\r\nINFO: Computing changes...\r\nINFO: No packages to install, update or remove\r\n$ julia\r\n               _\r\n   _       _ _(_)_     |  A fresh approach to technical computing\r\n  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org\r\n   _ _   _| |_  __ _   |  Type \"?help\" for help.\r\n  | | | | | | |/ _` |  |\r\n  | | |_| | | | (_| |  |  Version 0.4.5 (2016-03-18 00:58 UTC)\r\n _/ |\\__'_|_|_|\\__'_|  |\r\n|__/                   |  x86_64-apple-darwin15.4.0\r\n\r\njulia> Pkg.add(\"StatsBase\")\r\nINFO: Installing BinDeps v0.4.1\r\nINFO: Installing Compat v0.8.6\r\nINFO: Installing Rmath v0.1.2\r\nINFO: Installing SHA v0.2.0\r\nINFO: Installing StatsBase v0.9.0\r\nINFO: Installing StatsFuns v0.3.0\r\nINFO: Installing URIParser v0.1.5\r\nINFO: Building Rmath\r\nINFO: Package database updated\r\n\r\njulia> using StatsBase\r\nINFO: Precompiling module StatsBase...\r\n\r\njulia> Pkg.add(\"Distributions\")\r\nINFO: Installing Calculus v0.1.15\r\nINFO: Installing Distributions v0.10.0\r\nINFO: Installing PDMats v0.4.2\r\nINFO: Building Rmath\r\nINFO: Package database updated\r\n\r\njulia> using Distributions\r\nINFO: Precompiling module Distributions...\r\nINFO: Recompiling stale cache file /Users/tamasnagy/.julia/lib/v0.4/Rmath.ji for module Rmath.\r\nINFO: Recompiling stale cache file /Users/tamasnagy/.julia/lib/v0.4/StatsFuns.ji for module StatsFuns.\r\nINFO: Recompiling stale cache file /Users/tamasnagy/.julia/lib/v0.4/StatsBase.ji for module StatsBase.\r\nINFO: Recompiling stale cache file /Users/tamasnagy/.julia/lib/v0.4/Distributions.ji for module Distributions.\r\nWARNING: Module Rmath uuid did not match cache file\r\n  This is likely because module Rmath does not support  precompilation but is imported by a module that does.\r\nERROR: __precompile__(true) but require failed to create a precompiled cache file\r\n in require at /usr/local/Cellar/julia/0.4.5/lib/julia/sys.dylib\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/239216222","html_url":"https://github.com/JuliaLang/julia/issues/17845#issuecomment-239216222","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/17845","id":239216222,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T16:34:35Z","updated_at":"2016-08-11T16:34:35Z","body":"And here is a [benchmark of different CRC routines](https://github.com/baruch/crcbench), concluding that Adler's routine is pretty much the fastest."}}
{"actor":{"display_login":"stevengj"}}