# Latest

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

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

**Page:** 284

---

## [Best GUI package for beginners](https://discourse.julialang.org/t/best-gui-package-for-beginners/122230)

<div class="topic-metadata">

**Author:** [@deno1234](https://discourse.julialang.org/u/deno1234)\
**Replies:** 5\
**Last updated:** [November 5, 2024, 9:34am UTC](https://discourse.julialang.org/t/best-gui-package-for-beginners/122230 "2024-11-05T09:34:22Z")

</div>

Hey, I am trying to create a GUI which should be very basic in nature. I just want to have some input field for the parameters and a plot button, and when I click the plot button it should plot it on the GUI. I have bee…

---

## [DifferentialEquations.jl: SecondOrderProblem + SplitODEProblem](https://discourse.julialang.org/t/differentialequations-jl-secondorderproblem-splitodeproblem/122242)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 4\
**Last updated:** [November 5, 2024, 9:17am UTC](https://discourse.julialang.org/t/differentialequations-jl-secondorderproblem-splitodeproblem/122242 "2024-11-05T09:17:35Z")

</div>

Does DifferentialEquations.jl allow to define a split second order problem? Thx!

---

## [How to prepare a large space for a 3d matrix in an hdf5 file](https://discourse.julialang.org/t/how-to-prepare-a-large-space-for-a-3d-matrix-in-an-hdf5-file/122234)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [November 5, 2024, 7:29am UTC](https://discourse.julialang.org/t/how-to-prepare-a-large-space-for-a-3d-matrix-in-an-hdf5-file/122234 "2024-11-05T07:29:01Z")

</div>

Please Help! Unfortunately, AI doesn’t know how to do this. In the HDF5 file, I need to prepare space for a 3d matrix 4500x9000x10000 Int64 to dynamically write and read data in different planes. The most frequently rea…

---

## [Is there a function to query what has been imported into the current module/namespace from \`export\` statements in other modules?](https://discourse.julialang.org/t/is-there-a-function-to-query-what-has-been-imported-into-the-current-module-namespace-from-export-statements-in-other-modules/122218)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 3:14am UTC](https://discourse.julialang.org/t/is-there-a-function-to-query-what-has-been-imported-into-the-current-module-namespace-from-export-statements-in-other-modules/122218 "2024-11-05T03:14:18Z")

</div>

Here’s a couple of things I have tried: julia\> using Dates julia\> names(Main) 6-element Vector{Symbol}: :Base :Core :Main :SRC :skipInit :updateLoadPath This didn’t print anything relating to the Dates module, o…

---

## [Fragile type inference in custom getproperty()](https://discourse.julialang.org/t/fragile-type-inference-in-custom-getproperty/122268)

<div class="topic-metadata">

**Author:** [@bclyons12](https://discourse.julialang.org/u/bclyons12)\
**Replies:** 1\
**Last updated:** [November 5, 2024, 2:53am UTC](https://discourse.julialang.org/t/fragile-type-inference-in-custom-getproperty/122268 "2024-11-05T02:53:02Z")

</div>

In a much larger code, we’re having some issues with type inference in a custom getproperty() function. Here’s a minimal example demonstrating at least part of the problem: mutable struct MyElement{T} name :: String…

---

## [Kernel for building histogram on GPU](https://discourse.julialang.org/t/kernel-for-building-histogram-on-gpu/34191)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 14\
**Last updated:** [November 4, 2024, 10:54pm UTC](https://discourse.julialang.org/t/kernel-for-building-histogram-on-gpu/34191 "2024-11-04T22:54:27Z")

</div>

I want to build histogram from large matrix of floats, for which a matrix of integers of the same size identify the bin in which each of those float must be allocated. It could also be seen as a groupby aggregation, but …

---

## [\[ANN\] TensorKit.jl v0.13](https://discourse.julialang.org/t/ann-tensorkit-jl-v0-13/122259)

<div class="topic-metadata">

**Author:** [@lkdvos](https://discourse.julialang.org/u/lkdvos)\
**Replies:** 0\
**Last updated:** [November 4, 2024, 9:19pm UTC](https://discourse.julialang.org/t/ann-tensorkit-jl-v0-13/122259 "2024-11-04T21:19:11Z")

</div>

Hi everyone, Together with @juthohaegeman, I’m excited to announce the release of TensorKit.jl v0.13﻿, a Julia package designed for large-scale tensor computations with a touch of category theory. This release brings a …

---

## [ERROR: using Cholesky decomposition when using Turing.jl Bayesien inference](https://discourse.julialang.org/t/error-using-cholesky-decomposition-when-using-turing-jl-bayesien-inference/122199)

<div class="topic-metadata">

**Author:** [@sofiane](https://discourse.julialang.org/u/sofiane)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 8:17pm UTC](https://discourse.julialang.org/t/error-using-cholesky-decomposition-when-using-turing-jl-bayesien-inference/122199 "2024-11-04T20:17:52Z")

</div>

Hi everyone, i’am sharing my code snippet where i try to do some bayesien inference like here @model IPPModel() = begin #assign priors for the SPDE layer μ₁ ~ L₁priors.μprior l₁ ~ L₁priors.lprior σ₁ ~ L₁priors.σprio…

---

## [What are the future plans for Scientific ML?](https://discourse.julialang.org/t/what-are-the-future-plans-for-scientific-ml/122255)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 3:03pm UTC](https://discourse.julialang.org/t/what-are-the-future-plans-for-scientific-ml/122255 "2024-11-04T15:03:54Z")

</div>

I wonder if someone can tell us about future plans? I did not see Reactant.jl mentioned here. It seems to me that this would be the Julia version of JAX, openXLA. Just like openXLA, it uses the MLIR from LLVM. I also wo…

---

## [What's the best way to create a struct of arrays?](https://discourse.julialang.org/t/whats-the-best-way-to-create-a-struct-of-arrays/122238)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 4\
**Last updated:** [November 4, 2024, 7:30pm UTC](https://discourse.julialang.org/t/whats-the-best-way-to-create-a-struct-of-arrays/122238 "2024-11-04T19:30:10Z")

</div>

I have another question which is about what is the best way to create structs. struct s1{V1\<:AbstractVector, V2\<:AbstractVector{Int}} X1::V1 X2::V1 X3::V1 State::V2 end or struct s2{T1} X1::Vector{…

---

## [Understanding the need for Torch.jl?](https://discourse.julialang.org/t/understanding-the-need-for-torch-jl/48824)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 23\
**Last updated:** [November 4, 2024, 6:00pm UTC](https://discourse.julialang.org/t/understanding-the-need-for-torch-jl/48824 "2024-11-04T18:00:40Z")

</div>

Seems like the fastest NN library is Torch.jl which is based on C++. Is it possible for Julia to have something similarly fast? What’s preventing something as fast? Given Julia is meant to be able to solve the two langu…

---

## [Make mutable struct read-only in local scope](https://discourse.julialang.org/t/make-mutable-struct-read-only-in-local-scope/122244)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 5:55pm UTC](https://discourse.julialang.org/t/make-mutable-struct-read-only-in-local-scope/122244 "2024-11-04T17:55:55Z")

</div>

Is there a way to make a mutable-struct read-only in a given scope? (I don’t need that to be strictly impossible, just not user-friendly). Something like having: struct A x::Vector{Int} end and making it hard to u…

---

## [Usage of CUDA.Const](https://discourse.julialang.org/t/usage-of-cuda-const/122157)

<div class="topic-metadata">

**Author:** [@Marco\_Lombardi](https://discourse.julialang.org/u/Marco_Lombardi)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 4:34pm UTC](https://discourse.julialang.org/t/usage-of-cuda-const/122157 "2024-11-04T16:34:13Z")

</div>

I am unsure how to use the CUDA.Const function to mark an array as constant during the execution of a CUDA kernel. From the few examples I saw, it looks like I just need to define a variable within the kernel that “shado…

---

## [Restarting CUDA](https://discourse.julialang.org/t/restarting-cuda/122163)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 4:30pm UTC](https://discourse.julialang.org/t/restarting-cuda/122163 "2024-11-04T16:30:24Z")

</div>

Is there a way to reset CUDA without restarting julia and be sure everything in memory related to gpu is wiped ? (multiple call to GC.gc and CUDA.reclaim or unsafe\_free! seems to miss some objects, leading to increase m…

---

## [Array of Structs vs Structs of Arrays](https://discourse.julialang.org/t/array-of-structs-vs-structs-of-arrays/122227)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 3:16pm UTC](https://discourse.julialang.org/t/array-of-structs-vs-structs-of-arrays/122227 "2024-11-04T15:16:58Z")

</div>

Hi, I have a question about data storing. I am developing numerical simulator and need to store variables (temporarily) for each iterations. Those variables change in each iterations. But I am not sure what kind of sto…

---

## [Does Julia have efficient move semantics?](https://discourse.julialang.org/t/does-julia-have-efficient-move-semantics/122165)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 47\
**Last updated:** [November 4, 2024, 3:39pm UTC](https://discourse.julialang.org/t/does-julia-have-efficient-move-semantics/122165 "2024-11-04T15:39:10Z")

</div>

This question might be a stupid question. If it is, I haven’t realized why. Does Julia have efficient move semantics? Consider the following example, which is a stupid example, but it’s also a simple example. v::Vecto…

---

## [Generalized Eigenvalue Problem with singular matrix](https://discourse.julialang.org/t/generalized-eigenvalue-problem-with-singular-matrix/121759)

<div class="topic-metadata">

**Author:** [@Alejandra-CB](https://discourse.julialang.org/u/Alejandra-CB)\
**Replies:** 16\
**Last updated:** [November 4, 2024, 1:20pm UTC](https://discourse.julialang.org/t/generalized-eigenvalue-problem-with-singular-matrix/121759 "2024-11-04T13:20:40Z")

</div>

Hello everyone! I am currently working on a generalized eigenvalue problem, defined by the equation Aϕ=λBϕ, where matrix B is singular. Both matrices A and B are defined as sparse matrices, as I aim to apply this script…

---

## [Using ImageInTerminal cause immediate printing](https://discourse.julialang.org/t/using-imageinterminal-cause-immediate-printing/121494)

<div class="topic-metadata">

**Author:** [@sakke](https://discourse.julialang.org/u/sakke)\
**Replies:** 10\
**Last updated:** [November 4, 2024, 1:08pm UTC](https://discourse.julialang.org/t/using-imageinterminal-cause-immediate-printing/121494 "2024-11-04T13:08:55Z")

</div>

This happens both in REPL and while running program from command line. In REPL, without doing anything else, the second command row is filled automatically. julia\> using ImageInTerminal julia\> 61;6;7;21;22;23;24;28;32;…

---

## [Computing sensitivity to Dirichlet data in Gridap.jl](https://discourse.julialang.org/t/computing-sensitivity-to-dirichlet-data-in-gridap-jl/108145)

<div class="topic-metadata">

**Author:** [@instant0n](https://discourse.julialang.org/u/instant0n)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 12:42pm UTC](https://discourse.julialang.org/t/computing-sensitivity-to-dirichlet-data-in-gridap-jl/108145 "2024-11-04T12:42:03Z")

</div>

Hi all, happy holidays- I’m trying to use Gridap to invert the Laplace problem to determine Dirichlet data on the boundaries given some point measurements on the interior. The idea is to minimize the squared residual be…

---

## [Mayan Numerals in Julia - MayanNumerals.jl](https://discourse.julialang.org/t/mayan-numerals-in-julia-mayannumerals-jl/122140)

<div class="topic-metadata">

**Author:** [@inokawazu](https://discourse.julialang.org/u/inokawazu)\
**Replies:** 9\
**Last updated:** [November 4, 2024, 12:07pm UTC](https://discourse.julialang.org/t/mayan-numerals-in-julia-mayannumerals-jl/122140 "2024-11-04T12:07:16Z")

</div>

I was watched this yt video. Seemed in interesting so I thought I would make a package for using Mayan numerals since Julia has Unicode support and what not. Here is the package (MayanNumerals.jl).

---

## [Updating plots in Julia](https://discourse.julialang.org/t/updating-plots-in-julia/122024)

<div class="topic-metadata">

**Author:** [@DCaro45](https://discourse.julialang.org/u/DCaro45)\
**Replies:** 8\
**Last updated:** [November 4, 2024, 10:59am UTC](https://discourse.julialang.org/t/updating-plots-in-julia/122024 "2024-11-04T10:59:54Z")

</div>

I’m updating a scatter plot with new points as my simulation runs and I need to loop over a certain parameter and have a few plots on my graph. I’m just struggling with trying to have a legend that can update with each p…

---

## [Update jll library](https://discourse.julialang.org/t/update-jll-library/122202)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [November 4, 2024, 6:44am UTC](https://discourse.julialang.org/t/update-jll-library/122202 "2024-11-04T06:44:29Z")

</div>

The DuckDB\_jll library is at 1.1.0: This library seems to be the reason for a failing precompilation of DuckDB.jl on windows, as reported in this issue. The last comment in that issue suggest the following fix: If …

---

## [Indexing sparse and dense axis arrays](https://discourse.julialang.org/t/indexing-sparse-and-dense-axis-arrays/122112)

<div class="topic-metadata">

**Author:** [@nealhughes](https://discourse.julialang.org/u/nealhughes)\
**Replies:** 7\
**Last updated:** [November 4, 2024, 4:16am UTC](https://discourse.julialang.org/t/indexing-sparse-and-dense-axis-arrays/122112 "2024-11-04T04:16:39Z")

</div>

I have a JuMP model with a mix of sparse and dense axis arrays. I find the behaviour of the indexes to be inconsistent in the sense that: eachindex(X) will give string-based indexes if X is a sparse axis array but cart…

---

## [Multivariable optimization of matrices with "no method matching zero(::Type{Matrix{Float64}})"](https://discourse.julialang.org/t/multivariable-optimization-of-matrices-with-no-method-matching-zero-type-matrix-float64/122207)

<div class="topic-metadata">

**Author:** [@ctucker](https://discourse.julialang.org/u/ctucker)\
**Replies:** 4\
**Last updated:** [November 4, 2024, 4:02am UTC](https://discourse.julialang.org/t/multivariable-optimization-of-matrices-with-no-method-matching-zero-type-matrix-float64/122207 "2024-11-04T04:02:38Z")

</div>

Hello, I am trying to maximize a message-passing Conditional Random Field using Optim.jl, and since I am optimizing for matrices I have to supply the gradient functions myself. Each of the individual functions work when…

---

## [Pyomo model not feasible for ACOPF](https://discourse.julialang.org/t/pyomo-model-not-feasible-for-acopf/122214)

<div class="topic-metadata">

**Author:** [@Glon](https://discourse.julialang.org/u/Glon)\
**Replies:** 1\
**Last updated:** [November 4, 2024, 2:30am UTC](https://discourse.julialang.org/t/pyomo-model-not-feasible-for-acopf/122214 "2024-11-04T02:30:17Z")

</div>

I implemented an ACOPF problem to maximise the PV exports of a LV network, to validate the answers and also to compare the time it takes to solve each I implemented the same problem in pyomo, while the powermodels.jl sol…

---

## [Internals of assignment when doing short circuit evaluation](https://discourse.julialang.org/t/internals-of-assignment-when-doing-short-circuit-evaluation/122178)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 8\
**Last updated:** [November 4, 2024, 1:48am UTC](https://discourse.julialang.org/t/internals-of-assignment-when-doing-short-circuit-evaluation/122178 "2024-11-04T01:48:57Z")

</div>

I am doing short circuit evaluation as an if then statement. But I am unsure of how it works so that, even if the second term of the “and” operation is not a boolean value, it works and it returns the value (it executes …

---

## [Adaptivity in MIRK4 for BVPs](https://discourse.julialang.org/t/adaptivity-in-mirk4-for-bvps/29341)

<div class="topic-metadata">

**Author:** [@anodos](https://discourse.julialang.org/u/anodos)\
**Replies:** 22\
**Last updated:** [November 3, 2024, 3:38am UTC](https://discourse.julialang.org/t/adaptivity-in-mirk4-for-bvps/29341 "2024-11-03T03:38:09Z")

</div>

I’m just messaging to ask if there is any plans to implement an adaptive mesh in the ODE-BVP solvers in BoundaryValueDiffEq.jl? I’m working on a problem where this is necessary, and for which the adaptive mesh in bvp4c i…

---

## [Is there a reason \*\*\*not\*\*\* to explicitly define return types?](https://discourse.julialang.org/t/is-there-a-reason-not-to-explicitly-define-return-types/122142)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 35\
**Last updated:** [November 3, 2024, 9:53pm UTC](https://discourse.julialang.org/t/is-there-a-reason-not-to-explicitly-define-return-types/122142 "2024-11-03T21:53:39Z")

</div>

Allow me to summarize the findings of my research so far: Julia is able to automatically infer the return type from: Do you put return type in function definitions? This is true, however I do not see that this is a re…

---

## [Truth values, precedence and arithmetic operators](https://discourse.julialang.org/t/truth-values-precedence-and-arithmetic-operators/122200)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 3\
**Last updated:** [November 3, 2024, 7:40pm UTC](https://discourse.julialang.org/t/truth-values-precedence-and-arithmetic-operators/122200 "2024-11-03T19:40:15Z")

</div>

While making a code, I had the following condition to throw an error: n\<0 | !isa(n,Integer) For n=3.0, the code was giving false. Though it took me a while, I now understand that “|” takes precedence. Even though, in t…

---

## [Fast division by 2](https://discourse.julialang.org/t/fast-division-by-2/122144)

<div class="topic-metadata">

**Author:** [@marco\_menarini](https://discourse.julialang.org/u/marco_menarini)\
**Replies:** 13\
**Last updated:** [November 3, 2024, 7:27pm UTC](https://discourse.julialang.org/t/fast-division-by-2/122144 "2024-11-03T19:27:13Z")

</div>

I noticed that Julia seems not to optimize the division of floating points and integer by two. I know that in C++ there are a couple of fast function that are used in these specific cases const SHIFT16=UInt16(1)\<\<EXP16 …

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

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