# Latest

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

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

**Page:** 383

---

## [Misunderstanding Allocs for Monte Carlo summation](https://discourse.julialang.org/t/misunderstanding-allocs-for-monte-carlo-summation/115894)

<div class="topic-metadata">

**Author:** [@Spuriosity1](https://discourse.julialang.org/u/Spuriosity1)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 12:55am UTC](https://discourse.julialang.org/t/misunderstanding-allocs-for-monte-carlo-summation/115894 "2024-06-20T00:55:14Z")

</div>

I have a simple test function here: function tester(nreps::Int, n\_x::Int) res = zeros(Float64, n\_x) for \_ = 1:nreps res += rand(Float64, n\_x) end return res end I do not understand the behaviour…

---

## [ExtraVariablesSystemException: The system is unbalanced. There are 47 highest order derivative variables and 44 equations](https://discourse.julialang.org/t/extravariablessystemexception-the-system-is-unbalanced-there-are-47-highest-order-derivative-variables-and-44-equations/115890)

<div class="topic-metadata">

**Author:** [@Hosseinmghasemi](https://discourse.julialang.org/u/Hosseinmghasemi)\
**Replies:** 0\
**Last updated:** [June 19, 2024, 9:43pm UTC](https://discourse.julialang.org/t/extravariablessystemexception-the-system-is-unbalanced-there-are-47-highest-order-derivative-variables-and-44-equations/115890 "2024-06-19T21:43:52Z")

</div>

Hi, I am solving a large nonlinear system of equations. It contains 44 variables and equations. But I face the error : ExtraVariablesSystemException: The system is unbalanced. There are 47 highest order derivative var…

---

## [Structs with Unitful Types](https://discourse.julialang.org/t/structs-with-unitful-types/115884)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [June 19, 2024, 9:39pm UTC](https://discourse.julialang.org/t/structs-with-unitful-types/115884 "2024-06-19T21:39:49Z")

</div>

I am creating a number of structs with unitful types. Here is a small example: const float\_ft = typeof(1.0ft) # ft, inch, and kcf previously defined constants const float\_inch = typeof(1.0inch) const float\_kcf = typeof(…

---

## [Pluto cells in grid arrangement?](https://discourse.julialang.org/t/pluto-cells-in-grid-arrangement/59858)

<div class="topic-metadata">

**Author:** [@mobius-eng](https://discourse.julialang.org/u/mobius-eng)\
**Replies:** 7\
**Last updated:** [June 19, 2024, 8:51pm UTC](https://discourse.julialang.org/t/pluto-cells-in-grid-arrangement/59858 "2024-06-19T20:51:29Z")

</div>

Pluto feels a bit more like a spreadsheet. Hence, is it possible to arrange the cells in a grid?

---

## [Updating the value of a variable before a solve](https://discourse.julialang.org/t/updating-the-value-of-a-variable-before-a-solve/115882)

<div class="topic-metadata">

**Author:** [@Mitch\_Phillipson](https://discourse.julialang.org/u/Mitch_Phillipson)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 8:38pm UTC](https://discourse.julialang.org/t/updating-the-value-of-a-variable-before-a-solve/115882 "2024-06-19T20:38:53Z")

</div>

I am solving a model that sets a numeraire based on the previous solution values (or starting values for the first solve). I am running into an issue where I fix a variable, but the value is still the old value. Here is…

---

## [Nonlinear solver other than IPOPT](https://discourse.julialang.org/t/nonlinear-solver-other-than-ipopt/82332)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 25\
**Last updated:** [June 19, 2024, 7:37pm UTC](https://discourse.julialang.org/t/nonlinear-solver-other-than-ipopt/82332 "2024-06-19T19:37:29Z")

</div>

I am solving a feasibility problem that consists of a lot of constraints. I tried IPOPT. It is great. But It couldn’t solve my whole problem with all constraints. It says that I have too few degrees of freedom. My constr…

---

## [Method overwriting error on package extensions](https://discourse.julialang.org/t/method-overwriting-error-on-package-extensions/114630)

<div class="topic-metadata">

**Author:** [@sc-dyer](https://discourse.julialang.org/u/sc-dyer)\
**Replies:** 15\
**Last updated:** [June 19, 2024, 7:34pm UTC](https://discourse.julialang.org/t/method-overwriting-error-on-package-extensions/114630 "2024-06-19T19:34:32Z")

</div>

Hello! I have been trying to write two extensions for a package so that it can operate with Plots.jl or Makie.jl. Everything works fine but when I run the tests I get a series of warnings and errors that look like this: …

---

## [Has anyone used Enzyme with LoopVectorization's @turbo macro?](https://discourse.julialang.org/t/has-anyone-used-enzyme-with-loopvectorizations-turbo-macro/115872)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 4\
**Last updated:** [June 19, 2024, 7:11pm UTC](https://discourse.julialang.org/t/has-anyone-used-enzyme-with-loopvectorizations-turbo-macro/115872 "2024-06-19T19:11:59Z")

</div>

I’m attempting to use it but facing difficulty

---

## [Merging dictionaries ensuring they are disjoint](https://discourse.julialang.org/t/merging-dictionaries-ensuring-they-are-disjoint/115859)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 6:28pm UTC](https://discourse.julialang.org/t/merging-dictionaries-ensuring-they-are-disjoint/115859 "2024-06-19T18:28:20Z")

</div>

I am merging some dictionaries that come from a computation and I want to ensure that they are disjoint. A quick way of doing it is mergewith, eg D1 = Dict(:a =\> 1, :b =\> 2) D2 = Dict(:a =\> 4, :c =\> 3) mergewith((v...)…

---

## [Is using \`Base.delete\_method\` on user-defined functions safe?](https://discourse.julialang.org/t/is-using-base-delete-method-on-user-defined-functions-safe/115194)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 14\
**Last updated:** [June 19, 2024, 6:52pm UTC](https://discourse.julialang.org/t/is-using-base-delete-method-on-user-defined-functions-safe/115194 "2024-06-19T18:52:53Z")

</div>

does someone know if using Base.delete\_method user-defined functions is dangerous in any way? I searched for its use on registered packages and someone does already make use of it: https://juliahub.com/ui/Search?q=delete…

---

## [HTTP.jl Websockets- help getting started](https://discourse.julialang.org/t/http-jl-websockets-help-getting-started/102867)

<div class="topic-metadata">

**Author:** [@NAS](https://discourse.julialang.org/u/NAS)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 6:08pm UTC](https://discourse.julialang.org/t/http-jl-websockets-help-getting-started/102867 "2024-06-19T18:08:58Z")

</div>

Looking for some help getting started with websockets in HTTP.jl. For some reason I can’t seem to grasp the design and intended usage. For example, I can look at this Python example: import websocket ws = websocket.WebS…

---

## [Extendable collection with immutable values](https://discourse.julialang.org/t/extendable-collection-with-immutable-values/115869)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 5:56pm UTC](https://discourse.julialang.org/t/extendable-collection-with-immutable-values/115869 "2024-06-19T17:56:07Z")

</div>

I’m trying to build an efficient registry of certain values, and in this case, they’re all of the same type. I’m trying to find a good candidate “object” that fits this role. The desired properties are as follows: Once…

---

## [How does Julia compare to shell scripting using bash and its "friends" like bc on a Linux system?](https://discourse.julialang.org/t/how-does-julia-compare-to-shell-scripting-using-bash-and-its-friends-like-bc-on-a-linux-system/115775)

<div class="topic-metadata">

**Author:** [@oOosys](https://discourse.julialang.org/u/oOosys)\
**Replies:** 40\
**Last updated:** [June 19, 2024, 5:55pm UTC](https://discourse.julialang.org/t/how-does-julia-compare-to-shell-scripting-using-bash-and-its-friends-like-bc-on-a-linux-system/115775 "2024-06-19T17:55:57Z")

</div>

There is a well written section of Julia documentation providing comparisons to some of the other programming languages here: https://docs.julialang.org/en/v1/manual/noteworthy-differences What I am missing is comparis…

---

## [How to make log-Mel spectrogram?](https://discourse.julialang.org/t/how-to-make-log-mel-spectrogram/97927)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 4:09pm UTC](https://discourse.julialang.org/t/how-to-make-log-mel-spectrogram/97927 "2024-06-19T16:09:05Z")

</div>

The eventual goal is to make a pure Julia Whisper inference, but got stopped before 1st step. Most ingredients of the spectrogram is simply a combination of hanging window and stft: in Julia, we can find them in DSP.j…

---

## [Reading and writing to a websocket](https://discourse.julialang.org/t/reading-and-writing-to-a-websocket/114974)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 4:28pm UTC](https://discourse.julialang.org/t/reading-and-writing-to-a-websocket/114974 "2024-06-19T16:28:34Z")

</div>

What is the accepted way to read and write to a websocket? The only option that I’ve found is this \[1\]. The problem with it is not only that it’s obviously “outside” of the HTTP.WebSockets API, but also that does so in …

---

## [Fastest way to concatenate many arrays along existing axis?](https://discourse.julialang.org/t/fastest-way-to-concatenate-many-arrays-along-existing-axis/115841)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 3:02pm UTC](https://discourse.julialang.org/t/fastest-way-to-concatenate-many-arrays-along-existing-axis/115841 "2024-06-19T15:02:47Z")

</div>

I’m wondering if there is a fast way to concatenate a list a of many arrays without creating a new axis. I know about stack(a), but that function creates a new axis and I don’t want that. Its docstring says The various…

---

## [Combining results from threaded calculations](https://discourse.julialang.org/t/combining-results-from-threaded-calculations/115753)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [June 19, 2024, 2:51pm UTC](https://discourse.julialang.org/t/combining-results-from-threaded-calculations/115753 "2024-06-19T14:51:50Z")

</div>

I have a calculation which uses a buffer for a subset of a cohort of agents (in the MWE below, each has different \\kappa), steps this forward from a given value in time, calculates some aggregate at each point in time. …

---

## [GLMakie: Create 3D animations with GLMakie?](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850)

<div class="topic-metadata">

**Author:** [@Vinh](https://discourse.julialang.org/u/Vinh)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 2:49pm UTC](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850 "2024-06-19T14:49:49Z")

</div>

I generate samples from the Vegas algorithm through iterations, from which I draw 3D graphs using GLMakie. The problem is that I want to animate a 3D image but I don’t really understand the tutorial to apply it to my cas…

---

## [Cannot install RecursiveArrayTools (latest version)](https://discourse.julialang.org/t/cannot-install-recursivearraytools-latest-version/115860)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 1:24pm UTC](https://discourse.julialang.org/t/cannot-install-recursivearraytools-latest-version/115860 "2024-06-19T13:24:21Z")

</div>

Today I cannot install the latest version of RecursiveArrayTools any longer. Yesterday it worked: (tmp) pkg\> add RecursiveArrayTools#v3.24.0 Resolving package versions... ERROR: Unsatisfiable requirements detected fo…

---

## [JuliaHub shows 0 dependents for every package](https://discourse.julialang.org/t/juliahub-shows-0-dependents-for-every-package/115854)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 2:43pm UTC](https://discourse.julialang.org/t/juliahub-shows-0-dependents-for-every-package/115854 "2024-06-19T14:43:29Z")

</div>

Even the “popular packages” on the JuliaHub package home page are shown with no dependents at all. This looks like a bug. I don’t know if the old Discourse entry from @jishnub shown below is related or if it has been fix…

---

## [Implementing a built in julia compiler inside my website](https://discourse.julialang.org/t/implementing-a-built-in-julia-compiler-inside-my-website/115865)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 2:37pm UTC](https://discourse.julialang.org/t/implementing-a-built-in-julia-compiler-inside-my-website/115865 "2024-06-19T14:37:27Z")

</div>

Hi, I am creating a platform for studying various topics. Among them I would like to have a running julia environment for students to run code on it and have tests done over their responses. Is there any resource I shoul…

---

## [Change MeshGrids to Arrays](https://discourse.julialang.org/t/change-meshgrids-to-arrays/115856)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 1:28pm UTC](https://discourse.julialang.org/t/change-meshgrids-to-arrays/115856 "2024-06-19T13:28:24Z")

</div>

I have two mesh grid xg =5×5 LazyGrids.GridUR{Int64, 1, 2}: \[1 1 1 1 1; 2 2 2 2 2; 3 3 3 3 3; 4 4 4 4 4; 5 5 5 5 5\] and yg =5×5 LazyGrids.GridUR{Int64, 1, 2}: \[1 1 1 1 1; 2 2 2 2 2; 3…

---

## [Register\_array\_symbolic changing arrays into arrays of single length 'tuples'](https://discourse.julialang.org/t/register-array-symbolic-changing-arrays-into-arrays-of-single-length-tuples/115858)

<div class="topic-metadata">

**Author:** [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 1:16pm UTC](https://discourse.julialang.org/t/register-array-symbolic-changing-arrays-into-arrays-of-single-length-tuples/115858 "2024-06-19T13:16:19Z")

</div>

Hello, When I use register\_array\_symbolic and define the size of the array to equal the length of an input, rather than returning a single array of length(x) it returns an object that is composed of x 1-length subarrays…

---

## [Julia used to prototype Whatsapp audio](https://discourse.julialang.org/t/julia-used-to-prototype-whatsapp-audio/115626)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 20\
**Last updated:** [June 19, 2024, 12:36pm UTC](https://discourse.julialang.org/t/julia-used-to-prototype-whatsapp-audio/115626 "2024-06-19T12:36:30Z")

</div>

This isn’t a big thing, Julia is just powering EVERY SINGLE VOICE CALL in WHATSAPP across the world (maybe this is a slight exaggeration) but check it out: (relevant bit starts at 8min 12s)

---

## [Artifactory with Julia](https://discourse.julialang.org/t/artifactory-with-julia/104747)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 15\
**Last updated:** [June 19, 2024, 12:05pm UTC](https://discourse.julialang.org/t/artifactory-with-julia/104747 "2024-06-19T12:05:23Z")

</div>

An idle question, but might have some interesting answers. Does anyone use JFrog Artifactory with Julia

---

## [Huge distributed overhead](https://discourse.julialang.org/t/huge-distributed-overhead/115815)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 2\
**Last updated:** [June 19, 2024, 11:46am UTC](https://discourse.julialang.org/t/huge-distributed-overhead/115815 "2024-06-19T11:46:17Z")

</div>

My code looks something like this. First, I have a file where I define my functions #Functions.jl file #Here we import the relevant packages and define all the functions with @everywere @everywhere Solver(A, N) …

---

## [Is time in continuous ABM model is really continuous?](https://discourse.julialang.org/t/is-time-in-continuous-abm-model-is-really-continuous/115849)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 11:41am UTC](https://discourse.julialang.org/t/is-time-in-continuous-abm-model-is-really-continuous/115849 "2024-06-19T11:41:28Z")

</div>

Hello. everyone , I’m working with eventbasedmodel for continuous time. Initially i thought in case of continuous time unlike standard ABM time step doesn’t goes like 0, 1,2, 3, 4, 5…but something like 0.0, 0.1, 0.2, …

---

## [MTK -- change in \`linearize\`?](https://discourse.julialang.org/t/mtk-change-in-linearize/115760)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [June 19, 2024, 10:14am UTC](https://discourse.julialang.org/t/mtk-change-in-linearize/115760 "2024-06-19T10:14:39Z")

</div>

I have some MTK code including linearization that used to work, but doesn’t work any more. I’m trying to understand the changes by doing it differently, but I get a weird error message… Here is a model with input md\_i l…

---

## [Limit number of @spawn'ed threads](https://discourse.julialang.org/t/limit-number-of-spawned-threads/41847)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 13\
**Last updated:** [June 19, 2024, 9:32am UTC](https://discourse.julialang.org/t/limit-number-of-spawned-threads/41847 "2024-06-19T09:32:50Z")

</div>

I’m trying to use Threads.@spawn to execute a function in parallel. According to the docs and common sense, I expected it to run Threads.nthreads() spawned functions simultaneously, and in my case nthreads() == 4. Howev…

---

## [Slicing vector into matrix](https://discourse.julialang.org/t/slicing-vector-into-matrix/115844)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 9:19am UTC](https://discourse.julialang.org/t/slicing-vector-into-matrix/115844 "2024-06-19T09:19:15Z")

</div>

How to do this ? If there is a function? I have a large vector with repeating numbers after some interval. I want to slice it just like how showed in second output. Thank you :slight\_smile: julia\> a = \[1, 1, 1, 1, 2,…

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

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