# Latest

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

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

**Page:** 374

---

## [TypeError: Expected UnionAll, got Type{Machine{...}}](https://discourse.julialang.org/t/typeerror-expected-unionall-got-type-machine/116354)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 6\
**Last updated:** [July 1, 2024, 11:31am UTC](https://discourse.julialang.org/t/typeerror-expected-unionall-got-type-machine/116354 "2024-07-01T11:31:28Z")

</div>

I want to save a trained MLJ machine (EvoTreeRegressor) on the cluster and then open it locally on my computer. On the cluster, I save the machine with MLJ.save("path/on/cluster/machine.jls", mach) and then try to load…

---

## [Workshop Julia for numerical problems in quantum and solid-state physics](https://discourse.julialang.org/t/workshop-julia-for-numerical-problems-in-quantum-and-solid-state-physics/116463)

<div class="topic-metadata">

**Author:** [@mfh](https://discourse.julialang.org/u/mfh)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 9:11am UTC](https://discourse.julialang.org/t/workshop-julia-for-numerical-problems-in-quantum-and-solid-state-physics/116463 "2024-07-01T09:11:09Z")

</div>

Dear all together with @antoine-levitt (Université Paris-Saclay) and @juthohaegeman (Ghent University) we are organising a workshop at CECAM in Lausanne, Switzerland from 26th until 28th November 2024. The workshop wil…

---

## [Insert value with fixed size/gc time](https://discourse.julialang.org/t/insert-value-with-fixed-size-gc-time/116419)

<div class="topic-metadata">

**Author:** [@Sihyun\_Kim](https://discourse.julialang.org/u/Sihyun_Kim)\
**Replies:** 5\
**Last updated:** [July 1, 2024, 9:03am UTC](https://discourse.julialang.org/t/insert-value-with-fixed-size-gc-time/116419 "2024-07-01T09:03:43Z")

</div>

I am a julia beginner. I am working on a large structural (economic) model. But, the problem is that one iteration of the entire model takes 395 seconds, and its 42.84% consists of gc time. My suspicion is that the follo…

---

## [Cant get video from Makie in Pluto](https://discourse.julialang.org/t/cant-get-video-from-makie-in-pluto/116158)

<div class="topic-metadata">

**Author:** [@Numair\_Ahmed](https://discourse.julialang.org/u/Numair_Ahmed)\
**Replies:** 4\
**Last updated:** [July 1, 2024, 8:29am UTC](https://discourse.julialang.org/t/cant-get-video-from-makie-in-pluto/116158 "2024-07-01T08:29:26Z")

</div>

Hi. I was just messing around with makie in Pluto cause I’m trying to get familiar with the language and Pluto notebooks for a project I’m planning on doing on differential equations(namely the heat equation) and I was t…

---

## [\[ANN\] ImGuiTestEngine.jl - test your CImGui.jl programs](https://discourse.julialang.org/t/ann-imguitestengine-jl-test-your-cimgui-jl-programs/116461)

<div class="topic-metadata">

**Author:** [@JamesNZ](https://discourse.julialang.org/u/JamesNZ)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 8:15am UTC](https://discourse.julialang.org/t/ann-imguitestengine-jl-test-your-cimgui-jl-programs/116461 "2024-07-01T08:15:13Z")

</div>

Salutations y’all :octopus: I recently registered a new package for testing CImGui.jl programs: ImGuiTestEngine.jl It’s a wrapper around the upstream imgui\_test\_engine project. Still very new so lots of things are proba…

---

## [Anomalous "JuliaSyntax parser failed" error - julia 1.11.0-DEV](https://discourse.julialang.org/t/anomalous-juliasyntax-parser-failed-error-julia-1-11-0-dev/116382)

<div class="topic-metadata">

**Author:** [@jjiw](https://discourse.julialang.org/u/jjiw)\
**Replies:** 6\
**Last updated:** [July 1, 2024, 7:25am UTC](https://discourse.julialang.org/t/anomalous-juliasyntax-parser-failed-error-julia-1-11-0-dev/116382 "2024-07-01T07:25:14Z")

</div>

Running julia parsererr2.jl (with parsererr2.jl as shown later) produces a proper error message\* about a misplaced bracket: ERROR: LoadError: syntax: missing last argument in "w\[4\]:" range expression Stacktrace: \[1\] …

---

## [AD pipeline and Hessian–vector products](https://discourse.julialang.org/t/ad-pipeline-and-hessian-vector-products/116329)

<div class="topic-metadata">

**Author:** [@RS-Coop](https://discourse.julialang.org/u/RS-Coop)\
**Replies:** 12\
**Last updated:** [July 1, 2024, 7:24am UTC](https://discourse.julialang.org/t/ad-pipeline-and-hessian-vector-products/116329 "2024-07-01T07:24:36Z")

</div>

To be clear, this isn’t a question about the state of AD in Julia. That has been covered quite well in a variety of sources. Instead I have the following question: what is the state of the overall AD pipeline in Julia? A…

---

## [SCIP issue on Windows](https://discourse.julialang.org/t/scip-issue-on-windows/113976)

<div class="topic-metadata">

**Author:** [@asavasci](https://discourse.julialang.org/u/asavasci)\
**Replies:** 2\
**Last updated:** [July 1, 2024, 1:55am UTC](https://discourse.julialang.org/t/scip-issue-on-windows/113976 "2024-07-01T01:55:28Z")

</div>

Hi, I am trying to use SCIP solver with JuMP on Windows 11. Even if I followed the steps suggested, I could not solve problems with SCIP. Particularly, optimize!(model) shuts the REPL or kills the kernel in jupyter noteb…

---

## [How to save @macroexpand output to file on windows?](https://discourse.julialang.org/t/how-to-save-macroexpand-output-to-file-on-windows/116452)

<div class="topic-metadata">

**Author:** [@freedomjin](https://discourse.julialang.org/u/freedomjin)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 1:55am UTC](https://discourse.julialang.org/t/how-to-save-macroexpand-output-to-file-on-windows/116452 "2024-07-01T01:55:04Z")

</div>

Hi, I’m studying someone else’s macro code, and would like to save the generated code to a file using @macroexpand and check out what is been done. But @macroexpand does not seem to return a string or any object, it only…

---

## [JuliaCon.jl Updated for 2024, Schedule Access via REPL](https://discourse.julialang.org/t/juliacon-jl-updated-for-2024-schedule-access-via-repl/116443)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 1:52am UTC](https://discourse.julialang.org/t/juliacon-jl-updated-for-2024-schedule-access-via-repl/116443 "2024-07-01T01:52:50Z")

</div>

There’s also another interface to the schedule via JuliaCon.jl thanks to @carstenbauer : julia\> using JuliaCon julia\> schedule = JuliaCon.get\_conference\_schedule(); julia\> filter(schedule) do sch occursin("…

---

## [How to obtain first 10 eigenvalues of a ITensorMPO.MPS Hamiltonian](https://discourse.julialang.org/t/how-to-obtain-first-10-eigenvalues-of-a-itensormpo-mps-hamiltonian/116430)

<div class="topic-metadata">

**Author:** [@Ayush](https://discourse.julialang.org/u/Ayush)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 1:36am UTC](https://discourse.julialang.org/t/how-to-obtain-first-10-eigenvalues-of-a-itensormpo-mps-hamiltonian/116430 "2024-07-01T01:36:34Z")

</div>

I have a code for an Ising model defined by a Hamiltonian. I want to obtain the first 10 eigenvalues of that hamiltonian. I tried 2 different approaches: a) First convert it into a sparse matrix and then use arpack’s eig…

---

## [FFT scaling. Matlab vs. Julia](https://discourse.julialang.org/t/fft-scaling-matlab-vs-julia/116404)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 8\
**Last updated:** [June 30, 2024, 11:25pm UTC](https://discourse.julialang.org/t/fft-scaling-matlab-vs-julia/116404 "2024-06-30T23:25:08Z")

</div>

Matlab documentation states and I am puzzled by this. (i) Why doesn’t fft() do this scaling internally? I have to do X = (1/L)\*fft(x,N);% Now we compute the coefficients X\_k in order to get the correct spectrum…

---

## [Symmetry reduction in Sumsofsquares](https://discourse.julialang.org/t/symmetry-reduction-in-sumsofsquares/115727)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 18\
**Last updated:** [June 30, 2024, 11:42pm UTC](https://discourse.julialang.org/t/symmetry-reduction-in-sumsofsquares/115727 "2024-06-30T23:42:55Z")

</div>

I have a simple minimization with symmetry, but Julia gives an error while using symmetry reduction. I want to find the minimum of x\_1^4+x\_2^4+x\_3^4-4x\_1x\_2x\_3+x\_1+x\_2+x\_3. Here is my script: using SumOfSquares using …

---

## [Symmetry reduction documentation](https://discourse.julialang.org/t/symmetry-reduction-documentation/98354)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 18\
**Last updated:** [June 30, 2024, 11:29pm UTC](https://discourse.julialang.org/t/symmetry-reduction-documentation/98354 "2024-06-30T23:29:55Z")

</div>

Hi, If our polynomial optimization problem has a particular group symmetry, we can do symmetry reduction to get block diagonal matrices. Doing this involves constructing a symmetry-adapted basis. Since symmetry-adapted …

---

## [Simple Reshaping in Zygote Throwing MethodError](https://discourse.julialang.org/t/simple-reshaping-in-zygote-throwing-methoderror/115825)

<div class="topic-metadata">

**Author:** [@vasudeva-ram](https://discourse.julialang.org/u/vasudeva-ram)\
**Replies:** 2\
**Last updated:** [June 30, 2024, 10:07pm UTC](https://discourse.julialang.org/t/simple-reshaping-in-zygote-throwing-methoderror/115825 "2024-06-30T22:07:17Z")

</div>

Hi, I’m using Zygote to find the Vector-Jacobian Product (VJP) of a function. The MWE version of the function is as follows: function ffunc(x::Vector{Float64}) # first reshape xMat = reshape(x, (:, 2)) # app…

---

## [Multithreading with seperate caches for each thread?](https://discourse.julialang.org/t/multithreading-with-seperate-caches-for-each-thread/116441)

<div class="topic-metadata">

**Author:** [@recklurker](https://discourse.julialang.org/u/recklurker)\
**Replies:** 7\
**Last updated:** [June 30, 2024, 9:04pm UTC](https://discourse.julialang.org/t/multithreading-with-seperate-caches-for-each-thread/116441 "2024-06-30T21:04:25Z")

</div>

Hi everyone, I am writing a finite element solver. Since the solver takes a lot of time on a single core, I am trying to parallelize it. The solver method has several functional calls which share some cache. This has be…

---

## [Type instability in parametric struct](https://discourse.julialang.org/t/type-instability-in-parametric-struct/116266)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 7\
**Last updated:** [June 30, 2024, 8:54pm UTC](https://discourse.julialang.org/t/type-instability-in-parametric-struct/116266 "2024-06-30T20:54:49Z")

</div>

I have a struct where one field is some collection, and another is just a single element of the collection’s eltype. (The real application is more complicated, but I describe the MWE.) I need to use the collection’s ty…

---

## [Minisymposia](https://discourse.julialang.org/t/minisymposia/116428)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 19\
**Last updated:** [June 30, 2024, 7:49pm UTC](https://discourse.julialang.org/t/minisymposia/116428 "2024-06-30T19:49:18Z")

</div>

In theory, there should be an aerospace minisymposium, see: Aerospace Minisymposium I cannot find it in the conference program. Does it take place? If yes, when and where?

---

## [\`sizeof\` on custom struct does not check fields](https://discourse.julialang.org/t/sizeof-on-custom-struct-does-not-check-fields/116311)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 4\
**Last updated:** [June 30, 2024, 6:53pm UTC](https://discourse.julialang.org/t/sizeof-on-custom-struct-does-not-check-fields/116311 "2024-06-30T18:53:45Z")

</div>

For any Julia variable, I wish to check how much memory it uses just to exist. The docstring of sizeof states: Size, in bytes, of the canonical binary representation of the given DataType T, if any. Or the size, in byt…

---

## [Running multiple instances of an already parallel external program in parallel](https://discourse.julialang.org/t/running-multiple-instances-of-an-already-parallel-external-program-in-parallel/116436)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 1\
**Last updated:** [June 30, 2024, 6:42pm UTC](https://discourse.julialang.org/t/running-multiple-instances-of-an-already-parallel-external-program-in-parallel/116436 "2024-06-30T18:42:40Z")

</div>

I have a situation like below: Julia nrep = 3 Threads.@threads for i in 1:nrep run(\`bash -c """cd $path && ./external\_program"""\`) end external\_program.cpp #pragma omp parallel for num\_threads(10) for (int i = 0;…

---

## [Help in deploying docs](https://discourse.julialang.org/t/help-in-deploying-docs/116434)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 3\
**Last updated:** [June 30, 2024, 5:27pm UTC](https://discourse.julialang.org/t/help-in-deploying-docs/116434 "2024-06-30T17:27:10Z")

</div>

Hello, i am ready to publish a package. The documentation is not deployed, although the github workflow completes successfully and the documentation build smoothly locally. The package is here https://github.com/Marco-…

---

## [Adding ReinforcementLearning to environment fails. compatibility issue](https://discourse.julialang.org/t/adding-reinforcementlearning-to-environment-fails-compatibility-issue/116122)

<div class="topic-metadata">

**Author:** [@korilium](https://discourse.julialang.org/u/korilium)\
**Replies:** 4\
**Last updated:** [June 30, 2024, 2:46pm UTC](https://discourse.julialang.org/t/adding-reinforcementlearning-to-environment-fails-compatibility-issue/116122 "2024-06-30T14:46:04Z")

</div>

Hello, I tried installing the ReinforcementLearning.jl package in my environment and I get the following error: (Peccon) pkg\> add ReinforcementLearning Resolving package versions... ERROR: Unsatisfiable requirements…

---

## [How Julia has an unrealized potential to have some of the best ECS(Entity Component System) in the world](https://discourse.julialang.org/t/how-julia-has-an-unrealized-potential-to-have-some-of-the-best-ecs-entity-component-system-in-the-world/116383)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [June 30, 2024, 12:48pm UTC](https://discourse.julialang.org/t/how-julia-has-an-unrealized-potential-to-have-some-of-the-best-ecs-entity-component-system-in-the-world/116383 "2024-06-30T12:48:49Z")

</div>

ECS is used in game development and potentially other simulations. Archetypal ECS works by grouping entities with the same combination of traits together and update entities “all at once”. However, even with the huge pe…

---

## [AssertionError in K-medoids algorithm](https://discourse.julialang.org/t/assertionerror-in-k-medoids-algorithm/116425)

<div class="topic-metadata">

**Author:** [@Hasselvej](https://discourse.julialang.org/u/Hasselvej)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 12:12pm UTC](https://discourse.julialang.org/t/assertionerror-in-k-medoids-algorithm/116425 "2024-06-30T12:12:20Z")

</div>

I am using K-medoids to reduce my data (potential future scenarios of a stock’s price) from 400 scenarios to n = 25. I computed the distance matrix based on the Eucledian distance: C = pairwise(Euclidean(), data', data'…

---

## [Possibly unclear manual regarding Base.touch](https://discourse.julialang.org/t/possibly-unclear-manual-regarding-base-touch/116388)

<div class="topic-metadata">

**Author:** [@George\_Morrison](https://discourse.julialang.org/u/George_Morrison)\
**Replies:** 4\
**Last updated:** [June 30, 2024, 10:31am UTC](https://discourse.julialang.org/t/possibly-unclear-manual-regarding-base-touch/116388 "2024-06-30T10:31:02Z")

</div>

Sorry I was not sure where this should go. I was trying to follow a tutorial and it suggested the following command: touch(“10\_Streams\_Networking\\sample\_file.txt”) changed touch(joinpath(“10\_Streams\_Networking”, “samp…

---

## [NS Train Disruption, Buses Available Between Boxtel and Eindhoven](https://discourse.julialang.org/t/ns-train-disruption-buses-available-between-boxtel-and-eindhoven/116421)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 10:27am UTC](https://discourse.julialang.org/t/ns-train-disruption-buses-available-between-boxtel-and-eindhoven/116421 "2024-06-30T10:27:19Z")

</div>

Important Train Travel Notice Please note that there is scheduled maintenance on the train lines between Schiphol Airport and Eindhoven during JuliaCon 2024. While this generally should not be an issue, you can expect a…

---

## [JuliaCon 2024 Workshop Information](https://discourse.julialang.org/t/juliacon-2024-workshop-information/116412)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 8:20am UTC](https://discourse.julialang.org/t/juliacon-2024-workshop-information/116412 "2024-06-30T08:20:10Z")

</div>

Sent as an email on June 30th Dear JuliaCon 2024 workshop participant, JuliaCon 2024 is less than two weeks away, we are looking forward to it and hope you are too! With this email we already provide some of the practi…

---

## [Childcare at JuliaCon 2024](https://discourse.julialang.org/t/childcare-at-juliacon-2024/116415)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 8:29am UTC](https://discourse.julialang.org/t/childcare-at-juliacon-2024/116415 "2024-06-30T08:29:28Z")

</div>

JuliaCon will be offering childcare during all four days of the conference. The Saturday hackathon is informally organized. While childcare will not be provided during the hackathon, children are welcome to attend. I…

---

## [Action Required for HPC Workshop Participants (JuliaCon 2024)](https://discourse.julialang.org/t/action-required-for-hpc-workshop-participants-juliacon-2024/116414)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 8:25am UTC](https://discourse.julialang.org/t/action-required-for-hpc-workshop-participants-juliacon-2024/116414 "2024-06-30T08:25:16Z")

</div>

Dear JuliaCon 2024 Workshops Participant, The following information is relevant (and urgent) if you plan to attend the HPC workshop (https://pretalx.com/juliacon2024/talk/NTQZJJ/ at JuliaCon 2024. (Otherwise, you can si…

---

## [How can I use a Holy trait defined in a module outside of it?](https://discourse.julialang.org/t/how-can-i-use-a-holy-trait-defined-in-a-module-outside-of-it/116408)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 3\
**Last updated:** [June 30, 2024, 7:49am UTC](https://discourse.julialang.org/t/how-can-i-use-a-holy-trait-defined-in-a-module-outside-of-it/116408 "2024-06-30T07:49:28Z")

</div>

I’m studying Julia’s Holy traits along with traits in Rust, Scala and the original traits paper, “Traits: A Mechanism for Fine-grained Reuse”. I want to use a trait Color defined in ColorModule outside of its module. I w…

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

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