# Latest

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

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

**Page:** 539

---

## [What else than PATH solver for linear or mixed complementarity problem (LCP/MCP)?](https://discourse.julialang.org/t/what-else-than-path-solver-for-linear-or-mixed-complementarity-problem-lcp-mcp/107110)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 14\
**Last updated:** [December 5, 2023, 11:09pm UTC](https://discourse.julialang.org/t/what-else-than-path-solver-for-linear-or-mixed-complementarity-problem-lcp-mcp/107110 "2023-12-05T23:09:38Z")

</div>

What else than PATHSolver.jl is available in Julia for linear or mixed complementarity problem (LCP/MCP)? Within JuMP or outside it. The thing is that The PATH Solver binaries are still not available for Apple M process…

---

## [String indices : byte indexing feels wrong](https://discourse.julialang.org/t/string-indices-byte-indexing-feels-wrong/107164)

<div class="topic-metadata">

**Author:** [@hlbnet](https://discourse.julialang.org/u/hlbnet)\
**Replies:** 18\
**Last updated:** [December 5, 2023, 10:41pm UTC](https://discourse.julialang.org/t/string-indices-byte-indexing-feels-wrong/107164 "2023-12-05T22:41:39Z")

</div>

I am discovering Julia language (from C++, Java and Python background), and I really love several concepts of Julia, especially how Julia handles types. But I consider the choice to “almost disallow” usage of indices wi…

---

## [Custom Models For Bayesian Inference](https://discourse.julialang.org/t/custom-models-for-bayesian-inference/107132)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 4\
**Last updated:** [December 5, 2023, 10:11pm UTC](https://discourse.julialang.org/t/custom-models-for-bayesian-inference/107132 "2023-12-05T22:11:56Z")

</div>

Hello all. I’m hoping someone can help me navigate the web of probabilistic programming packages so that I can begin using the Julia ecosystem for my custom models. I am experienced with Bayesian methods and probabilisti…

---

## [Pyimport crashes VSCode Julia REPL](https://discourse.julialang.org/t/pyimport-crashes-vscode-julia-repl/107172)

<div class="topic-metadata">

**Author:** [@Gast](https://discourse.julialang.org/u/Gast)\
**Replies:** 4\
**Last updated:** [December 5, 2023, 9:55pm UTC](https://discourse.julialang.org/t/pyimport-crashes-vscode-julia-repl/107172 "2023-12-05T21:55:41Z")

</div>

Importing the Python module Scipy instantly crashes and closes VSCode Julia REPL before I can see the error message. For instance, the following code crashes my REPL every time: julia\> using PyCall julia\> mv = pyimport…

---

## [Lux tutorial: AMDGPU 20x slower than CPU](https://discourse.julialang.org/t/lux-tutorial-amdgpu-20x-slower-than-cpu/107053)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 17\
**Last updated:** [December 5, 2023, 8:55pm UTC](https://discourse.julialang.org/t/lux-tutorial-amdgpu-20x-slower-than-cpu/107053 "2023-12-05T20:55:18Z")

</div>

So far, during my quest to get deep learning working in Julia, I found FastAI to have multiple dependency issues (see my previous posts). And Flux itself currently requires a downgrade of AMDGPU to v0.6.x, so I also had …

---

## [\[ANN\] Consistent Overhead Byte Stuffing: COBS.jl](https://discourse.julialang.org/t/ann-consistent-overhead-byte-stuffing-cobs-jl/30130)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 5\
**Last updated:** [December 5, 2023, 8:23pm UTC](https://discourse.julialang.org/t/ann-consistent-overhead-byte-stuffing-cobs-jl/30130 "2023-12-05T20:23:14Z")

</div>

COBS.jl is a tiny tiny package I just wrote for encoding bytes according to the COBS algorithm. This will be mostly useful for people communicating with an Arduino via a serial port. My main goal was to write something …

---

## [Convert discrete to continuous using delays](https://discourse.julialang.org/t/convert-discrete-to-continuous-using-delays/106992)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 15\
**Last updated:** [December 5, 2023, 8:14pm UTC](https://discourse.julialang.org/t/convert-discrete-to-continuous-using-delays/106992 "2023-12-05T20:14:03Z")

</div>

I have a discrete MIMO system in state space form and I’m trying to convert the internal feedback path from z^-1 to a continuous delay (i.e. exp(-s\*T)). In MATLAB, I have the fairly clunky but working solution to plug t…

---

## [For anyone in France: a large research project (PEPR) on "Agroécologie et Numérique"](https://discourse.julialang.org/t/for-anyone-in-france-a-large-research-project-pepr-on-agroecologie-et-numerique/106956)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 5, 2023, 7:16pm UTC](https://discourse.julialang.org/t/for-anyone-in-france-a-large-research-project-pepr-on-agroecologie-et-numerique/106956 "2023-12-05T19:16:43Z")

</div>

A new PEPR is going to start on the field “Agroécologie et Numérique”, perhaps it can be of interest for some of you, as fundings are normally generous. I forward the email: From Simon Teinturier simon.teinturier@agropa…

---

## [Errors using Makie plots with Observable metadata Vectors of variable length](https://discourse.julialang.org/t/errors-using-makie-plots-with-observable-metadata-vectors-of-variable-length/89469)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 8\
**Last updated:** [December 5, 2023, 6:16pm UTC](https://discourse.julialang.org/t/errors-using-makie-plots-with-observable-metadata-vectors-of-variable-length/89469 "2023-12-05T18:16:48Z")

</div>

I would like to generate a Makie animation that has a variable number of points and polygons per frame, and am running into some odd behavior. I am using scatter() and poly() with Observables holding the data points, an…

---

## [Sharpen Tuple Element Types](https://discourse.julialang.org/t/sharpen-tuple-element-types/107179)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 1\
**Last updated:** [December 5, 2023, 5:39pm UTC](https://discourse.julialang.org/t/sharpen-tuple-element-types/107179 "2023-12-05T17:39:49Z")

</div>

struct Foo end typeof((Foo, )) yields Tuple{DataType} rather than something more precise like Tuple{Type{Foo}} This is causing me some type-instability problems. Question: is there a way to produce a Tuple whose t…

---

## [\[ANN\] PkgHelpers 0.2.2 released](https://discourse.julialang.org/t/ann-pkghelpers-0-2-2-released/107162)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [December 5, 2023, 5:25pm UTC](https://discourse.julialang.org/t/ann-pkghelpers-0-2-2-released/107162 "2023-12-05T17:25:51Z")

</div>

PkgHelpers provides the functions freeze() and lower\_bound() to update your Project.toml file and freeze or lower\_bound your direct dependencies. New: the new entries in Project.toml are sorted the parameter copy\_mani…

---

## [How to generate new Module template without Git/Github](https://discourse.julialang.org/t/how-to-generate-new-module-template-without-git-github/107169)

<div class="topic-metadata">

**Author:** [@roeya](https://discourse.julialang.org/u/roeya)\
**Replies:** 0\
**Last updated:** [December 5, 2023, 1:53pm UTC](https://discourse.julialang.org/t/how-to-generate-new-module-template-without-git-github/107169 "2023-12-05T13:53:17Z")

</div>

When you want to generate new module the documentation points you to PkgTemplates however if for some reason you do not have a Git or Github account you will get an error: Git hosting service username is required, set o…

---

## [Can't solve a problem with nonlinear terms like x^0.7 or x^3 using JuMP with Gurobi 11](https://discourse.julialang.org/t/cant-solve-a-problem-with-nonlinear-terms-like-x-0-7-or-x-3-using-jump-with-gurobi-11/106896)

<div class="topic-metadata">

**Author:** [@JackaChou](https://discourse.julialang.org/u/JackaChou)\
**Replies:** 8\
**Last updated:** [December 5, 2023, 3:09pm UTC](https://discourse.julialang.org/t/cant-solve-a-problem-with-nonlinear-terms-like-x-0-7-or-x-3-using-jump-with-gurobi-11/106896 "2023-12-05T15:09:21Z")

</div>

I have installed Gurobi 11 and Gurobi 1.2.0.jl, and it’s believed that Gurobi now supports solving general nonlinear programming like x^0.7 or x^3, but I cannot solve it with JuMP using Gurobi, if I switch the solve to …

---

## [Generating types using a macro from XML schema](https://discourse.julialang.org/t/generating-types-using-a-macro-from-xml-schema/107161)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [December 5, 2023, 12:04pm UTC](https://discourse.julialang.org/t/generating-types-using-a-macro-from-xml-schema/107161 "2023-12-05T12:04:09Z")

</div>

Hi all, I’ve been scratching my head on this all morning, and I can’t figure what’s missing… I’m trying to define types based on the contents of an xml file and its schema. This is not unlike Trouble understanding macros…

---

## [Do you use the latest version of Julia and why?](https://discourse.julialang.org/t/do-you-use-the-latest-version-of-julia-and-why/107160)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [December 5, 2023, 2:11pm UTC](https://discourse.julialang.org/t/do-you-use-the-latest-version-of-julia-and-why/107160 "2023-12-05T14:11:07Z")

</div>

What type are you? I can’t risk breaking my project so LTS version it is. I’m too lazy to update and will work with whatever version happened to be installed on my computer. I’m eager to update and will get the latest …

---

## [Computing common components in KNITRO callbacks](https://discourse.julialang.org/t/computing-common-components-in-knitro-callbacks/107014)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 7\
**Last updated:** [December 5, 2023, 1:35pm UTC](https://discourse.julialang.org/t/computing-common-components-in-knitro-callbacks/107014 "2023-12-05T13:35:31Z")

</div>

I am using KNITRO.jl to solve a particular optimization problem. In my optimization problem, there is a common calculation done across the constraint, jacobian for the constraint, and the hessian for the constraint. Cur…

---

## [Equality of mutable structs](https://discourse.julialang.org/t/equality-of-mutable-structs/107146)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 7\
**Last updated:** [December 5, 2023, 12:40pm UTC](https://discourse.julialang.org/t/equality-of-mutable-structs/107146 "2023-12-05T12:40:44Z")

</div>

should this be the case ? mutable struct X x::Int64 end X(1)==X(1) #false

---

## [Multithreading in Julia \>1.8 - Threadsafety of @threads vs @spawn](https://discourse.julialang.org/t/multithreading-in-julia-1-8-threadsafety-of-threads-vs-spawn/107159)

<div class="topic-metadata">

**Author:** [@PatAsch](https://discourse.julialang.org/u/PatAsch)\
**Replies:** 3\
**Last updated:** [December 5, 2023, 12:19pm UTC](https://discourse.julialang.org/t/multithreading-in-julia-1-8-threadsafety-of-threads-vs-spawn/107159 "2023-12-05T12:19:46Z")

</div>

Hi there, I have recently read the blog post about changes in @threads behavior from version 1.8 onwards: PSA: Thread-local state is no longer recommended, and I am unsure if I do need to change up code that I wrote for…

---

## [Optimization of differentiation using Fourier transforms](https://discourse.julialang.org/t/optimization-of-differentiation-using-fourier-transforms/107149)

<div class="topic-metadata">

**Author:** [@mikk](https://discourse.julialang.org/u/mikk)\
**Replies:** 8\
**Last updated:** [December 5, 2023, 11:34am UTC](https://discourse.julialang.org/t/optimization-of-differentiation-using-fourier-transforms/107149 "2023-12-05T11:34:47Z")

</div>

In my Bachelor thesis I need to solve a nonlinear wave equation using the pseudospectral method that relies on the basic property of the Fourier transform \\mathcal{F}(\\frac{d^n f}{dx^n}) = (ik)^n \\mathcal{F}(f) where i …

---

## [When i from julia import ScenTrees in python,errro,ImportError: ScenTrees not found](https://discourse.julialang.org/t/when-i-from-julia-import-scentrees-in-python-errro-importerror-scentrees-not-found/107148)

<div class="topic-metadata">

**Author:** [@wang\_ruoxu](https://discourse.julialang.org/u/wang_ruoxu)\
**Replies:** 0\
**Last updated:** [December 5, 2023, 8:12am UTC](https://discourse.julialang.org/t/when-i-from-julia-import-scentrees-in-python-errro-importerror-scentrees-not-found/107148 "2023-12-05T08:12:36Z")

</div>

When I use python to call julia to import the ScenTrees package, I get the error “ScenTrees not found”,but other pkg is ok. when i using ScenTrees in julia env,it’s ok julia env: I’m confused how to solve it …

---

## [In Makie, how do I change the background for parts of the axis](https://discourse.julialang.org/t/in-makie-how-do-i-change-the-background-for-parts-of-the-axis/107136)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 1\
**Last updated:** [December 5, 2023, 1:51am UTC](https://discourse.julialang.org/t/in-makie-how-do-i-change-the-background-for-parts-of-the-axis/107136 "2023-12-05T01:51:37Z")

</div>

I would like to change the background e.g. from x=a to x=b to purple, I can sort of use the band! to achieve the visual, using GLMakie ts = 0:0.01:2π dat = sin.(ts) fig = Figure() ylims = extrema(dat) .+ (-0.1, 0.1) …

---

## [Mutable structs in DifferentialEquations.jl parameters to cache data](https://discourse.julialang.org/t/mutable-structs-in-differentialequations-jl-parameters-to-cache-data/107029)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 13\
**Last updated:** [December 5, 2023, 12:15am UTC](https://discourse.julialang.org/t/mutable-structs-in-differentialequations-jl-parameters-to-cache-data/107029 "2023-12-05T00:15:24Z")

</div>

Hello, I have a model implemented in DifferentialEquations.jl that saves lot of states. Some are just temporary for calculation or history, some are required for saving. Only a small subset of the states are the minimum…

---

## [How to round up DateTime to the next whole Hour?](https://discourse.julialang.org/t/how-to-round-up-datetime-to-the-next-whole-hour/107135)

<div class="topic-metadata">

**Author:** [@atBNE](https://discourse.julialang.org/u/atBNE)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 11:34pm UTC](https://discourse.julialang.org/t/how-to-round-up-datetime-to-the-next-whole-hour/107135 "2023-12-04T23:34:28Z")

</div>

How to round up DateTime to the next whole Hour? The Dates docs is heavy, and a beginner can get lost in it. using Dates function gvt(p1) dly = Hour(2) # a constant delay of 2 hours tym = now() # H…

---

## [@synchronize causing silent failures in function](https://discourse.julialang.org/t/synchronize-causing-silent-failures-in-function/106919)

<div class="topic-metadata">

**Author:** [@erasedbird](https://discourse.julialang.org/u/erasedbird)\
**Replies:** 4\
**Last updated:** [December 4, 2023, 9:41pm UTC](https://discourse.julialang.org/t/synchronize-causing-silent-failures-in-function/106919 "2023-12-04T21:41:28Z")

</div>

Hello! I’ve been having this strange issue. Running the following code in a Jupyter notebook causes it to be forever stuck on the last line: using KernelAbstractions using CUDA @kernel function tile\_lu\_factor!(A, n) …

---

## [ERROR: LoadError: UndefVarError: \`StatelessTableTransform\` not defined](https://discourse.julialang.org/t/error-loaderror-undefvarerror-statelesstabletransform-not-defined/107130)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 9:17pm UTC](https://discourse.julialang.org/t/error-loaderror-undefvarerror-statelesstabletransform-not-defined/107130 "2023-12-04T21:17:21Z")

</div>

I’m trying to use GeoStats.jl, but I keep hitting this error. Any tips? julia\> using GeoStatsBase \[ Info: Precompiling GeoStatsBase \[323cb8eb-fbf6-51c0-afd0-f8fba70507b2\] WARNING: could not import TableTransforms.Statel…

---

## [Nesting the GLM.jl in the objective function when formulating the ReverseDiff gradient generates StackOverflowError](https://discourse.julialang.org/t/nesting-the-glm-jl-in-the-objective-function-when-formulating-the-reversediff-gradient-generates-stackoverflowerror/107050)

<div class="topic-metadata">

**Author:** [@xxxxx](https://discourse.julialang.org/u/xxxxx)\
**Replies:** 5\
**Last updated:** [December 4, 2023, 8:01pm UTC](https://discourse.julialang.org/t/nesting-the-glm-jl-in-the-objective-function-when-formulating-the-reversediff-gradient-generates-stackoverflowerror/107050 "2023-12-04T20:01:54Z")

</div>

Hi, in formulating my objective function for optimization, in one of the steps, the parameters will enter a Poisson regression as the weight, which I implemented through GLM.jl package. However, when generating the gradi…

---

## [Compiler matmul optimization prevents constant folding?](https://discourse.julialang.org/t/compiler-matmul-optimization-prevents-constant-folding/107121)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 18\
**Last updated:** [December 4, 2023, 5:50pm UTC](https://discourse.julialang.org/t/compiler-matmul-optimization-prevents-constant-folding/107121 "2023-12-04T17:50:29Z")

</div>

I have a use case where I iterate over a container of small vectors. Say vs is a Vector{SVector{2, Float64}}, M is a global constant SMatrix{2,2,Float64,4}, and an illustrative use case is function f(vs) total = zero(el…

---

## [SDDP.jl without any uncertainty](https://discourse.julialang.org/t/sddp-jl-without-any-uncertainty/106964)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 5\
**Last updated:** [December 4, 2023, 5:19pm UTC](https://discourse.julialang.org/t/sddp-jl-without-any-uncertainty/106964 "2023-12-04T17:19:03Z")

</div>

Hello everyone, I was experimenting with SDDP.jl, changing parameters to see how it behaved. I defined a random variable but parametrized it equally (9 equal realizations), so the problem became deterministic and was s…

---

## [Sizehint！, explanation of the naming?](https://discourse.julialang.org/t/sizehint-explanation-of-the-naming/106978)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 3\
**Last updated:** [December 4, 2023, 4:31pm UTC](https://discourse.julialang.org/t/sizehint-explanation-of-the-naming/106978 "2023-12-04T16:31:43Z")

</div>

I am new to Julia. I am wondering why the function “sizehint!” is named so. Many functions are named in a self-evident way. But I cannot make sense of it for “sizehint!”. Could anyone give a hint?

---

## [Any way to efficiently run Poisson regression thousands of times?](https://discourse.julialang.org/t/any-way-to-efficiently-run-poisson-regression-thousands-of-times/106727)

<div class="topic-metadata">

**Author:** [@xxxxx](https://discourse.julialang.org/u/xxxxx)\
**Replies:** 23\
**Last updated:** [December 4, 2023, 3:44pm UTC](https://discourse.julialang.org/t/any-way-to-efficiently-run-poisson-regression-thousands-of-times/106727 "2023-12-04T15:44:18Z")

</div>

I need to run Poisson regression around 3000 times with the same set of Y and X but different weights. I’m currently using GLM.jl with a for-loop. The whole thing takes about 58 seconds. I was wondering if there are more…

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

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