# Latest

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

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

**Page:** 489

---

## [Case-insensitive prefix/suffix stripping](https://discourse.julialang.org/t/case-insensitive-prefix-suffix-stripping/109871)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 13\
**Last updated:** [February 8, 2024, 10:30pm UTC](https://discourse.julialang.org/t/case-insensitive-prefix-suffix-stripping/109871 "2024-02-08T22:30:19Z")

</div>

Sure, but where’s the fun in that? What’s not fun, is it’s kind of broken… I would want chopsuffix and chopprefix to work, well according to my definition, be able to to do e.g.: chopprefix(s, "http://", "https://")…

---

## [M. learning with regularization using Flux is too slow?](https://discourse.julialang.org/t/m-learning-with-regularization-using-flux-is-too-slow/105683)

<div class="topic-metadata">

**Author:** [@taka255](https://discourse.julialang.org/u/taka255)\
**Replies:** 5\
**Last updated:** [February 9, 2024, 12:32pm UTC](https://discourse.julialang.org/t/m-learning-with-regularization-using-flux-is-too-slow/105683 "2024-02-09T12:32:49Z")

</div>

I am trying to do supervised learning with Flux, as a way to add a regularization term to the loss function referring to the official documentation. I have tried two ways to add a regularization term to the loss functio…

---

## [Test a local package](https://discourse.julialang.org/t/test-a-local-package/109974)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 3\
**Last updated:** [February 9, 2024, 12:22pm UTC](https://discourse.julialang.org/t/test-a-local-package/109974 "2024-02-09T12:22:16Z")

</div>

Hi, I was wondering if there is something like cargo test in the Julia world? I would like to test a local package directly from the command line without having to open the REPL or having to type something like: julia…

---

## [Type-instability with DifferentialEquations.jl when using nested structs](https://discourse.julialang.org/t/type-instability-with-differentialequations-jl-when-using-nested-structs/109764)

<div class="topic-metadata">

**Author:** [@fgittins](https://discourse.julialang.org/u/fgittins)\
**Replies:** 6\
**Last updated:** [February 9, 2024, 10:24am UTC](https://discourse.julialang.org/t/type-instability-with-differentialequations-jl-when-using-nested-structs/109764 "2024-02-09T10:24:57Z")

</div>

Hi Julia community, I have been using DifferentialEquations.jl recently, which is an excellent package. In the spirit of writing performant Julia code, I have been trying to eliminate unnecessary heap allocations. I ha…

---

## [Is there a way to create task from not yet defined function without eval?](https://discourse.julialang.org/t/is-there-a-way-to-create-task-from-not-yet-defined-function-without-eval/109961)

<div class="topic-metadata">

**Author:** [@Dandan](https://discourse.julialang.org/u/Dandan)\
**Replies:** 6\
**Last updated:** [February 9, 2024, 7:39am UTC](https://discourse.julialang.org/t/is-there-a-way-to-create-task-from-not-yet-defined-function-without-eval/109961 "2024-02-09T07:39:56Z")

</div>

I have a code like this jobs = \[\] function main() while true sleep(1) for j in jobs @async j() end end end # f() = println("f") # this works @async main() f() = println("f")…

---

## [Eglot or language server: why "Possible method call error"?](https://discourse.julialang.org/t/eglot-or-language-server-why-possible-method-call-error/109879)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [February 9, 2024, 4:55am UTC](https://discourse.julialang.org/t/eglot-or-language-server-why-possible-method-call-error/109879 "2024-02-09T04:55:39Z")

</div>

Recently, I started to have a lot of green wiggly lines on emacs. For example, function read\_seq\_rec(ist, type::DataType) header = read(ist, Int32) buffer = read(ist, type) trailer = read(ist, Int32) return h…

---

## [Nan values when adding constraint to inversion](https://discourse.julialang.org/t/nan-values-when-adding-constraint-to-inversion/109922)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 11:20pm UTC](https://discourse.julialang.org/t/nan-values-when-adding-constraint-to-inversion/109922 "2024-02-08T23:20:29Z")

</div>

Hi Julia community, I have been trying to add a constraint to my inversion process: using Optimization, Optim, OptimizationOptimJL # Objective function function objfun(x, simulation, realsol) simulation.mo…

---

## [Show Combinatorics.jl some (easy?) love](https://discourse.julialang.org/t/show-combinatorics-jl-some-easy-love/108847)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 9:51pm UTC](https://discourse.julialang.org/t/show-combinatorics-jl-some-easy-love/108847 "2024-02-08T21:51:11Z")

</div>

Combinatorics.jl amassed a fair number of small PRs over the last 12 months. I see lots of passing tests. Could someone from JuliaMath have a look and merge anything that looks good to go?

---

## [Pkg.jl: Splitting the default environment in two](https://discourse.julialang.org/t/pkg-jl-splitting-the-default-environment-in-two/109950)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 8:41pm UTC](https://discourse.julialang.org/t/pkg-jl-splitting-the-default-environment-in-two/109950 "2024-02-08T20:41:07Z")

</div>

It’s useful to have an environment that’s inherited, for things like Revise.jl and OhMyREPL.jl. It’s also useful to have an environment that’s activated by default when running julia, for quick interactive sessions. Cur…

---

## [Use Dict to store tree with uninitialized tree nodes](https://discourse.julialang.org/t/use-dict-to-store-tree-with-uninitialized-tree-nodes/109895)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 4\
**Last updated:** [February 8, 2024, 8:03pm UTC](https://discourse.julialang.org/t/use-dict-to-store-tree-with-uninitialized-tree-nodes/109895 "2024-02-08T20:03:02Z")

</div>

I would like to use a Dict with string keys to store a tree. The relations between nodes evolve over time. So they have to be left uninitialized for the most part during initial construction. I read about inner and oute…

---

## [JuMP: it is possible to obtain the description of solver parameters without accessing the official documentation directly?](https://discourse.julialang.org/t/jump-it-is-possible-to-obtain-the-description-of-solver-parameters-without-accessing-the-official-documentation-directly/109935)

<div class="topic-metadata">

**Author:** [@Alex\_73](https://discourse.julialang.org/u/Alex_73)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 7:02pm UTC](https://discourse.julialang.org/t/jump-it-is-possible-to-obtain-the-description-of-solver-parameters-without-accessing-the-official-documentation-directly/109935 "2024-02-08T19:02:51Z")

</div>

Hi, I’m new to the JuMP package. I took a look at the documentation (JuMP · JuMP) and I couldn’t identify if there is a way to access the description of the solver parameters via JuMP. For example, I would like to know …

---

## [Julia Dependencies for PYSR](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927)

<div class="topic-metadata">

**Author:** [@ranjan509](https://discourse.julialang.org/u/ranjan509)\
**Replies:** 35\
**Last updated:** [February 8, 2024, 5:49pm UTC](https://discourse.julialang.org/t/julia-dependencies-for-pysr/105927 "2024-02-08T17:49:09Z")

</div>

I am trying to install Julia dependencies for PYSR and I am getting following message . HOW DO I RESOLVE THIS? JuliaError: Exception ‘GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit…

---

## [Clarify the documentation about modifying module variables](https://discourse.julialang.org/t/clarify-the-documentation-about-modifying-module-variables/109668)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 15\
**Last updated:** [February 8, 2024, 5:39pm UTC](https://discourse.julialang.org/t/clarify-the-documentation-about-modifying-module-variables/109668 "2024-02-08T17:39:04Z")

</div>

There is weird description without any example in the documentation. Julia 1.10 Global-Scope definition Note that while variable bindings can be read externally, they can only be changed within the module to which they…

---

## [Questions on the versioning semantics of Julia packages](https://discourse.julialang.org/t/questions-on-the-versioning-semantics-of-julia-packages/109926)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 5\
**Last updated:** [February 8, 2024, 4:48pm UTC](https://discourse.julialang.org/t/questions-on-the-versioning-semantics-of-julia-packages/109926 "2024-02-08T16:48:18Z")

</div>

I read this post that tells the rules of Julia package versioning: But didn’t get under what circumstances will the package version string turn from a pre-1.0 form to a post-1.0 form (0.y.z → 1.0.0)? And does Julia’s o…

---

## [Method Error: No method Matching ZeroTangent()](https://discourse.julialang.org/t/method-error-no-method-matching-zerotangent/109913)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 4:27pm UTC](https://discourse.julialang.org/t/method-error-no-method-matching-zerotangent/109913 "2024-02-08T16:27:34Z")

</div>

Here is the dummy Python code that is calling the Julia script (julia.jl) import julia julia.install() from julia.api import Julia julia.install jl = Julia(compiled\_modules=False) from julia import Main import numpy as…

---

## [Fillstyle not supported with Plots.PlotlyBackend()](https://discourse.julialang.org/t/fillstyle-not-supported-with-plots-plotlybackend/109932)

<div class="topic-metadata">

**Author:** [@hannaekfa](https://discourse.julialang.org/u/hannaekfa)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 4:07pm UTC](https://discourse.julialang.org/t/fillstyle-not-supported-with-plots-plotlybackend/109932 "2024-02-08T16:07:44Z")

</div>

Hi! I am trying to create a fillranged plot using the plotly backend with a fillstyle according to the series attributes list at Series Attributes · Plots. I run: plotly() plot(zeros(100), fillrange=rand(100), fillst…

---

## [Why Nelder-Mead minimization without minimal property check?](https://discourse.julialang.org/t/why-nelder-mead-minimization-without-minimal-property-check/102236)

<div class="topic-metadata">

**Author:** [@dietrich](https://discourse.julialang.org/u/dietrich)\
**Replies:** 27\
**Last updated:** [February 8, 2024, 2:33pm UTC](https://discourse.julialang.org/t/why-nelder-mead-minimization-without-minimal-property-check/102236 "2024-02-08T14:33:57Z")

</div>

In a model for biology I used a code written in f90 that worked fine, but for greater readability by the future readers of the corresponding paper, I translated it into Julia. In my f90 code, I used minimization routine…

---

## [GeoData: "array has wrong ordering"](https://discourse.julialang.org/t/geodata-array-has-wrong-ordering/109916)

<div class="topic-metadata">

**Author:** [@Aqeel\_Abbas](https://discourse.julialang.org/u/Aqeel_Abbas)\
**Replies:** 6\
**Last updated:** [February 8, 2024, 1:56pm UTC](https://discourse.julialang.org/t/geodata-array-has-wrong-ordering/109916 "2024-02-08T13:56:48Z")

</div>

Dear All, I am a new user of Julia following this Example. I got an error using the below code, any suggestions or comments will be appreciated : using GeophysicalModelGenerator, GeoDatasets,DelimitedFiles Load data: …

---

## [Turing support for exact inference (over discrete supports)](https://discourse.julialang.org/t/turing-support-for-exact-inference-over-discrete-supports/70533)

<div class="topic-metadata">

**Author:** [@jmuchovej](https://discourse.julialang.org/u/jmuchovej)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 12:29pm UTC](https://discourse.julialang.org/t/turing-support-for-exact-inference-over-discrete-supports/70533 "2024-02-08T12:29:16Z")

</div>

I’m working on a “Rational Speech Acts” (RSA) model. Essentially, RSA is a recursive process where you call distributions over states of the world or utterances made. So, in this case I have the following setup: functi…

---

## [When should allocations be documented?](https://discourse.julialang.org/t/when-should-allocations-be-documented/109928)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 12:58pm UTC](https://discourse.julialang.org/t/when-should-allocations-be-documented/109928 "2024-02-08T12:58:13Z")

</div>

I’m making a PR to Base, and before the code there had avoidable allocations. I’m thinking mostly about Base, but people can answer about packages too. If you have no allocations, ever, e.g. not dependent on code path, …

---

## [On building symbolic integrators, can we do better than RUBI?](https://discourse.julialang.org/t/on-building-symbolic-integrators-can-we-do-better-than-rubi/109923)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 12:22pm UTC](https://discourse.julialang.org/t/on-building-symbolic-integrators-can-we-do-better-than-rubi/109923 "2024-02-08T12:22:58Z")

</div>

Rule based integration could be considered state of the art, with a long collections of rules. In fact, there is a plan to integrate it in Symbolics.jl However, let’s have a second thought on it. Can we do better? Is c…

---

## [Plots.jl with inset](https://discourse.julialang.org/t/plots-jl-with-inset/102936)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 10\
**Last updated:** [February 8, 2024, 12:39pm UTC](https://discourse.julialang.org/t/plots-jl-with-inset/102936 "2024-02-08T12:39:09Z")

</div>

I’m trying to use Plots.jl with an inset. For simplicity, consider the plot x=range(0,3pi/2,length=100) plot(x,\[sin.(x),sinc.(x)\], label=\["sin" "sinc"\]) Suppose I want to insert an inset in the lower left corner of …

---

## [ForwardDiff.jl returns NaNs for calculating gradient of simulation model](https://discourse.julialang.org/t/forwarddiff-jl-returns-nans-for-calculating-gradient-of-simulation-model/109796)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 12:45pm UTC](https://discourse.julialang.org/t/forwarddiff-jl-returns-nans-for-calculating-gradient-of-simulation-model/109796 "2024-02-08T12:45:28Z")

</div>

Hello, this is a follow up post to Differential evolution MCMC in Julia? I want to try HMC/Nuts (via DynamicHMC.jl or AdvancedHMC.jl) because the algorithms may be more efficient than Differential Evolution MCMC. I tr…

---

## [Vector of vectors non-allocating](https://discourse.julialang.org/t/vector-of-vectors-non-allocating/109762)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 10\
**Last updated:** [February 8, 2024, 12:28pm UTC](https://discourse.julialang.org/t/vector-of-vectors-non-allocating/109762 "2024-02-08T12:28:11Z")

</div>

How do I make the function that follows non-allocating? function genvec2(N) result = \[zeros(Int64,2) for i=1:N\] for i=1:N result\[i\] = \[2\*i, 2i+1\] end return result end

---

## [Problems when running conda environment from Julia](https://discourse.julialang.org/t/problems-when-running-conda-environment-from-julia/108988)

<div class="topic-metadata">

**Author:** [@CrisCool](https://discourse.julialang.org/u/CrisCool)\
**Replies:** 3\
**Last updated:** [February 8, 2024, 12:16pm UTC](https://discourse.julialang.org/t/problems-when-running-conda-environment-from-julia/108988 "2024-02-08T12:16:40Z")

</div>

Hei julians I need help! I’m running external commands from julia, using run(pipeline(Cmd)). The commands (Cmd) are of the type: conda run -n conda\_env external\_tool. I have a julia program where I’m running several …

---

## [How to access optional input functions in sundials.jl IDA solver](https://discourse.julialang.org/t/how-to-access-optional-input-functions-in-sundials-jl-ida-solver/109862)

<div class="topic-metadata">

**Author:** [@Aniket\_Patra](https://discourse.julialang.org/u/Aniket_Patra)\
**Replies:** 4\
**Last updated:** [February 8, 2024, 12:10pm UTC](https://discourse.julialang.org/t/how-to-access-optional-input-functions-in-sundials-jl-ida-solver/109862 "2024-02-08T12:10:07Z")

</div>

Hello! I am using IDA to solve a system of stiff differential equations. I know that this particular system of equations is singular. However, I am trying to understand the singularity better. It seems that at some poi…

---

## [Why is garbage collection called here?](https://discourse.julialang.org/t/why-is-garbage-collection-called-here/109870)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 11\
**Last updated:** [February 8, 2024, 11:02am UTC](https://discourse.julialang.org/t/why-is-garbage-collection-called-here/109870 "2024-02-08T11:02:48Z")

</div>

Hello! I’ve been hitting my head on the wall for a few days now. I have a function which when using @profview seems to call the garbage collection (red bar), but it does not allocate. It is updatexij! (which is resized …

---

## [JuMP: Constraint with a huge expression](https://discourse.julialang.org/t/jump-constraint-with-a-huge-expression/108456)

<div class="topic-metadata">

**Author:** [@A\_C](https://discourse.julialang.org/u/A_C)\
**Replies:** 25\
**Last updated:** [February 8, 2024, 10:46am UTC](https://discourse.julialang.org/t/jump-constraint-with-a-huge-expression/108456 "2024-02-08T10:46:26Z")

</div>

I am developing a package for Direct Optimal Control using JuMP. Function tracing is used heavily to formulate the problems. It works well for small to medium sized problems. However, recently I tried one largish example…

---

## [How to use non-linear solvers with JuMP using AmplNLWriter](https://discourse.julialang.org/t/how-to-use-non-linear-solvers-with-jump-using-amplnlwriter/109900)

<div class="topic-metadata">

**Author:** [@Lemma](https://discourse.julialang.org/u/Lemma)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 10:09am UTC](https://discourse.julialang.org/t/how-to-use-non-linear-solvers-with-jump-using-amplnlwriter/109900 "2024-02-08T10:09:04Z")

</div>

When I try to solve any models using AmplNLWriter to call the non-linear solvers, and then call optimize! solve the problem nothing seems to happen. I use the following code: model = Model(() -\> AmplNLWriter.Optimizer(B…

---

## [Jolin.io is the first Sponsor of JuliaCon 2024](https://discourse.julialang.org/t/jolin-io-is-the-first-sponsor-of-juliacon-2024/109917)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 10:06am UTC](https://discourse.julialang.org/t/jolin-io-is-the-first-sponsor-of-juliacon-2024/109917 "2024-02-08T10:06:40Z")

</div>

I am happy to announce that Jolin.io Cloud is the first fully committed sponsor to JuliaCon Global 2024. This is the third JuliaCon that Jolin.io has sponsored including JuliaCon Global 2023 and JuliaCon Local Eindhoven …

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

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