# Latest

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

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

**Page:** 608

---

## [Allocations when indexing (Abstract)Arrays with large dimension](https://discourse.julialang.org/t/allocations-when-indexing-abstract-arrays-with-large-dimension/103383)

<div class="topic-metadata">

**Author:** [@spionkaese](https://discourse.julialang.org/u/spionkaese)\
**Replies:** 6\
**Last updated:** [August 31, 2023, 9:49pm UTC](https://discourse.julialang.org/t/allocations-when-indexing-abstract-arrays-with-large-dimension/103383 "2023-08-31T21:49:30Z")

</div>

I’ve been working with tensors based on AbstractArrays (see https://gist.github.com/AlexanderNenninger/461f37315e45071a8c91b18d73901431 ) that map Base.getindex(A, i...) to a function call A.f(i). While the individual i…

---

## [How is a non-standard literal different from calling its corresponding macro?](https://discourse.julialang.org/t/how-is-a-non-standard-literal-different-from-calling-its-corresponding-macro/103349)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 8\
**Last updated:** [August 31, 2023, 11:35pm UTC](https://discourse.julialang.org/t/how-is-a-non-standard-literal-different-from-calling-its-corresponding-macro/103349 "2023-08-31T23:35:30Z")

</div>

julia\> x = "whoops" "whoops" julia\> @raw\_str("$x") # huh... ERROR: UndefVarError: x not defined Stacktrace: \[1\] top-level scope @ REPL\[48\]:1 julia\> "$x", raw"$x" # expected ("whoops", "\\$x") julia\> @macroexpand @r…

---

## [Get user to input path, with tab completion](https://discourse.julialang.org/t/get-user-to-input-path-with-tab-completion/103399)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 13\
**Last updated:** [August 31, 2023, 9:47pm UTC](https://discourse.julialang.org/t/get-user-to-input-path-with-tab-completion/103399 "2023-08-31T21:47:06Z")

</div>

At the Julia REPL, I can start to enter a path, and get tab completion. Is there a way to get the same thing, when interactively asking for user input from a program? Currently I use readline(), but tab completion doesn’…

---

## [Scope of variables in Pluto](https://discourse.julialang.org/t/scope-of-variables-in-pluto/103413)

<div class="topic-metadata">

**Author:** [@GenerallyClueless](https://discourse.julialang.org/u/GenerallyClueless)\
**Replies:** 11\
**Last updated:** [August 31, 2023, 9:45pm UTC](https://discourse.julialang.org/t/scope-of-variables-in-pluto/103413 "2023-08-31T21:45:42Z")

</div>

Hi everybody! I am new to Julia, POMDPs, and Pluto… and I am using all three to try and simulate a POMDP problem. I know that I am probably making some mistakes in my POMDP, but my immediate error is: UndefVarError: i …

---

## [Applicability of interface guarantees to overloads](https://discourse.julialang.org/t/applicability-of-interface-guarantees-to-overloads/103427)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 9:30pm UTC](https://discourse.julialang.org/t/applicability-of-interface-guarantees-to-overloads/103427 "2023-08-31T21:30:13Z")

</div>

If M.f(x::Any) defined in M documents a postcondition (e.g. that the return value is sorted), is there a norm that an overload M.f(x::M2.T) defined in module M2 should also ensure that postcondition holds?

---

## [Optimization v3.16.0 errors in precompile](https://discourse.julialang.org/t/optimization-v3-16-0-errors-in-precompile/103229)

<div class="topic-metadata">

**Author:** [@jaksaa](https://discourse.julialang.org/u/jaksaa)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 8:35pm UTC](https://discourse.julialang.org/t/optimization-v3-16-0-errors-in-precompile/103229 "2023-08-31T20:35:10Z")

</div>

Have Julia Version 1.9.2 Optimization v3.16.0 Two errors are present │ ┌ Error: Error during loading of extension OptimizationSparseFinitediffExt of Optimization, use \`Base.retry\_load\_extensions()\` to retry. and │…

---

## [Non-allocating leaf iterator over simple tree](https://discourse.julialang.org/t/non-allocating-leaf-iterator-over-simple-tree/103425)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 8:30pm UTC](https://discourse.julialang.org/t/non-allocating-leaf-iterator-over-simple-tree/103425 "2023-08-31T20:30:59Z")

</div>

I have a tree made from a node type like this struct Node children::Vector{Node} end For the life of me, I cannot figure out how to write a non-allocating iterator over the leaves of that tree. I tried with genera…

---

## [Is there an equivalent in Julia for the R change point detection library ecp](https://discourse.julialang.org/t/is-there-an-equivalent-in-julia-for-the-r-change-point-detection-library-ecp/103422)

<div class="topic-metadata">

**Author:** [@Vidyasagar\_Atmakuri](https://discourse.julialang.org/u/Vidyasagar_Atmakuri)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 7:03pm UTC](https://discourse.julialang.org/t/is-there-an-equivalent-in-julia-for-the-r-change-point-detection-library-ecp/103422 "2023-08-31T19:03:42Z")

</div>

I am rewriting an R based forecast model which is using the ecp library, specifically the e.divisive function for change point detection. Is there an equivalent package in Julia that I can use. https://rdrr.io/cran/ecp/…

---

## [Subtract Float32 number from Float64 number - what's the rule?](https://discourse.julialang.org/t/subtract-float32-number-from-float64-number-whats-the-rule/103324)

<div class="topic-metadata">

**Author:** [@Motz](https://discourse.julialang.org/u/Motz)\
**Replies:** 13\
**Last updated:** [August 31, 2023, 5:12pm UTC](https://discourse.julialang.org/t/subtract-float32-number-from-float64-number-whats-the-rule/103324 "2023-08-31T17:12:57Z")

</div>

I am trying to understand what happens when I subtract a Float32 from a Float64 where the numbers are “very small”. I understand what happens when both are Float64 julia\> 1.401298464324817e-45 - 1.0e-45 4.0129846432481…

---

## [Can someone explain - Warning: The current proposal will be rejected due to numerical error(s)](https://discourse.julialang.org/t/can-someone-explain-warning-the-current-proposal-will-be-rejected-due-to-numerical-error-s/103409)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 4:41pm UTC](https://discourse.julialang.org/t/can-someone-explain-warning-the-current-proposal-will-be-rejected-due-to-numerical-error-s/103409 "2023-08-31T16:41:38Z")

</div>

I want to know what causes this? What is theory behind it? A proposal getting rejected because its not suitable I understand but what it mean by numerical errors and at what stage? │ isfinite.((θ, r, ℓπ, ℓκ)) = (true,…

---

## [Type system abuse, advisability of](https://discourse.julialang.org/t/type-system-abuse-advisability-of/103390)

<div class="topic-metadata">

**Author:** [@deaminase](https://discourse.julialang.org/u/deaminase)\
**Replies:** 17\
**Last updated:** [August 31, 2023, 4:25pm UTC](https://discourse.julialang.org/t/type-system-abuse-advisability-of/103390 "2023-08-31T16:25:36Z")

</div>

Part of my learning process with Julia has been to abuse the type system in various fun ways to see what’s possible. My latest monstrosity uses type parameters for partial application of functions: module TypeAbuse stru…

---

## [Short Names for Keyword Arguments](https://discourse.julialang.org/t/short-names-for-keyword-arguments/103407)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 3:31pm UTC](https://discourse.julialang.org/t/short-names-for-keyword-arguments/103407 "2023-08-31T15:31:11Z")

</div>

Can I alias keyword arguments for brevity? For example, in MATLAB I can do the following x = linspace(0, 1); y = x.^2; lw = "linewidth" close all plot(x, y, lw=2) There is a similar thing in python’s matplotlib where…

---

## [Live-streamed and recorded seminar "Julia for Materials Modelling"](https://discourse.julialang.org/t/live-streamed-and-recorded-seminar-julia-for-materials-modelling/99264)

<div class="topic-metadata">

**Author:** [@mfh](https://discourse.julialang.org/u/mfh)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 1:54pm UTC](https://discourse.julialang.org/t/live-streamed-and-recorded-seminar-julia-for-materials-modelling/99264 "2023-08-31T13:54:35Z")

</div>

Dear all I’ll do a (live-streamed) seminar “Julia for Materials Modelling” tomorrow at 3pm CEST — with basically the focus on the current state of Julia for atomistic materials modelling. See Julia for Materials Modelli…

---

## [How to solve the error while loading saved chain as JLD2 file or JLS file?](https://discourse.julialang.org/t/how-to-solve-the-error-while-loading-saved-chain-as-jld2-file-or-jls-file/36031)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 6\
**Last updated:** [August 31, 2023, 1:52pm UTC](https://discourse.julialang.org/t/how-to-solve-the-error-while-loading-saved-chain-as-jld2-file-or-jls-file/36031 "2023-08-31T13:52:39Z")

</div>

Hi, I have saved the chain that generated using Turing package as below: using JLD2, FileIO using Turing # Set the true probability of heads in a coin. p\_true = 0.5 # Iterate from having seen 0 observations t…

---

## [Anybody using ESDL (Energy System Modeling Language)?](https://discourse.julialang.org/t/anybody-using-esdl-energy-system-modeling-language/103405)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 1:49pm UTC](https://discourse.julialang.org/t/anybody-using-esdl-energy-system-modeling-language/103405 "2023-08-31T13:49:27Z")

</div>

Is anybody using the ESDL format (ESDL Documentation - ESDL, Meer Informatie)? I noticed that it is not as widespread outside of the Netherlands, but it looks very useful: ESDL is a modelling language created to descr…

---

## [\[DiffEqParamEstim.jl\] Add a findfit function](https://discourse.julialang.org/t/diffeqparamestim-jl-add-a-findfit-function/103384)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 11:34am UTC](https://discourse.julialang.org/t/diffeqparamestim-jl-add-a-findfit-function/103384 "2023-08-31T11:34:14Z")

</div>

Hy ! I had written a Git issue a few months ago ( Add a findfit function · Issue #220 · SciML/DiffEqParamEstim.jl (github.com)) on this subject but having had no response I take the liberty of making a post here. Since…

---

## [Plot(.) not shown with CTRL+ENTER but it does in the VSCode terminal](https://discourse.julialang.org/t/plot-not-shown-with-ctrl-enter-but-it-does-in-the-vscode-terminal/103396)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 10:06am UTC](https://discourse.julialang.org/t/plot-not-shown-with-ctrl-enter-but-it-does-in-the-vscode-terminal/103396 "2023-08-31T10:06:18Z")

</div>

Hello, from yesterday I can’t plot if I use the plot(.) command in the VSCode editor with line-by-line command. I have the hover text appearing on the right with Plot{Plots.GRBackend() n=1} as normal, but then the plot i…

---

## [Can't format plot ticks when Dates or strings are used as input](https://discourse.julialang.org/t/cant-format-plot-ticks-when-dates-or-strings-are-used-as-input/103185)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 9:07am UTC](https://discourse.julialang.org/t/cant-format-plot-ticks-when-dates-or-strings-are-used-as-input/103185 "2023-08-31T09:07:21Z")

</div>

Consider this piece of code: using Plots plot(1:10, rand(10), xformatter = x -\> "asd") This correctly produces a plot where the ticks on the X axis are all the string “asd”. If we instead do this: using Plots plot(st…

---

## [How can I differentiate a subset of the outputs of a neural network in Flux or Lux?](https://discourse.julialang.org/t/how-can-i-differentiate-a-subset-of-the-outputs-of-a-neural-network-in-flux-or-lux/103354)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 10\
**Last updated:** [August 31, 2023, 7:20am UTC](https://discourse.julialang.org/t/how-can-i-differentiate-a-subset-of-the-outputs-of-a-neural-network-in-flux-or-lux/103354 "2023-08-31T07:20:48Z")

</div>

Is there a way in Flux or Lux to differentiate a subset of the outputs of a Neural Network model? The reason why I am asking is that I have a target matrix with 6 outputs and 3000 observations (very little data) but the …

---

## [GLMakie: plot surface and nonlinear constraints](https://discourse.julialang.org/t/glmakie-plot-surface-and-nonlinear-constraints/62619)

<div class="topic-metadata">

**Author:** [@cvanaret](https://discourse.julialang.org/u/cvanaret)\
**Replies:** 7\
**Last updated:** [August 31, 2023, 7:16am UTC](https://discourse.julialang.org/t/glmakie-plot-surface-and-nonlinear-constraints/62619 "2023-08-31T07:16:42Z")

</div>

Hi, I’m plotting the surface of a function (the objective function of an optimization problem) with this code: using GLMakie let # range x = LinRange(-2, 0.5, 51) y = LinRange(-2, 2, 51) # objective fun…

---

## [How to correctly set a WHILE loop in Julia?](https://discourse.julialang.org/t/how-to-correctly-set-a-while-loop-in-julia/103379)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [August 31, 2023, 5:52am UTC](https://discourse.julialang.org/t/how-to-correctly-set-a-while-loop-in-julia/103379 "2023-08-31T05:52:49Z")

</div>

Hello, I would like to set a loop to get information from the user from console. The loop should run until the user says otherwise. I have prepared this script: ANS = "N" while ANS == "N" # get data println("…

---

## [Update Julia in Ubuntu 22](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [August 31, 2023, 1:54am UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376 "2023-08-31T01:54:08Z")

</div>

Hello, I am running a julia file from console in Ubuntu 22 but I got this error: $ julia natParmsInput.jl The latest version of Julia in the \`release\` channel is 1.9.3+0.x64.linux.gnu. You currently have \`1.9.0+0.x64.…

---

## [Modeling multimodal data in Flux](https://discourse.julialang.org/t/modeling-multimodal-data-in-flux/103257)

<div class="topic-metadata">

**Author:** [@usiam](https://discourse.julialang.org/u/usiam)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 12:34am UTC](https://discourse.julialang.org/t/modeling-multimodal-data-in-flux/103257 "2023-08-31T00:34:14Z")

</div>

Hey. I am trying to model some multimodal time-series data. The data has 3 “components” - a time-series component (shape = \[timesteps, channels, batchsize\]), and 2 separate flattened components (shape = \[numfeatures, bat…

---

## [Juliaup does not launch correct binary](https://discourse.julialang.org/t/juliaup-does-not-launch-correct-binary/103311)

<div class="topic-metadata">

**Author:** [@adamslc](https://discourse.julialang.org/u/adamslc)\
**Replies:** 13\
**Last updated:** [August 30, 2023, 11:14pm UTC](https://discourse.julialang.org/t/juliaup-does-not-launch-correct-binary/103311 "2023-08-30T23:14:58Z")

</div>

I expect the first command below to launch 1.10.0-beta, but it doesn’t. Can anyone tell me what I am doing wrong? \> julia +1.10 -v julia version 1.9.3 \> which julia /usr/local/bin/julia \> ls -l /usr/local/bin/julia lrwx…

---

## [Creating Sparse NTuple](https://discourse.julialang.org/t/creating-sparse-ntuple/103350)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 4\
**Last updated:** [August 30, 2023, 10:06pm UTC](https://discourse.julialang.org/t/creating-sparse-ntuple/103350 "2023-08-30T22:06:51Z")

</div>

I have a problem where I want to make an NTuple of length N where I’m given indices and values for the non-zero components. The equivalent function for creating a Vector would look something like function foo(N, nzindi…

---

## [Memory not released on HTTP POST requests?!](https://discourse.julialang.org/t/memory-not-released-on-http-post-requests/103336)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 2\
**Last updated:** [August 30, 2023, 9:51pm UTC](https://discourse.julialang.org/t/memory-not-released-on-http-post-requests/103336 "2023-08-30T21:51:07Z")

</div>

Hello, I was trying to find a memory leak in my application, but now I think either it is in HTTP.jl or I’m doing some thing wrong… I created a test script to reproduce the issue (replace “path/to/a/large/file.iso” to …

---

## [Promote on ArbFloat issue?](https://discourse.julialang.org/t/promote-on-arbfloat-issue/102839)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 5\
**Last updated:** [August 30, 2023, 9:27pm UTC](https://discourse.julialang.org/t/promote-on-arbfloat-issue/102839 "2023-08-30T21:27:25Z")

</div>

I am trying to make sure that all of my ArbFloats are with the same precision. I do not understand why promote works like that: a = ArbFloat(2, digits=200) typeof(a) # ArbFloat{691} typeof.(promote(a, ArbFloat(0.0))) #…

---

## [What determines if integers are formatted as hex or not in the REPL?](https://discourse.julialang.org/t/what-determines-if-integers-are-formatted-as-hex-or-not-in-the-repl/103386)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 3\
**Last updated:** [August 30, 2023, 8:58pm UTC](https://discourse.julialang.org/t/what-determines-if-integers-are-formatted-as-hex-or-not-in-the-repl/103386 "2023-08-30T20:58:48Z")

</div>

Why is one printed as hex and the other not? Also, why does the line number not increase after the first assignment? (doesn’t seem to always do that - just noticed it) \_ \_ \_(\_)\_ | Documentation: https://d…

---

## [Simple compile-time evaluation for struct types](https://discourse.julialang.org/t/simple-compile-time-evaluation-for-struct-types/103326)

<div class="topic-metadata">

**Author:** [@RPS](https://discourse.julialang.org/u/RPS)\
**Replies:** 3\
**Last updated:** [August 30, 2023, 11:58am UTC](https://discourse.julialang.org/t/simple-compile-time-evaluation-for-struct-types/103326 "2023-08-30T11:58:38Z")

</div>

I have a nested struct similar to the following: struct A{N1, N2, T} a1::SVector{N1, T} a2::SVector{N2, T} b::B{N1, N2, T} end N1 and N2 are integers satisfying some simple (known) relationship, e.g. N2=N1+1. The…

---

## [Nice colour scheme / syntax highlighting: dimmed types](https://discourse.julialang.org/t/nice-colour-scheme-syntax-highlighting-dimmed-types/103385)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 0\
**Last updated:** [August 30, 2023, 8:10pm UTC](https://discourse.julialang.org/t/nice-colour-scheme-syntax-highlighting-dimmed-types/103385 "2023-08-30T20:10:19Z")

</div>

Not a question, just wanna share an upgrade to my colour scheme for Julia in VS Code, which others might find pleasing too. What it looks like: Dark mode: Light mode: These are the themes “One Dark Pro Darker” …

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

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