# Latest

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

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

**Page:** 537

---

## [Linear Acoustics/Elasticity in Julia?](https://discourse.julialang.org/t/linear-acoustics-elasticity-in-julia/107270)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 8\
**Last updated:** [December 7, 2023, 8:06pm UTC](https://discourse.julialang.org/t/linear-acoustics-elasticity-in-julia/107270 "2023-12-07T20:06:32Z")

</div>

Hello. Are there any packages suitable for acoustic modelling in Julia? My problem (roughly) consists of a number of transducers transmitting inside a (finite) cylindrical shell and I’d like to compute the sound field. A…

---

## [Extracting the Power Flow equations from PowerModels](https://discourse.julialang.org/t/extracting-the-power-flow-equations-from-powermodels/107165)

<div class="topic-metadata">

**Author:** [@Jim16](https://discourse.julialang.org/u/Jim16)\
**Replies:** 4\
**Last updated:** [December 7, 2023, 7:48pm UTC](https://discourse.julialang.org/t/extracting-the-power-flow-equations-from-powermodels/107165 "2023-12-07T19:48:23Z")

</div>

Hello, I’m relatively new to both Julia and PowerModels.jl, and I wish to compare different algorithms for solving power flow equations. My objective is to obtain the power flow equations from PowerModels.jl, allowing m…

---

## [Define DE Callbacks programmatically to operate on a parameter field](https://discourse.julialang.org/t/define-de-callbacks-programmatically-to-operate-on-a-parameter-field/107186)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 4\
**Last updated:** [December 7, 2023, 7:44pm UTC](https://discourse.julialang.org/t/define-de-callbacks-programmatically-to-operate-on-a-parameter-field/107186 "2023-12-07T19:44:25Z")

</div>

I may not be thinking about this right, but currently I have a system defined as a heirarchy of models. I store the full system in the parameters of a DifferentialEquations.jl ODEProblem. I can then use methods directly …

---

## [Should passing Val(dims) to cat be better documented?](https://discourse.julialang.org/t/should-passing-val-dims-to-cat-be-better-documented/107294)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 7:34pm UTC](https://discourse.julialang.org/t/should-passing-val-dims-to-cat-be-better-documented/107294 "2023-12-07T19:34:31Z")

</div>

Would documenting the reason for passing Val(dims) to to the dims keyword of cat lead to more purrfect documentation than what we have meow? Currently the documentation for cat indicates that one can pass a Val to dims…

---

## [How to dynamically embed Julia in a Windows app](https://discourse.julialang.org/t/how-to-dynamically-embed-julia-in-a-windows-app/107133)

<div class="topic-metadata">

**Author:** [@droodman](https://discourse.julialang.org/u/droodman)\
**Replies:** 15\
**Last updated:** [December 7, 2023, 7:29pm UTC](https://discourse.julialang.org/t/how-to-dynamically-embed-julia-in-a-windows-app/107133 "2023-12-07T19:29:20Z")

</div>

I have written a plugin for the commercial statistical software Stata that bridges to Julia in order to exploit its speed. In an issue thread on juliaup, @davidanthoff and @staticfloat have helped me figure out how best …

---

## [Loop performance issue for a specific data size](https://discourse.julialang.org/t/loop-performance-issue-for-a-specific-data-size/107021)

<div class="topic-metadata">

**Author:** [@ReWoP](https://discourse.julialang.org/u/ReWoP)\
**Replies:** 2\
**Last updated:** [December 7, 2023, 6:10pm UTC](https://discourse.julialang.org/t/loop-performance-issue-for-a-specific-data-size/107021 "2023-12-07T18:10:07Z")

</div>

Hello everyone! I’m testing a population-based algorithm and have encountered performance issues, particularly when looping with large populations (i.e., using large data matrices). Everything works fine when using mat…

---

## [Spatial bounds of integration of a PDE using DifferentialEquations](https://discourse.julialang.org/t/spatial-bounds-of-integration-of-a-pde-using-differentialequations/107241)

<div class="topic-metadata">

**Author:** [@Alberto\_Roman](https://discourse.julialang.org/u/Alberto_Roman)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 5:21pm UTC](https://discourse.julialang.org/t/spatial-bounds-of-integration-of-a-pde-using-differentialequations/107241 "2023-12-07T17:21:31Z")

</div>

Hi there, I am solving a PDE over a large domain discretizing with finite difference the RHS and using DifferentialEquations.jl to integrate the ODE system in time. Is there anyway in which I can limit the integration t…

---

## [SMatrix static slice](https://discourse.julialang.org/t/smatrix-static-slice/107223)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 6:17pm UTC](https://discourse.julialang.org/t/smatrix-static-slice/107223 "2023-12-06T18:17:27Z")

</div>

Is StaticArrays.SUnitRange (which is internal, cf StaticArrays.jl#474) the only way to get static slices for dimensions known at compile time? MWE: julia\> using StaticArrays julia\> A = one(SMatrix{4,4}) 4×4 SMatrix{4,…

---

## [Out of Memory Sparse Matrix](https://discourse.julialang.org/t/out-of-memory-sparse-matrix/107292)

<div class="topic-metadata">

**Author:** [@Tommaso\_Tenna](https://discourse.julialang.org/u/Tommaso_Tenna)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 4:49pm UTC](https://discourse.julialang.org/t/out-of-memory-sparse-matrix/107292 "2023-12-07T16:49:52Z")

</div>

Good evening, I’m new to Julia and I was trying to rewrite a MATLAB code, to speed it up. The main problem is that the code generates an “Out of Memory” error and I don’t understand why. Outside a while loop I define A…

---

## [Plotting data showing 2 sets of data](https://discourse.julialang.org/t/plotting-data-showing-2-sets-of-data/107272)

<div class="topic-metadata">

**Author:** [@Kearney](https://discourse.julialang.org/u/Kearney)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 2:33pm UTC](https://discourse.julialang.org/t/plotting-data-showing-2-sets-of-data/107272 "2023-12-07T14:33:57Z")

</div>

this is my code ‘’'begin 2 wind = CSV.File(WindGenFile) |\> DataFrame 3 rename!(wind, :" REGION" =\> :Region, :“DATE & TIME” =\> :DateTime, :" ACTUAL WIND(MW)" =\> :ActualWind, :" FORECAST REGION(MW)" =\> :ForecastWind) 5 …

---

## [Recursive loop of callbacks in signal connect method of Gtk4 widgets](https://discourse.julialang.org/t/recursive-loop-of-callbacks-in-signal-connect-method-of-gtk4-widgets/107274)

<div class="topic-metadata">

**Author:** [@apurvdarji](https://discourse.julialang.org/u/apurvdarji)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 2:53pm UTC](https://discourse.julialang.org/t/recursive-loop-of-callbacks-in-signal-connect-method-of-gtk4-widgets/107274 "2023-12-07T14:53:25Z")

</div>

I am trying to do bi-directional binding of two textboxes which are GtkEntry widgets from Gtk4.jl. The two textboxes should have the same text. I am using signal connect handlers on change events to achieve that. But it …

---

## [How to get a vector of results from cellfield](https://discourse.julialang.org/t/how-to-get-a-vector-of-results-from-cellfield/99682)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 2:07pm UTC](https://discourse.julialang.org/t/how-to-get-a-vector-of-results-from-cellfield/99682 "2023-12-07T14:07:05Z")

</div>

Hi, I am going to use affineFEoperator and solve for linear plasticity the out put of this is singlefieldfunction while using matrix form and dividing a/b of weak form gives a vector form. I need the vector solution of …

---

## [PyData talk: Using Julia for Decentralization by a Quant](https://discourse.julialang.org/t/pydata-talk-using-julia-for-decentralization-by-a-quant/107260)

<div class="topic-metadata">

**Author:** [@martinyxie](https://discourse.julialang.org/u/martinyxie)\
**Replies:** 2\
**Last updated:** [December 7, 2023, 12:48pm UTC](https://discourse.julialang.org/t/pydata-talk-using-julia-for-decentralization-by-a-quant/107260 "2023-12-07T12:48:22Z")

</div>

Hello guys, In relation to answer the question of “How to make Julia into mainstream like Python?”, I am giving a talk at PyData Global (online) conference today, with the title “Introduction to Using Julia for Decentra…

---

## [Mktempdir bug](https://discourse.julialang.org/t/mktempdir-bug/103022)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 10\
**Last updated:** [December 7, 2023, 12:30pm UTC](https://discourse.julialang.org/t/mktempdir-bug/103022 "2023-12-07T12:30:17Z")

</div>

Julia has an issue caused by mktempdir() that prevents precompiling of multiple packages on affected systems. This bug is three or more years old, yet is manifested sporadically, which is probably why it has not been fi…

---

## [Help with launching Pluto](https://discourse.julialang.org/t/help-with-launching-pluto/107234)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 12:06pm UTC](https://discourse.julialang.org/t/help-with-launching-pluto/107234 "2023-12-07T12:06:41Z")

</div>

I have Julia 1.9.4 and 1.10.0 rc 2 installed on a Macbook Pro. I use Pluto extensively. Suddenly today I can’t launch it. I get the screenshot below, and this is true in both the default browser (Chrome) and alternate…

---

## [Transformers.jl: How to train for masked languge model tasks in Julia?](https://discourse.julialang.org/t/transformers-jl-how-to-train-for-masked-languge-model-tasks-in-julia/107227)

<div class="topic-metadata">

**Author:** [@roeya](https://discourse.julialang.org/u/roeya)\
**Replies:** 4\
**Last updated:** [December 7, 2023, 11:25am UTC](https://discourse.julialang.org/t/transformers-jl-how-to-train-for-masked-languge-model-tasks-in-julia/107227 "2023-12-07T11:25:53Z")

</div>

What am I missing here - seems to be easy enough but I cannot find any documentation on how to do it

---

## [Symbolically evaluating an in-place function](https://discourse.julialang.org/t/symbolically-evaluating-an-in-place-function/107264)

<div class="topic-metadata">

**Author:** [@Neodym](https://discourse.julialang.org/u/Neodym)\
**Replies:** 2\
**Last updated:** [December 7, 2023, 11:05am UTC](https://discourse.julialang.org/t/symbolically-evaluating-an-in-place-function/107264 "2023-12-07T11:05:03Z")

</div>

Hi there, I have an in-place function (RHS of an ODE) and would like to evaluate it with Symbolics.jl. Later on, I want to compute its Jacobian. However, I cannot figure out how to do that. It appears to not do anythin…

---

## [Boxing obvious cases where the type is clear](https://discourse.julialang.org/t/boxing-obvious-cases-where-the-type-is-clear/107192)

<div class="topic-metadata">

**Author:** [@feribg](https://discourse.julialang.org/u/feribg)\
**Replies:** 13\
**Last updated:** [December 7, 2023, 9:57am UTC](https://discourse.julialang.org/t/boxing-obvious-cases-where-the-type-is-clear/107192 "2023-12-07T09:57:47Z")

</div>

Im new to Julia but this whole world of dynamic and static typing is becoming very disconcerning. Take a look at this: Regardless what i do i get: Locals #15::var"#15#17"{String, Int64, Int64, Int64} n\_markets::C…

---

## [Why Julia - A Manifesto](https://discourse.julialang.org/t/why-julia-a-manifesto/106404)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 38\
**Last updated:** [December 7, 2023, 10:08am UTC](https://discourse.julialang.org/t/why-julia-a-manifesto/106404 "2023-12-07T10:08:17Z")

</div>

Hey all, next week I am once again giving the Julia Zero2Hero workshop at the University of Exeter (now updated to Julia 1.9, including a Makie tutorial!). As I am advertising Julia more and more, I constantly have the…

---

## [How to properly use Tullio + CUDA on a package extension?](https://discourse.julialang.org/t/how-to-properly-use-tullio-cuda-on-a-package-extension/103569)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 5\
**Last updated:** [December 7, 2023, 8:39am UTC](https://discourse.julialang.org/t/how-to-properly-use-tullio-cuda-on-a-package-extension/103569 "2023-12-07T08:39:02Z")

</div>

Hi! I have a package that defines many functions which are the evaluation of complex expressions over a multidimensional grid. Sometimes I want the expressions to be allocating, and sometimes not, so there are a lot of …

---

## [Zygote gradient Error](https://discourse.julialang.org/t/zygote-gradient-error/38206)

<div class="topic-metadata">

**Author:** [@amirmasud](https://discourse.julialang.org/u/amirmasud)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 6:56am UTC](https://discourse.julialang.org/t/zygote-gradient-error/38206 "2023-12-07T06:56:34Z")

</div>

Hi all, I’m trying to write an Automatic Differentiation example, I get this error and I don’t know how to solve it. ERROR: Need an adjoint for constructor Transpose{Float64,Array{Float64,2}}. Gradient is of type Arra…

---

## [\[ANN\] DynamicOED.jl: Design of Experiments for Differential Equations](https://discourse.julialang.org/t/ann-dynamicoed-jl-design-of-experiments-for-differential-equations/107255)

<div class="topic-metadata">

**Author:** [@Julius\_Martensen](https://discourse.julialang.org/u/Julius_Martensen)\
**Replies:** 0\
**Last updated:** [December 7, 2023, 6:10am UTC](https://discourse.julialang.org/t/ann-dynamicoed-jl-design-of-experiments-for-differential-equations/107255 "2023-12-07T06:10:41Z")

</div>

Hey everybody! On behalf of our research group, I am happy to announce DynamicOED.jl, a package which hooks into SciML’s amazing world to provide Optimal Design of Experiments for ODEs and DAEs using mixed integer optim…

---

## [Is loading non-trigger packages in extensions disallowed now?](https://discourse.julialang.org/t/is-loading-non-trigger-packages-in-extensions-disallowed-now/107254)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [December 7, 2023, 5:58am UTC](https://discourse.julialang.org/t/is-loading-non-trigger-packages-in-extensions-disallowed-now/107254 "2023-12-07T05:58:01Z")

</div>

After #48533, it appears that package extensions are only allowed to load the host and the trigger packages directly, and other packages (including stdlibs) should be loaded as using hostpackage.thirdpackage or using tri…

---

## [What does 'lazy' mean?](https://discourse.julialang.org/t/what-does-lazy-mean/107247)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 5:44am UTC](https://discourse.julialang.org/t/what-does-lazy-mean/107247 "2023-12-07T05:44:46Z")

</div>

When I checked the usage of the function ‘transpose’, I got Lazy transpose. Mutating the returned object should appropriately mutate A. Often, but not always, yields Transpose(A), where Transpose is a lazy transpose w…

---

## [MTK: "Track" or print a non-state variable defined as an equation](https://discourse.julialang.org/t/mtk-track-or-print-a-non-state-variable-defined-as-an-equation/107170)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 1\
**Last updated:** [December 7, 2023, 5:01am UTC](https://discourse.julialang.org/t/mtk-track-or-print-a-non-state-variable-defined-as-an-equation/107170 "2023-12-07T05:01:58Z")

</div>

I have a rather large model which has two variables: @variables q, x that have some equations, let’s say eqs = \[ Differential(t)(x) ~ log(q), q ~ something \] After my equations are created x remains a state variable …

---

## [\[ANN\] OteraEngine.jl: Template Engine for Julia](https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia/107248)

<div class="topic-metadata">

**Author:** [@QGMW22](https://discourse.julialang.org/u/QGMW22)\
**Replies:** 0\
**Last updated:** [December 7, 2023, 2:29am UTC](https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia/107248 "2023-12-07T02:29:16Z")

</div>

What is OteraEngine? OteraEngine is light and powerful Template Engine. The syntax is based on jinja2 and ‘Julia Code Block’, which makes you available to write Julia code directly in templates, is added. Now, in v0.4.0…

---

## [LSTM Method Error - Time Series](https://discourse.julialang.org/t/lstm-method-error-time-series/73973)

<div class="topic-metadata">

**Author:** [@sherlock\_holmes](https://discourse.julialang.org/u/sherlock_holmes)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 1:37am UTC](https://discourse.julialang.org/t/lstm-method-error-time-series/73973 "2023-12-07T01:37:28Z")

</div>

I’m trying to train an LSTM model to predict number of real roots of polynomials. x\_train and y\_train include array of arrays such as \[\[-204, 20, 13, 1, 0\]\] which are coefficients of polynomials. x\_test and y\_test includ…

---

## [CUDA.jl testing errors](https://discourse.julialang.org/t/cuda-jl-testing-errors/107238)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 11:55pm UTC](https://discourse.julialang.org/t/cuda-jl-testing-errors/107238 "2023-12-06T23:55:21Z")

</div>

Hi all, I have a problem with the CUDA.jl setup for Titan V cards, each in its own Redhat linux box. Previously everything was fine in Ubuntu. So here is the error (same on julia 1.9): (@v1.10) pkg\> test CUDA Test…

---

## [Arithmetic operations with NamedTuples](https://discourse.julialang.org/t/arithmetic-operations-with-namedtuples/107140)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 8\
**Last updated:** [December 6, 2023, 8:50pm UTC](https://discourse.julialang.org/t/arithmetic-operations-with-namedtuples/107140 "2023-12-06T20:50:52Z")

</div>

I often use Julia to calculate the nutrition of my meals. I know there are calculators for this online, but I prefer doing this myself in Julia. I normally do this by first defining NamedTuples with the nutritional infor…

---

## [Failed to download from https://pkg.julialang.org/registry](https://discourse.julialang.org/t/failed-to-download-from-https-pkg-julialang-org-registry/107225)

<div class="topic-metadata">

**Author:** [@michelg45](https://discourse.julialang.org/u/michelg45)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 11:07pm UTC](https://discourse.julialang.org/t/failed-to-download-from-https-pkg-julialang-org-registry/107225 "2023-12-06T23:07:45Z")

</div>

I am running Julia 1.9.4 in a Linux partition (Ubuntu 22.04.02 LTS) under Windows 11 / WSL. I am trying to create a project template using the following file (Template.Judyn.jl) with the command using PkgTemplate…

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

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