# Latest

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

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

**Page:** 1304

---

## [Laplace approximation for mixed models in Julia (TMB-like functionality)](https://discourse.julialang.org/t/laplace-approximation-for-mixed-models-in-julia-tmb-like-functionality/61796)

<div class="topic-metadata">

**Author:** [@monnahc](https://discourse.julialang.org/u/monnahc)\
**Replies:** 35\
**Last updated:** [August 10, 2021, 10:26pm UTC](https://discourse.julialang.org/t/laplace-approximation-for-mixed-models-in-julia-tmb-like-functionality/61796 "2021-08-10T22:26:53Z")

</div>

Hello, \[Apologies for lack of URLs, I’m a new user so limited to only 2. I can provide more in a follow up as requested\] I’m writing to inquire about the current state of Julia with respect to the Laplace approximation…

---

## [How to benchmark properly? Should defaults change?](https://discourse.julialang.org/t/how-to-benchmark-properly-should-defaults-change/66138)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 13\
**Last updated:** [August 10, 2021, 9:48pm UTC](https://discourse.julialang.org/t/how-to-benchmark-properly-should-defaults-change/66138 "2021-08-10T21:48:27Z")

</div>

What is correct here? I guess is the one with evals=1. In that case, couldn’t it be the default option? julia\> using BenchmarkTools julia\> @btime sin(5.0) 1.538 ns (0 allocations: 0 bytes) -0.9589242746631385 julia\> …

---

## [GSP Package](https://discourse.julialang.org/t/gsp-package/66132)

<div class="topic-metadata">

**Author:** [@elefthca](https://discourse.julialang.org/u/elefthca)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 8:40pm UTC](https://discourse.julialang.org/t/gsp-package/66132 "2021-08-10T20:40:48Z")

</div>

Hello everyone! I recently became interested in Graph Signal Processing and upon searching, I found nothing relevant implemented in Julia. I also saw that the call for NumFocus grants opened just a couple of days ago wh…

---

## [Tips on writing kernels?](https://discourse.julialang.org/t/tips-on-writing-kernels/66074)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 4\
**Last updated:** [August 10, 2021, 8:40pm UTC](https://discourse.julialang.org/t/tips-on-writing-kernels/66074 "2021-08-10T20:40:45Z")

</div>

Hello! I’m working on a problem where I have structs with big vectors and I have to compute stuff index vs index (N square). Something like this: for i in 1:length(bigVector1) for j in 1:length(bigVector2) bigVe…

---

## [How to determine cpu\_target of a sysimage](https://discourse.julialang.org/t/how-to-determine-cpu-target-of-a-sysimage/66150)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 8:31pm UTC](https://discourse.julialang.org/t/how-to-determine-cpu-target-of-a-sysimage/66150 "2021-08-10T20:31:04Z")

</div>

tl;dr I’m using julia 1.5.4, and I have a few custom sysimages. Is there a way to tell what cpu\_target these sysimages were compiled for? Background I create a docker image with julia, A few of the build stages involve…

---

## [Dot product of 2D matrices](https://discourse.julialang.org/t/dot-product-of-2d-matrices/66147)

<div class="topic-metadata">

**Author:** [@jpmorr](https://discourse.julialang.org/u/jpmorr)\
**Replies:** 3\
**Last updated:** [August 10, 2021, 7:59pm UTC](https://discourse.julialang.org/t/dot-product-of-2d-matrices/66147 "2021-08-10T19:59:39Z")

</div>

I’m trying to convert some python code to julia to see how much time it will save me but I’m stuck trying to find the correct syntax in julia to match something trivial with numpy. In python I typically have some code th…

---

## [Ridgelets, Shapelets, Curvelets, Radon Transform etc?](https://discourse.julialang.org/t/ridgelets-shapelets-curvelets-radon-transform-etc/45042)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 3:48pm UTC](https://discourse.julialang.org/t/ridgelets-shapelets-curvelets-radon-transform-etc/45042 "2021-08-10T15:48:22Z")

</div>

Anyone know of efforts in Julia to do these fancy \*-let type DSP operations? I was able to find one repository(https://github.com/NFFT/nfft), but it’s a C effort with only a partial Julia interface(it seems)? Whoever i…

---

## [Dementia trial by Turing Institute UK](https://discourse.julialang.org/t/dementia-trial-by-turing-institute-uk/66146)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 5:45pm UTC](https://discourse.julialang.org/t/dementia-trial-by-turing-institute-uk/66146 "2021-08-10T17:45:16Z")

</div>

The UK media has news today of a new trial using AI to diagnose Alzheimers from MRI scans. This is being conducted by the Turning Institute and Addenbrookes in the UK. Can anyone comment if Julia is being used?

---

## [NeuralODE: optimal control action in a constrained optimization problem](https://discourse.julialang.org/t/neuralode-optimal-control-action-in-a-constrained-optimization-problem/63372)

<div class="topic-metadata">

**Author:** [@Antonino\_Gandolfo](https://discourse.julialang.org/u/Antonino_Gandolfo)\
**Replies:** 13\
**Last updated:** [July 26, 2021, 5:03pm UTC](https://discourse.julialang.org/t/neuralode-optimal-control-action-in-a-constrained-optimization-problem/63372 "2021-07-26T17:03:01Z")

</div>

Hi, I’m new with Julia. I want to ask if it’s possible to optimize an differential equation using the NeuralODE. I try to create my code but the problems are the physical constrains. I don’t know how to add this equa…

---

## [Blue screen when new packages are installed](https://discourse.julialang.org/t/blue-screen-when-new-packages-are-installed/66121)

<div class="topic-metadata">

**Author:** [@PeterSteph](https://discourse.julialang.org/u/PeterSteph)\
**Replies:** 8\
**Last updated:** [August 10, 2021, 3:18pm UTC](https://discourse.julialang.org/t/blue-screen-when-new-packages-are-installed/66121 "2021-08-10T15:18:39Z")

</div>

I can’t install new packages on my work computer (it works fine on my private computer). It is a Windows computer. When running Pkg.add(“Plots”) the computer crashes (blue screen). When reopening the computer the file j…

---

## [@turbo on sets of operations](https://discourse.julialang.org/t/turbo-on-sets-of-operations/66068)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 15\
**Last updated:** [August 10, 2021, 3:10pm UTC](https://discourse.julialang.org/t/turbo-on-sets-of-operations/66068 "2021-08-10T15:10:35Z")

</div>

Hello, I’m thinking of adding LoopVectorization.jl to my code to speed it up. All the examples I’ve found are very short on simple operations within a matrix or vector. My code is not as neat, but I often have to perfor…

---

## [Algebra of Graphics z-order? Controlling the plotting order](https://discourse.julialang.org/t/algebra-of-graphics-z-order-controlling-the-plotting-order/66112)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 4\
**Last updated:** [August 10, 2021, 2:48pm UTC](https://discourse.julialang.org/t/algebra-of-graphics-z-order-controlling-the-plotting-order/66112 "2021-08-10T14:48:55Z")

</div>

With Algebra of Graphics + Makie, how do I control the z-order of plots, i.e. which plot goes on top of which? Take this examples for the AoG documentation: http://juliaplots.org/AlgebraOfGraphics.jl/stable/generated/ga…

---

## [On types of functions](https://discourse.julialang.org/t/on-types-of-functions/66058)

<div class="topic-metadata">

**Author:** [@Judd](https://discourse.julialang.org/u/Judd)\
**Replies:** 3\
**Last updated:** [August 10, 2021, 11:58am UTC](https://discourse.julialang.org/t/on-types-of-functions/66058 "2021-08-10T11:58:28Z")

</div>

I propose to add a subsection “Type of Functions” to Manual / Types. This will be very helpful, especially for newcomers to learn the essentials of Julia types and functions. If anything wrong, please correct me. Types…

---

## [Registering a package whose name does not end with .jl extension](https://discourse.julialang.org/t/registering-a-package-whose-name-does-not-end-with-jl-extension/66118)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 11:58am UTC](https://discourse.julialang.org/t/registering-a-package-whose-name-does-not-end-with-jl-extension/66118 "2021-08-10T11:58:06Z")

</div>

Dear all I am trying to register the package ArDCA on the general registry, but the automerge fails because (as I understand) the package name does not have the .jl extension in its name. The problem is that we already …

---

## [\[ANN\] GraphMatFun.jl: computation graphs for matrix functions](https://discourse.julialang.org/t/ann-graphmatfun-jl-computation-graphs-for-matrix-functions/66113)

<div class="topic-metadata">

**Author:** [@jarl](https://discourse.julialang.org/u/jarl)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 8:27am UTC](https://discourse.julialang.org/t/ann-graphmatfun-jl-computation-graphs-for-matrix-functions/66113 "2021-08-10T08:27:58Z")

</div>

We are proud to announce the first release of the package GraphMatFun.jl. This package contains functionality to represent, manipulate and optimize algorithms for matrix functions using directed acyclic graphs. It also c…

---

## [Intermediate results (dereferencing, CSE, ..) - when to avoid?](https://discourse.julialang.org/t/intermediate-results-dereferencing-cse-when-to-avoid/66024)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 6\
**Last updated:** [August 10, 2021, 10:05am UTC](https://discourse.julialang.org/t/intermediate-results-dereferencing-cse-when-to-avoid/66024 "2021-08-10T10:05:04Z")

</div>

A habit tells me to eliminate common subexpressions and to create intermediate variables. On the other hand, Julia’s performance is often judged by its allocations and so seems to suggest avoiding intermediate variables…

---

## [Copy an atomic variable as a regular variable](https://discourse.julialang.org/t/copy-an-atomic-variable-as-a-regular-variable/66117)

<div class="topic-metadata">

**Author:** [@matthiasbe](https://discourse.julialang.org/u/matthiasbe)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 9:57am UTC](https://discourse.julialang.org/t/copy-an-atomic-variable-as-a-regular-variable/66117 "2021-08-10T09:57:38Z")

</div>

Hello, I am trying to read the value of an atomic (shared) variable as a local (on the current thread) variable. Here is what I tried. julia\> a = Threads.Atomic{Int}(2) Base.Threads.Atomic{Int64}(2) julia\> b = conver…

---

## [Mixing GPU/CPU in struct definition](https://discourse.julialang.org/t/mixing-gpu-cpu-in-struct-definition/66066)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 5\
**Last updated:** [August 10, 2021, 9:37am UTC](https://discourse.julialang.org/t/mixing-gpu-cpu-in-struct-definition/66066 "2021-08-10T09:37:23Z")

</div>

Hello, I use big structs in my code with lots of different vectors of integers and floats like so: mutable struct Bodies a:: Vector{StaticArrays.SVector{3,Float64}} b:: Int c:: Vector{StaticArrays.SVector{3…

---

## [Postdoctoral Fellow in Computational and Theoretical Atomic Physics (New Zealand)](https://discourse.julialang.org/t/postdoctoral-fellow-in-computational-and-theoretical-atomic-physics-new-zealand/66101)

<div class="topic-metadata">

**Author:** [@joachimbrand1](https://discourse.julialang.org/u/joachimbrand1)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 9:48am UTC](https://discourse.julialang.org/t/postdoctoral-fellow-in-computational-and-theoretical-atomic-physics-new-zealand/66101 "2021-08-10T09:48:36Z")

</div>

We have an opening for a postdoctoral fellowship (2 years, fixed term) in theoretical and computational physics of ultracold few-atom systems. The postdoctoral fellow will work on fundamental aspects of quantum dynamics,…

---

## [Wrapper{Type{Int}} really needed?](https://discourse.julialang.org/t/wrapper-type-int-really-needed/65877)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 5\
**Last updated:** [August 10, 2021, 8:35am UTC](https://discourse.julialang.org/t/wrapper-type-int-really-needed/65877 "2021-08-10T08:35:09Z")

</div>

Julia’s documentation recommends to wrap types into Type{...} for performance considerations The concrete example in the documentation is julia\> struct WrapType{T} value::T end julia\> WrapType(Float64) #…

---

## [What does "deoptimized" mean (in Cthulhu.jl)?](https://discourse.julialang.org/t/what-does-deoptimized-mean-in-cthulhu-jl/66048)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 8:12am UTC](https://discourse.julialang.org/t/what-does-deoptimized-mean-in-cthulhu-jl/66048 "2021-08-10T08:12:16Z")

</div>

I don’t have a small MWE to generate it, but I occasionally see “deoptimized” in the menu of Cthulhu.jl, e.g. Advanced: dump \[P\]arams cache. %3 = invoke alias\_continue(…,…,…)::Any %4 = call #!(::Any)::Any %25…

---

## [Adding new method, with new dispatch pattern for an existing library function](https://discourse.julialang.org/t/adding-new-method-with-new-dispatch-pattern-for-an-existing-library-function/66110)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 3\
**Last updated:** [August 10, 2021, 7:52am UTC](https://discourse.julialang.org/t/adding-new-method-with-new-dispatch-pattern-for-an-existing-library-function/66110 "2021-08-10T07:52:45Z")

</div>

I’m extending the ‘interface’ of ZipFile.Reader() so it will understand FilePathsBase.PosixPath as an argument. Is my solution properly idiomatic in Julia? using ZipFile, FilePathsBase ZipFile.Reader(pp::PosixPath) = Zi…

---

## [Regular JuMP-NLP developer call](https://discourse.julialang.org/t/regular-jump-nlp-developer-call/65797)

<div class="topic-metadata">

**Author:** [@frapac](https://discourse.julialang.org/u/frapac)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 7:37am UTC](https://discourse.julialang.org/t/regular-jump-nlp-developer-call/65797 "2021-08-10T07:37:13Z")

</div>

Hi everyone! Last week at JuMP-dev, we agreed on organizing a regular meeting to discuss the future of nonlinear programming in Julia/JuMP. As a follow-up, I would suggest to organize our first meeting by the end of Au…

---

## [Function reusing in Julia without inheritance](https://discourse.julialang.org/t/function-reusing-in-julia-without-inheritance/66108)

<div class="topic-metadata">

**Author:** [@hideakiv](https://discourse.julialang.org/u/hideakiv)\
**Replies:** 3\
**Last updated:** [August 10, 2021, 7:14am UTC](https://discourse.julialang.org/t/function-reusing-in-julia-without-inheritance/66108 "2021-08-10T07:14:49Z")

</div>

Suppose I have struct Var x::Float64 end and function square(x::Float64) return x^2 end To define a function for squaring a Var and returning a Var, I could write function square(var::Var) y = square(var…

---

## [Union causes incorrect type parameter extraction?](https://discourse.julialang.org/t/union-causes-incorrect-type-parameter-extraction/65953)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 15\
**Last updated:** [August 10, 2021, 6:51am UTC](https://discourse.julialang.org/t/union-causes-incorrect-type-parameter-extraction/65953 "2021-08-10T06:51:44Z")

</div>

function fun(x::Union{AbstractArray{T}, AbstractArray{Union{T, Missing}}}; α::T = T(3.0) ) where {T\<:AbstractFloat} println(typeof(x)) end julia\> fun(\[1.0, 2.0\]) Vector{Float64} julia\> fun(\[1.0, missing…

---

## [Highlight selection in all vscode panels?](https://discourse.julialang.org/t/highlight-selection-in-all-vscode-panels/66107)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 5:16am UTC](https://discourse.julialang.org/t/highlight-selection-in-all-vscode-panels/66107 "2021-08-10T05:16:15Z")

</div>

Anyone know how to do this? I seem to remember it working in atom, but might be imagining things!

---

## [Array of unions of subtypes](https://discourse.julialang.org/t/array-of-unions-of-subtypes/66105)

<div class="topic-metadata">

**Author:** [@hideakiv](https://discourse.julialang.org/u/hideakiv)\
**Replies:** 3\
**Last updated:** [August 10, 2021, 5:05am UTC](https://discourse.julialang.org/t/array-of-unions-of-subtypes/66105 "2021-08-10T05:05:45Z")

</div>

What is the difference between Array{Union{Nothing, \<:Real}} and Array{\<:Union{Nothing, Real}}? I expect Vector{Int64} to be a subtype of the array of the union of nothing and subtypes of real, but only the latter gives…

---

## [Which is better? Parameters.@with\_kw vs @Parameters.with\_kw](https://discourse.julialang.org/t/which-is-better-parameters-with-kw-vs-parameters-with-kw/66103)

<div class="topic-metadata">

**Author:** [@hobbymarks](https://discourse.julialang.org/u/hobbymarks)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 3:44am UTC](https://discourse.julialang.org/t/which-is-better-parameters-with-kw-vs-parameters-with-kw/66103 "2021-08-10T03:44:10Z")

</div>

After “import Parameters”, when use “with\_kw” ,which is better? Parameters.@with\_kw or @Parameters.with\_kw

---

## [Julia sure looks like it needs a version of Hoogle](https://discourse.julialang.org/t/julia-sure-looks-like-it-needs-a-version-of-hoogle/66098)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 20\
**Last updated:** [August 10, 2021, 12:51am UTC](https://discourse.julialang.org/t/julia-sure-looks-like-it-needs-a-version-of-hoogle/66098 "2021-08-10T00:51:56Z")

</div>

I’m new to Julia. Finding functions seems more difficult than I’d hoped. Smalltalk lets me find references to Classes and implementors of method selector Symbols. I can also inspect instances of a class and browse the n…

---

## [\`addprocs\` crashes with \`connection refused (ECONNREFUSED)\`](https://discourse.julialang.org/t/addprocs-crashes-with-connection-refused-econnrefused/66099)

<div class="topic-metadata">

**Author:** [@Volker\_Weissmann](https://discourse.julialang.org/u/Volker_Weissmann)\
**Replies:** 0\
**Last updated:** [August 9, 2021, 11:55pm UTC](https://discourse.julialang.org/t/addprocs-crashes-with-connection-refused-econnrefused/66099 "2021-08-09T23:55:23Z")

</div>

I ssh’d into a machine that is (afaik) not virtualized or anything and ran JULIA\_EXCLUSIVE=1 julia-1.6.2/bin/julia --threads 128 langevin/langevin.jl &\> out.txt & and it crashed with the output below. langevin.jl star…

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

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