# Latest

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

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

**Page:** 660

---

## [Bug in Plots.jl - Unwanted line in the title with multi-column legend](https://discourse.julialang.org/t/bug-in-plots-jl-unwanted-line-in-the-title-with-multi-column-legend/100924)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 3\
**Last updated:** [June 28, 2023, 12:53pm UTC](https://discourse.julialang.org/t/bug-in-plots-jl-unwanted-line-in-the-title-with-multi-column-legend/100924 "2023-06-28T12:53:31Z")

</div>

MWE: Pkg.add(“PlotThemes”) Using Plots, DifferentialEquations, ModelingToolkit, LaTeXStrings, Symbolics, Measures theme(:bright) plot(sol, label = L"some \\ \\LaTeX“, xlabel = L”t“, ylabel = L”\\alpha“, margin=8mm, fra…

---

## [FP16.16 (and FP32.16) float type (in Julia) and stochastic rounding](https://discourse.julialang.org/t/fp16-16-and-fp32-16-float-type-in-julia-and-stochastic-rounding/83638)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 12:45pm UTC](https://discourse.julialang.org/t/fp16-16-and-fp32-16-float-type-in-julia-and-stochastic-rounding/83638 "2023-06-28T12:45:09Z")

</div>

Historically we had only Float64 and Float32 in hardware, with deterministic rounding; and Float16 only as a storage format in Julia. I don’t know if stochastic rounding is used in any mainstream (CPU) hardware (or Nvidi…

---

## [Post-installation step when installing via MacPorts](https://discourse.julialang.org/t/post-installation-step-when-installing-via-macports/85995)

<div class="topic-metadata">

**Author:** [@benz0li](https://discourse.julialang.org/u/benz0li)\
**Replies:** 1\
**Last updated:** [June 28, 2023, 10:39am UTC](https://discourse.julialang.org/t/post-installation-step-when-installing-via-macports/85995 "2023-06-28T10:39:06Z")

</div>

For everyone getting ╰─ julia \[1\] 89444 killed julia on macOS (Big Sur/Monterey). :point\_right: This is due to /opt/local/lib/libjulia.1.8.dylib not being properly signed. :information\_source: Resolution: sudo…

---

## [General comments on my code for filling a matrix](https://discourse.julialang.org/t/general-comments-on-my-code-for-filling-a-matrix/100913)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 4\
**Last updated:** [June 28, 2023, 6:15am UTC](https://discourse.julialang.org/t/general-comments-on-my-code-for-filling-a-matrix/100913 "2023-06-28T06:15:58Z")

</div>

I wondered if I could get comments on my code. I’ve reviewed the official performance tips and a few blogs discussing achieving high performance. Unfortunately, since I have a very scant knowledge of computation and mem…

---

## [PSD sparse matrix generation: (almost) negative eigenvalues](https://discourse.julialang.org/t/psd-sparse-matrix-generation-almost-negative-eigenvalues/100851)

<div class="topic-metadata">

**Author:** [@selvi-aras](https://discourse.julialang.org/u/selvi-aras)\
**Replies:** 6\
**Last updated:** [June 28, 2023, 2:52am UTC](https://discourse.julialang.org/t/psd-sparse-matrix-generation-almost-negative-eigenvalues/100851 "2023-06-28T02:52:43Z")

</div>

This question is not fully related to optimization (though I am using it for optimization); but a quick search on the Julia forum hinted me that such questions go to the optimization tag. I can generate PSD matrices wit…

---

## [Arithmetic operations on an RGB image?](https://discourse.julialang.org/t/arithmetic-operations-on-an-rgb-image/100726)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 9\
**Last updated:** [June 27, 2023, 11:44pm UTC](https://discourse.julialang.org/t/arithmetic-operations-on-an-rgb-image/100726 "2023-06-27T23:44:49Z")

</div>

Suppose I have an RGB image, imported with img = FileIO.load("image.png"); Then I have two questions: First, in Jupyter, using IJulia, how do I view a small subarray (say 3 x 3) as a set of numeric values? If img was…

---

## [Performance problems in one-dimensional complex integration](https://discourse.julialang.org/t/performance-problems-in-one-dimensional-complex-integration/100912)

<div class="topic-metadata">

**Author:** [@javier\_mj](https://discourse.julialang.org/u/javier_mj)\
**Replies:** 15\
**Last updated:** [June 27, 2023, 10:52pm UTC](https://discourse.julialang.org/t/performance-problems-in-one-dimensional-complex-integration/100912 "2023-06-27T22:52:23Z")

</div>

Hello to all I am currently moving some code to Julia with the intention of improving performance. However, within a function I am running into a bottleneck when calculating the integral in one dimension of a complex fu…

---

## [Struct with block of missing fields](https://discourse.julialang.org/t/struct-with-block-of-missing-fields/100869)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 9\
**Last updated:** [June 27, 2023, 10:17pm UTC](https://discourse.julialang.org/t/struct-with-block-of-missing-fields/100869 "2023-06-27T22:17:53Z")

</div>

I’d like to have a struct like this. @with\_kw struct my\_struct x; y; z a b=fb(a) c=fc(b) d=fd(c) e=fe(d) f=ff(e) g=fg(f) h=fh(g) i=fi(h) end That can be created in two ways …

---

## [Can't load sqlite table to dataframe](https://discourse.julialang.org/t/cant-load-sqlite-table-to-dataframe/100911)

<div class="topic-metadata">

**Author:** [@kv-gits](https://discourse.julialang.org/u/kv-gits)\
**Replies:** 2\
**Last updated:** [June 27, 2023, 8:19pm UTC](https://discourse.julialang.org/t/cant-load-sqlite-table-to-dataframe/100911 "2023-06-27T20:19:17Z")

</div>

My code conn = SQLite.DB(dbn) query = "SELECT \* FROM $(tn)" r = SQLite.execute(conn, query) df = DataFrame(r) Getting error ArgumentError: ‘Int32’ iterates ‘Int32’ values, which doesn’t satisfy the Tables.jl AbstractR…

---

## [Changing array inside mutable struct passed to function, how to improve performance?](https://discourse.julialang.org/t/changing-array-inside-mutable-struct-passed-to-function-how-to-improve-performance/100862)

<div class="topic-metadata">

**Author:** [@ordep](https://discourse.julialang.org/u/ordep)\
**Replies:** 15\
**Last updated:** [June 27, 2023, 7:26pm UTC](https://discourse.julialang.org/t/changing-array-inside-mutable-struct-passed-to-function-how-to-improve-performance/100862 "2023-06-27T19:26:24Z")

</div>

I am creating a simulator, and to avoid passing on several different arrays (with different datatypes) to other functions that will apend values to them, i was thinking about grouping the arrays inside a mutable struct, …

---

## [ODE solution in Symbolics/SymbolicNumericIntegration vs. ModelingToolkit](https://discourse.julialang.org/t/ode-solution-in-symbolics-symbolicnumericintegration-vs-modelingtoolkit/100893)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [June 27, 2023, 6:07pm UTC](https://discourse.julialang.org/t/ode-solution-in-symbolics-symbolicnumericintegration-vs-modelingtoolkit/100893 "2023-06-27T18:07:40Z")

</div>

I’m comparing the analytic and numeric solutions of a linear, second order ODE, and get some weird (arbitrary) result with the analytic solution found by using SymbolicNumericIntegration… I assume I’m using the tools inc…

---

## [Why is the matrix multiplication with integer matrices much slower than with float ones?](https://discourse.julialang.org/t/why-is-the-matrix-multiplication-with-integer-matrices-much-slower-than-with-float-ones/100898)

<div class="topic-metadata">

**Author:** [@DY\_K](https://discourse.julialang.org/u/DY_K)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 6:02pm UTC](https://discourse.julialang.org/t/why-is-the-matrix-multiplication-with-integer-matrices-much-slower-than-with-float-ones/100898 "2023-06-27T18:02:25Z")

</div>

The following is the simple function for the test. function vec\_prod(n) output = 0; vec = collect(1:n) mat = Array{Float64}(undef, n, n) mat .= vec .\* vec' matt1 = mat .\* mat matt2 = mat \* mat output = dot(matt1, …

---

## [New Blog post live: "Profiling type-inference"](https://discourse.julialang.org/t/new-blog-post-live-profiling-type-inference/54107)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 3\
**Last updated:** [June 27, 2023, 6:00pm UTC](https://discourse.julialang.org/t/new-blog-post-live-profiling-type-inference/54107 "2023-06-27T18:00:19Z")

</div>

A new blog post titled: “Profiling type-inference” was just posted on the Julia Language’s official blog. Check it out here: Profiling type-inference and let us know your thoughts!

---

## [Is 1.9 great or what?](https://discourse.julialang.org/t/is-1-9-great-or-what/100664)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 16\
**Last updated:** [June 27, 2023, 5:51pm UTC](https://discourse.julialang.org/t/is-1-9-great-or-what/100664 "2023-06-27T17:51:03Z")

</div>

Great! Not or what. TTFP is essentially instant. And many other great improvements. So much work has been done over so many releases, so with no disrespect to those release I will say that 1.9 is the best since 1.0. A…

---

## [How to recover/access Turing.ADVI parameter names from solution?](https://discourse.julialang.org/t/how-to-recover-access-turing-advi-parameter-names-from-solution/100904)

<div class="topic-metadata">

**Author:** [@Jae\_Choi](https://discourse.julialang.org/u/Jae_Choi)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 5:12pm UTC](https://discourse.julialang.org/t/how-to-recover-access-turing-advi-parameter-names-from-solution/100904 "2023-06-27T17:12:04Z")

</div>

Hi, Experimenting with ADVI and perhaps I just missed this somehow in the documentation, but how does one identify the parameter names (rows) in the output of an ADVI sample? The output of a vi() or rand() sample object…

---

## [New Blog on Julia](https://discourse.julialang.org/t/new-blog-on-julia/100855)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 2\
**Last updated:** [June 27, 2023, 4:05pm UTC](https://discourse.julialang.org/t/new-blog-on-julia/100855 "2023-06-27T16:05:06Z")

</div>

Hi! I’ve started writing a blog on Julia at T.E.C.H. - Martin Alfaro. I’m a relatively new user of Julia, and my goal is to share various approaches that have worked for me. The posts about Julia are written for anyone,…

---

## [Use a,b = (1,2) within struc definition?](https://discourse.julialang.org/t/use-a-b-1-2-within-struc-definition/100873)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 3:56pm UTC](https://discourse.julialang.org/t/use-a-b-1-2-within-struc-definition/100873 "2023-06-27T15:56:56Z")

</div>

Is there any way to do something like @with\_kw struct my\_struct a,b = (1,2) end Use a,b = (1,2) syntax within a struct definition.

---

## [REPL UndefVarError: tr function](https://discourse.julialang.org/t/repl-undefvarerror-tr-function/100896)

<div class="topic-metadata">

**Author:** [@dharmik](https://discourse.julialang.org/u/dharmik)\
**Replies:** 4\
**Last updated:** [June 27, 2023, 3:08pm UTC](https://discourse.julialang.org/t/repl-undefvarerror-tr-function/100896 "2023-06-27T15:08:07Z")

</div>

Hi! I’m trying to find the trace of a matrix: A = reshape(1:m\*n,m,n) with m=1000 and n=500, by writing tr(A) which is what the documentation instructs. However, I get the following error: ERROR: UndefVarError: tr not de…

---

## [\[ANN\] Harbest.jl v0.4 - Simple Web Scraping](https://discourse.julialang.org/t/ann-harbest-jl-v0-4-simple-web-scraping/100894)

<div class="topic-metadata">

**Author:** [@Jose\_Diaz](https://discourse.julialang.org/u/Jose_Diaz)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 2:41pm UTC](https://discourse.julialang.org/t/ann-harbest-jl-v0-4-simple-web-scraping/100894 "2023-06-27T14:41:50Z")

</div>

Harbest.jl v0.4 Harbest.jl is a package that allows to perform simple web scraping What’s new? html\_table function different and cleaner html\_text3 output html\_elements function now allows Vector\[String} as an argument …

---

## [R JuliaCall erroring during setup with Julia v1.9](https://discourse.julialang.org/t/r-juliacall-erroring-during-setup-with-julia-v1-9/100890)

<div class="topic-metadata">

**Author:** [@Faraz564](https://discourse.julialang.org/u/Faraz564)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 2:34pm UTC](https://discourse.julialang.org/t/r-juliacall-erroring-during-setup-with-julia-v1-9/100890 "2023-06-27T14:34:31Z")

</div>

Would someone help me. My setup is giving error julia\_setup(installJulia = TRUE)

---

## [Migrate private registry to new server using LocalRegistry.jl](https://discourse.julialang.org/t/migrate-private-registry-to-new-server-using-localregistry-jl/100859)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [June 27, 2023, 11:35am UTC](https://discourse.julialang.org/t/migrate-private-registry-to-new-server-using-localregistry-jl/100859 "2023-06-27T11:35:48Z")

</div>

Hi, I am using LocalRegistry.jl to manage a private package ecosystem. I need to move the registry and package ecosystem to a new server. How to I ensure that the registry and projects using the registry and package eco…

---

## [Advanced tricks to reduce memory allocations of ODE](https://discourse.julialang.org/t/advanced-tricks-to-reduce-memory-allocations-of-ode/100841)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 7\
**Last updated:** [June 27, 2023, 11:19am UTC](https://discourse.julialang.org/t/advanced-tricks-to-reduce-memory-allocations-of-ode/100841 "2023-06-27T11:19:47Z")

</div>

Hello, I’m trying to further reduce memory allocations when solving an ODE using DifferentialEquations.jl. I have already implemented most of the tricks I’m aware of, but I still get a ton of memory allocation when call…

---

## [Generation of plots in julia](https://discourse.julialang.org/t/generation-of-plots-in-julia/100877)

<div class="topic-metadata">

**Author:** [@Harsh00100](https://discourse.julialang.org/u/Harsh00100)\
**Replies:** 5\
**Last updated:** [June 27, 2023, 10:27am UTC](https://discourse.julialang.org/t/generation-of-plots-in-julia/100877 "2023-06-27T10:27:11Z")

</div>

whenever i am trying to generate a plot, the plot is able to generate but its not popping/showing up attached below is an example. kindly help me out as i am new to julia julia\> fig, (ax1,ax2) = plt.subplots(ncols = 2…

---

## [Convert to string without losing the colon character for Symbol variables](https://discourse.julialang.org/t/convert-to-string-without-losing-the-colon-character-for-symbol-variables/100803)

<div class="topic-metadata">

**Author:** [@David\_Sagan](https://discourse.julialang.org/u/David_Sagan)\
**Replies:** 12\
**Last updated:** [June 27, 2023, 9:49am UTC](https://discourse.julialang.org/t/convert-to-string-without-losing-the-colon-character-for-symbol-variables/100803 "2023-06-27T09:49:49Z")

</div>

If I convert a Symbol to a string, the colon that is used to signify that it is a symbol is lost. For example, julia\> a = :abc :abc julia\> string(a) # String does not have a colon "abc" I know I can create a very s…

---

## [Paying a freelancer to maintain Plots.jl](https://discourse.julialang.org/t/paying-a-freelancer-to-maintain-plots-jl/61162)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 32\
**Last updated:** [June 27, 2023, 9:49am UTC](https://discourse.julialang.org/t/paying-a-freelancer-to-maintain-plots-jl/61162 "2023-06-27T09:49:35Z")

</div>

Hello everyone, I am starting this thread to ask you what is your opinion regarding the payment of a salary to a freelancer to maintain and fix issues in Plots.jl? We have various volunteers in the community helping with…

---

## [Get gradients from network](https://discourse.julialang.org/t/get-gradients-from-network/100882)

<div class="topic-metadata">

**Author:** [@T\_J](https://discourse.julialang.org/u/T_J)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 9:39am UTC](https://discourse.julialang.org/t/get-gradients-from-network/100882 "2023-06-27T09:39:26Z")

</div>

Hello, How can I check the gradients of the network in example Best Regards

---

## [Using @threads in \[f(x) for x in 1:max\_X\]](https://discourse.julialang.org/t/using-threads-in-f-x-for-x-in-1-max-x/100871)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 5\
**Last updated:** [June 27, 2023, 9:10am UTC](https://discourse.julialang.org/t/using-threads-in-f-x-for-x-in-1-max-x/100871 "2023-06-27T09:10:33Z")

</div>

This is a dumb example, but I would like to learn a bit more about its syntax. I was expecting that adding @threads right in front of “for” would work out to make an array. \[f(x) @threads for x in 1:max\_X\] \[@threads f(x…

---

## [\[ANN\] StrategicGames.jl - Analyse and find 1-all Nash equilibria on generic N-players strategic games](https://discourse.julialang.org/t/ann-strategicgames-jl-analyse-and-find-1-all-nash-equilibria-on-generic-n-players-strategic-games/96951)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 27, 2023, 8:29am UTC](https://discourse.julialang.org/t/ann-strategicgames-jl-analyse-and-find-1-all-nash-equilibria-on-generic-n-players-strategic-games/96951 "2023-06-27T08:29:12Z")

</div>

StrategicGames is a new package that, as the name implies, allows to work with strategic games (only in normal form currently). This is the first “feature-useful” release of the package. All functions work with generic …

---

## [How to build custom loss function including restrictions about the derivatives of a model with respect to input features](https://discourse.julialang.org/t/how-to-build-custom-loss-function-including-restrictions-about-the-derivatives-of-a-model-with-respect-to-input-features/100880)

<div class="topic-metadata">

**Author:** [@yourun1218](https://discourse.julialang.org/u/yourun1218)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 8:12am UTC](https://discourse.julialang.org/t/how-to-build-custom-loss-function-including-restrictions-about-the-derivatives-of-a-model-with-respect-to-input-features/100880 "2023-06-27T08:12:28Z")

</div>

Hi SimpleChains.jl people! I am trying to build a custom loss function including restrictions about the derivatives of a model with respect to input features in addition to the values of the model. In other words, I wou…

---

## [Instability with union of types with ForwardDiff and KeyedArray types, hints](https://discourse.julialang.org/t/instability-with-union-of-types-with-forwarddiff-and-keyedarray-types-hints/100772)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 1\
**Last updated:** [June 27, 2023, 8:07am UTC](https://discourse.julialang.org/t/instability-with-union-of-types-with-forwarddiff-and-keyedarray-types-hints/100772 "2023-06-27T08:07:08Z")

</div>

The goal is to calculate a number between two Vector-ish things in a type stable manner, without type assertions. This is part of a larger workflow that involves ForwardDiff.gradient, which runs, but slow, hence the inqu…

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

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