# Latest

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

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

**Page:** 483

---

## [1.11 feature freeze, February 12th](https://discourse.julialang.org/t/1-11-feature-freeze-february-12th/109759)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 1\
**Last updated:** [February 16, 2024, 9:22am UTC](https://discourse.julialang.org/t/1-11-feature-freeze-february-12th/109759 "2024-02-16T09:22:19Z")

</div>

Heads up: this is to let people know that if they have any PRs that they really want to get into Julia 1.11, the feature freeze for the 1.11 release will be on Monday, February 12th. There is some leeway with PRs that h…

---

## [Access StaticArray fields in a StructArray](https://discourse.julialang.org/t/access-staticarray-fields-in-a-structarray/110249)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 6\
**Last updated:** [February 16, 2024, 8:35am UTC](https://discourse.julialang.org/t/access-staticarray-fields-in-a-structarray/110249 "2024-02-16T08:35:05Z")

</div>

StaticArrays defines properties x, y, z on SVector{3}: using StaticArrays v = SA\[1,2,3\] v.x # returns 1 However these accessors don’t work on StructArrays: using StructArrays A = StructArray(\[v, 2v\]) A.x # gives ERR…

---

## [Symbolic sqrt(2) and sin(pi)](https://discourse.julialang.org/t/symbolic-sqrt-2-and-sin-pi/58633)

<div class="topic-metadata">

**Author:** [@oscarbenjamin](https://discourse.julialang.org/u/oscarbenjamin)\
**Replies:** 24\
**Last updated:** [February 16, 2024, 4:51am UTC](https://discourse.julialang.org/t/symbolic-sqrt-2-and-sin-pi/58633 "2024-02-16T04:51:45Z")

</div>

I asked this as a genuine question but looking at Symbolics.jl more closely I get the impression that the answer is that there is no way to do this even for sqrt(2). If that’s the case then this is something very differ…

---

## [Errors after an \]update - Precompile fails](https://discourse.julialang.org/t/errors-after-an-update-precompile-fails/35121)

<div class="topic-metadata">

**Author:** [@NicholasWMRitchie](https://discourse.julialang.org/u/NicholasWMRitchie)\
**Replies:** 1\
**Last updated:** [February 16, 2024, 4:19am UTC](https://discourse.julialang.org/t/errors-after-an-update-precompile-fails/35121 "2024-02-16T04:19:49Z")

</div>

I often run into problems updating packages. I think the crux of the problem can be summarized in these two lines. (This often happens when I update packages…) What is going on here? I think that in command 1, I’…

---

## [Making voxels isotropic in (x,y,z) images](https://discourse.julialang.org/t/making-voxels-isotropic-in-x-y-z-images/110186)

<div class="topic-metadata">

**Author:** [@TheHedgehog2000](https://discourse.julialang.org/u/TheHedgehog2000)\
**Replies:** 9\
**Last updated:** [February 15, 2024, 11:35pm UTC](https://discourse.julialang.org/t/making-voxels-isotropic-in-x-y-z-images/110186 "2024-02-15T23:35:07Z")

</div>

Hi everyone, I’ve started using Julia for processing microscopy data very recently (switching over from Python). My data tend to be 3D in space (meaning vertical stacks of images) and anisotropic (resolution in z is low…

---

## [How to create a streamplot only inside a polygon?](https://discourse.julialang.org/t/how-to-create-a-streamplot-only-inside-a-polygon/110273)

<div class="topic-metadata">

**Author:** [@Midez](https://discourse.julialang.org/u/Midez)\
**Replies:** 2\
**Last updated:** [February 15, 2024, 11:20pm UTC](https://discourse.julialang.org/t/how-to-create-a-streamplot-only-inside-a-polygon/110273 "2024-02-15T23:20:13Z")

</div>

Say I got a triangle defined by using CairoMakie, GeometryBasics, DelaunayTriangulation P = \[(-1,0),(1,0),(0,1),(-1,0)\] Now let’s triangulate the triangle to get equal points (x,y) indside boundary\_nodes, points = c…

---

## [Performance of \`Meta.parse\` and \`eval\`](https://discourse.julialang.org/t/performance-of-meta-parse-and-eval/52061)

<div class="topic-metadata">

**Author:** [@brucala](https://discourse.julialang.org/u/brucala)\
**Replies:** 11\
**Last updated:** [December 30, 2020, 6:39pm UTC](https://discourse.julialang.org/t/performance-of-meta-parse-and-eval/52061 "2020-12-30T18:39:10Z")

</div>

Hi all, I’m a relatively new and now enthusiastic Julia user. While exploring the metaprogramming capabilities I came to the question of this topic. Probably I am missing something or misinterpreting the use intention f…

---

## [JuMP: DimensionalData Compatibility](https://discourse.julialang.org/t/jump-dimensionaldata-compatibility/109736)

<div class="topic-metadata">

**Author:** [@Ethan-Russell](https://discourse.julialang.org/u/Ethan-Russell)\
**Replies:** 3\
**Last updated:** [February 15, 2024, 10:26pm UTC](https://discourse.julialang.org/t/jump-dimensionaldata-compatibility/109736 "2024-02-15T22:26:31Z")

</div>

I’m running into compat issues with JuMP, caused by the dependence on DimensionalData.jl, v0.24. Specifically, I’m trying to use JuMP.jl and the latest version of Rasters.jl, which requires DimensionalData v0.25.1. Is t…

---

## [Moving a custom loss function to GPU](https://discourse.julialang.org/t/moving-a-custom-loss-function-to-gpu/109637)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 5\
**Last updated:** [February 15, 2024, 9:19pm UTC](https://discourse.julialang.org/t/moving-a-custom-loss-function-to-gpu/109637 "2024-02-15T21:19:49Z")

</div>

I have developed the following custom loss function, I am trying to run it on the GPU efficiently but I am unable to do so; I get the following error in the line Matrix(ω' \* yₖ\_batch) ERROR: MethodError: no method match…

---

## [Constructing a let block](https://discourse.julialang.org/t/constructing-a-let-block/110270)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [February 15, 2024, 8:58pm UTC](https://discourse.julialang.org/t/constructing-a-let-block/110270 "2024-02-15T20:58:03Z")

</div>

Can someone help explain why the let block only works up to the second argument? How would I rewrite this to account for all arguments? julia\> a = 4 4 julia\> eval(Expr(:let, :(b = a), :(h = b+2), :(d = b+3))) 6 Thank…

---

## [How to correctly unroll loop in LoopVectorization?](https://discourse.julialang.org/t/how-to-correctly-unroll-loop-in-loopvectorization/110229)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 12\
**Last updated:** [February 15, 2024, 8:47pm UTC](https://discourse.julialang.org/t/how-to-correctly-unroll-loop-in-loopvectorization/110229 "2024-02-15T20:47:01Z")

</div>

Hello! I have made a toy script here, SummaryToy script example using StaticArrays using LoopVectorization using StructArrays using BenchmarkTools struct DimensionalData{D, T} vectors::Tuple{Vararg{Vector{T}, D}}…

---

## [Julia never stops compiling for new recursive Vector types](https://discourse.julialang.org/t/julia-never-stops-compiling-for-new-recursive-vector-types/110232)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 18\
**Last updated:** [February 15, 2024, 8:21pm UTC](https://discourse.julialang.org/t/julia-never-stops-compiling-for-new-recursive-vector-types/110232 "2024-02-15T20:21:54Z")

</div>

This is… unexpected behavior. I feel like inference should give up at some point. julia\> w = \[1\]; @time for i = 1:100 global w = \[w\] end 0.227547 seconds (466.23 k allocations: 31.348 MiB, 1.52% gc tim…

---

## [Differentiating through Chebyshev coeff basis](https://discourse.julialang.org/t/differentiating-through-chebyshev-coeff-basis/110234)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 4\
**Last updated:** [February 15, 2024, 8:20pm UTC](https://discourse.julialang.org/t/differentiating-through-chebyshev-coeff-basis/110234 "2024-02-15T20:20:16Z")

</div>

I asked a similar question in slack before and now I have formulated my question much better. Maybe a related issue here chainrules for chebpoly constructors · Issue #10 · JuliaMath/FastChebInterp.jl · GitHub Let’a sa…

---

## [Recruiting Reviewers for JuliaCon 2024](https://discourse.julialang.org/t/recruiting-reviewers-for-juliacon-2024/109986)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 0\
**Last updated:** [February 9, 2024, 3:09pm UTC](https://discourse.julialang.org/t/recruiting-reviewers-for-juliacon-2024/109986 "2024-02-09T15:09:27Z")

</div>

Hey everyone, The JuliaCon 2024 Program Committee is recruiting reviewers for JuliaCon 2024. To express your interest, sign up at this form: https://forms.gle/fJuUV1GaPXo1mcdw6. No prior experience necessary! Best, J…

---

## [String interpolation formatting](https://discourse.julialang.org/t/string-interpolation-formatting/91454)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://discourse.julialang.org/u/Nathaniel)\
**Replies:** 13\
**Last updated:** [February 15, 2024, 7:52pm UTC](https://discourse.julialang.org/t/string-interpolation-formatting/91454 "2024-02-15T19:52:47Z")

</div>

Consider println("The square root of pi is $(sqrt(pi))") which displays The square root of pi is 1.7724538509055159 How can I change this code if I only want to print the answer to (say) two decimal places? I know t…

---

## [Matching filtered Vector{String} to non-filtered Matrix{Any} - GPS station names](https://discourse.julialang.org/t/matching-filtered-vector-string-to-non-filtered-matrix-any-gps-station-names/110230)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 9\
**Last updated:** [February 15, 2024, 7:44pm UTC](https://discourse.julialang.org/t/matching-filtered-vector-string-to-non-filtered-matrix-any-gps-station-names/110230 "2024-02-15T19:44:51Z")

</div>

Hello all, I’ve been attempting to match an array of GPS stations names that I’ve filtered such that I have a time frame I’m interested and that the percentage of collection in that time is \> 93%. The issue is, that I …

---

## [Unexpected JuMP variable order when indexed by tuple](https://discourse.julialang.org/t/unexpected-jump-variable-order-when-indexed-by-tuple/110262)

<div class="topic-metadata">

**Author:** [@brunompacheco](https://discourse.julialang.org/u/brunompacheco)\
**Replies:** 7\
**Last updated:** [February 15, 2024, 7:39pm UTC](https://discourse.julialang.org/t/unexpected-jump-variable-order-when-indexed-by-tuple/110262 "2024-02-15T19:39:34Z")

</div>

When creating a variable indexed by Tuple{Int64, Float64}, I get a different order (apparently, sorted as string) than that provided when creating or accessing the variable. Steps to reproduce: using JuMP model = Mode…

---

## [Truncating padded text](https://discourse.julialang.org/t/truncating-padded-text/110256)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 8\
**Last updated:** [February 15, 2024, 7:39pm UTC](https://discourse.julialang.org/t/truncating-padded-text/110256 "2024-02-15T19:39:33Z")

</div>

I’ve often wished that rpad and lpad would truncate to the given width if they’re already wider than n — do we have a function or succinct idiom for that somewhere?

---

## [Displaying figure while recording animation using Makie.record](https://discourse.julialang.org/t/displaying-figure-while-recording-animation-using-makie-record/110269)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 1\
**Last updated:** [February 15, 2024, 6:47pm UTC](https://discourse.julialang.org/t/displaying-figure-while-recording-animation-using-makie-record/110269 "2024-02-15T18:47:00Z")

</div>

I am able to record an animation of a figure in Makie using record. I can check if the figure is correctly updated in the animation by playing the movie file after the recording finishes. However, animation creation us…

---

## [How to deal with numerical error in tiedrank](https://discourse.julialang.org/t/how-to-deal-with-numerical-error-in-tiedrank/110263)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [February 15, 2024, 4:34pm UTC](https://discourse.julialang.org/t/how-to-deal-with-numerical-error-in-tiedrank/110263 "2024-02-15T16:34:50Z")

</div>

Hi all, I would like to account for numerical error in tiedrank from StatsBase. For example, julia\> tiedrank(\[1,1+eps(),3\]) 3-element Vector{Float64}: 1.0 2.0 3.0 I would like the first two elements to be treated a…

---

## [CoCalc.com Demo Thursday 4 pm ET](https://discourse.julialang.org/t/cocalc-com-demo-thursday-4-pm-et/110088)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 2\
**Last updated:** [February 15, 2024, 4:00pm UTC](https://discourse.julialang.org/t/cocalc-com-demo-thursday-4-pm-et/110088 "2024-02-15T16:00:15Z")

</div>

Hello all. We’ve been chatting with Blaec from CoCalc.com about potentially sponsoring JuliaCon 2024 thanks to @cpfiffer : I got a preview in our initial chat, and I thought more of you may be interested to see what i…

---

## [JuliaHub package links and GitHub stars](https://discourse.julialang.org/t/juliahub-package-links-and-github-stars/110255)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 1\
**Last updated:** [February 15, 2024, 3:57pm UTC](https://discourse.julialang.org/t/juliahub-package-links-and-github-stars/110255 "2024-02-15T15:57:45Z")

</div>

I like the fact that automatic links are now created on Discourse for packages. I am wondering however if the fact that the links point to JuliaHub instead of to GitHub might reduce the likelihood of people starring pack…

---

## [Result of exponentials are (sometimes) different from Matlab](https://discourse.julialang.org/t/result-of-exponentials-are-sometimes-different-from-matlab/110241)

<div class="topic-metadata">

**Author:** [@simonw1](https://discourse.julialang.org/u/simonw1)\
**Replies:** 5\
**Last updated:** [February 15, 2024, 1:43pm UTC](https://discourse.julialang.org/t/result-of-exponentials-are-sometimes-different-from-matlab/110241 "2024-02-15T13:43:40Z")

</div>

I’m trying to port an algorithm originally written in matlab to Julia and I’m getting a weird error. For some values and some exponents, the results of raising the value to the exponent differs between matlab and Julia.…

---

## [Type instability possibly due to variable playing role of input and output](https://discourse.julialang.org/t/type-instability-possibly-due-to-variable-playing-role-of-input-and-output/110178)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 11\
**Last updated:** [February 15, 2024, 12:43pm UTC](https://discourse.julialang.org/t/type-instability-possibly-due-to-variable-playing-role-of-input-and-output/110178 "2024-02-15T12:43:11Z")

</div>

EDIT: contrary to the title, I have come to the conclusion that the problem lies elsewhere (see post below). Unless this contradicts etiquette, I will not modify the original title, nor the original question below. NEW …

---

## [Debugging segfault when calling versioninfo()](https://discourse.julialang.org/t/debugging-segfault-when-calling-versioninfo/110239)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 7\
**Last updated:** [February 15, 2024, 10:35am UTC](https://discourse.julialang.org/t/debugging-segfault-when-calling-versioninfo/110239 "2024-02-15T10:35:18Z")

</div>

I’m having some issues that Julia (1.10.x, both from the official tarball or from juliaup, probably same binary) segfaults when I do a simple versioninfo(). This is on a compute node of an HPC system, so there might be w…

---

## [How to move an array of struct with array members to GPU?](https://discourse.julialang.org/t/how-to-move-an-array-of-struct-with-array-members-to-gpu/110240)

<div class="topic-metadata">

**Author:** [@zhzhang](https://discourse.julialang.org/u/zhzhang)\
**Replies:** 2\
**Last updated:** [February 15, 2024, 9:45am UTC](https://discourse.julialang.org/t/how-to-move-an-array-of-struct-with-array-members-to-gpu/110240 "2024-02-15T09:45:30Z")

</div>

Hello, Recently I wanted to write a finite volume method navier-stokes solver with CUDA.jl. I was planning to store my mesh as a large array of cell structs, which stores positions, indices, primitive variables, etc for…

---

## [Box coordinates from image segmentation](https://discourse.julialang.org/t/box-coordinates-from-image-segmentation/109987)

<div class="topic-metadata">

**Author:** [@sardinecan](https://discourse.julialang.org/u/sardinecan)\
**Replies:** 8\
**Last updated:** [February 15, 2024, 9:08am UTC](https://discourse.julialang.org/t/box-coordinates-from-image-segmentation/109987 "2024-02-15T09:08:04Z")

</div>

Hi Everyone, I’m new to the field of image segmentation, and I need your help to find a way of determining the coordinates of a box from image segmentation. I have a batch of images like thie one: I try to find a w…

---

## [.. broadcast object property](https://discourse.julialang.org/t/broadcast-object-property/47104)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 41\
**Last updated:** [February 15, 2024, 8:21am UTC](https://discourse.julialang.org/t/broadcast-object-property/47104 "2024-02-15T08:21:52Z")

</div>

A few years back I requested … be used to broadcast object property over array of objects. If A.x is property x of object A. Then Array\_of\_A…x is an array of the x properties of the A objects. Was told … was al…

---

## [(Plots.jl) Aspect ratio for log-log plots](https://discourse.julialang.org/t/plots-jl-aspect-ratio-for-log-log-plots/110216)

<div class="topic-metadata">

**Author:** [@dpt](https://discourse.julialang.org/u/dpt)\
**Replies:** 2\
**Last updated:** [February 14, 2024, 7:04pm UTC](https://discourse.julialang.org/t/plots-jl-aspect-ratio-for-log-log-plots/110216 "2024-02-14T19:04:40Z")

</div>

It seems that Plots.jl doesn’t respect aspect\_ratio=1.0 for log-log plots. This is particularly annoying since particular slopes have meaning in such plots (order of polynomial growth). I saw this mentioned in passing in…

---

## [Github display of Julia Jupyter notebooks is currently broken](https://discourse.julialang.org/t/github-display-of-julia-jupyter-notebooks-is-currently-broken/110039)

<div class="topic-metadata">

**Author:** [@setrar](https://discourse.julialang.org/u/setrar)\
**Replies:** 14\
**Last updated:** [February 15, 2024, 5:56am UTC](https://discourse.julialang.org/t/github-display-of-julia-jupyter-notebooks-is-currently-broken/110039 "2024-02-15T05:56:10Z")

</div>

I am not sure where to ask help for this issue, I am trying my luck here. For the past few months, I have been using github.com to display Jupyter Notebooks REPORT.ipynb using the Julia language. The github.com backen…

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

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