From 44817f0c649f4eea32710439b2c7da03ea91e0bc Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 5 Dec 2018 23:31:35 +0100 Subject: [PATCH] Bring back NEWS to the manual (#30282) * Bring back NEWS.md to the manual. * Misc NEWS.md changes: - Separate out stdlib changes into separate headings. - Remove emtpy Compiler section. - Change Julia 1.1.0 to Julia 1.1 --- NEWS.md | 43 ++++++++++++++++++++++++++----------------- doc/make.jl | 14 +++++++------- doc/src/index.md | 7 +------ 3 files changed, 34 insertions(+), 30 deletions(-) diff --git a/NEWS.md b/NEWS.md index 4a64afd7e13ed..0590f4d727722 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -Julia v1.1.0 Release Notes +Julia v1.1 Release Notes ========================== New language features @@ -52,37 +52,24 @@ Standard library changes * `copy!` support for arrays, dicts, and sets has been moved to Base from the Future package ([#29173]). * Channels now convert inserted values (like containers) instead of requiring types to match ([#29092]). * `range` can accept the stop value as a positional argument, e.g. `range(1,10,step=2)` ([#28708]). - * `edit` can now be called on a module to edit the file that defines it ([#29636]). * `diff` now supports arrays of arbitrary dimensionality and can operate over any dimension ([#29827]). - * `sprandn` now supports specifying the output element type ([#30083]). - * All compiler-reflection tools (i.e. the `code_` class of functions and macros) now print accurate - line number and inlining information in a common style, and take an optional parameter (debuginfo=:default) - to control the verbosity of the metadata shown ([#29893]). * The constructor `BigFloat(::BigFloat)` now respects the global precision setting and always returns a `BigFloat` with precision equal to `precision(BigFloat)` ([#29127]). The optional `precision` argument to override the global setting is now a keyword instead of positional argument ([#29157]). * The use of scientific notation when printing `BigFloat` values is now consistent with other floating point types ([#29211]). - * `Regex` and `TimeZone` now behave like scalars when used in broadcasting ([#29913], [#30159]). + * `Regex` now behave like a scalar when used in broadcasting ([#29913]). * `Char` now behaves like a read-only 0-dimensional array ([#29819]). * `parse` now allows strings representing integer 0 and 1 for type `Bool` ([#29980]). * `Base.tail` now works on named tuples ([#29595]). - * `randperm` and `randcycle` now use the type of their argument to determine the element type of - the returned array ([#29670]). * The process id is appended to malloc log files in order to track memory allocations of multiple processes ([#29969]). * `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]). - * New `DateTime(::Date, ::Time)` constructor ([#29754]). - * `isdiag` and `isposdef` for `Diagonal` and `UniformScaling` ([#29638]). - * `mul!`, `rmul!` and `lmul!` methods for `UniformScaling` ([#29506]). - * `Symmetric` and `Hermitian` matrices now preserve the wrapper when scaled with a number ([#29469]). - * New `edit(m::Module)` method which opens the main source file for module `m` ([#29636]). * `Base.@kwdef` can now be used for parametric structs, and for structs with supertypes ([#29316]). * `merge(::NamedTuple, ::NamedTuple...)` can now be used with more than 2 `NamedTuple`s ([#29259]). * `Future.copy!` has been moved to `Base` ([#29178]). * New `ncodeunits(c::Char)` method as a fast equivalent to `ncodeunits(string(c))` ([#29153]). - * `mean` and `var` now handles the empty case ([#29033]). * New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]). * `range` now accept `stop` as a positional argument ([#28708]). * `parse(Bool, str)` is now supported ([#29997]). @@ -91,12 +78,34 @@ Standard library changes * `current_project()` now searches the parent directories of a Git repository for a `Project.toml` file. This also affects the behavior of the `--project` command line option when using the default `--project=@.` ([#29108]). + +#### Dates + * New `DateTime(::Date, ::Time)` constructor ([#29754]). + * `TimeZone` now behave like a scalar when used in broadcasting ([#30159]). + +#### InteractiveUtils + * `edit` can now be called on a module to edit the file that defines it ([#29636]). + * All compiler-reflection tools (i.e. the `code_` class of functions and macros) now print accurate + line number and inlining information in a common style, and take an optional parameter (debuginfo=:default) + to control the verbosity of the metadata shown ([#29893]). + +#### LinearAlgebra + * `isdiag` and `isposdef` for `Diagonal` and `UniformScaling` ([#29638]). + * `mul!`, `rmul!` and `lmul!` methods for `UniformScaling` ([#29506]). + * `Symmetric` and `Hermitian` matrices now preserve the wrapper when scaled with a number ([#29469]). * Exponentiation operator `^` now supports raising a `Irrational` to an `AbstractMatrix` power ([#29782]). + +#### Random + * `randperm` and `randcycle` now use the type of their argument to determine the element type of + the returned array ([#29670]). * A new method `rand(::Tuple)` implements sampling from the values of a tuple ([#25278]). * `serialize` and `deserialize` now accept a filename argument, like `write` and `read` ([#30151]). -Compiler/Runtime improvements ------------------------------ +#### SparseArrays + * `sprandn` now supports specifying the output element type ([#30083]). + +#### Statistics + * `mean` and `var` now handles the empty case ([#29033]). External dependencies --------------------- diff --git a/doc/make.jl b/doc/make.jl index 76694c7559743..6a89666da974d 100644 --- a/doc/make.jl +++ b/doc/make.jl @@ -46,16 +46,16 @@ cd(joinpath(@__DIR__, "src")) do end end -# # Generate a suitable markdown file from NEWS.md and put it in src -# str = read(joinpath(@__DIR__, "..", "NEWS.md"), String) -# splitted = split(str, "") -# @assert length(splitted) == 2 -# replaced_links = replace(splitted[1], r"\[\#([0-9]*?)\]" => s"[#\g<1>](https://github.com/JuliaLang/julia/issues/\g<1>)") -# write(joinpath(@__DIR__, "src", "NEWS.md"), replaced_links) +# Generate a suitable markdown file from NEWS.md and put it in src +str = read(joinpath(@__DIR__, "..", "NEWS.md"), String) +splitted = split(str, "") +@assert length(splitted) == 2 +replaced_links = replace(splitted[1], r"\[\#([0-9]*?)\]" => s"[#\g<1>](https://github.com/JuliaLang/julia/issues/\g<1>)") +write(joinpath(@__DIR__, "src", "NEWS.md"), replaced_links) const PAGES = [ "Home" => "index.md", - # hide("NEWS.md"), + hide("NEWS.md"), "Manual" => [ "manual/getting-started.md", "manual/variables.md", diff --git a/doc/src/index.md b/doc/src/index.md index a6279791f3ec2..b8fe2dc820fe3 100644 --- a/doc/src/index.md +++ b/doc/src/index.md @@ -18,12 +18,7 @@ end import Markdown Markdown.parse(String(take!(io))) ``` - -Please read the [release blog post](https://julialang.org/blog/2018/08/one-point-zero) for a general overview of the language and -many of the changes since Julia v0.6. Note that version 0.7 was released alongside -1.0 to provide an upgrade path for packages and code that predates the 1.0 release. -The only difference between 0.7 and 1.0 is the removal of deprecation warnings. -For a complete list of all the changes since 0.6, see the [release notes for version 0.7](https://docs.julialang.org/en/v0.7.0/NEWS/) +Please read the [release notes](NEWS.md) to see what has changed since the last release. ### [Introduction](@id man-introduction)