Skip to content

Commit 4c58369

Browse files
authored
edit and update NEWS for 1.4 (#34219)
1 parent e03b730 commit 4c58369

File tree

1 file changed

+54
-53
lines changed

1 file changed

+54
-53
lines changed

NEWS.md

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,80 +5,68 @@ New language features
55
---------------------
66

77
* Structs with all isbits and isbitsunion fields are now stored inline in arrays ([#32448]).
8-
98
* `import` now allows quoted symbols, e.g. `import Base.:+` ([#33158]).
10-
11-
* Function composition now supports multiple functions: `∘(f, g, h) = f ∘ g ∘ h`
12-
and splatting `∘(fs...)` for composing an iterable collection of functions ([#33568]).
13-
14-
* Functions `gcd`, `lcm`, and `gcdx` now support `Rational` arguments ([#33910]).
15-
169
* `a[begin]` can now be used to address the first element of an integer-indexed collection `a`.
1710
The index is computed by `firstindex(a)` ([#33946]).
1811

1912
Language changes
2013
----------------
2114

22-
* Calling `show` or `repr` on an `undef`/`UndefInitializer()` array initializer now shows valid Julia code ([#33211]).
23-
24-
* Calling `show` or `repr` on a 0-dimensional `AbstractArray` now shows valid code for creating an equivalent 0-dimensional array, instead of only showing the contained value. ([#33206])
25-
2615
* The syntax `(;)`, which used to parse as an empty block expression, is deprecated.
2716
In the future it will indicate an empty named tuple ([#30115]).
2817

2918
Multi-threading changes
3019
-----------------------
3120

3221
* Values can now be interpolated into `@async` and `@spawn` via `$`, which copies the value directly into the constructed
33-
underlying closure. ([#33119])
22+
underlying closure ([#33119]).
3423

3524
Build system changes
3625
--------------------
26+
3727
* Windows build installer has switched to Inno Setup. Installer command line parameters have thus changed. For example, to extract the installer to a specific directory, the command line parameter is now `/DIR=x:\dirname`. Use `julia-installer.exe /?` to list all new command line parameters.
3828

3929
New library functions
4030
---------------------
4131

32+
* The new `only(x)` function returns the one-and-only element of a collection `x`, and throws an `ArgumentError` if `x` contains zero or multiple elements ([#33129]).
33+
* `takewhile` and `dropwhile` have been added to the Iterators submodule ([#33437]).
34+
* `accumulate` has been added to the Iterators submodule ([#34033]).
35+
* There is a now an `evalpoly` function meant to take the role of the `@evalpoly` macro. The function is just as efficient as the macro while giving added flexibility, so it should be preferred over `@evalpoly`. `evalpoly` takes a list of coefficients as a tuple, so where one might write `@evalpoly(x, p1, p2, p3)` one would instead write `evalpoly(x, (p1, p2, p3))`.
36+
37+
New library features
38+
--------------------
39+
40+
* Function composition now supports multiple functions: `∘(f, g, h) = f ∘ g ∘ h`
41+
and splatting `∘(fs...)` for composing an iterable collection of functions ([#33568]).
42+
* Functions `gcd`, `lcm`, and `gcdx` now support `Rational` arguments ([#33910]).
4243
* The `splitpath` function now accepts any `AbstractString` whereas previously it only accepted paths of type `String` ([#33012]).
44+
* `filter` can now act on a `Tuple` ([#32968]).
4345
* The `tempname` function now takes an optional `parent::AbstractString` argument to give it a directory in which to attempt to produce a temporary path name ([#33090]).
4446
* The `tempname` function now takes a `cleanup::Bool` keyword argument defaulting to `true`, which causes the process to try to ensure that any file or directory at the path returned by `tempname` is deleted upon process exit ([#33090]).
4547
* The `readdir` function now takes a `join::Bool` keyword argument defaulting to `false`, which when set causes `readdir` to join its directory argument with each listed name ([#33113]).
46-
* `readdir` output is now guaranteed to be sorted. The `sort` keyword allows opting out of sorting to get names in OS-native order ([#33542]).
47-
* The new `only(x)` function returns the one-and-only element of a collection `x`, and throws an `ArgumentError` if `x` contains zero or multiple elements. ([#33129])
48-
* `takewhile` and `dropwhile` have been added to the Iterators submodule ([#33437]).
49-
* `accumulate` has been added to the Iterators submodule.
50-
* `filter` can now act on a `Tuple` ([#32968]).
51-
* There is a now an `evalpoly` (generated) function meant to take the role of the `@evalpoly` macro. The function is just as efficient as the macro while giving added flexibility, so it should be preferred over `@evalpoly`. `evalpoly` takes a list of coefficients as a tuple, so where one might write `@evalpoly(x, p1, p2, p3)` one would instead write `evalpoly(x, (p1, p2, p3))`.
52-
48+
* `div` now accepts a rounding mode as the third argument, consistent with the corresponding argument to `rem`. Support for rounding division, by passing one of the RoundNearest modes to this function, was added. For future compatibility, library authors should now extend this function, rather than extending the two-argument `fld`/`cld`/`div` directly ([#33040]).
49+
* `methods` now accepts a module (or a list thereof) to filter methods defined in it ([#33403]).
5350

5451
Standard library changes
5552
------------------------
5653

57-
* The methods of `mktemp` and `mktempdir` which take a function body to pass temporary paths to no longer throw errors if the path is already deleted when the function body returns ([#33091]).
58-
* `div` now accepts a rounding mode as the third argument, consistent with the corresponding argument to `rem`. Support for rounding division, by passing one of the RoundNearest modes to this function, was added. For future compatibility, library authors should now extend this function, rather than extending the two-argument `fld`/`cld`/`div` directly. ([#33040])
54+
* Calling `show` or `repr` on an `undef`/`UndefInitializer()` array initializer now shows valid Julia code ([#33211]).
55+
* Calling `show` or `repr` on a 0-dimensional `AbstractArray` now shows valid code for creating an equivalent 0-dimensional array, instead of only showing the contained value ([#33206]).
56+
* `readdir` output is now guaranteed to be sorted. The `sort` keyword allows opting out of sorting to get names in OS-native order ([#33542]).
57+
* The methods of `mktemp` and `mktempdir` that take a function to pass temporary paths to no longer throw errors if the path is already deleted when the function returns ([#33091]).
5958
* Verbose `display` of `Char` (`text/plain` output) now shows the codepoint value in standard-conforming `"U+XXXX"` format ([#33291]).
60-
6159
* `Iterators.partition` now uses views (or smartly re-computed ranges) for partitions of all `AbstractArray`s ([#33533]).
62-
6360
* Sets are now displayed less compactly in the REPL, as a column of elements, like vectors
6461
and dictionaries ([#33300]).
65-
66-
* `methods` now accepts passing a module (or a list thereof) to filter methods defined in it ([#33403]).
67-
6862
* `delete!` on `WeakKeyDict`s now returns the `WeakKeyDict` itself instead of the underlying `Dict` used for implementation
6963

70-
#### Libdl
71-
7264
#### LinearAlgebra
7365

7466
* `qr` and `qr!` functions support `blocksize` keyword argument ([#33053]).
75-
7667
* `dot` now admits a 3-argument method `dot(x, A, y)` to compute generalized dot products `dot(x, A*y)`, but without computing and storing the intermediate result `A*y` ([#32739]).
77-
7868
* `ldlt` and non-pivoted `lu` now throw a new `ZeroPivotException` type ([#33372]).
79-
8069
* `cond(A, p)` with `p=1` or `p=Inf` now computes the exact condition number instead of an estimate ([#33547]).
81-
8270
* `UniformScaling` objects may now be exponentiated such that `(a*I)^x = a^x * I`.
8371

8472
#### Markdown
@@ -88,9 +76,6 @@ Standard library changes
8876
#### Random
8977

9078
* `AbstractRNG`s now behave like scalars when used in broadcasting ([#33213]).
91-
92-
* Products involving sparse arrays now allow more general sparse `eltype`s, such as `StaticArrays` ([#33205])
93-
9479
* The performance of `rand(::Tuple)` is improved in some cases ([#32208]). As a consequence, the
9580
stream of generated values produced for a given seed has changed.
9681

@@ -104,23 +89,39 @@ Standard library changes
10489
* The return value of `zero(x::AbstractSparseArray)` has no stored zeros anymore ([#31835]).
10590
Previously, it would have stored zeros wherever `x` had them. This makes the operation
10691
constant time instead of `O(<number of stored values>)`.
107-
108-
#### Dates
109-
110-
#### Statistics
111-
112-
#### Sockets
113-
114-
115-
Deprecated or removed
116-
---------------------
117-
118-
119-
External dependencies
120-
---------------------
121-
122-
Tooling Improvements
123-
---------------------
124-
92+
* Products involving sparse arrays now allow more general sparse `eltype`s, such as `StaticArrays` ([#33205])
12593

12694
<!--- generated by NEWS-update.jl: -->
95+
[#29249]: https://github.com/JuliaLang/julia/issues/29249
96+
[#30115]: https://github.com/JuliaLang/julia/issues/30115
97+
[#31835]: https://github.com/JuliaLang/julia/issues/31835
98+
[#32208]: https://github.com/JuliaLang/julia/issues/32208
99+
[#32448]: https://github.com/JuliaLang/julia/issues/32448
100+
[#32739]: https://github.com/JuliaLang/julia/issues/32739
101+
[#32968]: https://github.com/JuliaLang/julia/issues/32968
102+
[#33012]: https://github.com/JuliaLang/julia/issues/33012
103+
[#33040]: https://github.com/JuliaLang/julia/issues/33040
104+
[#33053]: https://github.com/JuliaLang/julia/issues/33053
105+
[#33090]: https://github.com/JuliaLang/julia/issues/33090
106+
[#33091]: https://github.com/JuliaLang/julia/issues/33091
107+
[#33113]: https://github.com/JuliaLang/julia/issues/33113
108+
[#33119]: https://github.com/JuliaLang/julia/issues/33119
109+
[#33129]: https://github.com/JuliaLang/julia/issues/33129
110+
[#33158]: https://github.com/JuliaLang/julia/issues/33158
111+
[#33205]: https://github.com/JuliaLang/julia/issues/33205
112+
[#33206]: https://github.com/JuliaLang/julia/issues/33206
113+
[#33211]: https://github.com/JuliaLang/julia/issues/33211
114+
[#33213]: https://github.com/JuliaLang/julia/issues/33213
115+
[#33291]: https://github.com/JuliaLang/julia/issues/33291
116+
[#33300]: https://github.com/JuliaLang/julia/issues/33300
117+
[#33372]: https://github.com/JuliaLang/julia/issues/33372
118+
[#33403]: https://github.com/JuliaLang/julia/issues/33403
119+
[#33437]: https://github.com/JuliaLang/julia/issues/33437
120+
[#33533]: https://github.com/JuliaLang/julia/issues/33533
121+
[#33542]: https://github.com/JuliaLang/julia/issues/33542
122+
[#33547]: https://github.com/JuliaLang/julia/issues/33547
123+
[#33568]: https://github.com/JuliaLang/julia/issues/33568
124+
[#33849]: https://github.com/JuliaLang/julia/issues/33849
125+
[#33910]: https://github.com/JuliaLang/julia/issues/33910
126+
[#33946]: https://github.com/JuliaLang/julia/issues/33946
127+
[#34033]: https://github.com/JuliaLang/julia/issues/34033

0 commit comments

Comments
 (0)