# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1205

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1206

---

## [Different bar styles with @showprogress and @distributed?](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 3\
**Last updated:** [November 16, 2021, 11:38am UTC](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990 "2021-11-16T11:38:04Z")

</div>

Hello, What is the correct way to get different bar styles when using @showprogress along with @distributed? I tried (unsuccessfully) the following: (edit: also pinging @tim.holy :blush:) @showprogress 1 "Computing fun…

---

## [How to pass an IOBuffer to \`ccall\`](https://discourse.julialang.org/t/how-to-pass-an-iobuffer-to-ccall/71547)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 11:02am UTC](https://discourse.julialang.org/t/how-to-pass-an-iobuffer-to-ccall/71547 "2021-11-16T11:02:04Z")

</div>

What is the correct way to interface with C for buffers (IOStream)? Can I just pass the file descriptor using Base.fd? (I don’t see any indications about this on either the IOStream or the ccall doc pages). My example i…

---

## [Does declaring jacobian and redefining ODEProblem with jacobian accelerate \`solve\`?](https://discourse.julialang.org/t/does-declaring-jacobian-and-redefining-odeproblem-with-jacobian-accelerate-solve/71507)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 5\
**Last updated:** [November 16, 2021, 10:45am UTC](https://discourse.julialang.org/t/does-declaring-jacobian-and-redefining-odeproblem-with-jacobian-accelerate-solve/71507 "2021-11-16T10:45:49Z")

</div>

https://diffeq.sciml.ai/dev/features/performance\_overloads/#ode\_explicit\_jac following from this example,… Does explicitly declaring jacobian for an ODEproblem like this accelerate the solution using solve()

---

## [Zygote: Differentiate over Zygote operation?](https://discourse.julialang.org/t/zygote-differentiate-over-zygote-operation/70853)

<div class="topic-metadata">

**Author:** [@ThummeTo](https://discourse.julialang.org/u/ThummeTo)\
**Replies:** 4\
**Last updated:** [November 16, 2021, 9:03am UTC](https://discourse.julialang.org/t/zygote-differentiate-over-zygote-operation/70853 "2021-11-16T09:03:37Z")

</div>

Hello everyone, I wondered, if it is possible to differentiate with Zygote over another Zygote-Operation (I attached a minimal example). using Zygote function myFunction(a) Zygote.jacobian(sin, a)\[1\] end Zygote.j…

---

## [Eltype changed during broadcast with missing](https://discourse.julialang.org/t/eltype-changed-during-broadcast-with-missing/71312)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 2\
**Last updated:** [November 16, 2021, 7:49am UTC](https://discourse.julialang.org/t/eltype-changed-during-broadcast-with-missing/71312 "2021-11-16T07:49:45Z")

</div>

How do I tell julia to use the original eltype when broadcasting over a vector and a scalar? In the following example I would like (and expected) the eltype of the result to be in all three cases Union{Missing,Float64}.…

---

## [Significance of Current Module in VS Code](https://discourse.julialang.org/t/significance-of-current-module-in-vs-code/58469)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 5\
**Last updated:** [November 16, 2021, 7:25am UTC](https://discourse.julialang.org/t/significance-of-current-module-in-vs-code/58469 "2021-11-16T07:25:07Z")

</div>

The code I’m developing is in a module RBSilly, which is what shows as the Current Module on the lower right of my VS Code window. But when I enter code in the Julia REPL window at the bottom, it does not seem to be eva…

---

## [Higher dimensional cross product in LinearAlgebra](https://discourse.julialang.org/t/higher-dimensional-cross-product-in-linearalgebra/47919)

<div class="topic-metadata">

**Author:** [@akshu3398](https://discourse.julialang.org/u/akshu3398)\
**Replies:** 25\
**Last updated:** [October 20, 2020, 3:08am UTC](https://discourse.julialang.org/t/higher-dimensional-cross-product-in-linearalgebra/47919 "2020-10-20T03:08:48Z")

</div>

Is there any function (specifically in LineaAlgebra or Base Julia) similar to cross, but one that works(gives cross product) on (mathematically speaking) higher dimensional(length) Vectors??? As cross currently only supp…

---

## [Why is \`=\` no function](https://discourse.julialang.org/t/why-is-no-function/47304)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 26\
**Last updated:** [October 20, 2020, 8:08pm UTC](https://discourse.julialang.org/t/why-is-no-function/47304 "2020-10-20T20:08:31Z")

</div>

Hey best community :slight\_smile: I was wondering, way = can’t be used like + or \*. I would like to do something like =(:a,3), typeof(=) and assign = =.

---

## [\[ANN\] MvNormalCDF.jl - multivariate normal CDF](https://discourse.julialang.org/t/ann-mvnormalcdf-jl-multivariate-normal-cdf/71329)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 1\
**Last updated:** [November 12, 2021, 8:22am UTC](https://discourse.julialang.org/t/ann-mvnormalcdf-jl-multivariate-normal-cdf/71329 "2021-11-12T08:22:34Z")

</div>

MvNormalCDF.jl - Quasi-Monte-Carlo numerical computation of multivariate normal probabilities. This function uses an algorithm given in the paper “Numerical Computation of Multivariate Normal Probabilities”, in J. of …

---

## [\`isempty(enumerate(Iterators.Stateful(...)))\` advances the stateful iterator?](https://discourse.julialang.org/t/isempty-enumerate-iterators-stateful-advances-the-stateful-iterator/71475)

<div class="topic-metadata">

**Author:** [@bzinberg](https://discourse.julialang.org/u/bzinberg)\
**Replies:** 3\
**Last updated:** [November 16, 2021, 3:51am UTC](https://discourse.julialang.org/t/isempty-enumerate-iterators-stateful-advances-the-stateful-iterator/71475 "2021-11-16T03:51:02Z")

</div>

On Julia 1.6.2: itr = enumerate(Iterators.Stateful(\[:a, :b, :c\])) isempty(itr) && println("It's empty") isempty(itr) && println("It's empty") isempty(itr) && println("It's empty") isempty(itr) && println("It's empty") I…

---

## [Vim + LanguageServer.jl or something like it](https://discourse.julialang.org/t/vim-languageserver-jl-or-something-like-it/56026)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 7\
**Last updated:** [November 16, 2021, 3:01am UTC](https://discourse.julialang.org/t/vim-languageserver-jl-or-something-like-it/56026 "2021-11-16T03:01:49Z")

</div>

I saw an awesome tool for neovim. Is there any similar thing for vim or neovim? Also, I’d like to how to setup such tools. Please help me :slight\_smile: Thanks.

---

## [Get url of a package](https://discourse.julialang.org/t/get-url-of-a-package/58544)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 6\
**Last updated:** [November 16, 2021, 2:00am UTC](https://discourse.julialang.org/t/get-url-of-a-package/58544 "2021-11-16T02:00:18Z")

</div>

In this thread, Get url of package, the way of getting url of a package is provided. However, the way cannot be used for Julia 1.x because of package manager change. Is there a good way to get url of a package for Juli…

---

## [Why does indexed assignment return the assigned value instead of the container?](https://discourse.julialang.org/t/why-does-indexed-assignment-return-the-assigned-value-instead-of-the-container/71399)

<div class="topic-metadata">

**Author:** [@MatthijsBlom](https://discourse.julialang.org/u/MatthijsBlom)\
**Replies:** 1\
**Last updated:** [November 12, 2021, 6:47pm UTC](https://discourse.julialang.org/t/why-does-indexed-assignment-return-the-assigned-value-instead-of-the-container/71399 "2021-11-12T18:47:15Z")

</div>

Witness x = \['a'\] setindex!(x, 'b', 1) # \['b'\] x\[1\] = 'c' # 'c' This behaviour is documented: The syntax a\[i,j,...\] = x is converted by the compiler to (setindex!(a, x, i, j, ...); x). (The documentatio…

---

## [Type mapping for Template(parametric) types with CxxWrap.jl](https://discourse.julialang.org/t/type-mapping-for-template-parametric-types-with-cxxwrap-jl/71534)

<div class="topic-metadata">

**Author:** [@kemu](https://discourse.julialang.org/u/kemu)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 12:52am UTC](https://discourse.julialang.org/t/type-mapping-for-template-parametric-types-with-cxxwrap-jl/71534 "2021-11-16T00:52:33Z")

</div>

I’ve been trying to map these structures. # Julia Struct mutable struct Point{T} x::T y::T end // C++ Struct template \<typename T\> struct Point{ T x; T y; }; It is possible that CxxWrap maps Julia parametric…

---

## [FFTX for Julia? (Spiral framework)](https://discourse.julialang.org/t/fftx-for-julia-spiral-framework/71533)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 1\
**Last updated:** [November 16, 2021, 12:38am UTC](https://discourse.julialang.org/t/fftx-for-julia-spiral-framework/71533 "2021-11-16T00:38:35Z")

</div>

LBNL and CMU appear to have a project to use CMU’s Spiral framework to generate efficient FFT libraries for CPU’s, GPU’s, etc. It’s a more recent project than FFTW, and unlike FFTW, the libraries are BSD licensed. Does…

---

## [I broke my Ubuntu LTS by installing Julia and Genie.jl newapp](https://discourse.julialang.org/t/i-broke-my-ubuntu-lts-by-installing-julia-and-genie-jl-newapp/71532)

<div class="topic-metadata">

**Author:** [@AlanAylmer](https://discourse.julialang.org/u/AlanAylmer)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 12:01am UTC](https://discourse.julialang.org/t/i-broke-my-ubuntu-lts-by-installing-julia-and-genie-jl-newapp/71532 "2021-11-16T00:01:40Z")

</div>

Hello everyone. I have a fresh apache2 and I have an isolated LAN. I am working on a small app that passes a file from a client laptop to a server laptop. I hope to use Genie on an Apache2 server. I can install the who…

---

## [Problem solving ODE for long tspans](https://discourse.julialang.org/t/problem-solving-ode-for-long-tspans/71284)

<div class="topic-metadata">

**Author:** [@Gabriel\_Carita](https://discourse.julialang.org/u/Gabriel_Carita)\
**Replies:** 7\
**Last updated:** [November 15, 2021, 11:29pm UTC](https://discourse.julialang.org/t/problem-solving-ode-for-long-tspans/71284 "2021-11-15T23:29:38Z")

</div>

Hello there, I’m student of Orbital Dynamics and Planetary Dynamics and i am trying to write a program in JULIA similar to the one i have in FORTRAN. In general everything is working as it should, however in some cases …

---

## [Cannot use buffer with AD?](https://discourse.julialang.org/t/cannot-use-buffer-with-ad/71309)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 11\
**Last updated:** [November 15, 2021, 10:14pm UTC](https://discourse.julialang.org/t/cannot-use-buffer-with-ad/71309 "2021-11-15T22:14:18Z")

</div>

Can I not use a buffer with AD as below? using ForwardDiff function buf(x) similar(x) end function test(x; sto=buf(x)) sto .= x.^2 sum(sto.^2) end function grad(x; sto=buf(x)) ForwardDiff.gradient(x -\>…

---

## [Update a package updates everything?](https://discourse.julialang.org/t/update-a-package-updates-everything/61868)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [November 15, 2021, 9:41pm UTC](https://discourse.julialang.org/t/update-a-package-updates-everything/61868 "2021-11-15T21:41:40Z")

</div>

This topic is similar to this old one: But I do not think that a complete answer was provided there. Whenever I update any package, it seems that all other (or a huge number of them) get updated. For example: @v1.6)…

---

## [Constraints using a matrix built from external function](https://discourse.julialang.org/t/constraints-using-a-matrix-built-from-external-function/71493)

<div class="topic-metadata">

**Author:** [@chupin](https://discourse.julialang.org/u/chupin)\
**Replies:** 3\
**Last updated:** [November 15, 2021, 9:29pm UTC](https://discourse.julialang.org/t/constraints-using-a-matrix-built-from-external-function/71493 "2021-11-15T21:29:19Z")

</div>

Hi, To build a constraint from a NxM matrix variable (denoted by h), I need to build another NxM matrix so I wrote an external function convexity(h). I tried this syntax (partial code): function convexity(h) …

---

## [Possible bug in determinant calculation](https://discourse.julialang.org/t/possible-bug-in-determinant-calculation/20323)

<div class="topic-metadata">

**Author:** [@Daniel\_Scheinerman](https://discourse.julialang.org/u/Daniel_Scheinerman)\
**Replies:** 21\
**Last updated:** [November 15, 2021, 8:58pm UTC](https://discourse.julialang.org/t/possible-bug-in-determinant-calculation/20323 "2021-11-15T20:58:46Z")

</div>

I found a (not poorly conditioned) integer matrix that julia computes the determinant incorrectly for. using LinearAlgebra A=\[1 1 0 0 1 0 0 0; 1 0 1 0 0 1 0 0; 1 0 0 1 0 0 1 0; 0 1 1 1 0 0 0 0; 0 1 0 0 0 0 1 1; 0 0 1 0 …

---

## [Pass functions to objects](https://discourse.julialang.org/t/pass-functions-to-objects/71505)

<div class="topic-metadata">

**Author:** [@ncxst](https://discourse.julialang.org/u/ncxst)\
**Replies:** 22\
**Last updated:** [November 15, 2021, 8:36pm UTC](https://discourse.julialang.org/t/pass-functions-to-objects/71505 "2021-11-15T20:36:42Z")

</div>

Hi everyone, I’m new to Julia and writing a particle simulation. Each System of Particles should have a set of functions that update the forces acting on the system/particles. These functions should be user definable. I…

---

## [What does the return keyword do in a let/begin block?](https://discourse.julialang.org/t/what-does-the-return-keyword-do-in-a-let-begin-block/66865)

<div class="topic-metadata">

**Author:** [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Replies:** 5\
**Last updated:** [November 15, 2021, 8:18pm UTC](https://discourse.julialang.org/t/what-does-the-return-keyword-do-in-a-let-begin-block/66865 "2021-11-15T20:18:08Z")

</div>

Hi, I couldn’t find in the documentation an explanation to this behavior. let "let block without return" end |\> println # OUTPUT: let block without return let return "let block with return" end |\> println # OUT…

---

## [How to overload +=?](https://discourse.julialang.org/t/how-to-overload/71523)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 8\
**Last updated:** [November 15, 2021, 8:17pm UTC](https://discourse.julialang.org/t/how-to-overload/71523 "2021-11-15T20:17:03Z")

</div>

Is it possible to overload +=? mutable struct A a::Int end function Base.:+=(a::A, b::A) a.a += b.a a end EDIT: As pointed out by @giordano in post 7, the struct A should be defined immutable: struct A a:…

---

## [Multigraph neural networks in Julia](https://discourse.julialang.org/t/multigraph-neural-networks-in-julia/70595)

<div class="topic-metadata">

**Author:** [@bad\_at\_math](https://discourse.julialang.org/u/bad_at_math)\
**Replies:** 4\
**Last updated:** [November 15, 2021, 7:21pm UTC](https://discourse.julialang.org/t/multigraph-neural-networks-in-julia/70595 "2021-11-15T19:21:20Z")

</div>

GeometricFlux.jl (https://fluxml.ai/GeometricFlux.jl/dev/manual/conv/#Crystal-Graph-Convolutional-Network-1) and GraphNeuralNetworks.jl (Convolutional Layers · GraphNeuralNetworks.jl) both implement a layer based on the …

---

## [Get branch-and-bound node depth with JuMP](https://discourse.julialang.org/t/get-branch-and-bound-node-depth-with-jump/71128)

<div class="topic-metadata">

**Author:** [@Matheus\_Diogenes\_And](https://discourse.julialang.org/u/Matheus_Diogenes_And)\
**Replies:** 12\
**Last updated:** [November 15, 2021, 7:09pm UTC](https://discourse.julialang.org/t/get-branch-and-bound-node-depth-with-jump/71128 "2021-11-15T19:09:36Z")

</div>

Greetings. I am facing a problem with JuMP 0.21.4 and Julia 1.6.2. I am working with an Integer Programming model using CPLEX 12.10 and I using callbacks to add some cuts, however, I need these cuts to be added only whe…

---

## [\[ANN\] Announcing ThreadedSparseCSR.jl](https://discourse.julialang.org/t/ann-announcing-threadedsparsecsr-jl/71343)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 16\
**Last updated:** [November 15, 2021, 6:30pm UTC](https://discourse.julialang.org/t/ann-announcing-threadedsparsecsr-jl/71343 "2021-11-15T18:30:58Z")

</div>

ThreadedSparseCSR.jl provides a multithreaded version of CSR matrix - vector multiplication in Julia. The CSR matrix format is implemented in the Julia package SparseMatricesCSR.jl, which must be installed for this pack…

---

## [Understanding weird @code\_warntype warning](https://discourse.julialang.org/t/understanding-weird-code-warntype-warning/71488)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 6\
**Last updated:** [November 15, 2021, 6:24pm UTC](https://discourse.julialang.org/t/understanding-weird-code-warntype-warning/71488 "2021-11-15T18:24:27Z")

</div>

While testing one of my codes for type instability, I stumbled upon what feels like a strange behavior, emphasized by the example below. julia\> test(filepath::String) = @assert ispath(filepath) "File path $filepath is n…

---

## [\[ANN\] Abaco.jl - the abacus of a stream of variables](https://discourse.julialang.org/t/ann-abaco-jl-the-abacus-of-a-stream-of-variables/71516)

<div class="topic-metadata">

**Author:** [@attdona](https://discourse.julialang.org/u/attdona)\
**Replies:** 0\
**Last updated:** [November 15, 2021, 5:43pm UTC](https://discourse.julialang.org/t/ann-abaco-jl-the-abacus-of-a-stream-of-variables/71516 "2021-11-15T17:43:34Z")

</div>

Abaco.jl tackles the issue of real-time calculation of mathematical expressions by taking the independent variables from a periodic stream and emitting results as soon as formulas become computables. This is a preview v…

---

## [Reuse Eigen object](https://discourse.julialang.org/t/reuse-eigen-object/71494)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 3\
**Last updated:** [November 15, 2021, 5:43pm UTC](https://discourse.julialang.org/t/reuse-eigen-object/71494 "2021-11-15T17:43:16Z")

</div>

If I do using LinearAlgebra A = randn(100,100) B = A'\*A C = eigen(B) then how could I avoid allocating more memory by the next call to eigen with a 100 by 100 symmetric matrix? In other words, how could I reuse C? (I…

[Previous page](https://discourse.julialang.org/latest.md?page=1204)

[Next page](https://discourse.julialang.org/latest.md?page=1206)
