# Latest

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

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

**Page:** 204

---

## [AC voltage component: system is unbalanced](https://discourse.julialang.org/t/ac-voltage-component-system-is-unbalanced/126904)

<div class="topic-metadata">

**Author:** [@sasrigais](https://discourse.julialang.org/u/sasrigais)\
**Replies:** 3\
**Last updated:** [March 13, 2025, 4:47pm UTC](https://discourse.julialang.org/t/ac-voltage-component-system-is-unbalanced/126904 "2025-03-13T16:47:07Z")

</div>

Hi there! I am trying to implement an AC voltage component, similar to Voltage from the standard library. When I try to @mtkbuild the component on its own, I get an ExtraVariablesSystemException. However, when used in …

---

## [CairoMakie Horizontal Colorbar](https://discourse.julialang.org/t/cairomakie-horizontal-colorbar/126919)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 3\
**Last updated:** [March 13, 2025, 3:43pm UTC](https://discourse.julialang.org/t/cairomakie-horizontal-colorbar/126919 "2025-03-13T15:43:34Z")

</div>

I cannot seem to find good documentation for how to make a horizontal color bar in CairoMakie. I found the vertical=false option, but I cannot seem to create a gap between the color bar and the plot (see example below) a…

---

## [Usage of Tullio.jl](https://discourse.julialang.org/t/usage-of-tullio-jl/126908)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 1\
**Last updated:** [March 13, 2025, 3:37pm UTC](https://discourse.julialang.org/t/usage-of-tullio-jl/126908 "2025-03-13T15:37:49Z")

</div>

I have a really big code, that is separated into bunch of functions, modules, and files. I would like to implement Tullio.jl to optimize loops and array operations. Normally I’m using @tullio macro before the loop or ar…

---

## [Matrix view based on BitVector?](https://discourse.julialang.org/t/matrix-view-based-on-bitvector/126922)

<div class="topic-metadata">

**Author:** [@AdaemmerP](https://discourse.julialang.org/u/AdaemmerP)\
**Replies:** 1\
**Last updated:** [March 13, 2025, 3:15pm UTC](https://discourse.julialang.org/t/matrix-view-based-on-bitvector/126922 "2025-03-13T15:15:17Z")

</div>

I have a pre-allocated BitVector that fills randomly inside a loop. Based on that BitVector, I want to create a view of a Matrix but it allocates. Is there a workaround? A simple example: using Chairmarks ix = BitVecto…

---

## [Reformulation Perspectification Technique: an example with a nonconvex feasible region](https://discourse.julialang.org/t/reformulation-perspectification-technique-an-example-with-a-nonconvex-feasible-region/126915)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 0\
**Last updated:** [March 13, 2025, 1:04pm UTC](https://discourse.julialang.org/t/reformulation-perspectification-technique-an-example-with-a-nonconvex-feasible-region/126915 "2025-03-13T13:04:53Z")

</div>

The nonconvex problem (NC) is \\min\_x \\{L\\,e^{x\_2} | L:= x\_1 + x\_2 + 1 \\ge 0, x\_1 x\_2 \\ge -1\\} It’s clear that the objective function is “linear times convex”, which is suitable for perspectification. And the feasible r…

---

## [How to apply a small anonymous function defined in a yaml file?](https://discourse.julialang.org/t/how-to-apply-a-small-anonymous-function-defined-in-a-yaml-file/126874)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 11\
**Last updated:** [March 13, 2025, 12:20pm UTC](https://discourse.julialang.org/t/how-to-apply-a-small-anonymous-function-defined-in-a-yaml-file/126874 "2025-03-13T12:20:12Z")

</div>

I am trying to define simple anonimous “transformation” functions (something like “x → x/100”) in a yaml file (in a dictionary keyed by climatic variables) and then trying to apply the transformation to a Raster file. I …

---

## [\[ANN\] SymbolicRegression.jl - distributed symbolic regression](https://discourse.julialang.org/t/ann-symbolicregression-jl-distributed-symbolic-regression/54853)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 22\
**Last updated:** [March 13, 2025, 10:36am UTC](https://discourse.julialang.org/t/ann-symbolicregression-jl-distributed-symbolic-regression/54853 "2025-03-13T10:36:46Z")

</div>

Excited to announce SymbolicRegression.jl, a high-performance package for learning equations via regularized evolution! It supports distributed computing, allows user-defined operators (including discontinuous ones), and…

---

## [Fetching the latest value from external sources using Channel](https://discourse.julialang.org/t/fetching-the-latest-value-from-external-sources-using-channel/126901)

<div class="topic-metadata">

**Author:** [@leejm516](https://discourse.julialang.org/u/leejm516)\
**Replies:** 0\
**Last updated:** [March 13, 2025, 9:54am UTC](https://discourse.julialang.org/t/fetching-the-latest-value-from-external-sources-using-channel/126901 "2025-03-13T09:54:14Z")

</div>

Hi! Sorry for my bad English to describe the title. I am trying to make a small code which fetches a value from a MCU (Arduino, ESP32, etc.) upon request. The MCU periodically saves the sensor value measured into its …

---

## [\[Portland, OR - Fri March 14\] Pi Day Informal Julia Users gathering](https://discourse.julialang.org/t/portland-or-fri-march-14-pi-day-informal-julia-users-gathering/126899)

<div class="topic-metadata">

**Author:** [@Keno](https://discourse.julialang.org/u/Keno)\
**Replies:** 0\
**Last updated:** [March 13, 2025, 8:03am UTC](https://discourse.julialang.org/t/portland-or-fri-march-14-pi-day-informal-julia-users-gathering/126899 "2025-03-13T08:03:38Z")

</div>

@jakobjpeters and I will be hosting an informal gathering of Julia users in Portland, OR, this Friday, March 14th at 5pm at Veggie Grill Downtown. We’re expecting this to be relatively small, so we didn’t reserve anyth…

---

## [How to solve a nonlinear problem](https://discourse.julialang.org/t/how-to-solve-a-nonlinear-problem/126877)

<div class="topic-metadata">

**Author:** [@andrea\_bertozzi](https://discourse.julialang.org/u/andrea_bertozzi)\
**Replies:** 5\
**Last updated:** [March 13, 2025, 9:27am UTC](https://discourse.julialang.org/t/how-to-solve-a-nonlinear-problem/126877 "2025-03-13T09:27:41Z")

</div>

I have the following code and I am trying to solve a nonlinear problem using MAT using NonlinearSolve using FiniteDifferences include("../src/Tether\_quasistatic.jl") function get\_init\_cond(filename) vars = matread(…

---

## [Mosek interior point stopping criterion and basis identification](https://discourse.julialang.org/t/mosek-interior-point-stopping-criterion-and-basis-identification/126863)

<div class="topic-metadata">

**Author:** [@rpetit](https://discourse.julialang.org/u/rpetit)\
**Replies:** 4\
**Last updated:** [March 13, 2025, 9:22am UTC](https://discourse.julialang.org/t/mosek-interior-point-stopping-criterion-and-basis-identification/126863 "2025-03-13T09:22:18Z")

</div>

Hi! I have noticed a weird behaviour of Mosek: when solving a linear program with the interior-point optimizer, the primal and dual feasibility tolerances do not seem to be taken into account when basis identification i…

---

## [Microsoft Defender stopping me at Github links here](https://discourse.julialang.org/t/microsoft-defender-stopping-me-at-github-links-here/126896)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 0\
**Last updated:** [March 13, 2025, 6:20am UTC](https://discourse.julialang.org/t/microsoft-defender-stopping-me-at-github-links-here/126896 "2025-03-13T06:20:47Z")

</div>

It’s not every time I click on a Github link here, but for the last week, Windows Defender has been stopping me to warn me about phishing risks. Kudos to Microsoft for being a little honest and unintentionally funny.

---

## [Async but ordered task queue](https://discourse.julialang.org/t/async-but-ordered-task-queue/126864)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 1\
**Last updated:** [March 13, 2025, 5:33am UTC](https://discourse.julialang.org/t/async-but-ordered-task-queue/126864 "2025-03-13T05:33:54Z")

</div>

I want to queue up some async tasks: however i’d like to push them in queues such that the order within a queue is conserved. Concretely, my problem are async plots into a Makie axis. My starting point is something like…

---

## [Multithreading broadcasted array ops](https://discourse.julialang.org/t/multithreading-broadcasted-array-ops/126842)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 4\
**Last updated:** [March 13, 2025, 3:05am UTC](https://discourse.julialang.org/t/multithreading-broadcasted-array-ops/126842 "2025-03-13T03:05:38Z")

</div>

What’s best practice for multithreading broadcasted array ops? I know of various multithreaded map functions but wish for a simple macro like @threads A.+B doesn’t seem to work? Even better why can’t compiler automatic…

---

## [How to avoid code getting precompiled because it gets executed while the package is being defined?](https://discourse.julialang.org/t/how-to-avoid-code-getting-precompiled-because-it-gets-executed-while-the-package-is-being-defined/126890)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [March 13, 2025, 2:12am UTC](https://discourse.julialang.org/t/how-to-avoid-code-getting-precompiled-because-it-gets-executed-while-the-package-is-being-defined/126890 "2025-03-13T02:12:17Z")

</div>

Often times I have some code in a package that executes only during precompilation, not at run time. AFAIK Julia saves the MethodInstances of all such compiled Methods into the precompilation files, for some reason. How …

---

## [Is there a way to automatically define default methods for a type wrapper?](https://discourse.julialang.org/t/is-there-a-way-to-automatically-define-default-methods-for-a-type-wrapper/126854)

<div class="topic-metadata">

**Author:** [@TimHargreaves](https://discourse.julialang.org/u/TimHargreaves)\
**Replies:** 4\
**Last updated:** [March 12, 2025, 11:30pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-automatically-define-default-methods-for-a-type-wrapper/126854 "2025-03-12T23:30:46Z")

</div>

Suppose a concrete type Foo is defined in another package that is unlikely to want any changes made to it. There are many methods defined using Foo. I would like to create a type Bar that is essentially the same as Foo …

---

## [Calling C/Fortran program that embeds Julia in Julia](https://discourse.julialang.org/t/calling-c-fortran-program-that-embeds-julia-in-julia/126839)

<div class="topic-metadata">

**Author:** [@AreWeDreaming](https://discourse.julialang.org/u/AreWeDreaming)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 10:52pm UTC](https://discourse.julialang.org/t/calling-c-fortran-program-that-embeds-julia-in-julia/126839 "2025-03-12T22:52:24Z")

</div>

We have a Julia framework that needs to interact with a lot of legacy Fortran/C(++) applications. Instead of manually preparing the proper interface for the applications which involves lots of manual type conversions, we…

---

## [Wondering if extending Base: max with max(a) = max(a...) would be safe?!](https://discourse.julialang.org/t/wondering-if-extending-base-max-with-max-a-max-a-would-be-safe/126885)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 6\
**Last updated:** [March 12, 2025, 10:02pm UTC](https://discourse.julialang.org/t/wondering-if-extending-base-max-with-max-a-max-a-would-be-safe/126885 "2025-03-12T22:02:45Z")

</div>

So I am wondering if import Base: max max(a) = max(a...) export max would be safe, after all I am extending the “concept” to vectors or NTuples. Bu then it may well be a rather stupid thing to do, and have serious side…

---

## [Reinit \`tdir\` in ODEIntegrator](https://discourse.julialang.org/t/reinit-tdir-in-odeintegrator/126865)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 8:51pm UTC](https://discourse.julialang.org/t/reinit-tdir-in-odeintegrator/126865 "2025-03-12T20:51:59Z")

</div>

Hi @ChrisRackauckas , is there a way to change integration direction with reinit! when solving an ODE? Or the only way is to remake the ODEProblem? E.g.: using OrdinaryDiffEq prob = ODEProblem((du, u, p, t) -\> du\[1\] =…

---

## [How to obtain U^-1 factor from sparse Cholesky factorization?](https://discourse.julialang.org/t/how-to-obtain-u-1-factor-from-sparse-cholesky-factorization/126887)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 8:14pm UTC](https://discourse.julialang.org/t/how-to-obtain-u-1-factor-from-sparse-cholesky-factorization/126887 "2025-03-12T20:14:17Z")

</div>

Given a dense positive semi-definite symmetric matrix A, we can easily obtain the U^{-1} factor from the Cholesky factorization object: julia\> using LinearAlgebra julia\> A = Symmetric(\[2 1; 1 2\]) 2×2 Symmetric{Int64, M…

---

## [In plots, how do I add error bars in both x and y direction](https://discourse.julialang.org/t/in-plots-how-do-i-add-error-bars-in-both-x-and-y-direction/126886)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [March 12, 2025, 6:50pm UTC](https://discourse.julialang.org/t/in-plots-how-do-i-add-error-bars-in-both-x-and-y-direction/126886 "2025-03-12T18:50:25Z")

</div>

I can plot error bars in y axis, but if I want in x axis as well. I.e. something like this: Very much ideally I would be interested in how to do this in Plots.jl.

---

## [ODE solution positivity for systems biology models](https://discourse.julialang.org/t/ode-solution-positivity-for-systems-biology-models/126601)

<div class="topic-metadata">

**Author:** [@homegnome0](https://discourse.julialang.org/u/homegnome0)\
**Replies:** 24\
**Last updated:** [March 12, 2025, 6:32pm UTC](https://discourse.julialang.org/t/ode-solution-positivity-for-systems-biology-models/126601 "2025-03-12T18:32:11Z")

</div>

In solving a system of biological ODEs, for certain parameter values I am getting solutions that “erroneously” go negative. However, I found this discussion on the DifferentialEquations.jl FAQ page: “The following set o…

---

## [Optimizing or replacing IF-ELSEIF-ELSE statements](https://discourse.julialang.org/t/optimizing-or-replacing-if-elseif-else-statements/126867)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 9\
**Last updated:** [March 12, 2025, 4:30pm UTC](https://discourse.julialang.org/t/optimizing-or-replacing-if-elseif-else-statements/126867 "2025-03-12T16:30:58Z")

</div>

I am developing a simulator but I dont have a lot experience and tricks about Julia. I have a case that seems like it has some kind of other way around that is much more efficient and optimized. I will give you and exam…

---

## [Just found this package for computationally expensive climate downscaling.. in R!](https://discourse.julialang.org/t/just-found-this-package-for-computationally-expensive-climate-downscaling-in-r/126866)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 4:26pm UTC](https://discourse.julialang.org/t/just-found-this-package-for-computationally-expensive-climate-downscaling-in-r/126866 "2025-03-12T16:26:01Z")

</div>

From the readme of ClimDown, a Nature-published package to downscale climatic data: “On our Linux systems, such runs can take up to 7 days to complete. \[…\] In general, this downscaling technique is very expensive for l…

---

## [New improved release of \`LocalFilters\`](https://discourse.julialang.org/t/new-improved-release-of-localfilters/126875)

<div class="topic-metadata">

**Author:** [@Eric\_Thiebaut](https://discourse.julialang.org/u/Eric_Thiebaut)\
**Replies:** 0\
**Last updated:** [March 12, 2025, 3:27pm UTC](https://discourse.julialang.org/t/new-improved-release-of-localfilters/126875 "2025-03-12T15:27:35Z")

</div>

A new release (2.1.0) of the LocalFilters package is available. The API has been improved to make it clearer, more facilities (localmap and localreduce) are provided for local filtering operations, forward filtering is f…

---

## [Julia's Design Choices for Keyword Arguments in Function Calls and Broadcasting](https://discourse.julialang.org/t/julias-design-choices-for-keyword-arguments-in-function-calls-and-broadcasting/126845)

<div class="topic-metadata">

**Author:** [@vishalpaudel](https://discourse.julialang.org/u/vishalpaudel)\
**Replies:** 4\
**Last updated:** [March 12, 2025, 2:58pm UTC](https://discourse.julialang.org/t/julias-design-choices-for-keyword-arguments-in-function-calls-and-broadcasting/126845 "2025-03-12T14:58:39Z")

</div>

Hello Julia community, hello internals folks! I’ve been increasingly appreciating Julia’s thoughtful design decisions. Recently, I noticed something interesting about keyword arguments and why positional arguments must …

---

## [Failure of CI job](https://discourse.julialang.org/t/failure-of-ci-job/126826)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [March 12, 2025, 2:53pm UTC](https://discourse.julialang.org/t/failure-of-ci-job/126826 "2025-03-12T14:53:45Z")

</div>

Since today, the job that builds the documentation fails: Why? It used to work until now. What has changed? Error message: ERROR: LoadError: ArgumentError: Path to conda environment is not valid: /home/runner/.juli…

---

## [Distributed.jl vs MPI.jl](https://discourse.julialang.org/t/distributed-jl-vs-mpi-jl/71315)

<div class="topic-metadata">

**Author:** [@Niceno](https://discourse.julialang.org/u/Niceno)\
**Replies:** 26\
**Last updated:** [January 31, 2022, 4:13am UTC](https://discourse.julialang.org/t/distributed-jl-vs-mpi-jl/71315 "2022-01-31T04:13:13Z")

</div>

Hi all, I am relatively new to Julia, but have ported one of my older programs from Fortran to Julia. I picked a program from my collection which doesn’t have any parallelims in it with the intention to implement it fr…

---

## [Generalised eigenvalue problem with BigFloat](https://discourse.julialang.org/t/generalised-eigenvalue-problem-with-bigfloat/126197)

<div class="topic-metadata">

**Author:** [@fionah](https://discourse.julialang.org/u/fionah)\
**Replies:** 11\
**Last updated:** [March 12, 2025, 12:33pm UTC](https://discourse.julialang.org/t/generalised-eigenvalue-problem-with-bigfloat/126197 "2025-03-12T12:33:40Z")

</div>

I am trying to solve the generalised eigenvalue problem in arbitrary precision, using the BigFloat data type. using LinearAlgebra using GenericLinearAlgebra setprecision(128) println(eigen(Hermitian(rand(BigFloat, 2, …

---

## [ODE returning f(t) = f(0) always](https://discourse.julialang.org/t/ode-returning-f-t-f-0-always/126757)

<div class="topic-metadata">

**Author:** [@matyaspayn](https://discourse.julialang.org/u/matyaspayn)\
**Replies:** 17\
**Last updated:** [March 12, 2025, 12:19pm UTC](https://discourse.julialang.org/t/ode-returning-f-t-f-0-always/126757 "2025-03-12T12:19:28Z")

</div>

Hello, I am currently trying to solve an ode where I have u(t) as a vector of length 1024, and I have du/dt = -u + AMf(u), where M is a matrix of 1024x1024. I specify some random u0, and solve the problem. I get a soluti…

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

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