# Latest

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

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

**Page:** 607

---

## [Slow MCMC sampling of complex polynomial model \[Turing.jl\]](https://discourse.julialang.org/t/slow-mcmc-sampling-of-complex-polynomial-model-turing-jl/102184)

<div class="topic-metadata">

**Author:** [@rubisco](https://discourse.julialang.org/u/rubisco)\
**Replies:** 2\
**Last updated:** [September 2, 2023, 10:25am UTC](https://discourse.julialang.org/t/slow-mcmc-sampling-of-complex-polynomial-model-turing-jl/102184 "2023-09-02T10:25:25Z")

</div>

In my model functions I use several complicated functions (long equations for Q and cd functions with many terms). Basically \[look in Q\_generated function\] they are some polynomials of v and w parameter - where v is scal…

---

## [Julia does not start on ARM64v8 | exec /usr/local/julia/bin/julia: exec format error](https://discourse.julialang.org/t/julia-does-not-start-on-arm64v8-exec-usr-local-julia-bin-julia-exec-format-error/97793)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 6\
**Last updated:** [September 2, 2023, 10:17am UTC](https://discourse.julialang.org/t/julia-does-not-start-on-arm64v8-exec-usr-local-julia-bin-julia-exec-format-error/97793 "2023-09-02T10:17:58Z")

</div>

Hi there, I am using julia\_pod to run Julia on kubernetes. Everything works on local minikube, but when switching to my freshly created kubernetes on ARM, I get the following error log: exec /usr/local/julia/bin/julia: …

---

## [Help with understanding Turing's predict function](https://discourse.julialang.org/t/help-with-understanding-turings-predict-function/102021)

<div class="topic-metadata">

**Author:** [@JanG](https://discourse.julialang.org/u/JanG)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 9:42am UTC](https://discourse.julialang.org/t/help-with-understanding-turings-predict-function/102021 "2023-09-02T09:42:28Z")

</div>

Hi everybody, I played around a bit with the predict() function in Turing and encountered some behaviour I don’t quite understand. When I use it to produce new output based on a chain, it only seems to take some of the …

---

## [Effect of \`JULIA\_DEFINE\_FAST\_TLS\` and how to handle in shared library or Fortran](https://discourse.julialang.org/t/effect-of-julia-define-fast-tls-and-how-to-handle-in-shared-library-or-fortran/101114)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 1\
**Last updated:** [September 2, 2023, 4:59am UTC](https://discourse.julialang.org/t/effect-of-julia-define-fast-tls-and-how-to-handle-in-shared-library-or-fortran/101114 "2023-09-02T04:59:53Z")

</div>

According to Embedding Julia · The Julia Language, one should define JULIA\_DEFINE\_FAST\_TLS in any program that embeds calls to Julia. The only documentation for this I could find is the attached inline comment (line brea…

---

## [Julia users in Toronto](https://discourse.julialang.org/t/julia-users-in-toronto/103132)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 4:42am UTC](https://discourse.julialang.org/t/julia-users-in-toronto/103132 "2023-09-02T04:42:06Z")

</div>

Hi all, we are thinking to organize a Julia meetup in Toronto in the week of Oct 15th, I’m wondering how many people would be interested? Please give a like or reply if you are interest!

---

## [Ask AI from JuliaHub seems awesome and should be advertised!](https://discourse.julialang.org/t/ask-ai-from-juliahub-seems-awesome-and-should-be-advertised/103457)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 1\
**Last updated:** [September 2, 2023, 12:20am UTC](https://discourse.julialang.org/t/ask-ai-from-juliahub-seems-awesome-and-should-be-advertised/103457 "2023-09-02T00:20:04Z")

</div>

Some time ago, I wrote an article showing that AI tools for coding in Julia weren’t that good. Reading a post yesterday, someone mentioned Ask AI from JuliaHub, which specializes in Julia coding. I noticed that it works …

---

## [VSCode warns about "possible method call error" in function definition](https://discourse.julialang.org/t/vscode-warns-about-possible-method-call-error-in-function-definition/103458)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 11:51pm UTC](https://discourse.julialang.org/t/vscode-warns-about-possible-method-call-error-in-function-definition/103458 "2023-09-01T23:51:41Z")

</div>

Here’s the screenshot. When the mouse hovers over the wiggly blue line, I see “Possible method call error. No quick fix available.” Has anyone encountered something like this?

---

## [What if we have one type recipe for the x-axis and one for the y-axis?](https://discourse.julialang.org/t/what-if-we-have-one-type-recipe-for-the-x-axis-and-one-for-the-y-axis/93563)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 9:26pm UTC](https://discourse.julialang.org/t/what-if-we-have-one-type-recipe-for-the-x-axis-and-one-for-the-y-axis/93563 "2023-08-31T21:26:17Z")

</div>

If we define a type recipe for MyWrapper which is the independent variable (x) and one type recipe for MyOtherWrapper which is the dependent variable (y). It seems that the plot attributes defined in MyWrapper are prefer…

---

## [Within-chain parallelization with Turing.jl](https://discourse.julialang.org/t/within-chain-parallelization-with-turing-jl/103402)

<div class="topic-metadata">

**Author:** [@Nicolo\_Foppa](https://discourse.julialang.org/u/Nicolo_Foppa)\
**Replies:** 6\
**Last updated:** [September 1, 2023, 9:56pm UTC](https://discourse.julialang.org/t/within-chain-parallelization-with-turing-jl/103402 "2023-09-01T21:56:54Z")

</div>

Hi everyone, I’m a new Turing user and I read that there is a possible way to parallelize the MCMC of a single chain on multiple threads but I’m not able to do that. Do you have any references that I can use to have a b…

---

## [Change behavior of function based on program state?](https://discourse.julialang.org/t/change-behavior-of-function-based-on-program-state/103452)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 5\
**Last updated:** [September 1, 2023, 8:51pm UTC](https://discourse.julialang.org/t/change-behavior-of-function-based-on-program-state/103452 "2023-09-01T20:51:26Z")

</div>

I’m reading a binary file that stores a UInt16 that tells me if the rest of the section of the file is little-endian or big-endian. If the result of the read is 0x4d4d, it is little endian, and if it is 0x4949 it is big-…

---

## [ANALITICA (Puerto Rico) Is Looking for a Webinar Presenter to Present Julia in Spanish](https://discourse.julialang.org/t/analitica-puerto-rico-is-looking-for-a-webinar-presenter-to-present-julia-in-spanish/103455)

<div class="topic-metadata">

**Author:** [@ahclaster](https://discourse.julialang.org/u/ahclaster)\
**Replies:** 0\
**Last updated:** [September 1, 2023, 7:17pm UTC](https://discourse.julialang.org/t/analitica-puerto-rico-is-looking-for-a-webinar-presenter-to-present-julia-in-spanish/103455 "2023-09-01T19:17:07Z")

</div>

ANALITICA is a foundation based in Puerto Rico. One of their goals is to offer Webinars to develop quantitative skills. These Webinars are held every 2nd Thursday at 7:30 pm AST. All Webinars are offered in Spanish as …

---

## [Error running Museinference.jl example](https://discourse.julialang.org/t/error-running-museinference-jl-example/103360)

<div class="topic-metadata">

**Author:** [@mgp](https://discourse.julialang.org/u/mgp)\
**Replies:** 7\
**Last updated:** [September 1, 2023, 6:58pm UTC](https://discourse.julialang.org/t/error-running-museinference-jl-example/103360 "2023-09-01T18:58:53Z")

</div>

Not sure if this should be a new topic. It follows on from https://discourse.julialang.org/t/ann-museinference-jl-drop-in-replacement-for-hmc-vi-try-it-on-your-problem/73468. When I run the example code @model function…

---

## [Missing documentation for ? operator, and how to improve documentation](https://discourse.julialang.org/t/missing-documentation-for-operator-and-how-to-improve-documentation/103441)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 13\
**Last updated:** [September 1, 2023, 6:20pm UTC](https://discourse.julialang.org/t/missing-documentation-for-operator-and-how-to-improve-documentation/103441 "2023-09-01T18:20:00Z")

</div>

Hi there I overall like the Julia documentation. It’s more comprehensive than most languages, and still, it lacks some things. I am new to Julia, and found an example, that attempts to showcase multiple dispatch. A pa…

---

## [Memory leak in allocation-intensive multi-threaded code](https://discourse.julialang.org/t/memory-leak-in-allocation-intensive-multi-threaded-code/103105)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 8\
**Last updated:** [September 1, 2023, 6:02pm UTC](https://discourse.julialang.org/t/memory-leak-in-allocation-intensive-multi-threaded-code/103105 "2023-09-01T18:02:51Z")

</div>

I’m trying to run multiple threads to construct a random matrix that satisfies some constraints. The goal is to have them run in parallel, and when one task finds the matrix return it and stop running tasks. However, I …

---

## [Does a Sequential Modular Approach (SMA) algorithm exist for solving component-based systems of non-linear equations](https://discourse.julialang.org/t/does-a-sequential-modular-approach-sma-algorithm-exist-for-solving-component-based-systems-of-non-linear-equations/103389)

<div class="topic-metadata">

**Author:** [@chris-hampel-CA](https://discourse.julialang.org/u/chris-hampel-CA)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 5:41pm UTC](https://discourse.julialang.org/t/does-a-sequential-modular-approach-sma-algorithm-exist-for-solving-component-based-systems-of-non-linear-equations/103389 "2023-09-01T17:41:17Z")

</div>

Hello, I am polling this board to see if anyone knows if an algorithm exists in any Julia package to perform the Sequential Modular Approach (SMA) technique for solving systems of connected components where each compone…

---

## [Is multiple dispatch possible for an enumerated type?](https://discourse.julialang.org/t/is-multiple-dispatch-possible-for-an-enumerated-type/103420)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 3\
**Last updated:** [September 1, 2023, 3:17pm UTC](https://discourse.julialang.org/t/is-multiple-dispatch-possible-for-an-enumerated-type/103420 "2023-09-01T15:17:18Z")

</div>

Hello, is multiple dispatch possible for an enumerated type ? my version: @enum Foo M=1 N=2 Bar(x) = Bar(Val(x)) Bar(::Val{M}) = 111 Bar(::Val{N}) = 222

---

## [Type Stable Iteration over Static Parameters](https://discourse.julialang.org/t/type-stable-iteration-over-static-parameters/103380)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 5\
**Last updated:** [September 1, 2023, 2:48pm UTC](https://discourse.julialang.org/t/type-stable-iteration-over-static-parameters/103380 "2023-09-01T14:48:35Z")

</div>

I have a use case where I need to iterate over a set of static parameters. I’m not sure how to do that in a type stable way. A MWE is below: function foo(::Val{N}) where N n = 0 for i in 1:N n += sum(ntu…

---

## [Numerical solutions of eigenvalue problems with linear constrains](https://discourse.julialang.org/t/numerical-solutions-of-eigenvalue-problems-with-linear-constrains/103325)

<div class="topic-metadata">

**Author:** [@swish47](https://discourse.julialang.org/u/swish47)\
**Replies:** 6\
**Last updated:** [September 1, 2023, 2:34pm UTC](https://discourse.julialang.org/t/numerical-solutions-of-eigenvalue-problems-with-linear-constrains/103325 "2023-09-01T14:34:35Z")

</div>

As an example, one need to search the least or the least second eigenvalue and corresponded eigenvector of matrix A, under constraint Bx=c, where B is coefficient matrix, x is eigenvector under search, and c is a constan…

---

## [Optional parameter assignment map for modelingtoolkit system with defaults](https://discourse.julialang.org/t/optional-parameter-assignment-map-for-modelingtoolkit-system-with-defaults/103437)

<div class="topic-metadata">

**Author:** [@Jon\_Norberg](https://discourse.julialang.org/u/Jon_Norberg)\
**Replies:** 6\
**Last updated:** [September 1, 2023, 2:27pm UTC](https://discourse.julialang.org/t/optional-parameter-assignment-map-for-modelingtoolkit-system-with-defaults/103437 "2023-09-01T14:27:55Z")

</div>

Hi, how would I make the parameter map for running a modelingtoolkit system using an optional defaults approach like fun(sys::ODEsystem; p1=1,p2=0.2,p3=0.47) # Goal: end up with an assignment map that uses the defaul…

---

## [Failing to start a session with webdriver.jl](https://discourse.julialang.org/t/failing-to-start-a-session-with-webdriver-jl/103445)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 0\
**Last updated:** [September 1, 2023, 2:20pm UTC](https://discourse.julialang.org/t/failing-to-start-a-session-with-webdriver-jl/103445 "2023-09-01T14:20:07Z")

</div>

I am trying to do an web scrapping excercise using webdriver.jl to control the browser, but I got some problems to starting a session in Chrome and Firefox. This is the code I am using first case: chrome with local chro…

---

## [Add nested optimization problem in JuMP](https://discourse.julialang.org/t/add-nested-optimization-problem-in-jump/103378)

<div class="topic-metadata">

**Author:** [@leima0521](https://discourse.julialang.org/u/leima0521)\
**Replies:** 4\
**Last updated:** [September 1, 2023, 2:09pm UTC](https://discourse.julialang.org/t/add-nested-optimization-problem-in-jump/103378 "2023-09-01T14:09:55Z")

</div>

I want to include an inner loop optimization (a fixed point iteration algorithm) inside my current optimization problem. I cannot figure out how to make it work… Any help/guidance/advice is truly appreciated! The curren…

---

## [How to add line for indicating mean on histogram?](https://discourse.julialang.org/t/how-to-add-line-for-indicating-mean-on-histogram/103444)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 1:24pm UTC](https://discourse.julialang.org/t/how-to-add-line-for-indicating-mean-on-histogram/103444 "2023-09-01T13:24:00Z")

</div>

I have this histogram and want to add a vline to show mean value or median value. vline!(some\_value). is not working. I get this error. ERROR: Cannot convert Float64 to series data for plotting Stacktrace: \[1\] er…

---

## [Instability with Gauss-Hermite quadrature](https://discourse.julialang.org/t/instability-with-gauss-hermite-quadrature/103408)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 2:48pm UTC](https://discourse.julialang.org/t/instability-with-gauss-hermite-quadrature/103408 "2023-08-31T14:48:10Z")

</div>

Hello, I would like to approximate the log-density of a univariate distribution \\pi\_0 with a basis of Hermite polynomials. To compute the coefficients of the expansion, I am using the Gauss-Hermite quadrature. I am gett…

---

## [Accessing an artifact from a doctest](https://discourse.julialang.org/t/accessing-an-artifact-from-a-doctest/88392)

<div class="topic-metadata">

**Author:** [@mroavi](https://discourse.julialang.org/u/mroavi)\
**Replies:** 3\
**Last updated:** [September 1, 2023, 12:40pm UTC](https://discourse.julialang.org/t/accessing-an-artifact-from-a-doctest/88392 "2023-09-01T12:40:35Z")

</div>

I’m using Documenter.doctest(MyPackage; manual=false) inside runtests.jl to run the doctests in my package (as explained here). In one of the doctests, I need to access an artifact. e.g. artifact"myartifact" . I’m gettin…

---

## [Multiple dispatch "default case"?](https://discourse.julialang.org/t/multiple-dispatch-default-case/103368)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 8\
**Last updated:** [September 1, 2023, 12:17pm UTC](https://discourse.julialang.org/t/multiple-dispatch-default-case/103368 "2023-09-01T12:17:17Z")

</div>

I’m asking because I think I am probably going about this the wrong way. I have a “configuration file” with sections that I wanted to parse and store in a dictionary. I’m reading the sections like this: function read\_se…

---

## [Use ParallelStencil.jl with GPU](https://discourse.julialang.org/t/use-parallelstencil-jl-with-gpu/103439)

<div class="topic-metadata">

**Author:** [@chloisu](https://discourse.julialang.org/u/chloisu)\
**Replies:** 3\
**Last updated:** [September 1, 2023, 11:15am UTC](https://discourse.julialang.org/t/use-parallelstencil-jl-with-gpu/103439 "2023-09-01T11:15:12Z")

</div>

Hello, I’m very happy to use ParallelStencil.jl. The CPU version (i.e. USE\_GPU = false) works fine. However, when I try to run the example script diffusion3D\_novis\_noperf.jl with the GPU (i.e. USE\_GPU = true), I get the…

---

## [Max and min Gurobi constraint in Julia](https://discourse.julialang.org/t/max-and-min-gurobi-constraint-in-julia/103370)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 10:13am UTC](https://discourse.julialang.org/t/max-and-min-gurobi-constraint-in-julia/103370 "2023-09-01T10:13:21Z")

</div>

Hi All, MAX constraint: The constraint !\[\</span\>r = \\max\\{x\_1,\\ldots,x\_k,c\\}\<span\> MIN constraint: Similar to a MAX constraint, the constraint !\[\</span\>r = \\min\\{x\_1,\\ldots,x\_k,c\\}\<span\>\] can we code max and min cons…

---

## [Unable to access value in dict via known keys](https://discourse.julialang.org/t/unable-to-access-value-in-dict-via-known-keys/103434)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 6\
**Last updated:** [September 1, 2023, 9:35am UTC](https://discourse.julialang.org/t/unable-to-access-value-in-dict-via-known-keys/103434 "2023-09-01T09:35:15Z")

</div>

I have a loop which Starts with a vector input Computes a value based on vector Stores the value in a dict with the vector as the key Randomly removes a value from the vector and replaces it with another from a distrib…

---

## [Any reason to prefer \`::Type{T}\` over \`T::Type\`?](https://discourse.julialang.org/t/any-reason-to-prefer-type-t-over-t-type/103400)

<div class="topic-metadata">

**Author:** [@mwallerb](https://discourse.julialang.org/u/mwallerb)\
**Replies:** 4\
**Last updated:** [September 1, 2023, 5:56am UTC](https://discourse.julialang.org/t/any-reason-to-prefer-type-t-over-t-type/103400 "2023-09-01T05:56:24Z")

</div>

Suppose you have a function which takes a type as argument, say for example convert function. If you want to constrain this type, idiomatic Julia seems to be the following: convert(::Type{T}, x::Foo) where {T \<: Integer…

---

## [Regression Variance Inflation Factor (VIF)](https://discourse.julialang.org/t/regression-variance-inflation-factor-vif/60233)

<div class="topic-metadata">

**Author:** [@Storopoli](https://discourse.julialang.org/u/Storopoli)\
**Replies:** 7\
**Last updated:** [September 1, 2023, 5:54am UTC](https://discourse.julialang.org/t/regression-variance-inflation-factor-vif/60233 "2023-09-01T05:54:45Z")

</div>

Hello, how do I check for VIF Variance inflation factor - Wikipedia in a GLM.jl lm model? I went through the JuliaStats org repositories and package documentations and could not find anything.

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

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