# Latest

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

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

**Page:** 422

---

## [Multi variables in lsqfit](https://discourse.julialang.org/t/multi-variables-in-lsqfit/112210)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 6\
**Last updated:** [May 1, 2024, 2:08am UTC](https://discourse.julialang.org/t/multi-variables-in-lsqfit/112210 "2024-05-01T02:08:27Z")

</div>

using XLSX, DataFrames, LsqFit df = DataFrame(XLSX.readtable("SMB.xlsx","平衡吸附量", infer\_eltypes = true)) function Com\_Langmuir(p, x) Ha, bA, bC, Hc = p CA = @view x\[:, 1\] CC = @view x\[:, 2\] @. qA = Ha\*CA…

---

## [To grok "vectors..."](https://discourse.julialang.org/t/to-grok-vectors/113630)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 17\
**Last updated:** [April 30, 2024, 10:21pm UTC](https://discourse.julialang.org/t/to-grok-vectors/113630 "2024-04-30T22:21:59Z")

</div>

I got the concept of mathematical vectors, and geometrical vectors. However, having some mental blockage of relating those to how they fit the programming models in Julia. Can someone point me toward a (simpleton) way …

---

## [\`Set\`s inside \`Set\`s = dangerous](https://discourse.julialang.org/t/set-s-inside-set-s-dangerous/113669)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 5\
**Last updated:** [April 30, 2024, 8:36pm UTC](https://discourse.julialang.org/t/set-s-inside-set-s-dangerous/113669 "2024-04-30T20:36:36Z")

</div>

A colleague discovered the following behaviour. I presume it’s known by those who know, but it doesn’t seem to be documented? julia\> s1 = Set{Int}(\[1\]); julia\> s2 = Set{Int}(\[1, 2\]); julia\> S = Set(\[s1, s2\]); …

---

## [Stripping dollar signs from equations in Documenter.jl](https://discourse.julialang.org/t/stripping-dollar-signs-from-equations-in-documenter-jl/113503)

<div class="topic-metadata">

**Author:** [@Walter\_Dal\_Maz\_Silva](https://discourse.julialang.org/u/Walter_Dal_Maz_Silva)\
**Replies:** 1\
**Last updated:** [April 30, 2024, 8:05pm UTC](https://discourse.julialang.org/t/stripping-dollar-signs-from-equations-in-documenter-jl/113503 "2024-04-30T20:05:45Z")

</div>

First post here, and I don’t ask many questions in forums cause most of the time I find what I am looking for somewhere, but now I am stuck and couldn’t find a suitable solution in another topics. I’ve been using Julia d…

---

## [Automatically load tooling with BasicAutoloads.jl](https://discourse.julialang.org/t/automatically-load-tooling-with-basicautoloads-jl/113212)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 8:00pm UTC](https://discourse.julialang.org/t/automatically-load-tooling-with-basicautoloads-jl/113212 "2024-04-30T20:00:31Z")

</div>

Hey folks! If I write @btime, @be, @testset, @test, etc. in the REPL, I don’t want to see ERROR: LoadError: UndefVarError: \`@testset\` not defined in \`Main\` Suggestion: check for spelling errors or missing imports. in e…

---

## [New version "Julia v1.10.3 has been released" and #52272 not fixed?](https://discourse.julialang.org/t/new-version-julia-v1-10-3-has-been-released-and-52272-not-fixed/113668)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 1\
**Last updated:** [April 30, 2024, 7:49pm UTC](https://discourse.julialang.org/t/new-version-julia-v1-10-3-has-been-released-and-52272-not-fixed/113668 "2024-04-30T19:49:24Z")

</div>

It is a serious bug for some Windows users.

---

## [Julia v1.10.3 has been released](https://discourse.julialang.org/t/julia-v1-10-3-has-been-released/113667)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [April 30, 2024, 6:30pm UTC](https://discourse.julialang.org/t/julia-v1-10-3-has-been-released/113667 "2024-04-30T18:30:08Z")

</div>

Julia version 1.10.3, the third patch release in the 1.10 series of releases, is now available. Binaries are available via Juliaup and at https://julialang.org/downloads/ for macOS (Intel and M-series processors), Window…

---

## [Same expression returning inconsistent data types brings considerable inconvenience](https://discourse.julialang.org/t/same-expression-returning-inconsistent-data-types-brings-considerable-inconvenience/113469)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 29\
**Last updated:** [April 30, 2024, 6:08pm UTC](https://discourse.julialang.org/t/same-expression-returning-inconsistent-data-types-brings-considerable-inconvenience/113469 "2024-04-30T18:08:27Z")

</div>

For example, function fun(ind) a = \[1; 2\] b = \[3 4\] return a\[ind\]' \* reduce(vcat, b\[ind\]) end fun(\[true; true\]) fun(\[true; false\]) the result is: julia\> fun(\[true; true\]) 11 julia\> fun(\[true; false\]) 1×1 …

---

## [Locate Points within GMT Delauney triangularization](https://discourse.julialang.org/t/locate-points-within-gmt-delauney-triangularization/110967)

<div class="topic-metadata">

**Author:** [@morningglory05](https://discourse.julialang.org/u/morningglory05)\
**Replies:** 4\
**Last updated:** [April 30, 2024, 5:53pm UTC](https://discourse.julialang.org/t/locate-points-within-gmt-delauney-triangularization/110967 "2024-04-30T17:53:09Z")

</div>

Overall issue: I am finding the intersection of two planes. I have the values of both planes at ungridded points, so I subtract their values (call the difference z). Then I have x,y,z values and I find the contour for z=…

---

## [SpecialFunctions + Turing, AD support for quantile function of Gamma distribution gamma\_inv\_cdf](https://discourse.julialang.org/t/specialfunctions-turing-ad-support-for-quantile-function-of-gamma-distribution-gamma-inv-cdf/113663)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 0\
**Last updated:** [April 30, 2024, 5:14pm UTC](https://discourse.julialang.org/t/specialfunctions-turing-ad-support-for-quantile-function-of-gamma-distribution-gamma-inv-cdf/113663 "2024-04-30T17:14:39Z")

</div>

Hello, I would like to use AD in Turing.jl to differentiate a custom density that involves the inverse cdf (i.e., quantile function) of a Gamma distribution. Unfortunately, the quantile function of the Gamma distributi…

---

## [How to set the title of a Makie window?](https://discourse.julialang.org/t/how-to-set-the-title-of-a-makie-window/113228)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [April 30, 2024, 3:52pm UTC](https://discourse.julialang.org/t/how-to-set-the-title-of-a-makie-window/113228 "2024-04-30T15:52:35Z")

</div>

How can I change the title of a a GLMakie window?

---

## [MTK: computing solutions of vectors of unknowns?](https://discourse.julialang.org/t/mtk-computing-solutions-of-vectors-of-unknowns/113614)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 11\
**Last updated:** [April 30, 2024, 3:29pm UTC](https://discourse.julialang.org/t/mtk-computing-solutions-of-vectors-of-unknowns/113614 "2024-04-30T15:29:08Z")

</div>

With ModelingToolkit, I have a number of variables of.w\_1.m, of.w\_2.m, …, of\_w\_5.m and I want to check the solution of these variables, e.g., at time = 0.5. With solution structure sol, I can do this as follows: sol(0.…

---

## [PSA: Thread-local state is no longer recommended; Common misconceptions about threadid() and nthreads()](https://discourse.julialang.org/t/psa-thread-local-state-is-no-longer-recommended-common-misconceptions-about-threadid-and-nthreads/101274)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 58\
**Last updated:** [April 30, 2024, 3:09pm UTC](https://discourse.julialang.org/t/psa-thread-local-state-is-no-longer-recommended-common-misconceptions-about-threadid-and-nthreads/101274 "2024-04-30T15:09:41Z")

</div>

Here’s a new blogpost we’ve been working on for some weeks now intended to explain and help fix a common and incorrect pattern that has been showing up in multithreaded julia code The TL;DR is that if you’ve written cod…

---

## [Inverse of Humanize.jl](https://discourse.julialang.org/t/inverse-of-humanize-jl/113648)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 4\
**Last updated:** [April 30, 2024, 2:20pm UTC](https://discourse.julialang.org/t/inverse-of-humanize-jl/113648 "2024-04-30T14:20:56Z")

</div>

Humanize.jl is an old but nice package to convert e.g. 1248923592 to “1.2 GB”. but i need to go the other way around. simple to write some bespoke code myself to do this, but is there a package around? couldn’t find o…

---

## [Same color sequence with marker and line when using addtraces!](https://discourse.julialang.org/t/same-color-sequence-with-marker-and-line-when-using-addtraces/113641)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 12:21pm UTC](https://discourse.julialang.org/t/same-color-sequence-with-marker-and-line-when-using-addtraces/113641 "2024-04-30T12:21:41Z")

</div>

\# 实验数据散点图 using PlotlyJS EA\_293K = scatter(df, x = :C\_EA, y = :q\_EA\_293K, mode="markers", name = "293K") EA\_303K = scatter(df, x = :C\_EA, y = :q\_EA\_303K, mode="markers", name = "303K") EA\_313K = scatter(df, x = :C\_EA, y …

---

## [1D heat transfer code issues](https://discourse.julialang.org/t/1d-heat-transfer-code-issues/113520)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 11:13am UTC](https://discourse.julialang.org/t/1d-heat-transfer-code-issues/113520 "2024-04-30T11:13:06Z")

</div>

Hi Guys Please refer to my code below. When trying to solve I get an error on the last line of the code. ERROR: MethodError: no method matching a(::Gridap.FESpaces.SingleFieldFEBasis{Gridap.FESpaces.TestBasis, Referen…

---

## [\[Nerdsnipe warning\] Speed up short vector comparisons to beat R](https://discourse.julialang.org/t/nerdsnipe-warning-speed-up-short-vector-comparisons-to-beat-r/113400)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 37\
**Last updated:** [April 30, 2024, 8:54am UTC](https://discourse.julialang.org/t/nerdsnipe-warning-speed-up-short-vector-comparisons-to-beat-r/113400 "2024-04-30T08:54:02Z")

</div>

Here’s a problem a colleague came to me with; they’ve got an R implementation that takes a day to run something and I said “just re-write it in Julia, I’m sure it’ll take minutes”. A relatively simple re-write was indee…

---

## [Flux data parallelism](https://discourse.julialang.org/t/flux-data-parallelism/113627)

<div class="topic-metadata">

**Author:** [@jafagervik](https://discourse.julialang.org/u/jafagervik)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 8:29am UTC](https://discourse.julialang.org/t/flux-data-parallelism/113627 "2024-04-30T08:29:46Z")

</div>

Hi, I’ve tried finding resources regarding Flux/Lux data parallelism. Im still unsure what the current SOTA solution for data parallel training would be. Im creating a different kinds of autoencoders, with the main one …

---

## [Module that defines an interface for an abstract type without implementing it](https://discourse.julialang.org/t/module-that-defines-an-interface-for-an-abstract-type-without-implementing-it/113624)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 11\
**Last updated:** [April 30, 2024, 7:56am UTC](https://discourse.julialang.org/t/module-that-defines-an-interface-for-an-abstract-type-without-implementing-it/113624 "2024-04-30T07:56:54Z")

</div>

Suppose I have a module that defines an abstract type AbstractPerformer (as in, a stage performer) and a stage routine for the performer as follows: module Performers abstract type AbstractPerformer end function rejoi…

---

## [I don't get Base.IteratorElType](https://discourse.julialang.org/t/i-dont-get-base-iteratoreltype/113604)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 6\
**Last updated:** [April 30, 2024, 7:50am UTC](https://discourse.julialang.org/t/i-dont-get-base-iteratoreltype/113604 "2024-04-30T07:50:15Z")

</div>

Motivation I’m implementing a collect-like function for a certain subtype of AbstractArray, FixedSizeArray (@giordano). The function is supposed to take an arbitrary iterator, consume it, and return a FixedSizeArray valu…

---

## [Rust (vs C# and vs. Julia and other) at least relating to game dev: "Leaving Rust gamedev after 3 years" and ECS](https://discourse.julialang.org/t/rust-vs-c-and-vs-julia-and-other-at-least-relating-to-game-dev-leaving-rust-gamedev-after-3-years-and-ecs/113593)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 9\
**Last updated:** [April 30, 2024, 7:38am UTC](https://discourse.julialang.org/t/rust-vs-c-and-vs-julia-and-other-at-least-relating-to-game-dev-leaving-rust-gamedev-after-3-years-and-ecs/113593 "2024-04-30T07:38:08Z")

</div>

https://loglog.games/blog/leaving-rust-gamedev/ It’s an interesting post on Rust, not just for game dev, though mostly (does it translate to other domains, e.g. science? Seemingly to other exploratory programming), but …

---

## [\[FR\] keep using a re-precompiled package without restarting Julia](https://discourse.julialang.org/t/fr-keep-using-a-re-precompiled-package-without-restarting-julia/113544)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [April 30, 2024, 3:29am UTC](https://discourse.julialang.org/t/fr-keep-using-a-re-precompiled-package-without-restarting-julia/113544 "2024-04-30T03:29:48Z")

</div>

Is this a viable feature request? It would be nice if we could just do using MyPackage again or something, instead of having to use a new OS process just to be able to, e.g., use the package with a changed static prefere…

---

## [Inserting image in corner of plot without affecting aspect ratio](https://discourse.julialang.org/t/inserting-image-in-corner-of-plot-without-affecting-aspect-ratio/113631)

<div class="topic-metadata">

**Author:** [@hshackle](https://discourse.julialang.org/u/hshackle)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 1:47am UTC](https://discourse.julialang.org/t/inserting-image-in-corner-of-plot-without-affecting-aspect-ratio/113631 "2024-04-30T01:47:00Z")

</div>

I have a png image that I would like to include in the corner of a plot. It seems that there is functionality for putting images in plots, but I could not find an easy way of doing what I wanted. Below is an example: us…

---

## [Blank plots in Julia 1.6+ and GR 0.57.4](https://discourse.julialang.org/t/blank-plots-in-julia-1-6-and-gr-0-57-4/59993)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 7\
**Last updated:** [April 29, 2024, 10:09pm UTC](https://discourse.julialang.org/t/blank-plots-in-julia-1-6-and-gr-0-57-4/59993 "2024-04-29T22:09:53Z")

</div>

I am getting completely blank plots since I updated Plots to 1.12 in Julia 1.6. I also installed 1.6.1 and added Plots, with the same result: The output of \]st is below, in any case. Anyone has any idea of what can b…

---

## [May JuliaGenAI Community Call - Request for topics to present](https://discourse.julialang.org/t/may-juliagenai-community-call-request-for-topics-to-present/113626)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 0\
**Last updated:** [April 29, 2024, 7:51pm UTC](https://discourse.julialang.org/t/may-juliagenai-community-call-request-for-topics-to-present/113626 "2024-04-29T19:51:46Z")

</div>

As agreed last time, let’s do another GenAI community call. Date: \[15th May\] // Up for discussion, any counter-proposals? or it could be 22nd? Time: \[4pm UTC\] (9am PDT, 12pm EDT, 5pm BST, 6pm CET, …) // open to discuss…

---

## [How to make \`\[0\] == 0\`?](https://discourse.julialang.org/t/how-to-make-0-0/112630)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 24\
**Last updated:** [April 29, 2024, 6:13pm UTC](https://discourse.julialang.org/t/how-to-make-0-0/112630 "2024-04-29T18:13:14Z")

</div>

julia\> 2 .- \[1 1\] \* \[1; 1\] == 0 false This means in Julia \[0\] != 0. Although I can understand this rule, I feel it inconvenient to use. Do I have to build awareness of this kind and to code carefully when using Julia, o…

---

## [Is there a linestyle vector in PyPlot?](https://discourse.julialang.org/t/is-there-a-linestyle-vector-in-pyplot/113619)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 2\
**Last updated:** [April 29, 2024, 6:12pm UTC](https://discourse.julialang.org/t/is-there-a-linestyle-vector-in-pyplot/113619 "2024-04-29T18:12:13Z")

</div>

Is it possible to do something like plot(xy\[:,1\], xy\[:,2:end\], linestyle=\[“-”,“–”\]), using PyPlot?

---

## [Type stability of vector of matrices](https://discourse.julialang.org/t/type-stability-of-vector-of-matrices/113615)

<div class="topic-metadata">

**Author:** [@araujoms](https://discourse.julialang.org/u/araujoms)\
**Replies:** 4\
**Last updated:** [April 29, 2024, 5:52pm UTC](https://discourse.julialang.org/t/type-stability-of-vector-of-matrices/113615 "2024-04-29T17:52:57Z")

</div>

I’m puzzled by why the following function is type unstable: function unstable(d, T) return \[zeros(T,d,d) for \_ = 1:d\] end I got this by debugging a much more complicated function that had terrible performance; the …

---

## [Parquet2.jl: type Nothing has no field meta\_data](https://discourse.julialang.org/t/parquet2-jl-type-nothing-has-no-field-meta-data/113613)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 6\
**Last updated:** [April 29, 2024, 5:09pm UTC](https://discourse.julialang.org/t/parquet2-jl-type-nothing-has-no-field-meta-data/113613 "2024-04-29T17:09:59Z")

</div>

I am trying to read some data using Parquet2.jl. The data was generated by pyarrow.parquet around 1MB in size, so very small. Compression is Snappy, as by default in pyarrow. I am getting a very long stack trace about t…

---

## [How to sort a GPU StructArray vector by a subfield and update location of other elements in place?](https://discourse.julialang.org/t/how-to-sort-a-gpu-structarray-vector-by-a-subfield-and-update-location-of-other-elements-in-place/113617)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [April 29, 2024, 4:18pm UTC](https://discourse.julialang.org/t/how-to-sort-a-gpu-structarray-vector-by-a-subfield-and-update-location-of-other-elements-in-place/113617 "2024-04-29T16:18:26Z")

</div>

Hi! I have the following code: using Random using StaticArrays using StructArrays using CUDA # Function to generate a simplified SimParticles with random values function generate\_simplified\_particles(num\_particles::Int…

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

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