https://github.com/JuliaLang/julia

sort by:
Revision Author Date Message Commit Date
f57d29d add `zeros!` and `ones!`, mutating versions of `zeros` and `ones` The current alternative is to use `fill!(x, 0)`, but this does not always work, when `convert(eltype(x), 0)` is not defined, for example when `x` is an array of `DateTime` objects. 26 April 2021, 13:51:53 UTC
1a12495 REPL: Fix incorrect docstring for .. (#40563) (#40607) This PR fixes #40563 . This is essentially a mirror of #39975 . Please refer to it for more information. 26 April 2021, 12:18:27 UTC
4e176ac add docstring for Base.load_path() (#40582) 26 April 2021, 08:26:44 UTC
f40c4ba Create README.md (#40603) [ci skip] [skip ci] 25 April 2021, 21:27:34 UTC
578d518 Make length type match index type in sparse vectors (#39645) 25 April 2021, 19:27:49 UTC
1425a11 kron for Diagonal uses kron for components (#40596) 25 April 2021, 18:02:09 UTC
79920db implement faster floating-point `isless` (#39090) * implement faster floating-point `isless` Previously `isless` relied on the C intrinsic `fpislt` in `src/runtime_intrinsics.c`, while the new implementation in Julia arguably generates better code, namely: 1. The NaN-check compiles to a single instruction + branch amenable for branch prediction in arguably most usecases (i.e. comparing non-NaN floats), thus speeding up execution. 2. The compiler now often manages to remove NaN-computation if the embedding code has already proven the arguments to be non-NaN. 3. The actual operation compares both arguments as sign-magnitude integers instead of case analysis based on the sign of one argument. This symmetric treatment may generate vectorized instructions for the sign-magnitude conversion depending on how the arguments are layed out. The actual behaviour of `isless` did not change and apart from the Julia-specific NaN-handling (which may be up for debate) the resulting total order corresponds to the IEEE-754 specified `totalOrder`. While the new implementation no longer generates fully branchless code I did not manage to construct a usecase where this was detrimental: the saved work seems to outweight the potential cost of a branch misprediction in all of my tests with various NaN-polluted data. Also auto-vectorization was not effective on the previous `fpislt` either. Quick benchmarks (AMD A10-7860K) on `sort`, avoiding the specialized algorithm: ```julia a = rand(1000); @btime sort($a, lt=(a,b)->isless(a,b)); # before: 56.030 μs (1 allocation: 7.94 KiB) # after: 40.853 μs (1 allocation: 7.94 KiB) a = rand(1000000); @btime sort($a, lt=(a,b)->isless(a,b)); # before: 159.499 ms (2 allocations: 7.63 MiB) # after: 120.536 ms (2 allocations: 7.63 MiB) a = [rand((rand(), NaN)) for _ in 1:1000000]; @btime sort($a, lt=(a,b)->isless(a,b)); # before: 111.925 ms (2 allocations: 7.63 MiB) # after: 77.669 ms (2 allocations: 7.63 MiB) ``` * Remove old intrinsic fpslt code Co-authored-by: Mustafa Mohamad <mus-m@outlook.com> 25 April 2021, 14:19:32 UTC
248c02f stricter buffer sizes in SparseMatrixCSC (#40523) Make length(A.nzval)==nnz(A) and add strict buffer checking (#30662) * Add sizehint!(::SparseMatrixCSC, args...), * Fix illegal SparseMatrixCSC construction in cholmod and linalg. * Remove tests targetting now illegal buffers * Fix invalid buffer creation in kron and more * use widelength in sizehint! to cope with large matrices in 32 bit systems 24 April 2021, 17:37:49 UTC
3b91a15 Merge pull request #40263 from JuliaLang/vc/llvm12_patches [LLVM] patch list for LLVM 12 24 April 2021, 17:32:33 UTC
659bc12 add `inttype`, `floattype` like `uinttype` (#36526) 24 April 2021, 15:16:54 UTC
c1b2fe2 Random: cut randstring allocation size in half (#40584) 24 April 2021, 15:11:43 UTC
e5da821 Add CHOLMOD error handler (#40589) * Add CHOLMOD error handler * Remove some now-obsolete at-isok * Remove at-isok macro 24 April 2021, 11:47:46 UTC
e7a6805 avoid excessive inlining of Ryu (#40593) 24 April 2021, 07:53:07 UTC
1474566 faster Float32 and Float16 pow (#40236) Approximately .5 ULP, relatively fast. Update float^integer as well 24 April 2021, 05:31:56 UTC
ac7974a [cli] Provide `.type` and `.size` annotations for symbols (#40575) On ELF platforms, `ld` can print out warnings that certain symbols do not have a type or size annotation. This adds the annotations to the `DEBUGINFO` and `EXPORT` helper macros, which are where this information was put for the windows assembler. With this patch, we should eliminate `ld` warnings such as: ``` warning: type and size of dynamic symbol `jl_symbol' are not defined ``` 23 April 2021, 20:59:06 UTC
d7d2b0c make \cdot, \interpunct, and \cdotp equivalent (#25157) Co-authored-by: Steven G. Johnson <stevenj@alum.mit.edu> Co-authored-by: Steven G. Johnson <stevenj@alum.mit.edu> 23 April 2021, 12:17:38 UTC
fc02458 Fix #31368: joinpath works on collections of paths (#38263) * Fix #31368: joinpath works on collections of paths * Update base/path.jl Co-authored-by: Jameson Nash <vtjnash@gmail.com> * Apply suggestions from code review * Fixup Co-authored-by: Mustafa M <mus-m@outlook.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> 22 April 2021, 21:23:36 UTC
15a44e9 Fix `llvm-tools` when installing with `LLVM_ASSERTS=1` (#40447) When installing with `LLVM_ASSERTS=1`, we need our `llvm-tools` to be an assert build as well. 22 April 2021, 20:45:28 UTC
2c88fb7 Document assignment destructuring (#30579) * Document assignment destructuring * Add reference to slurping assignment (#37410) * mention swapping variables and other kinds of LHS Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com> 22 April 2021, 18:52:06 UTC
4f271b1 change some `::AbstractString` fields to `::String` (#40569) 22 April 2021, 18:36:58 UTC
1fbb536 Improve type stability for tryparse VersionNumber (#40557) Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com> 22 April 2021, 17:33:28 UTC
50400fb Doc: Mention that dropdims'ed array shares memory (#40544) Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Michael Abbott <32575566+mcabbott@users.noreply.github.com> 22 April 2021, 06:42:38 UTC
7fe05db remove some exports from Broadcast (#40543) It seems like these were unintentional (and undocumented). Refs #26919. 21 April 2021, 19:06:18 UTC
ae1aa16 process: make SIGPIPE an always failure (#39574) This error code does not exist on Windows, so any code that relied on this was broken (would fail this test) on that platform already. In most cases, it was actually a serious error too, such as `cp -v` or `tar -v`, which will indeed fail midway and give corrupt results if you do not read their output to completion! Reverts #1469, in essence 21 April 2021, 18:50:58 UTC
770faac fetch is a noop when on the same worker (#19044) I was quite confused by this example, since I didn't realize that there is a `getindex(f::Future, args...) = getindex(fetch(f), args...)`. Because of this I misinterpreted the example (my first conclusion: `remote_call` must magically unpack the `Future`). Also, it didn't really make clear, that fetch turns into a noop if applied to a `Future` from the same worker. I tried to add this information in a concise way. 21 April 2021, 18:48:24 UTC
9418acc Add docstring for keys(::AbstractArray) (#36073) This is helpful for users, and it matters because some Base functions may rely on these guarantees for their correct behavior (e.g. `hash`). Co-authored-by: Matt Bauman <mbauman@juliacomputing.com> 21 April 2021, 18:47:46 UTC
6492751 allow creating an undef Diagonal (#38282) 21 April 2021, 18:45:10 UTC
33e9d37 docs: provide more detail on some noteworthy differences with Common Lisp (#36685) 21 April 2021, 18:37:18 UTC
d294b25 docs: add FAQ on parametric invariance (#21261) 21 April 2021, 18:35:29 UTC
e490918 Document splitext() with multiple extensions (#40554) 21 April 2021, 18:34:20 UTC
f103bb4 logging: redirect closed streams to stderr/stdout (#40423) This has the additional benefit of making the initial logger respect changes to redirect_stderr/stdout, until the user explicitly sets another stream as the logging destination. Fix #26798 Fix #38482 Replaces #26920, which provided the idea and most of the implementation Co-authored-by: Joe Petviashvili <joe@gnom.us> 21 April 2021, 18:32:52 UTC
2307f80 Fix rational division by zero (#40551) * Fix rational division by zero * Replace `BigFloat` by `BigInt` Co-authored-by: Sebastian Stock <42280794+sostock@users.noreply.github.com> 21 April 2021, 18:29:42 UTC
7f7efb1 added docstring for single-quotes pair in basedocs.jl (#39609) One of the operators in #33666 that wasn't previously searchable 21 April 2021, 17:51:06 UTC
d47565e [LLVM] patch list for LLVM 12 21 April 2021, 16:42:53 UTC
9520c69 at_test_nowarn does not suppress the content of stderr anymore (#39028) Co-authored-by: Jameson Nash <vtjnash@gmail.com> 21 April 2021, 16:27:15 UTC
c6a0748 Merge pull request #40540 from JuliaLang/jn/31979 add some docs for Dates formatters 21 April 2021, 15:21:52 UTC
e37e98a Transpose and Adjoint support for exp, log and sqrt functions (#39373) 21 April 2021, 14:15:31 UTC
ca6df85 unexport cat_shape (#40549) 21 April 2021, 13:40:04 UTC
6985788 doc: add `@` to help (#33824) Co-authored-by: jaideep-seth <jaideepnseth@gmail.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> 21 April 2021, 12:04:34 UTC
bb5b98e Document what public API means (#35715) Provides some guidelines, in addition to those added recently by #40533 to the style-guide, per #7561. 20 April 2021, 18:46:14 UTC
1131876 Document the guarantees that should be provided by `isequal` (#34798) 20 April 2021, 18:36:37 UTC
8105252 add some docs for Dates formatters Co-authored-by: Jameson Nash <vtjnash@gmail.com> 20 April 2021, 15:21:05 UTC
592db58 Merge pull request #40512 from JuliaLang/inno-signer Sign julia.exe executable within the installer 20 April 2021, 14:40:19 UTC
002fc5f doc: `take!(::IOBuffer)` may make copies (#27442) Simple doc change to reflect the implementation. 20 April 2021, 13:41:25 UTC
ba71161 remove `===` for singleton equality tip (#40517) With #38905 merged, this shouldn't apply in general anymore. I am sure with `==` being a generic function, there will still be cases where using `===` will lead to more precise inference, but I don't think this is worth specifically mentioning in the performance tips. 20 April 2021, 11:13:10 UTC
d998c7e SparseArrays: add Printf to test deps. (#40520) 20 April 2021, 09:37:13 UTC
7bbb75d docs: mention privacy of type fields in style-guide (#40533) close #12064 close #7561 Co-authored-by: Spencer Russell <spencer.f.russell@gmail.com> 20 April 2021, 09:36:30 UTC
b315648 Promote eltype when dividing UniformScaling by matrix (#40528) 20 April 2021, 08:39:20 UTC
3428e88 Fix eigvecs(:::SymTridiagonal) with longer off-diagonal vector (#40526) Co-authored-by: Marcelo Forets <mforets@gmail.com> 20 April 2021, 07:38:26 UTC
5784cd3 enable new Float16 methods for sinh and cbrt (#40534) From #39432 and #39441, these were still using their old definition due to method overwriting. 20 April 2021, 04:17:49 UTC
2435f96 Add many "see also" links to docstrings (#38606) 19 April 2021, 21:04:42 UTC
b67d706 Revert "LibGit2: branch missing test in last_error (#39033)" (#40530) This reverts commit a4fc56a57cf04b5aa460e271761d12294598a2fe. 19 April 2021, 19:05:35 UTC
f6b47ff Add scal!(a,X) (#40446) 19 April 2021, 17:06:56 UTC
a4fc56a LibGit2: branch missing test in last_error (#39033) 19 April 2021, 16:21:10 UTC
3d08f82 Add `get(::Function, ::ImmutableDict, key)` to resolve #40413 (#40471) 19 April 2021, 09:53:05 UTC
83f5786 Add docs for RegexMatch and keys(::RegexMatch) (#40486) 19 April 2021, 09:52:07 UTC
0598d13 Added docstring for -> (#40470) Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com> 19 April 2021, 09:49:02 UTC
cfc45b4 add `selectdim(A, 2, 3:4)` example (#40456) This adds a `selectdim(A, 2, 3:4)` example to illustrate that several indices can be used (as this is not entirely clear in the text). Based on a suggestion in https://discourse.julialang.org/t/pick-rows-from-array-ndims-not-known-in-advance/59033/6 19 April 2021, 09:47:44 UTC
d67f986 Set DelimitedFiles.readdlm use_mmap default to false for all OSes (#40415) Increased resilience to edge cases where OS is reported Unix-like but Filesystem is abnormal Fixes #8891 Fixes #40352 19 April 2021, 09:46:35 UTC
399ec04 safepoints are required in any lock than may be used with allocations (#40487) (which is pretty much all locks) 19 April 2021, 09:40:59 UTC
6a40cf8 faster Float16 sinh (#39432) 19 April 2021, 09:36:04 UTC
58bde18 faster reductions of Transpose, Adjoint, PermutedDimsArray (#39513) 19 April 2021, 09:34:16 UTC
28a3312 [SparseArrays] similar on sparse matrix returned uninitialized space (#40444) Co-authored-by: Klaus Crusius <klaus.crusius@web.de> 19 April 2021, 09:27:08 UTC
671bccb Move CHOLMOD.common_struct from Vector{UInt8} to an actual struct (#38919) * Move common_struct from Vector{UInt8} to an actual struct * Compare full version numbers Co-authored-by: Simon Etter <ettersi@nus.edu.sg> 18 April 2021, 16:02:16 UTC
a20e547 Fix `kron` with `Diagonal` (#40509) 18 April 2021, 12:50:25 UTC
36a048c add spzeros(::Tuple{<:Integer}) (#40515) 18 April 2021, 12:48:45 UTC
55dd2f4 Overload permutedims for Diagonal (#39447) Optimization for performance 18 April 2021, 04:05:06 UTC
e580a57 Update Julia year in exe 17 April 2021, 20:58:48 UTC
53dfc4b sign executables within installer 17 April 2021, 20:58:04 UTC
3a6b2a1 Add references to Performance Tips and Workflow Tips to Getting Started. (#40464) I suspect that some people go to julialang.org, click 'Learn', click 'getting started guide', start reading, and never get to Performance Tips (or Workflow Tips) because they come quite late in the manual. (An alternative would be to link to the introduction which already has a link to Performance Tips. However, I like that the Getting Started page quickly gets to the REPL, so I don't want to change that.) 17 April 2021, 17:12:23 UTC
0b0e8e5 Relax type restriction on `factors` field of `LQPackedQ` (#39665) 17 April 2021, 16:42:35 UTC
be3603e [CLI] Fix typo in loader_lib.c (#40506) initalize -> initialize 17 April 2021, 12:21:54 UTC
b6c6bc0 float16 cbrt, 50% faster (#39441) Co-authored-by: Kristoffer Carlsson <kcarlsson89@gmail.com> 17 April 2021, 09:40:53 UTC
f723667 restrict vec(::Transpose) shortcut to numbers (#40502) 17 April 2021, 09:36:56 UTC
2f4775e Revert "simplify views of adjoint matrices (#39467)" (#40504) This reverts commit 2b4c088ee729228e6014a4973c3e9123044532b4. There seems to be an issue with #39301 causing now test failure, but this PR was newer and thus easier to revert while reviewing the causes. See discussion in #40504. 17 April 2021, 06:37:55 UTC
2b4c088 simplify views of adjoint matrices (#39467) 16 April 2021, 20:37:10 UTC
07bf9da no LoadError wrapper in macroexpand errors (#38379) 16 April 2021, 18:16:27 UTC
9d3a7c4 Extend `Eigen` to keep additional information from `geevx` (#38483) Closes #13307 Fixes #38335 16 April 2021, 16:45:32 UTC
d41fac3 document how to use `@test_logs` to check for no warnings (#39025) closes #37307 Co-authored-by: Jameson Nash <vtjnash@gmail.com> 16 April 2021, 16:43:13 UTC
67f29d8 [CLI] error on not finding symbol (#38994) Also removes some excess exports that are not in julia.h, including intrinsics and the unused `jl_cpuid` function (only defined on Intel processors). 16 April 2021, 16:42:17 UTC
fbffe7c Merge pull request #40468 from JuliaLang/ksh/tuple32 Allow use of 32 element tuples without dynamic allocation 16 April 2021, 16:07:37 UTC
29d5158 Add docstring example to VecOrMat (#38253) Co-authored-by: kimikage <kimikage.ceo@gmail.com> 15 April 2021, 20:13:33 UTC
ed7b069 Add examples for `@text_str` and `@html_str` (#38254) Co-authored-by: Max Horn <max@quendi.de> 15 April 2021, 20:12:19 UTC
691cf74 Merge pull request #40496 from bicycle1885/fix-printf-a fix %a/%A format for zeros 15 April 2021, 16:49:00 UTC
b673576 Relax constrain on `lq` to allwo `AbstractMatrix` (#32120) Co-authored-by: Jameson Nash <vtjnash@gmail.com> 15 April 2021, 16:15:01 UTC
17ede14 fix %a/%A format for zeros 15 April 2021, 14:51:29 UTC
aa7d879 prevent conj! into uninitialized memory (#40481) 15 April 2021, 07:59:40 UTC
5e93c29 improve various inferrabilities, fix some errors (#40463) 14 April 2021, 21:41:36 UTC
8ecb306 fix #39982, remove cursor artifacts in REPL after #40411 (#40452) 14 April 2021, 21:35:12 UTC
b10f9cf fix #40478: MethodError hint printed twice (#40479) https://github.com/JuliaLang/julia/pull/40304 accidentally registered the error hint every time the error was printed. 14 April 2021, 17:17:21 UTC
2fed7c3 further parametrize IRShow (#40459) Ref https://github.com/JuliaDebug/Cthulhu.jl/issues/149. This allows Ctulhu to further customize how line annotations are printed. Also moves a hook to skip printing some statements into `show_ir`, which previously Cthulhu had to duplicate. Since Cthulhu seems to be the only downstream consumer of `show_ir` https://juliahub.com/ui/RepoSearch?q=show_ir&r=true, I don't expect this change to be major. I did also try to keep compatibility for `show_ir_stmt`, which seems to be more commonly used. 14 April 2021, 07:28:12 UTC
7112c89 Always trigger a safepoint in process_events (#40473) yield is already a potential safepoint, this just ensures it is always one 14 April 2021, 02:47:46 UTC
45c518d improve fastmath for `exp` and friends (#40223) * improve fastmath for scalars * fix typo in exp_impl_fast(::Float64) * fix whitespace * Rebase on master * Update base/special/exp.jl Co-authored-by: Mustafa M <mus-m@outlook.com> * Update base/special/exp.jl Co-authored-by: Mustafa M <mus-m@outlook.com> * address review Co-authored-by: Mustafa M <mus-m@outlook.com> 13 April 2021, 21:25:29 UTC
d88ed01 define dot between AbstractMatrix and UniformScaling (#40250) * define dot between AbstractMatrix and UniformScaling * fix equality check * fix for complex * add news entry 13 April 2021, 20:46:49 UTC
9300073 Allow use of 32 element tuples without dynamic allocation 13 April 2021, 19:56:44 UTC
b01a0cb Merge pull request #40450 from JuliaLang/vc/perf_docs Update `perf` docs 13 April 2021, 13:40:16 UTC
4a19b75 Add vim bindings to TerminalMenus (#37940) * `k` to move up * `j` to move down * `<space>` as an alternative to `<enter>` 13 April 2021, 08:31:47 UTC
2ba139c Merge pull request #40386 from JuliaLang/fe/date-parse Add type asserts to (try)parse(::TimeType, ...) to help inference. 13 April 2021, 04:20:10 UTC
2646c43 Update `perf` docs `-k 1` must be passed for jit injection to work later. 13 April 2021, 00:36:04 UTC
53603f6 Fix wine bootstrap (#40425) * Fix wine bootstrap Fixes #39124 Closes #39022 * fix cross-build, and other build issues * this should probably be part of spawn, if it is needed * Revert "this should probably be part of spawn, if it is needed" This reverts commit eb88a9cf06308a1edb27b15cf1dbb0aff8ae980a. Seems to be needed * fixup! fix cross-build, and other build issues Co-authored-by: Jameson Nash <vtjnash@gmail.com> 12 April 2021, 23:24:42 UTC
back to top