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

update to root. #1

Merged
merged 95 commits into from Sep 10, 2018
Merged

update to root. #1

merged 95 commits into from Sep 10, 2018

Conversation

nagexiucai
Copy link
Owner

No description provided.

KristofferC and others added 30 commits August 21, 2018 22:45
(cherry picked from commit a3561e433d570cf3c23e2e58b7b3b899d804db7c)
(cherry picked from commit 6d6a41ff8e08eef8e5aa20e733072db43f18fde7)
(cherry picked from commit eaee5cceb1d690822e1faa1e422d8bce6718fe18)
(cherry picked from commit ff1f09c545e0fe51e78463296a9672865d4641cc)
(cherry picked from commit 4efb50e7788199ef26bc6288416d34a5f6db8975)
(cherry picked from commit e80a83ebadc57dbea826cd69a580ca898571c119)
(cherry picked from commit be4d03db83e777d04f06b22de6622a70e0f85e0f)
(cherry picked from commit a8d0d2babe6e07e1533df9755dc245c16618e670)
…handled in the resolver

(cherry picked from commit 6f3e865edc016eb0e2507d55d70aa755e68d9e7c)
(cherry picked from commit c31f924eb7df7126de59ce901a7310c0a56e8e93)
(cherry picked from commit 9cbe4a262ebeabd415ec46b80ee760aee0f009bd)
(cherry picked from commit da9baa2e5fe82904c1fb269e8d5ad93b7189d504)
(cherry picked from commit 58b57acc3e56ca269d30d6cc9eba9174e5c2423c)
(cherry picked from commit 5ca249afd1a374546395b0c98a7021ae70596f39)
because devdir() happened to be in the project.
The path should only be relative if the user
used --local.

(cherry picked from commit 1d3c5aabb2b45ed89bac53fc739d0ae7c6379b32)
(cherry picked from commit 7f46aca7b470aa3d0c694862b784e994e5806f4f)
(cherry picked from commit b38d3b707b781b3ac71330aff7a0b719e0b63527)
(cherry picked from commit 491d72db4b3bd08a3f213cdf56e784eb9a9d4f14)
(cherry picked from commit 84b7e726357d2f212599eb9cc66a37112696da72)
(cherry picked from commit b0c9df9aaea2f03e4469001a6c12dd16492178a7)
(cherry picked from commit f5e729d1cea4b13c5560d7b47b3b40ea819d6b82)
(cherry picked from commit ab4906e771bce85accca46fa51039116997d00d5)
(cherry picked from commit aef9aeddaf050a6b16c3229037de353748e84698)
(cherry picked from commit a1330c849022106ddd43352e096cd01d93810449)
(cherry picked from commit c87cbd03c7e93741043d8d719972bcd948ea89ef)
(cherry picked from commit b449507037e1046d5cd3d97d7734f7bb477af5de)
Make preview a meta option

Update tests for `preview`

Allow `preview` meta option to use command syntax

Add support for context sensitive completions

Fix completion parsing tests

Fix tests: `add` does not have a `manifest` option

Cache data needed for completions

Refactor completions

Fix completions

Update tests for completions parse

Fix `_statement`

Only complete canonical names for `help`

(cherry picked from commit 7aaf3ea5526a6e9aee6689b62100b18d57ac423c)
(cherry picked from commit b8c3b8525480ccda580a34738b750d5841c36201)
(cherry picked from commit ccb45335230baa919650f3704381572cd073186d)
(cherry picked from commit f42f77d17836b6bd4ea075bbb69bee7d1f06c004)
Fix help doc. Disable `registry`

(cherry picked from commit 9d1ef197621e20b5f9e97b1c92929a73b2e467c7)
(cherry picked from commit 73296794fe728bef015b8c57220b5e3aa30eba3b)
(cherry picked from commit 9f2e6d973ef6801819e0414184facc05b2eece04)
(cherry picked from commit 13bf2f009bd36f616b438f527ec13593c5ea261d)
(cherry picked from commit 6f02645d832731b05f4eebdc79ec1fc041fb781c)
When bringing up the runtime on a new architecture, this can
be quite broken early on (including mesed up memory allocation, etc).
In those situations, jl_ (along with regular printf) is an indispensible
tool. However, it was assuming that variables are already initialized
and crashed during very early bootstrap when this wasn't the case.

Add some extra checks to make it a bit more robust.
Would have caught some bringup mistakes that cost me a bunch of time
today.
* Remove `jl_dlsym_e()` to instead be rolled into `jl_dlsym()` with a `throw_err` parameter, similar to `jl_load_dynamic_library()`.

* Fix #28881 by having `Libdl.dlsym()` return `nothing` on missing symbol, rather than `C_NULL`.
This changes `dlopen()` to mimic `dlsym()` so that a negative result
returns `nothing`.  While not necessary in the same way as in the
`dlsym()` case (there are no valid `NULL` `dlopen()` results) the
consistency is worth it.
ararslan and others added 29 commits September 4, 2018 13:51
* Fix type signature of mul! methods for multiplying SparseMatrixCSCs with Diagonal matrices. Type signature for diagonal matrices was wrong, causing fallback to generic Matmul.

* Add SparseMatrixCSC*Diagonal dispatch test

* Fix trailing whitespace

* Don't copy with deepcopy
#29044)

The code for this expected the first element of a block to be a line
number; check to make sure it is before using it.
cp() doc :  dest->dst
* work around a splatting penalty in twiceprecision

* add allocation test
Test with:
```julia
a = randn(10)
abs(norm(a) - mynorm(a)) < 1e10
```

Tested here:
```julia-repl
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.4 (2018-07-09 19:09 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> function mynorm(u::Vector)
           n = length(u)
           T = eltype(u)
           s = zero(T)
           @fastmath @inbounds @simd for i in 1:n
               s += u[i]^2
           end
           @fastmath @inbounds return sqrt(s)
       end
mynorm (generic function with 1 method)

julia> function mynorm_old(u::Vector)
           n = length(u)
           T = eltype(u)
           s = zero(T)
           @fastmath @inbounds @simd for i in 1:n
               s += u[i]^2
           end
           @fastmath @inbounds return sqrt(s/n)
       end
mynorm_old (generic function with 1 method)

julia> a = randn(10)
10-element Array{Float64,1}:
 -0.564163
 -3.45236 
 -0.50901 
 -0.030296
  0.114156
  0.661961
 -1.19972 
  2.20883 
  1.74529 
  0.82515 

julia> abs(norm(a)-mynorm(a))
0.0

julia> abs(norm(a)-mynorm_old(a))
3.2787896367314344
```
In this case, the result of `iterate` has not been checked for
`nothing`, so we try to call `indexed_iterate` (for destructuring
assignment) on a Union of Nothing and the tuple returned by
`iterate`. That has two method matches, and so was excluded from
constant propagation. This commit fixes that by generalizing the
constant prop heuristic from requiring one method match to
requiring one non-Bottom method match.

This issue caused a large slowdown in DelimitedFiles, where
the inner loop consists of

```
        while idx <= slen
            val,idx = iterate(dbuff, idx)
```
There is no need to fetch the next state after the last element.
The design taken here is that CFG transformations are allowed during
compacting, but BBs are only removed (i.e. BB numbers are only changed
at the beginning of compaction).
* Adding text on how to embed Julia on Windows.

* Fixed trailing whitespace.
@nagexiucai nagexiucai merged commit 1ddbc2d into nagexiucai:master Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet