# Latest

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

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

**Page:** 554

---

## [Cache results between function calls in Optimization.jl](https://discourse.julialang.org/t/cache-results-between-function-calls-in-optimization-jl/94964)

<div class="topic-metadata">

**Author:** [@verflieger](https://discourse.julialang.org/u/verflieger)\
**Replies:** 11\
**Last updated:** [May 1, 2023, 8:26pm UTC](https://discourse.julialang.org/t/cache-results-between-function-calls-in-optimization-jl/94964 "2023-05-01T20:26:28Z")

</div>

I want to use a cost function and constraints depending on the solution of an ODE. This is costly to evaluate and hence I’d like to cache the result for function calls with the same parameters. For that, I wanted to use …

---

## [Passing variables to @macros](https://discourse.julialang.org/t/passing-variables-to-macros/106245)

<div class="topic-metadata">

**Author:** [@preston-johnson](https://discourse.julialang.org/u/preston-johnson)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 3:11pm UTC](https://discourse.julialang.org/t/passing-variables-to-macros/106245 "2023-11-15T15:11:37Z")

</div>

Greetings, friends: (Preface) Excel is outdated. I thought I loved LET() and LAMBDA(), but I can no longer spend my waking life with VBA and reflectionless formulas. Just in the same way that Julia was created to satis…

---

## [Turing with multiple replicates of data](https://discourse.julialang.org/t/turing-with-multiple-replicates-of-data/96340)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [March 20, 2023, 2:10pm UTC](https://discourse.julialang.org/t/turing-with-multiple-replicates-of-data/96340 "2023-03-20T14:10:27Z")

</div>

I have a simple model for which I have single data to be used in inference. I’m new to julia. Right now I’m setting up inference using turing.jl . My Turing model looks like this : @model function fit\_(data1, prob) …

---

## [Makie: row 2 colorbar without affecting row 1](https://discourse.julialang.org/t/makie-row-2-colorbar-without-affecting-row-1/106218)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 6\
**Last updated:** [November 15, 2023, 2:11pm UTC](https://discourse.julialang.org/t/makie-row-2-colorbar-without-affecting-row-1/106218 "2023-11-15T14:11:13Z")

</div>

I’m plotting two equal-sized graphs on the first row (fig\[1,1\] and fig\[1,2\]) and a single contour plot on the second row (fig\[2,1\]). My question is, how do you plot the colorbar for the contour plot? What is the standar…

---

## [Heterogeneous space](https://discourse.julialang.org/t/heterogeneous-space/106262)

<div class="topic-metadata">

**Author:** [@Kemper](https://discourse.julialang.org/u/Kemper)\
**Replies:** 2\
**Last updated:** [November 15, 2023, 1:52pm UTC](https://discourse.julialang.org/t/heterogeneous-space/106262 "2023-11-15T13:52:15Z")

</div>

Hello! If I have a simple model in Agents.jl, where Agents have to find food. And now I would like to add obsticles, like lets say a river, how can I do that? Is there a way to use a grid as space which has e.g. ones …

---

## [Making @benchmark outputs statistically meaningful, and actionable](https://discourse.julialang.org/t/making-benchmark-outputs-statistically-meaningful-and-actionable/104256)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 123\
**Last updated:** [November 15, 2023, 1:01pm UTC](https://discourse.julialang.org/t/making-benchmark-outputs-statistically-meaningful-and-actionable/104256 "2023-11-15T13:01:44Z")

</div>

I see a huge disparity in the output of different runs of @benchmark, for the same code. See the following two outputs, made consecutively, with zero code changes and no restarting Julia: BenchmarkTools.Trial: 161 sampl…

---

## [Package manager](https://discourse.julialang.org/t/package-manager/106247)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [November 15, 2023, 12:08pm UTC](https://discourse.julialang.org/t/package-manager/106247 "2023-11-15T12:08:49Z")

</div>

When should I use: up --project in the package manager? Advantages/ disadvantages?

---

## [\[ANN\] Arblib.jl](https://discourse.julialang.org/t/ann-arblib-jl/106160)

<div class="topic-metadata">

**Author:** [@joeldahne](https://discourse.julialang.org/u/joeldahne)\
**Replies:** 7\
**Last updated:** [November 15, 2023, 11:20am UTC](https://discourse.julialang.org/t/ann-arblib-jl/106160 "2023-11-15T11:20:03Z")

</div>

Arblib.jl Hello everyone! I’m pleased to announce the release of Arblib.jl version 1.0.0! Arblib.jl is a wrapper of Arb, a library for rigorous, arbitrary precision, numerics based on ball arithmetic. Since a few months …

---

## [Optim.jl not honoring convergence criteria](https://discourse.julialang.org/t/optim-jl-not-honoring-convergence-criteria/105723)

<div class="topic-metadata">

**Author:** [@Gbenga\_Fabusola](https://discourse.julialang.org/u/Gbenga_Fabusola)\
**Replies:** 6\
**Last updated:** [November 15, 2023, 11:18am UTC](https://discourse.julialang.org/t/optim-jl-not-honoring-convergence-criteria/105723 "2023-11-15T11:18:41Z")

</div>

I am trying to incorporate an early stopping to my code using Optim.jl but the specifications are not followed and I was hoping someone might know why. I have an example of this here. function toy(X) x, y = X cost = …

---

## [Plots: adding plots to \`twinx()\` axis](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 6\
**Last updated:** [November 15, 2023, 10:19am UTC](https://discourse.julialang.org/t/plots-adding-plots-to-twinx-axis/106223 "2023-11-15T10:19:04Z")

</div>

I’m trying to construct a plot using the Plots package with a normal axis and a twinx() axis. Then I want to add plots to both axes, but it doesn’t seem to work: using Plots plot(sin,lc=:red, legend=:left) fg = plot!(tw…

---

## [NLsolve problem](https://discourse.julialang.org/t/nlsolve-problem/106222)

<div class="topic-metadata">

**Author:** [@GianmarcoPreso](https://discourse.julialang.org/u/GianmarcoPreso)\
**Replies:** 5\
**Last updated:** [November 15, 2023, 9:53am UTC](https://discourse.julialang.org/t/nlsolve-problem/106222 "2023-11-15T09:53:57Z")

</div>

Hi all! I’m new in Julia. I have to solve a non-linear equation, and I have found the NLsolve package. function coolebrok(fric\_fact) 1 ./sqrt(fric\_fact\[:\]) + 2\*log10(epsilon./. (3.7.\*DD) + 2.51./(sqrt(fric\_fact\[:\]).\*m…

---

## [\[ANN\] TupleSorting: Sort tuples efficiently and with good type inference](https://discourse.julialang.org/t/ann-tuplesorting-sort-tuples-efficiently-and-with-good-type-inference/105756)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 9:51am UTC](https://discourse.julialang.org/t/ann-tuplesorting-sort-tuples-efficiently-and-with-good-type-inference/105756 "2023-11-15T09:51:03Z")

</div>

TupleSorting is being registered. Use it to sort tuples (even large ones) efficiently and with good type inference: julia\> using TupleSorting julia\> const TS = TupleSorting TupleSorting julia\> t = ntuple((\_ -\> rand(0:…

---

## [Matrix-vector representation of a system of linear inequalities](https://discourse.julialang.org/t/matrix-vector-representation-of-a-system-of-linear-inequalities/106188)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 7\
**Last updated:** [November 15, 2023, 9:10am UTC](https://discourse.julialang.org/t/matrix-vector-representation-of-a-system-of-linear-inequalities/106188 "2023-11-15T09:10:40Z")

</div>

Hello, Consider for example this set of linear inequalities: It is equivalent to: and this can be represented as A\*\[x;y;z\] \<= b where the matrix A is given by the coefficients of the variables at the LHS and the v…

---

## [Is JuliaCon Proceedings open for submissions?](https://discourse.julialang.org/t/is-juliacon-proceedings-open-for-submissions/106140)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 4\
**Last updated:** [November 15, 2023, 8:49am UTC](https://discourse.julialang.org/t/is-juliacon-proceedings-open-for-submissions/106140 "2023-11-15T08:49:43Z")

</div>

The JuliaCon Proceedings site still says the message that it’s closed for submissions until 30th of September. Based on that I assume, that the infrastructure updates are not yet finished. Could someone please comment o…

---

## [HTTP.post() Exceptions.StatusError(400, ...)](https://discourse.julialang.org/t/http-post-exceptions-statuserror-400/106251)

<div class="topic-metadata">

**Author:** [@alicepiller](https://discourse.julialang.org/u/alicepiller)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 8:04am UTC](https://discourse.julialang.org/t/http-post-exceptions-statuserror-400/106251 "2023-11-15T08:04:16Z")

</div>

I’m trying to code the following Python code in Julia: import requests # Define the API endpoint URL url = 'https://example.com/create/' # Define your API credentials username = 'john.smith@example.com' api\_key = '1234…

---

## [Can Julia make voice synthesizer using pressure simulation?](https://discourse.julialang.org/t/can-julia-make-voice-synthesizer-using-pressure-simulation/106220)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 5\
**Last updated:** [November 15, 2023, 5:13am UTC](https://discourse.julialang.org/t/can-julia-make-voice-synthesizer-using-pressure-simulation/106220 "2023-11-15T05:13:39Z")

</div>

A good synthetic speaker could talk, sing, and perform lots of stuffs. So, the question today is… would it be possible for Julia to synthesize voice by simulating vibration or even aIr pressure? (Maybe it’s totally j…

---

## [JuliaCon 2024 subforum?](https://discourse.julialang.org/t/juliacon-2024-subforum/106249)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [November 15, 2023, 4:45am UTC](https://discourse.julialang.org/t/juliacon-2024-subforum/106249 "2023-11-15T04:45:55Z")

</div>

Could we start a JuliaCon 2024 subforum?

---

## [Macro that takes a function and calls it repeatedly with different data](https://discourse.julialang.org/t/macro-that-takes-a-function-and-calls-it-repeatedly-with-different-data/106237)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 8\
**Last updated:** [November 15, 2023, 3:09am UTC](https://discourse.julialang.org/t/macro-that-takes-a-function-and-calls-it-repeatedly-with-different-data/106237 "2023-11-15T03:09:57Z")

</div>

I’m trying to write a macro that provides a convenient way for a user to compute certain measures/statistics across different levels of aggregation. For example, there are roughly 3,200 counties in the USA and we have di…

---

## [Documentation-oriented community calls](https://discourse.julialang.org/t/documentation-oriented-community-calls/104887)

<div class="topic-metadata">

**Author:** [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 12:41am UTC](https://discourse.julialang.org/t/documentation-oriented-community-calls/104887 "2023-11-15T00:41:06Z")

</div>

Following up on a discussion in Slack’s #documentation channel, there is interest in starting up a working group and community calls that would focus on Julia documentation. The scope could be both documentation tooling…

---

## [Ferrite vs Gridap](https://discourse.julialang.org/t/ferrite-vs-gridap/106186)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 12:01am UTC](https://discourse.julialang.org/t/ferrite-vs-gridap/106186 "2023-11-15T00:01:03Z")

</div>

Hello everyone, I am looking for a good Julia FEM package. I have found the Gridap and Ferrite packages. What are the pros and cons of using either of these packages? I am particularly interested in doing calculations …

---

## [Wrong gradient from Zygote?](https://discourse.julialang.org/t/wrong-gradient-from-zygote/106204)

<div class="topic-metadata">

**Author:** [@rcalxrc08](https://discourse.julialang.org/u/rcalxrc08)\
**Replies:** 13\
**Last updated:** [November 14, 2023, 11:39pm UTC](https://discourse.julialang.org/t/wrong-gradient-from-zygote/106204 "2023-11-14T23:39:58Z")

</div>

I have the following example where I get different gradient values for forward and backward: using Random, ChainRulesCore, Zygote, Statistics function simulate(N, drift, sigma, rng,i) ChainRulesCore.@ignore\_derivat…

---

## [Zygote, Flux, and Interpolations](https://discourse.julialang.org/t/zygote-flux-and-interpolations/61824)

<div class="topic-metadata">

**Author:** [@kiranshila](https://discourse.julialang.org/u/kiranshila)\
**Replies:** 6\
**Last updated:** [November 14, 2023, 9:54pm UTC](https://discourse.julialang.org/t/zygote-flux-and-interpolations/61824 "2023-11-14T21:54:53Z")

</div>

Hey everyone! I’m working on radio telescope imaging and am trying to do image reconstruction with an iterative, maximum entropy method. Many papers suggest using conjugate gradient, and have intricate derivations of gr…

---

## [Julia v1.9.4 has been released](https://discourse.julialang.org/t/julia-v1-9-4-has-been-released/106230)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 6:51pm UTC](https://discourse.julialang.org/t/julia-v1-9-4-has-been-released/106230 "2023-11-14T18:51:34Z")

</div>

Julia version 1.9.4, the fourth patch release in the 1.9 series of releases, is now available. Binaries are available at https://julialang.org/downloads/ for the following platforms, listed here by support tier: Tier 1…

---

## [Package compiler 16 kB output](https://discourse.julialang.org/t/package-compiler-16-kb-output/106229)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 6:45pm UTC](https://discourse.julialang.org/t/package-compiler-16-kb-output/106229 "2023-11-14T18:45:50Z")

</div>

I recently switched from Jula v 1.10 Beta 3 to 1.10 rc1, mainly in hope to combat some problems with PackageCompiler. However, now it’s even worse. With Julia 1.10 rc1 I can’t even get any output larger than 16 kB. I.e. …

---

## [\[ANN\] PolyhedralCubature.jl](https://discourse.julialang.org/t/ann-polyhedralcubature-jl/106225)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 9\
**Last updated:** [November 14, 2023, 5:54pm UTC](https://discourse.julialang.org/t/ann-polyhedralcubature-jl/106225 "2023-11-14T17:54:53Z")

</div>

I’ve just finished PolyhedralCubature.jl, a package allowing to evaluate the multiple integral of a function over a convex polytope, given by linear inequalities such as: It remains to improve the doc. I also implemen…

---

## [Unusual behaviour with non-uniform level for a contour plot](https://discourse.julialang.org/t/unusual-behaviour-with-non-uniform-level-for-a-contour-plot/106227)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 5:32pm UTC](https://discourse.julialang.org/t/unusual-behaviour-with-non-uniform-level-for-a-contour-plot/106227 "2023-11-14T17:32:41Z")

</div>

When I pass a non-uniform level to a contour plot, the color bar acts as expected, but the actual contour plot is colored incorrectly. Is there a way around this? As an example, using uniform levels l1: using Plots x …

---

## [\[ANN\] Impostor.jl - A highly versatile synthetic data generator](https://discourse.julialang.org/t/ann-impostor-jl-a-highly-versatile-synthetic-data-generator/106166)

<div class="topic-metadata">

**Author:** [@lfenzo](https://discourse.julialang.org/u/lfenzo)\
**Replies:** 4\
**Last updated:** [November 14, 2023, 5:15pm UTC](https://discourse.julialang.org/t/ann-impostor-jl-a-highly-versatile-synthetic-data-generator/106166 "2023-11-14T17:15:57Z")

</div>

I’m glad to publish the announcement of Impostor.jl, a highly versatile synthetic tabular data generator package written in Julia. Designed and built upon the Julia’s multiple-dispatch paradigm with simplicity in mind, …

---

## [Using WGLMakie Plots in isolated cell view](https://discourse.julialang.org/t/using-wglmakie-plots-in-isolated-cell-view/106134)

<div class="topic-metadata">

**Author:** [@Niels](https://discourse.julialang.org/u/Niels)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 5:12pm UTC](https://discourse.julialang.org/t/using-wglmakie-plots-in-isolated-cell-view/106134 "2023-11-14T17:12:42Z")

</div>

Hey, I want to display WGLMakie graphs in the Pluto isolated cell view. Minimal working example: begin using WGLMakie end scatter(1:10) #create a scatter plot cells = \["scatter cell id"\] #get by PlutoRunner.current…

---

## [DataFrames precompilation failure](https://discourse.julialang.org/t/dataframes-precompilation-failure/106163)

<div class="topic-metadata">

**Author:** [@albrightand](https://discourse.julialang.org/u/albrightand)\
**Replies:** 7\
**Last updated:** [November 14, 2023, 4:36pm UTC](https://discourse.julialang.org/t/dataframes-precompilation-failure/106163 "2023-11-14T16:36:44Z")

</div>

Today I can’t get DataFrames.jl to pre-compile – even though I have had no issue previously. Any advice is welcome on how to fix the pre-compilation. I tried to make a whole new project with only DataFrames, so there wo…

---

## [Strange logical indexing behavior with 3-dimensional Array and BitMatrix](https://discourse.julialang.org/t/strange-logical-indexing-behavior-with-3-dimensional-array-and-bitmatrix/106221)

<div class="topic-metadata">

**Author:** [@bgroenks](https://discourse.julialang.org/u/bgroenks)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 4:31pm UTC](https://discourse.julialang.org/t/strange-logical-indexing-behavior-with-3-dimensional-array-and-bitmatrix/106221 "2023-11-14T16:31:05Z")

</div>

Hi, A colleague of mine noticed something strange in the way that getindex and setindex! handle logical indexing with BitMatrix. Consider the following example: import Random X = ones(10,3,3) # Array{Float64,3} mask =…

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

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