# Latest

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

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

**Page:** 396

---

## [ModelEvent in continous time model?](https://discourse.julialang.org/t/modelevent-in-continous-time-model/115153)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 8:54am UTC](https://discourse.julialang.org/t/modelevent-in-continous-time-model/115153 "2024-06-04T08:54:06Z")

</div>

Hello, I have been working with discrete model type in agents.jl. There we have agent\_step and model\_step functions to work at model or agent level. Now I want to switch to continous time models. i was checking example …

---

## [Fitting normal-inverse-wishart](https://discourse.julialang.org/t/fitting-normal-inverse-wishart/73273)

<div class="topic-metadata">

**Author:** [@Paul\_McVay](https://discourse.julialang.org/u/Paul_McVay)\
**Replies:** 4\
**Last updated:** [June 4, 2024, 10:06am UTC](https://discourse.julialang.org/t/fitting-normal-inverse-wishart/73273 "2024-06-04T10:06:38Z")

</div>

What library (and method) is recommended for taking a sequence of mean-vectors and covariance matrices and fitting a normal-inverse-wishart distribution? For example, my data is a vector of tuples where the first elemen…

---

## [YAML.jl have many bugs](https://discourse.julialang.org/t/yaml-jl-have-many-bugs/115158)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 9:39am UTC](https://discourse.julialang.org/t/yaml-jl-have-many-bugs/115158 "2024-06-04T09:39:36Z")

</div>

I’m not a mainter of YAML.jl but I’m concerned with the current status of YAML.jl. I have found many bugs in several days but also know YAML has more complex specification than JSON or TOML so it’s generally difficult to…

---

## [SumOfSquares with BigFloat](https://discourse.julialang.org/t/sumofsquares-with-bigfloat/115009)

<div class="topic-metadata">

**Author:** [@jezzaparker](https://discourse.julialang.org/u/jezzaparker)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 9:22am UTC](https://discourse.julialang.org/t/sumofsquares-with-bigfloat/115009 "2024-06-04T09:22:18Z")

</div>

I’m trying to use SumOfSquares with arbitrary precision. Is this possible? if I do model = GenericModel{BigFloat}(COSMO.Optimizer{BigFloat}) #... @constraint(model, con1 in SOSCone()) where con1 is a Polynomial{Dy…

---

## [Quantum trajectories](https://discourse.julialang.org/t/quantum-trajectories/115038)

<div class="topic-metadata">

**Author:** [@paolo-mgi](https://discourse.julialang.org/u/paolo-mgi)\
**Replies:** 22\
**Last updated:** [June 4, 2024, 9:08am UTC](https://discourse.julialang.org/t/quantum-trajectories/115038 "2024-06-04T09:08:37Z")

</div>

Is there a way to implement the quantum trajectory algorithm described in https://qutip.readthedocs.io/en/latest/guide/dynamics/dynamics-monte.html for a specific model using existing tools of differentialequations.jl w…

---

## [Maximum number of threads in Polyester.jl](https://discourse.julialang.org/t/maximum-number-of-threads-in-polyester-jl/115135)

<div class="topic-metadata">

**Author:** [@Lisette\_de\_Bruin](https://discourse.julialang.org/u/Lisette_de_Bruin)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 8:35am UTC](https://discourse.julialang.org/t/maximum-number-of-threads-in-polyester-jl/115135 "2024-06-04T08:35:11Z")

</div>

Hi, I set the number of threads before I start up Julia by using the command: $env:JULIA\_NUM\_THREADS=16 before I start Julia. Then, I use the macro @batch from Polyester.jl, which evaluates a for-loop on multiple thread…

---

## [Help debug python interface](https://discourse.julialang.org/t/help-debug-python-interface/115154)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 8:21am UTC](https://discourse.julialang.org/t/help-debug-python-interface/115154 "2024-06-04T08:21:47Z")

</div>

Hi, I am trying to provide a python wrapper for BifurcationKit.jl. The wrapper is located here GitHub - bifurcationkit/bifurcationkitpy: Computation of bifurcation diagrams in python. However, I cannot debug the error …

---

## [No existing Julia version after installing on Windows and Juliaup won't install new versions](https://discourse.julialang.org/t/no-existing-julia-version-after-installing-on-windows-and-juliaup-wont-install-new-versions/114736)

<div class="topic-metadata">

**Author:** [@ares\_2](https://discourse.julialang.org/u/ares_2)\
**Replies:** 10\
**Last updated:** [June 4, 2024, 8:21am UTC](https://discourse.julialang.org/t/no-existing-julia-version-after-installing-on-windows-and-juliaup-wont-install-new-versions/114736 "2024-06-04T08:21:11Z")

</div>

I’ve just installed Julia on Windows via the Microsoft Store, but I can’t seem to get it working properly. I can’t run the Julia REPL from cmd or the .exe, but I also can’t install any version of Julia by using juliaup. …

---

## [Slicing arrays with a Colon via PythonCall](https://discourse.julialang.org/t/slicing-arrays-with-a-colon-via-pythoncall/115133)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 3\
**Last updated:** [June 4, 2024, 7:48am UTC](https://discourse.julialang.org/t/slicing-arrays-with-a-colon-via-pythoncall/115133 "2024-06-04T07:48:34Z")

</div>

This works in Julia julia\> rand(3,5)\[:, 1\] and this works in Python \>\>\> import numpy as np \>\>\> np.random.rand(3,5)\[:, 1\] but this doesn’t work with PythonCall julia\> using PythonCall julia\> np = pyimport("numpy") ju…

---

## [Periodic boundary conditions with MethodOfLines not working](https://discourse.julialang.org/t/periodic-boundary-conditions-with-methodoflines-not-working/115123)

<div class="topic-metadata">

**Author:** [@dbox](https://discourse.julialang.org/u/dbox)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 7:37am UTC](https://discourse.julialang.org/t/periodic-boundary-conditions-with-methodoflines-not-working/115123 "2024-06-04T07:37:05Z")

</div>

I’m trying to use a basic advection/diffusion equation with MethodOfLines.jl. I have an initial condition which is a Gaussian shaped density, and I’m struggling to get periodic boundary conditions to work. My initial …

---

## [Plots... too close dots in :dot linestyle?](https://discourse.julialang.org/t/plots-too-close-dots-in-dot-linestyle/115102)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 7:12am UTC](https://discourse.julialang.org/t/plots-too-close-dots-in-dot-linestyle/115102 "2024-06-04T07:12:51Z")

</div>

Any updates on dot-distance in Plots? I’m using the latest version of Plots, with the default backend (GR). The dot distance is so small that it almost looks like a solid line…

---

## [Variable sized windows for moving average](https://discourse.julialang.org/t/variable-sized-windows-for-moving-average/115078)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 8\
**Last updated:** [June 4, 2024, 6:19am UTC](https://discourse.julialang.org/t/variable-sized-windows-for-moving-average/115078 "2024-06-04T06:19:56Z")

</div>

Hi, I saw some libraries for moving averages (RollingFunctions.jl), but I did not find one with the option to make the window size variable. My specific case would be a moving average over a “time series”, averaging the…

---

## [Difference between generating function forms](https://discourse.julialang.org/t/difference-between-generating-function-forms/115092)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 8\
**Last updated:** [June 4, 2024, 5:34am UTC](https://discourse.julialang.org/t/difference-between-generating-function-forms/115092 "2024-06-04T05:34:21Z")

</div>

If I have a vector vals = \[1, 2, 3, 4, 5\] and want to check if all values are e.g. \< 7 I could either do all(val -\> val \< 7, vals) or all(val \< 7 for val in vals) Is there a difference between these approaches? I h…

---

## [Sensitivity Analysis for Stochastic Differential Equations (SDEs) in Julia](https://discourse.julialang.org/t/sensitivity-analysis-for-stochastic-differential-equations-sdes-in-julia/115144)

<div class="topic-metadata">

**Author:** [@Houda\_Yaq](https://discourse.julialang.org/u/Houda_Yaq)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 4:07am UTC](https://discourse.julialang.org/t/sensitivity-analysis-for-stochastic-differential-equations-sdes-in-julia/115144 "2024-06-04T04:07:05Z")

</div>

Hi everyone, I’m working on a project that requires sensitivity analysis for Stochastic Differential Equations (SDEs). I’ve been exploring the Julia ecosystem, and while there are excellent tools for ODEs (DifferentialE…

---

## [Compatible Gurobi with Julia 1.10.3](https://discourse.julialang.org/t/compatible-gurobi-with-julia-1-10-3/115148)

<div class="topic-metadata">

**Author:** [@benjamin.nunez](https://discourse.julialang.org/u/benjamin.nunez)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 3:42am UTC](https://discourse.julialang.org/t/compatible-gurobi-with-julia-1-10-3/115148 "2024-06-04T03:42:32Z")

</div>

Hi! I am working with Julia version 1.10.3. Does anyone know which is the latest version of Gurobi that is compatible with this version of Julia? Alternatively, does anyone know how I can find this information? Thank y…

---

## [Choice of type parameters](https://discourse.julialang.org/t/choice-of-type-parameters/115147)

<div class="topic-metadata">

**Author:** [@freedomjin](https://discourse.julialang.org/u/freedomjin)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 2:57am UTC](https://discourse.julialang.org/t/choice-of-type-parameters/115147 "2024-06-04T02:57:04Z")

</div>

Hi, I am a little confused about choice of type parameters either as data types or as literals, and would like to know their differences? More specifically, when defining a parametric type, which takes, say, some intege…

---

## [Is there any easy-to-use parallel linear solver in Julia?](https://discourse.julialang.org/t/is-there-any-easy-to-use-parallel-linear-solver-in-julia/95867)

<div class="topic-metadata">

**Author:** [@maphdze](https://discourse.julialang.org/u/maphdze)\
**Replies:** 5\
**Last updated:** [June 3, 2024, 10:02pm UTC](https://discourse.julialang.org/t/is-there-any-easy-to-use-parallel-linear-solver-in-julia/95867 "2024-06-03T22:02:13Z")

</div>

I am wondering that if there are some easy-to-use parallel linear solvers in Julia? I have tried MUMPS.jl, but if you want to parallelize it, you have to use MPI.jl, then other parts of the code will be executed ‘number…

---

## [Type instabilities when dealing with structs and Ref](https://discourse.julialang.org/t/type-instabilities-when-dealing-with-structs-and-ref/115122)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 4\
**Last updated:** [June 3, 2024, 9:35pm UTC](https://discourse.julialang.org/t/type-instabilities-when-dealing-with-structs-and-ref/115122 "2024-06-03T21:35:07Z")

</div>

Hello, I’m facing type instabilities with a struct containing a Ref value. Here I show a minimal example struct Prova{T1\<:Integer} a::Ref{T1} function Prova(a::T1) where {T1} new{T1}(Ref(a)) end end…

---

## [Heuristic for checking if a Method always errors](https://discourse.julialang.org/t/heuristic-for-checking-if-a-method-always-errors/115125)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 2\
**Last updated:** [June 3, 2024, 9:12pm UTC](https://discourse.julialang.org/t/heuristic-for-checking-if-a-method-always-errors/115125 "2024-06-03T21:12:12Z")

</div>

@oxinabox mused here that it should be possible to use effect analysis to figure out if a method always, sometimes, or never errors. I don’t know enough about the internals to dig into that at the moment, but it did l…

---

## [Mismatch between nextfloat(0.0) and eps(Float64)](https://discourse.julialang.org/t/mismatch-between-nextfloat-0-0-and-eps-float64/115104)

<div class="topic-metadata">

**Author:** [@Guillermo\_C](https://discourse.julialang.org/u/Guillermo_C)\
**Replies:** 6\
**Last updated:** [June 3, 2024, 6:21pm UTC](https://discourse.julialang.org/t/mismatch-between-nextfloat-0-0-and-eps-float64/115104 "2024-06-03T18:21:14Z")

</div>

Dear Julia community, I am testing the representation of floating point values in my machine. This is the behavior I am seeing: julia\> x = 0.0 0.0 help?\> x (...) x is of type Float64 (...) julia\> nextfloat(x) 5.0e-324 …

---

## [Lines plot artifacts with GLMakie v0.10.2 on julia 1.10.3 (win10)](https://discourse.julialang.org/t/lines-plot-artifacts-with-glmakie-v0-10-2-on-julia-1-10-3-win10/114933)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 2\
**Last updated:** [June 3, 2024, 6:04pm UTC](https://discourse.julialang.org/t/lines-plot-artifacts-with-glmakie-v0-10-2-on-julia-1-10-3-win10/114933 "2024-06-03T18:04:29Z")

</div>

I was plotting some curves with a lot of low level noise with GLMakie and the plots had a lot of extra line cruft as if the line segments for the lines in the plot were not being correctly handled. A MWE for the ab…

---

## [Please get your JuliaCon tickets soon](https://discourse.julialang.org/t/please-get-your-juliacon-tickets-soon/115128)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [June 3, 2024, 4:37pm UTC](https://discourse.julialang.org/t/please-get-your-juliacon-tickets-soon/115128 "2024-06-03T16:37:41Z")

</div>

Hi everyone, I’m looking forward to seeing everyone at JuliaCon 2024 in just over a month from now. Based on our call for proposals and schedules, I know that there are more people coming than have obtained a ticket. Ho…

---

## [Why don't integer division errors occur in floating point division?](https://discourse.julialang.org/t/why-dont-integer-division-errors-occur-in-floating-point-division/14345)

<div class="topic-metadata">

**Author:** [@hjohnston7](https://discourse.julialang.org/u/hjohnston7)\
**Replies:** 6\
**Last updated:** [June 3, 2024, 2:49pm UTC](https://discourse.julialang.org/t/why-dont-integer-division-errors-occur-in-floating-point-division/14345 "2024-06-03T14:49:02Z")

</div>

Hello! I am currently making my way through the documentation, and I was wondering why the floating point division operator doesn’t throw the same errors as the integer division function. In the documentation, it says: …

---

## [Why Mac mini M1 and Mac book air have 4 times performance difference?](https://discourse.julialang.org/t/why-mac-mini-m1-and-mac-book-air-have-4-times-performance-difference/115094)

<div class="topic-metadata">

**Author:** [@lksj12](https://discourse.julialang.org/u/lksj12)\
**Replies:** 12\
**Last updated:** [June 3, 2024, 2:11pm UTC](https://discourse.julialang.org/t/why-mac-mini-m1-and-mac-book-air-have-4-times-performance-difference/115094 "2024-06-03T14:11:02Z")

</div>

I tested exactly same julia code in MacBookAir 2020(M1, RAM: 8GB) and MaMini 2020(M1, RAM 16GB). The code is using LaTeXStrings using DelimitedFiles using Printf using GZip using Statistics using LinearAlgebra using Py…

---

## [Freeze model parameters with FluxTraining.jl](https://discourse.julialang.org/t/freeze-model-parameters-with-fluxtraining-jl/115119)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 0\
**Last updated:** [June 3, 2024, 1:18pm UTC](https://discourse.julialang.org/t/freeze-model-parameters-with-fluxtraining-jl/115119 "2024-06-03T13:18:00Z")

</div>

Cheers, Training a model with FluxTraining.jl requires building up a learner where the optimizer is declared. For instance: opt = Flux.Adam(eta) learner = Learner(model, lossfn, optimizer=opt) epoch!(learner, TrainingP…

---

## [Simple CUDA kernel on matrix slower than running GPU](https://discourse.julialang.org/t/simple-cuda-kernel-on-matrix-slower-than-running-gpu/115018)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 8\
**Last updated:** [June 3, 2024, 12:27pm UTC](https://discourse.julialang.org/t/simple-cuda-kernel-on-matrix-slower-than-running-gpu/115018 "2024-06-03T12:27:21Z")

</div>

I am trying to write a simple CUDA kernel that swaps pairs of columns in a square matrix and puts a sign on one of them: using CUDA, BenchmarkTools function swap\_and\_sign!(A::Matrix) n = size(A, 1) ÷ 2 for i in…

---

## [What are the four numbers in the \`linestyle\` vector?](https://discourse.julialang.org/t/what-are-the-four-numbers-in-the-linestyle-vector/115106)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [June 3, 2024, 12:15pm UTC](https://discourse.julialang.org/t/what-are-the-four-numbers-in-the-linestyle-vector/115106 "2024-06-03T12:15:15Z")

</div>

What are the four numbers in line!( . . . ; linestyle = Linestyle(\[0.5, 1.0, 1.5, 2.5\]), . . . ) found in this documentation ? I tried this linestyle and got dashed lines, but I’ve got stuck there because I don’t know…

---

## [Domain Error when using Zygote to differentiate MultiStart minimization](https://discourse.julialang.org/t/domain-error-when-using-zygote-to-differentiate-multistart-minimization/115013)

<div class="topic-metadata">

**Author:** [@paul188](https://discourse.julialang.org/u/paul188)\
**Replies:** 2\
**Last updated:** [June 3, 2024, 12:05pm UTC](https://discourse.julialang.org/t/domain-error-when-using-zygote-to-differentiate-multistart-minimization/115013 "2024-06-03T12:05:57Z")

</div>

I have the following MWE, with most of the code just copied from the MultiStartOptimization.jl documentation: using Optimization, OptimizationMultistartOptimization, OptimizationNLopt using Zygote using ForwardDiff ros…

---

## [How to build a bi-LSTM in Flux.jl 0.14](https://discourse.julialang.org/t/how-to-build-a-bi-lstm-in-flux-jl-0-14/115114)

<div class="topic-metadata">

**Author:** [@NeroBlackstone](https://discourse.julialang.org/u/NeroBlackstone)\
**Replies:** 0\
**Last updated:** [June 3, 2024, 11:28am UTC](https://discourse.julialang.org/t/how-to-build-a-bi-lstm-in-flux-jl-0-14/115114 "2024-06-03T11:28:03Z")

</div>

There is currently a wrapper layer waiting to be merged, but it has not been updated in several years. There is also an early speech recognition example in the Model Zoo, but it only supports Flux 0.6 and Flux 0.10. So…

---

## [\[ANN\] New package: CallableExpressions v1.0.0](https://discourse.julialang.org/t/ann-new-package-callableexpressions-v1-0-0/114698)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 8\
**Last updated:** [June 3, 2024, 10:42am UTC](https://discourse.julialang.org/t/ann-new-package-callableexpressions-v1-0-0/114698 "2024-06-03T10:42:29Z")

</div>

The CallableExpressions package is being registered: New package: CallableExpressions v1.0.0 by JuliaRegistrator · Pull Request #107598 · JuliaRegistries/General · GitHub A Julia package for representing, manipulating …

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

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