# Latest

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

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

**Page:** 527

---

## [Create \`ImmutableDict\` with values of differenrt types](https://discourse.julialang.org/t/create-immutabledict-with-values-of-differenrt-types/107831)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [December 20, 2023, 11:02am UTC](https://discourse.julialang.org/t/create-immutabledict-with-values-of-differenrt-types/107831 "2023-12-20T11:02:22Z")

</div>

Simple MWE: d1 = Dict(:a =\> 1.0, :b =\> "Hello world") # Works d2 = Base.ImmutableDict(:a =\> 1.0, :b =\> "Hello world") # Fails How do I create an ImmutableDict where keys can have arbitrary values?

---

## [How can I learn SDL with Julia?](https://discourse.julialang.org/t/how-can-i-learn-sdl-with-julia/107798)

<div class="topic-metadata">

**Author:** [@Sabe](https://discourse.julialang.org/u/Sabe)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 9:51am UTC](https://discourse.julialang.org/t/how-can-i-learn-sdl-with-julia/107798 "2023-12-20T09:51:27Z")

</div>

So, I have always wanted to use sdl but I don’t like C/C++ and I really want to use Julia but what should I look at for it? The only thing that the package gives you is the sdl wiki which is full of C++ code. What do I d…

---

## [Calculate positions of astronomical objects from a terrestrial observatory](https://discourse.julialang.org/t/calculate-positions-of-astronomical-objects-from-a-terrestrial-observatory/107772)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 8\
**Last updated:** [December 20, 2023, 9:12am UTC](https://discourse.julialang.org/t/calculate-positions-of-astronomical-objects-from-a-terrestrial-observatory/107772 "2023-12-20T09:12:34Z")

</div>

I am currently converting some AstroPy-based Python libraries to Julia and one of them (which is the most important one) is used to calculate the positions of astronomical objects for a given (detector) location and obse…

---

## [Garbage collection and threading](https://discourse.julialang.org/t/garbage-collection-and-threading/107250)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 17\
**Last updated:** [December 20, 2023, 4:57am UTC](https://discourse.julialang.org/t/garbage-collection-and-threading/107250 "2023-12-20T04:57:28Z")

</div>

I’ve been struggling with performance issues with my code for weeks. I’ve now narrowed down the primary problem to what seems to be a threading bottleneck in the garbage collector. Sorry, if this has been discussed alrea…

---

## [Rock the Lovely Pluto.jl Notebook in the LXD-LXC Cloud behind Nginx](https://discourse.julialang.org/t/rock-the-lovely-pluto-jl-notebook-in-the-lxd-lxc-cloud-behind-nginx/107756)

<div class="topic-metadata">

**Author:** [@Guanglin\_Du](https://discourse.julialang.org/u/Guanglin_Du)\
**Replies:** 4\
**Last updated:** [December 20, 2023, 1:18am UTC](https://discourse.julialang.org/t/rock-the-lovely-pluto-jl-notebook-in-the-lxd-lxc-cloud-behind-nginx/107756 "2023-12-20T01:18:16Z")

</div>

1. Background A private cloud based on the powerful LXD-LXC system container technology Nginx as the frontend to support both HTTP and HTTPS Ubuntun or Arch Linux-based containers 2. Install Julia onto your container …

---

## [Suggestion on this plot](https://discourse.julialang.org/t/suggestion-on-this-plot/107723)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 11:35pm UTC](https://discourse.julialang.org/t/suggestion-on-this-plot/107723 "2023-12-19T23:35:31Z")

</div>

Is there any easier way of doing this kind of plot? Instead of just x\_1, I would put a value, x\_1 = 100 for example. The way I think it would need to adapt a little the quiver plot and another plots, as here Plottin…

---

## [Cannot query user\_version from SQLite Database](https://discourse.julialang.org/t/cannot-query-user-version-from-sqlite-database/107829)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 8:37pm UTC](https://discourse.julialang.org/t/cannot-query-user-version-from-sqlite-database/107829 "2023-12-19T20:37:34Z")

</div>

Hello, does anybody know how should I execute this query? using SQLite db = SQLite.DB() SQLite.execute(db, "PRAGMA user\_version = 3;") @show version = SQLite.execute(db, "PRAGMA user\_version;") # returns 100

---

## [Admin panel front end with julia](https://discourse.julialang.org/t/admin-panel-front-end-with-julia/106720)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 4\
**Last updated:** [December 19, 2023, 7:18pm UTC](https://discourse.julialang.org/t/admin-panel-front-end-with-julia/106720 "2023-12-19T19:18:48Z")

</div>

Hello, I would like to connect a front-end admin panel/dashboard to a Julia library from localhost web browser. The front end needs a left panel and on a right and some dashboards, tables, texts and reactive button. For…

---

## [Trouble Running Julia REPL in Git Bash on Windows](https://discourse.julialang.org/t/trouble-running-julia-repl-in-git-bash-on-windows/107790)

<div class="topic-metadata">

**Author:** [@rud-lucien](https://discourse.julialang.org/u/rud-lucien)\
**Replies:** 7\
**Last updated:** [December 19, 2023, 6:31pm UTC](https://discourse.julialang.org/t/trouble-running-julia-repl-in-git-bash-on-windows/107790 "2023-12-19T18:31:34Z")

</div>

Hello Julia Community, I’ve encountered an issue when trying to run the Julia REPL in Git Bash on my Windows machine and I’m hoping for some assistance in troubleshooting the problem. Issue Description: When I attempt …

---

## [Is it possible to suppress the chain of 'caused by' output when handling an exception?](https://discourse.julialang.org/t/is-it-possible-to-suppress-the-chain-of-caused-by-output-when-handling-an-exception/107823)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 3\
**Last updated:** [December 19, 2023, 5:20pm UTC](https://discourse.julialang.org/t/is-it-possible-to-suppress-the-chain-of-caused-by-output-when-handling-an-exception/107823 "2023-12-19T17:20:27Z")

</div>

When handling an exception that was ‘caused by’ another exception, Julia prints out a stack of exceptions. Normally this is helpful, but in this case I want to handle the exception, and give the user a helpful message. I…

---

## [@btime does not work properly](https://discourse.julialang.org/t/btime-does-not-work-properly/107825)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 3\
**Last updated:** [December 19, 2023, 5:39pm UTC](https://discourse.julialang.org/t/btime-does-not-work-properly/107825 "2023-12-19T17:39:24Z")

</div>

I am astonished by how the @btime (BenchmarkTools) macro works (or misworks). I have the following simple program, which read quotes from the S&P500 index and from Microsoft. using MarketData, DataFrames, BenchmarkTool…

---

## [Create a function as a attribute to a struct](https://discourse.julialang.org/t/create-a-function-as-a-attribute-to-a-struct/107817)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 4:44pm UTC](https://discourse.julialang.org/t/create-a-function-as-a-attribute-to-a-struct/107817 "2023-12-19T16:44:20Z")

</div>

I want to create a clock object with the attributes clock.initial, clock.current and clock.elapsed. I now want functions like initialize, update, play and pause. Is there a way to have something like clock.initialize(…

---

## [Makie add manual legend](https://discourse.julialang.org/t/makie-add-manual-legend/107821)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 4:27pm UTC](https://discourse.julialang.org/t/makie-add-manual-legend/107821 "2023-12-19T16:27:13Z")

</div>

I have a plot such as barplot(1:3, 2:4, color = \[:red, :blue, :red\]) and would like to add a legend such that the red =\> "A" and blue =\> "B", how could I accomplish that?

---

## [When precompiling Package extensions no error information is printed](https://discourse.julialang.org/t/when-precompiling-package-extensions-no-error-information-is-printed/106575)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 4:10pm UTC](https://discourse.julialang.org/t/when-precompiling-package-extensions-no-error-information-is-printed/106575 "2023-12-19T16:10:59Z")

</div>

Hi there, I am surprised by no error info when I instantiate a project of mine where one dependency uses PackageExtensions. even redoing import Pkg; Pkg.precompile() or import Pkg; Pkg.build("MyPackage") don’t print an…

---

## [Why can't I create an ImmutableDict from a vector of pairs (like for a normal cidt)](https://discourse.julialang.org/t/why-cant-i-create-an-immutabledict-from-a-vector-of-pairs-like-for-a-normal-cidt/107811)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [December 19, 2023, 3:25pm UTC](https://discourse.julialang.org/t/why-cant-i-create-an-immutabledict-from-a-vector-of-pairs-like-for-a-normal-cidt/107811 "2023-12-19T15:25:08Z")

</div>

Minimal example: pairs = \[:A =\> 1, :B =\>2\] d1 = Dict(pairs) # works d2 = Base.ImmutableDict(pairs) # errors d3 = Base.ImmutableDict(pairs...) # works It seems strange that d2 fails? Is there a reason, or a way to avoi…

---

## [Solving system of ODE for updating initial conditions](https://discourse.julialang.org/t/solving-system-of-ode-for-updating-initial-conditions/107784)

<div class="topic-metadata">

**Author:** [@acubed](https://discourse.julialang.org/u/acubed)\
**Replies:** 7\
**Last updated:** [December 19, 2023, 2:38pm UTC](https://discourse.julialang.org/t/solving-system-of-ode-for-updating-initial-conditions/107784 "2023-12-19T14:38:07Z")

</div>

I am dealing with the following task. I have system of 2nd order ODE which depend on parameter K. I solve this system using DifferentialEquations on time interval \[0,t\_0\], where the value t\_0 is defined. I define tspan a…

---

## [Take the automatic differentiation with tensor contraction](https://discourse.julialang.org/t/take-the-automatic-differentiation-with-tensor-contraction/106995)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 1:04pm UTC](https://discourse.julialang.org/t/take-the-automatic-differentiation-with-tensor-contraction/106995 "2023-12-19T13:04:02Z")

</div>

When I was doing the automatic differentiation operation encountered some problems, let’s look at my examples firstly: Julia Version 1.9.3 julia\> using TensorRules julia\> using Zygote julia\> using TensorOperations ju…

---

## [Error: curl\_easy\_setopt: 48 with Plots.jl](https://discourse.julialang.org/t/error-curl-easy-setopt-48-with-plots-jl/105171)

<div class="topic-metadata">

**Author:** [@Alex\_Beck](https://discourse.julialang.org/u/Alex_Beck)\
**Replies:** 10\
**Last updated:** [December 19, 2023, 12:33pm UTC](https://discourse.julialang.org/t/error-curl-easy-setopt-48-with-plots-jl/105171 "2023-12-19T12:33:26Z")

</div>

Hey ! I wanted to use plots for one of my project, but I get this error : ┌ Error: curl\_easy\_setopt: 48 │ │ You may be using an old system libcurl library that doesn't understand options that Julia uses. You can try th…

---

## [Introducing NNUE to the Julia community](https://discourse.julialang.org/t/introducing-nnue-to-the-julia-community/107722)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 11:53am UTC](https://discourse.julialang.org/t/introducing-nnue-to-the-julia-community/107722 "2023-12-19T11:53:33Z")

</div>

Background: Local search has been a backbone of many optimization problems. When it comes to heuristic guide, however, machine learning is difficult to integrate into the field due to the time it takes to evaluate the n…

---

## [Anonymous function/comprehension coding](https://discourse.julialang.org/t/anonymous-function-comprehension-coding/107775)

<div class="topic-metadata">

**Author:** [@SergeantMike](https://discourse.julialang.org/u/SergeantMike)\
**Replies:** 10\
**Last updated:** [December 19, 2023, 11:14am UTC](https://discourse.julialang.org/t/anonymous-function-comprehension-coding/107775 "2023-12-19T11:14:56Z")

</div>

Having a difficult time wrapping my head around Anonymous function and Comprehensions coding, not an easy thing for someone who thinks in ecological terms. What I am doing is doing a life-table calculation for the propo…

---

## [Computer algebra systems materials](https://discourse.julialang.org/t/computer-algebra-systems-materials/58064)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 12\
**Last updated:** [December 19, 2023, 10:17am UTC](https://discourse.julialang.org/t/computer-algebra-systems-materials/58064 "2023-12-19T10:17:14Z")

</div>

Announcement of Symbolics.jl bring attention of many people and starts many lively discussion on Discourse and beyond, about Computer Algebra Systems (CAS). In this discusion casual many papers, blog post, talks on YouTu…

---

## [\[ANN\] Tryparse.jl: Parsing things for you](https://discourse.julialang.org/t/ann-tryparse-jl-parsing-things-for-you/107805)

<div class="topic-metadata">

**Author:** [@thofma](https://discourse.julialang.org/u/thofma)\
**Replies:** 2\
**Last updated:** [December 19, 2023, 9:33am UTC](https://discourse.julialang.org/t/ann-tryparse-jl-parsing-things-for-you/107805 "2023-12-19T09:33:17Z")

</div>

TLDR; With Tryparse.jl you can do julia\> Tryparse.tryparse(Int, "1 + 1") 2 julia\> Tryparse.tryparse(Vector{Int}, "\[1, 2\]") 2-element Vector{Int64}: 1 2 and make things like julia script.jl --opt1="\[1, 2, 3\]" --opt…

---

## [2D arrays with ModelingToolkit](https://discourse.julialang.org/t/2d-arrays-with-modelingtoolkit/107448)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 22\
**Last updated:** [December 19, 2023, 8:25am UTC](https://discourse.julialang.org/t/2d-arrays-with-modelingtoolkit/107448 "2023-12-19T08:25:28Z")

</div>

I have the following code, representing a mass attached to a spring-damper element: using ModelingToolkit, OrdinaryDiffEq, LinearAlgebra G\_EARTH = Float64\[0.0, 0.0, -9.81\] # gravitational acceleration \[m/s…

---

## [And Julia keeps amazing me: high precision computation](https://discourse.julialang.org/t/and-julia-keeps-amazing-me-high-precision-computation/107740)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 17\
**Last updated:** [December 19, 2023, 1:12am UTC](https://discourse.julialang.org/t/and-julia-keeps-amazing-me-high-precision-computation/107740 "2023-12-19T01:12:06Z")

</div>

Hi! This application is probably very common for some people, but it is the very first time I really needed high precision computation (BigInt and BigFloat). I am implementing an algorithm for designing frozen orbits i…

---

## ["Abstractdiffy" not defined for Nonconvex.jl](https://discourse.julialang.org/t/abstractdiffy-not-defined-for-nonconvex-jl/107789)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 2:32am UTC](https://discourse.julialang.org/t/abstractdiffy-not-defined-for-nonconvex-jl/107789 "2023-12-19T02:32:01Z")

</div>

Hello, here is a simplified version of my code, which uses Nonconvex.jl (, ReverseDiff.jl, AbstractDifferentiation.jl, and CUDA.jl: using DelimitedFiles, NPZ, SharedArrays, BenchmarkTools, Statistics, DataFrames using …

---

## [Array Contraction, LoopVectorization & AD](https://discourse.julialang.org/t/array-contraction-loopvectorization-ad/107721)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 7\
**Last updated:** [December 18, 2023, 9:16pm UTC](https://discourse.julialang.org/t/array-contraction-loopvectorization-ad/107721 "2023-12-18T21:16:16Z")

</div>

Hi everyone, I have been using LoopVectorization.jl with very satisfactory results to speedup some calculations. Now, I have been hitting a problem: combining it with AD! Although my use case is not super complicated …

---

## [Swap agent positions in Agents.jl](https://discourse.julialang.org/t/swap-agent-positions-in-agents-jl/107774)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [December 18, 2023, 9:05pm UTC](https://discourse.julialang.org/t/swap-agent-positions-in-agents-jl/107774 "2023-12-18T21:05:05Z")

</div>

Hello, My model uses a 2D grid called GridSpaceSingle, which restricts each cell to a maximum of one agent. I would like to switch the positions of two agents. Unfortunately, this functionality is not currently availabl…

---

## [Julia v1.10.0-rc3 is now available](https://discourse.julialang.org/t/julia-v1-10-0-rc3-is-now-available/107791)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [December 18, 2023, 9:01pm UTC](https://discourse.julialang.org/t/julia-v1-10-0-rc3-is-now-available/107791 "2023-12-18T21:01:19Z")

</div>

The Julia developers are pleased to announce that the third release candidate for Julia v1.10.0 is now available. You can download binaries for v1.10.0-rc3 at https://julialang.org/downloads/ in the “upcoming release” se…

---

## [Compatibility issue between ControlSystems and SeeToDee?](https://discourse.julialang.org/t/compatibility-issue-between-controlsystems-and-seetodee/107592)

<div class="topic-metadata">

**Author:** [@Fabrice\_Boquet](https://discourse.julialang.org/u/Fabrice_Boquet)\
**Replies:** 13\
**Last updated:** [December 18, 2023, 8:16pm UTC](https://discourse.julialang.org/t/compatibility-issue-between-controlsystems-and-seetodee/107592 "2023-12-18T20:16:10Z")

</div>

I tried to run a program which uses ControlSystems and SeeToDee at the same time but I never managed to make it work. I am using Julia in Visual Studio Code. I tried many many different things and none of them work. Here…

---

## [ArgumentError: u names not unique. Repeated names:](https://discourse.julialang.org/t/argumenterror-u-names-not-unique-repeated-names/107386)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 14\
**Last updated:** [December 18, 2023, 8:08pm UTC](https://discourse.julialang.org/t/argumenterror-u-names-not-unique-repeated-names/107386 "2023-12-18T20:08:36Z")

</div>

Hi, I’m getting this error when using connect. The error is pretty self-explanatory and the solution is workable. However, every time I’m getting that error, I actually have two inputs that have the same name because t…

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

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