# Latest

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

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

**Page:** 341

---

## [What's Julia's memory model like; e.g. regarding aliasing?](https://discourse.julialang.org/t/whats-julias-memory-model-like-e-g-regarding-aliasing/12565)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [July 21, 2018, 4:56pm UTC](https://discourse.julialang.org/t/whats-julias-memory-model-like-e-g-regarding-aliasing/12565 "2018-07-21T16:56:28Z")

</div>

For the longest time, C++ didn’t have a memory model (now it does, and e.g. CPUs x86 and ARM implement it). I know also that Java has a memory model, but never heard of other languages having defined. Can you assume Ju…

---

## [Invalid LLVM IR error using CUDA](https://discourse.julialang.org/t/invalid-llvm-ir-error-using-cuda/118244)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 3\
**Last updated:** [August 17, 2024, 5:26am UTC](https://discourse.julialang.org/t/invalid-llvm-ir-error-using-cuda/118244 "2024-08-17T05:26:18Z")

</div>

Hi all. I have encountered a strange problem and would like to ask you a question. While cpu function works, gpu function fails. Why? Can I do such override in CUDA kernel? It seems that cuda is confusing Int32 and In…

---

## [Typed varargs](https://discourse.julialang.org/t/typed-varargs/118291)

<div class="topic-metadata">

**Author:** [@Nichola](https://discourse.julialang.org/u/Nichola)\
**Replies:** 4\
**Last updated:** [August 16, 2024, 9:52pm UTC](https://discourse.julialang.org/t/typed-varargs/118291 "2024-08-16T21:52:17Z")

</div>

I would like to define a function with a variable number of typed arguments. In particular I would like to overload the + operator in this way function Base.:+(a::MyType, (c, args...)) where c is a Number and args is …

---

## [How to rotate xticks in CairoMakie?](https://discourse.julialang.org/t/how-to-rotate-xticks-in-cairomakie/63120)

<div class="topic-metadata">

**Author:** [@TheRoniOne](https://discourse.julialang.org/u/TheRoniOne)\
**Replies:** 4\
**Last updated:** [August 16, 2024, 9:42pm UTC](https://discourse.julialang.org/t/how-to-rotate-xticks-in-cairomakie/63120 "2024-08-16T21:42:55Z")

</div>

Hi, I’m using CairoMakie and can’t find a way to rotate xticks 90° (from horizontal to vertical), already defined my own FIgure and Axis and trying to make a scatter plot. f = Figure() Axis(f\[1,1\], xticks = (1:31, df.…

---

## [Postdoc position in SciML + engineering biology at University of Bristol (UK)](https://discourse.julialang.org/t/postdoc-position-in-sciml-engineering-biology-at-university-of-bristol-uk/118278)

<div class="topic-metadata">

**Author:** [@dawbarton](https://discourse.julialang.org/u/dawbarton)\
**Replies:** 0\
**Last updated:** [August 16, 2024, 2:32pm UTC](https://discourse.julialang.org/t/postdoc-position-in-sciml-engineering-biology-at-university-of-bristol-uk/118278 "2024-08-16T14:32:52Z")

</div>

TLDR: there is a research associate (postdoc) position available at the University of Bristol, UK, focusing on SciML + engineering biology/synthetic biology in Julia/Rust. See below for details. We’re also starting a cen…

---

## [How to combine MPI non-blocking Isend/Irecv and Julia tasks](https://discourse.julialang.org/t/how-to-combine-mpi-non-blocking-isend-irecv-and-julia-tasks/52524)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 7\
**Last updated:** [August 16, 2024, 8:10pm UTC](https://discourse.julialang.org/t/how-to-combine-mpi-non-blocking-isend-irecv-and-julia-tasks/52524 "2024-08-16T20:10:58Z")

</div>

I would like to hide the MPI calls needed to wait for a non-blocking Isend / Irecv! by using the Julia asynchronous programming capabilities. I can imagine 3 main ways of doing this (see code below), but I am not certai…

---

## [Has anyone got a LLM to work with any Julia editor/IDE/whatever?](https://discourse.julialang.org/t/has-anyone-got-a-llm-to-work-with-any-julia-editor-ide-whatever/118275)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 2\
**Last updated:** [August 16, 2024, 7:55pm UTC](https://discourse.julialang.org/t/has-anyone-got-a-llm-to-work-with-any-julia-editor-ide-whatever/118275 "2024-08-16T19:55:08Z")

</div>

I’ve installed ollama with DeepSeek Coder v2, and it seems to be plenty fast enough on my old Mac laptop, but I can’t figure out how to plug it into any editor. I’ve tried vscode with continue but somehow it isn’t doing …

---

## [Named let or recursive let](https://discourse.julialang.org/t/named-let-or-recursive-let/118231)

<div class="topic-metadata">

**Author:** [@tobia](https://discourse.julialang.org/u/tobia)\
**Replies:** 7\
**Last updated:** [August 16, 2024, 7:33pm UTC](https://discourse.julialang.org/t/named-let-or-recursive-let/118231 "2024-08-16T19:33:31Z")

</div>

One of the features I miss from Scheme is the “named let.” It’s a let expression that allows its own body to invoke itself recursively, by giving it a name that can be used to run another instance of the body on the call…

---

## [CairoMakie whitespace to right of grid](https://discourse.julialang.org/t/cairomakie-whitespace-to-right-of-grid/118150)

<div class="topic-metadata">

**Author:** [@warnerwarner](https://discourse.julialang.org/u/warnerwarner)\
**Replies:** 1\
**Last updated:** [August 16, 2024, 6:19pm UTC](https://discourse.julialang.org/t/cairomakie-whitespace-to-right-of-grid/118150 "2024-08-16T18:19:27Z")

</div>

I’m not sure if this is a CairoMakie problem, or a VS code problem, but whenever I make figures in CairoMakie and then copy them from VS code it adds a patch of whitespace to the right of the plots? In VS Code is loo…

---

## [Partial specification of parameters for composite types](https://discourse.julialang.org/t/partial-specification-of-parameters-for-composite-types/118283)

<div class="topic-metadata">

**Author:** [@densmojd](https://discourse.julialang.org/u/densmojd)\
**Replies:** 1\
**Last updated:** [August 16, 2024, 6:12pm UTC](https://discourse.julialang.org/t/partial-specification-of-parameters-for-composite-types/118283 "2024-08-16T18:12:04Z")

</div>

Today I learned: julia\> struct S{A,B} end julia\> s = S{Int, Float64}() S{Int64, Float64}() julia\> s isa S{Int} true julia\> s isa S{Float64} false So I can drop trailing parameter specifications from a composite type an…

---

## [\[FR\] a new variant on method static parameter matching for getting the upper bound](https://discourse.julialang.org/t/fr-a-new-variant-on-method-static-parameter-matching-for-getting-the-upper-bound/118261)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [August 16, 2024, 9:16am UTC](https://discourse.julialang.org/t/fr-a-new-variant-on-method-static-parameter-matching-for-getting-the-upper-bound/118261 "2024-08-16T09:16:48Z")

</div>

The method static parameter matching we currently have works like so: unless the lower bound and the upper bound on the parameter are equal, the parameter is undefined. In practice, what we often actually want is just t…

---

## [Is AI risky for engineering work?](https://discourse.julialang.org/t/is-ai-risky-for-engineering-work/118280)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [August 16, 2024, 5:23pm UTC](https://discourse.julialang.org/t/is-ai-risky-for-engineering-work/118280 "2024-08-16T17:23:42Z")

</div>

I have seen these aspects already. For instance, I give students a multiple-choice exam. A couple of students got in touch after the exam: they thought my answers were not correct because AI was giving them different a…

---

## [How to locate singularities in a DiffEq system?](https://discourse.julialang.org/t/how-to-locate-singularities-in-a-diffeq-system/118155)

<div class="topic-metadata">

**Author:** [@rcorless](https://discourse.julialang.org/u/rcorless)\
**Replies:** 10\
**Last updated:** [August 16, 2024, 4:51pm UTC](https://discourse.julialang.org/t/how-to-locate-singularities-in-a-diffeq-system/118155 "2024-08-16T16:51:22Z")

</div>

Hello. New to Julia, so my question is tentative (and might be being posted in the wrong place). I am looking for singularity detection features in the solvers in DifferentialEquations.jl, and I am not seeing any. The…

---

## [Has anyone mentioned this as the theory for the Julia name? The Julia Beast](https://discourse.julialang.org/t/has-anyone-mentioned-this-as-the-theory-for-the-julia-name-the-julia-beast/118243)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [August 16, 2024, 3:38pm UTC](https://discourse.julialang.org/t/has-anyone-mentioned-this-as-the-theory-for-the-julia-name-the-julia-beast/118243 "2024-08-16T15:38:14Z")

</div>

See

---

## [CairoMakie Errors out on 3D surface when displaying tooltip](https://discourse.julialang.org/t/cairomakie-errors-out-on-3d-surface-when-displaying-tooltip/118035)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [August 16, 2024, 3:33pm UTC](https://discourse.julialang.org/t/cairomakie-errors-out-on-3d-surface-when-displaying-tooltip/118035 "2024-08-16T15:33:35Z")

</div>

Define MWE Module module testtest export goGL, goCairo using CairoMakie using GLMakie # Use as backend to work with tooltip! function thePlotStuff(;withTooltip=true) z=rand(100,100) f=…

---

## [Isposdef and eigvals do not agree](https://discourse.julialang.org/t/isposdef-and-eigvals-do-not-agree/118191)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 9\
**Last updated:** [August 16, 2024, 2:27pm UTC](https://discourse.julialang.org/t/isposdef-and-eigvals-do-not-agree/118191 "2024-08-16T14:27:33Z")

</div>

Hello, I was dealing with some matrices (for a statistical model), when I came across this case which raised an error during the fitting. I was trying to compute beta\_iter\[t\] = rand(MvNormal(b\_star, inv(A\_star))) but a…

---

## [Reduce allocations in 'reduce + eachcol' call to multiply several columns elementwise](https://discourse.julialang.org/t/reduce-allocations-in-reduce-eachcol-call-to-multiply-several-columns-elementwise/118234)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 6\
**Last updated:** [August 16, 2024, 2:05pm UTC](https://discourse.julialang.org/t/reduce-allocations-in-reduce-eachcol-call-to-multiply-several-columns-elementwise/118234 "2024-08-16T14:05:26Z")

</div>

Hi, I find that using reduce + eachcol in the following allocates more than I would like. The point is to element-wise multiply some columns of X. I’m getting n allocations where n is the number of rows when using reduce …

---

## [Reduce/Accumulate with Matrix Matrix Product](https://discourse.julialang.org/t/reduce-accumulate-with-matrix-matrix-product/118260)

<div class="topic-metadata">

**Author:** [@xyhl](https://discourse.julialang.org/u/xyhl)\
**Replies:** 7\
**Last updated:** [August 16, 2024, 2:15pm UTC](https://discourse.julialang.org/t/reduce-accumulate-with-matrix-matrix-product/118260 "2024-08-16T14:15:30Z")

</div>

I would like to use the standard lib reduce and accumulate to calculate the matrix matrix products instead of the element wise products. mat = Array{ComplexF64}(undef, 2, 2, 3) mat\[:, :, 1\] = \[1+0.5im 0.0+0.0im; 0.0…

---

## [Available color scheme in colormap function](https://discourse.julialang.org/t/available-color-scheme-in-colormap-function/118256)

<div class="topic-metadata">

**Author:** [@pritamsinha](https://discourse.julialang.org/u/pritamsinha)\
**Replies:** 1\
**Last updated:** [August 16, 2024, 2:11pm UTC](https://discourse.julialang.org/t/available-color-scheme-in-colormap-function/118256 "2024-08-16T14:11:57Z")

</div>

Hi! I am using the colormap function and I can only see rdbu in diverging colors and there are others like blues, greens etc in sequential. Is there any other colorscheme other than rdbu? If so, how to add that. A code …

---

## [How to fix ambiguities found through Aqua.jl?](https://discourse.julialang.org/t/how-to-fix-ambiguities-found-through-aqua-jl/118269)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [August 16, 2024, 1:03pm UTC](https://discourse.julialang.org/t/how-to-fix-ambiguities-found-through-aqua-jl/118269 "2024-08-16T13:03:24Z")

</div>

Hello! I am using Aqua to find ambiguities in my package (GitHub - AhmedSalih3d/SPHExample: Simple SPH dam-break simulation in Julia) and the following ones have been found: julia\> @testset "aqua test ambiguities" begi…

---

## [Safe overwriting of files](https://discourse.julialang.org/t/safe-overwriting-of-files/117758)

<div class="topic-metadata">

**Author:** [@fabiangans](https://discourse.julialang.org/u/fabiangans)\
**Replies:** 12\
**Last updated:** [August 16, 2024, 12:39pm UTC](https://discourse.julialang.org/t/safe-overwriting-of-files/117758 "2024-08-16T12:39:37Z")

</div>

I have a workflow where I repeatedly need to overwrite files with new content. I think the easiest way to overwrite a file is to use write(filename,newcontent). My question is how safe this function is against data loss…

---

## [Julia package to pull password from gnome keyring?](https://discourse.julialang.org/t/julia-package-to-pull-password-from-gnome-keyring/75891)

<div class="topic-metadata">

**Author:** [@jamaas](https://discourse.julialang.org/u/jamaas)\
**Replies:** 2\
**Last updated:** [August 16, 2024, 12:09pm UTC](https://discourse.julialang.org/t/julia-package-to-pull-password-from-gnome-keyring/75891 "2024-08-16T12:09:37Z")

</div>

I’ve looked around but can not find a julia package that will let me pull a password which is stored in my linux gnome keyring. In R, the “keyringer” package has a “decrypt\_gk\_pw” function that can pull a stored passwor…

---

## [Why two composite types with all bitstypes members are different if they are defined mutable?](https://discourse.julialang.org/t/why-two-composite-types-with-all-bitstypes-members-are-different-if-they-are-defined-mutable/118267)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [August 16, 2024, 12:07pm UTC](https://discourse.julialang.org/t/why-two-composite-types-with-all-bitstypes-members-are-different-if-they-are-defined-mutable/118267 "2024-08-16T12:07:44Z")

</div>

As from the title: I am a bit confused on why two composite types with all bitstypes members are different if they are defined mutable ? mutable struct Foo x::Bool end struct Goo x::Bool end julia\> f1 = Foo(tru…

---

## [No method matching length(::DateTime)](https://discourse.julialang.org/t/no-method-matching-length-datetime/118262)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 4\
**Last updated:** [August 16, 2024, 11:50am UTC](https://discourse.julialang.org/t/no-method-matching-length-datetime/118262 "2024-08-16T11:50:06Z")

</div>

I encountered this error message while using indexin in a for loop. Here is an example using Dates indexin(DateTime(2024,1), DateTime(2024,1):Day(1):DateTime(2024,2)) ERROR: MethodError: no method matching length(::Dat…

---

## [StaticArray using generator](https://discourse.julialang.org/t/staticarray-using-generator/118263)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 6\
**Last updated:** [August 16, 2024, 11:48am UTC](https://discourse.julialang.org/t/staticarray-using-generator/118263 "2024-08-16T11:48:53Z")

</div>

I am trying to replace # naive version that does works but fails to scale i1 = 1; i2 = 2; i3 = 3; I = SVector(i1, i1, i1, i2, i2, i2, i3, i3, i3) by something better. The following code I1 = SVector(i1, i2, i3) I2…

---

## [Unexpectedly slow performance of iszero for BitVector](https://discourse.julialang.org/t/unexpectedly-slow-performance-of-iszero-for-bitvector/118238)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 8\
**Last updated:** [August 16, 2024, 11:16am UTC](https://discourse.julialang.org/t/unexpectedly-slow-performance-of-iszero-for-bitvector/118238 "2024-08-16T11:16:19Z")

</div>

The builtin function iszero for BitVector seems unreasonably slow: julia\> a = BitVector(fill(0,10000)); julia\> @benchmark iszero($a) BenchmarkTools.Trial: 10000 samples with 8 evaluations. Range (min … max): 3.750 μs…

---

## [Mesh plotting in GLMakie with GeometryBasics - are normals broken?](https://discourse.julialang.org/t/mesh-plotting-in-glmakie-with-geometrybasics-are-normals-broken/118227)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 5\
**Last updated:** [August 16, 2024, 10:30am UTC](https://discourse.julialang.org/t/mesh-plotting-in-glmakie-with-geometrybasics-are-normals-broken/118227 "2024-08-16T10:30:54Z")

</div>

I am trying to produce plots using meshes of basic geometry, and the resulting images are poor. I realised that it is very hard to tell the shape of the cylinder, no matter how I place the lighting, and I think it is bec…

---

## [PythonPlot: use imshow instead of pcolormesh for heatmaps](https://discourse.julialang.org/t/pythonplot-use-imshow-instead-of-pcolormesh-for-heatmaps/118217)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 13\
**Last updated:** [August 16, 2024, 8:44am UTC](https://discourse.julialang.org/t/pythonplot-use-imshow-instead-of-pcolormesh-for-heatmaps/118217 "2024-08-16T08:44:08Z")

</div>

I have heatmaps to plot with julia. I sometimes use the plotlyjs backend to zoom portions of the plot, but for export I use pythonplot because all other backends I’ve tried either have problems (e.g. can’t do logarithmic…

---

## [Initialization of container of constants? NamedTuple, etc](https://discourse.julialang.org/t/initialization-of-container-of-constants-namedtuple-etc/117221)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 17\
**Last updated:** [August 16, 2024, 8:23am UTC](https://discourse.julialang.org/t/initialization-of-container-of-constants-namedtuple-etc/117221 "2024-08-16T08:23:05Z")

</div>

Would there be some disadvantage in using a module as a container of constants? I sometimes have 5–10 related global constants, which I sometimes want to treat as a whole. I thought that the simplest solution was para…

---

## [Allocation-efficient calculation of Hermite (and Laguerre) polynomials](https://discourse.julialang.org/t/allocation-efficient-calculation-of-hermite-and-laguerre-polynomials/118220)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 5\
**Last updated:** [August 16, 2024, 7:45am UTC](https://discourse.julialang.org/t/allocation-efficient-calculation-of-hermite-and-laguerre-polynomials/118220 "2024-08-16T07:45:54Z")

</div>

un-XY: I’m working on a project that involves a lot of simulation, for which I need to compute basis-functions based on the simulated quantities repeatedly. I’m writing code that allows me to flexibly mix-and-match vario…

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

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