# Latest

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

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

**Page:** 771

---

## [JuMP Multi-threading example](https://discourse.julialang.org/t/jump-multi-threading-example/95210)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 2\
**Last updated:** [February 26, 2023, 12:22am UTC](https://discourse.julialang.org/t/jump-multi-threading-example/95210 "2023-02-26T00:22:02Z")

</div>

In this JuMP example of multi-threading, why does the vector of solutions have 8 elements, while the for loop size is 10?

---

## [Max size for SVector or SArray](https://discourse.julialang.org/t/max-size-for-svector-or-sarray/95209)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 4\
**Last updated:** [February 25, 2023, 11:44pm UTC](https://discourse.julialang.org/t/max-size-for-svector-or-sarray/95209 "2023-02-25T23:44:17Z")

</div>

What are the recommended maximum sizes for an SVector or SArray? I realize there is no hard limit, but are there some rules of thumb?

---

## [ComplexityMeasures.jl](https://discourse.julialang.org/t/complexitymeasures-jl/95198)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 9:01pm UTC](https://discourse.julialang.org/t/complexitymeasures-jl/95198 "2023-02-25T21:01:41Z")

</div>

ComplexityMeasures.jl (Entropies.jl successor) I’m incredibly proud to announce ComplexityMeasures.jl, which I believe is one of the most well-thought out packages in JuliaDynamics and one of the most well-thought out pa…

---

## [Unnecessary copy using convert.()](https://discourse.julialang.org/t/unnecessary-copy-using-convert/95009)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 10\
**Last updated:** [February 25, 2023, 8:00pm UTC](https://discourse.julialang.org/t/unnecessary-copy-using-convert/95009 "2023-02-25T20:00:16Z")

</div>

I was surprised by this call to convert on a vector generating a copy, when the output type is the same as the input type. Is this desired behaviour?: julia\> A = \[1, 2, 3, 4\] 4-element Vector{Int64}: 1 2 3 4 julia\> …

---

## [TOML.parsefile error on reading date formatted variable](https://discourse.julialang.org/t/toml-parsefile-error-on-reading-date-formatted-variable/59681)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 7:40pm UTC](https://discourse.julialang.org/t/toml-parsefile-error-on-reading-date-formatted-variable/59681 "2023-02-25T19:40:20Z")

</div>

I have the test.toml file, containing the single line: period = 2021-04-20 # should be formatted as YYYY-MM-DD When I try to parse it via: julia\> using TOML julia\> TOML.parsefile("test.toml") the following error aris…

---

## [Why is this dependency not allowed?](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [February 25, 2023, 5:45pm UTC](https://discourse.julialang.org/t/why-is-this-dependency-not-allowed/95180 "2023-02-25T17:45:40Z")

</div>

I tried to register a package that contains: \[compat\] DiffEqBase = "\<6.116.0" Sundials = "~4.11" and get the error message: The following dependencies do not have a \[compat\] entry that is upper-bounded and only inclu…

---

## [CliqueNet and backward connection neural network](https://discourse.julialang.org/t/cliquenet-and-backward-connection-neural-network/95186)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 4:15pm UTC](https://discourse.julialang.org/t/cliquenet-and-backward-connection-neural-network/95186 "2023-02-25T16:15:05Z")

</div>

Hello, I would like to implement the CliquetNet neural networks with fully connected dense with Flux: The network has some backward connection, I do not know the best way to implement the connection from the Flux.Ski…

---

## [Selecting a specific cycle to perform operation during a callback](https://discourse.julialang.org/t/selecting-a-specific-cycle-to-perform-operation-during-a-callback/94804)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 3:33pm UTC](https://discourse.julialang.org/t/selecting-a-specific-cycle-to-perform-operation-during-a-callback/94804 "2023-02-25T15:33:03Z")

</div>

Hi all, Below is a simple example of me performing a Kalman filtration on 3 periodic cycles of a model. We generate data for all 3 cycles and perform a Kalman filtration forcing the time step and utilising the integrato…

---

## [Findgroups in Julia](https://discourse.julialang.org/t/findgroups-in-julia/95187)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 3:30pm UTC](https://discourse.julialang.org/t/findgroups-in-julia/95187 "2023-02-25T15:30:16Z")

</div>

is there an equivalent to the function findgroups in Julia as defined in Matlab,

---

## [Append! on arrays of arryas](https://discourse.julialang.org/t/append-on-arrays-of-arryas/95183)

<div class="topic-metadata">

**Author:** [@gasparalfaro](https://discourse.julialang.org/u/gasparalfaro)\
**Replies:** 5\
**Last updated:** [February 25, 2023, 3:15pm UTC](https://discourse.julialang.org/t/append-on-arrays-of-arryas/95183 "2023-02-25T15:15:15Z")

</div>

I want to create an array of empty arrays so I can append and have different sized arrays like this: But, if I use fill to create the array of empty arrays and then I append it the result is this: Why is it any di…

---

## [What is the difference between the two methods of lm on GLM.jl](https://discourse.julialang.org/t/what-is-the-difference-between-the-two-methods-of-lm-on-glm-jl/95140)

<div class="topic-metadata">

**Author:** [@dpabon](https://discourse.julialang.org/u/dpabon)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 3:00pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-the-two-methods-of-lm-on-glm-jl/95140 "2023-02-25T15:00:17Z")

</div>

The application of each one of the methods produced a different result: using DataFrames using GLM new\_x = rand(100,3) new\_y = rand(100) GLM.lm(new\_x, new\_y) Produce: LinearModel{GLM.LmResp{Vector{Float64}}, GLM.Den…

---

## [Forecasting with LSTM + MLJ How to ? (A detailed guide or tutorial is needed)](https://discourse.julialang.org/t/forecasting-with-lstm-mlj-how-to-a-detailed-guide-or-tutorial-is-needed/94835)

<div class="topic-metadata">

**Author:** [@huqedato](https://discourse.julialang.org/u/huqedato)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 2:35pm UTC](https://discourse.julialang.org/t/forecasting-with-lstm-mlj-how-to-a-detailed-guide-or-tutorial-is-needed/94835 "2023-02-25T14:35:08Z")

</div>

For a future task/project (starting this late spring) we will be required to create and deploy a network for predictive analysis on a large time-series dataset with multiple complex features. The tools of work (set by m…

---

## [A Roadmap for Beginners: Embedded Systems and Control Theory](https://discourse.julialang.org/t/a-roadmap-for-beginners-embedded-systems-and-control-theory/95150)

<div class="topic-metadata">

**Author:** [@MMehdi](https://discourse.julialang.org/u/MMehdi)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 12:38pm UTC](https://discourse.julialang.org/t/a-roadmap-for-beginners-embedded-systems-and-control-theory/95150 "2023-02-25T12:38:53Z")

</div>

hi everyone, hope you’re dong well. As far as I could catch, I suppose Julia is quiet fitted for embedded applications and implementing algorithms with high computational burden and limited available memory space . I’m …

---

## [Copy only modified files to destination folder](https://discourse.julialang.org/t/copy-only-modified-files-to-destination-folder/95176)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 10:19am UTC](https://discourse.julialang.org/t/copy-only-modified-files-to-destination-folder/95176 "2023-02-25T10:19:56Z")

</div>

I am wondering, if there is a package or a command to copy only new files to a destination folder (one way synchronization). I have tried to find something here and on GitHub, but failed :frowning:

---

## [Package pull request sitting for over a month](https://discourse.julialang.org/t/package-pull-request-sitting-for-over-a-month/95168)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 6\
**Last updated:** [February 25, 2023, 10:24am UTC](https://discourse.julialang.org/t/package-pull-request-sitting-for-over-a-month/95168 "2023-02-25T10:24:46Z")

</div>

This request that requires has been sitting for over a month: It requires manual merging because of a name similarity. I’ve tired commenting in the request to get some movement but no response. Does anyone have sug…

---

## [How to differentiate through the ODE solver (Discretize-then-Optimize)?](https://discourse.julialang.org/t/how-to-differentiate-through-the-ode-solver-discretize-then-optimize/95178)

<div class="topic-metadata">

**Author:** [@kcqpo](https://discourse.julialang.org/u/kcqpo)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 10:01am UTC](https://discourse.julialang.org/t/how-to-differentiate-through-the-ode-solver-discretize-then-optimize/95178 "2023-02-25T10:01:08Z")

</div>

Does anyone know how to differentiate through the solver? I wanted to try to implement this technique over here Opening the Blackbox: Accelerating Neural Differential Equations by Regularizing Internal Solver Heuristics.…

---

## [Assigning a UnitRange to an array](https://discourse.julialang.org/t/assigning-a-unitrange-to-an-array/95115)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 7\
**Last updated:** [February 25, 2023, 3:17am UTC](https://discourse.julialang.org/t/assigning-a-unitrange-to-an-array/95115 "2023-02-25T03:17:11Z")

</div>

Hi, I have a matrix with elements of type UnitRange a = Array{UnitRange}(undef ,2,2) I would like to assign a unit range like (200:375) to a range of elements using broadcast. a\[1,:\] .= (200:375) but I get this erro…

---

## [HTTP.jl get fails with 404 - Postman counterpart works](https://discourse.julialang.org/t/http-jl-get-fails-with-404-postman-counterpart-works/95098)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 2:18am UTC](https://discourse.julialang.org/t/http-jl-get-fails-with-404-postman-counterpart-works/95098 "2023-02-25T02:18:10Z")

</div>

Hello people, I have an issue with the HTTP.jl package. I am trying to access Firestore REST API. This is my URL: https://firestore.googleapis.com/v1/projects/my-project/databases/(default)/documents/ The only stated…

---

## [Difficulty registering new package (Deps.toml no such file)](https://discourse.julialang.org/t/difficulty-registering-new-package-deps-toml-no-such-file/95156)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 3\
**Last updated:** [February 25, 2023, 1:40am UTC](https://discourse.julialang.org/t/difficulty-registering-new-package-deps-toml-no-such-file/95156 "2023-02-25T01:40:02Z")

</div>

I have registered several packages in the past, but my latest one fails for a reason I don’t understand. I see this error message in https://github.com/JuliaRegistries/General/actions...: ERROR: LoadError: "/home/runner…

---

## [Order of parameters in a vector differential equation function](https://discourse.julialang.org/t/order-of-parameters-in-a-vector-differential-equation-function/95114)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 6\
**Last updated:** [February 25, 2023, 1:02am UTC](https://discourse.julialang.org/t/order-of-parameters-in-a-vector-differential-equation-function/95114 "2023-02-25T01:02:22Z")

</div>

What is the correct format for a differential equation function? My understanding is that when the function doesn’t take any parameters, it should be like the following: function F!(t,dx,x) dx.=\[x\[1\]+x\[2\];x\[2\]\]; end…

---

## [Suggestion for homepage of https://juliastats.org/](https://discourse.julialang.org/t/suggestion-for-homepage-of-https-juliastats-org/94948)

<div class="topic-metadata">

**Author:** [@ForestRaven](https://discourse.julialang.org/u/ForestRaven)\
**Replies:** 3\
**Last updated:** [February 25, 2023, 12:04am UTC](https://discourse.julialang.org/t/suggestion-for-homepage-of-https-juliastats-org/94948 "2023-02-25T00:04:00Z")

</div>

Hi, Looking for ressources on statistics with Julia, I came across https://juliastats.org/. As a Julia noob, I expected the links on the main page to redirect to the documentation of each package. Instead, it points to…

---

## [Parity of sorting permutations for vectors with very small size](https://discourse.julialang.org/t/parity-of-sorting-permutations-for-vectors-with-very-small-size/95172)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 0\
**Last updated:** [February 24, 2023, 11:39pm UTC](https://discourse.julialang.org/t/parity-of-sorting-permutations-for-vectors-with-very-small-size/95172 "2023-02-24T23:39:52Z")

</div>

What would be the fastest way to get the parity of sorting permutations for vectors with very small size? The obvious way is to use the sortperm! function and the parity function from Combinatorics.jl. However, sortper…

---

## [I am noob, how do I keep the HTTP server running if I want to start it from the command line?](https://discourse.julialang.org/t/i-am-noob-how-do-i-keep-the-http-server-running-if-i-want-to-start-it-from-the-command-line/95136)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [February 24, 2023, 9:47pm UTC](https://discourse.julialang.org/t/i-am-noob-how-do-i-keep-the-http-server-running-if-i-want-to-start-it-from-the-command-line/95136 "2023-02-24T21:47:01Z")

</div>

I have a very simple HTTP server that I want to run server.jl using Pkg Pkg.add("HTTP") using HTTP # if false ENV\["PORT"\] = "8080" # end print(ENV\["PORT"\]) const PORT = parse…

---

## [Linux: Start bash-script and don't wait for execution](https://discourse.julialang.org/t/linux-start-bash-script-and-dont-wait-for-execution/95162)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 9:21pm UTC](https://discourse.julialang.org/t/linux-start-bash-script-and-dont-wait-for-execution/95162 "2023-02-24T21:21:56Z")

</div>

Is it possible in a standalone REPL (outside of VScode) to start a bash-script and get back focus on the current external REPL right after? Here my snippet that works fine in VScode, but fails outside the integrated VSc…

---

## [\[ANN\] \`julia\_pod\` v0.4.0: Removes A Security Footgun](https://discourse.julialang.org/t/ann-julia-pod-v0-4-0-removes-a-security-footgun/95167)

<div class="topic-metadata">

**Author:** [@omus](https://discourse.julialang.org/u/omus)\
**Replies:** 0\
**Last updated:** [February 24, 2023, 9:20pm UTC](https://discourse.julialang.org/t/ann-julia-pod-v0-4-0-removes-a-security-footgun/95167 "2023-02-24T21:20:57Z")

</div>

The julia\_pod tool (versions \< v0.4.0) included an optional feature to store a user’s GitHub Personal Access Token (PAT) as a Kubernetes (K8s) secret, allowing you to add private packages from within an interactive K8s p…

---

## [Is it good to include a function in my struct?](https://discourse.julialang.org/t/is-it-good-to-include-a-function-in-my-struct/95129)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 6\
**Last updated:** [February 24, 2023, 8:32pm UTC](https://discourse.julialang.org/t/is-it-good-to-include-a-function-in-my-struct/95129 "2023-02-24T20:32:04Z")

</div>

I have a struct which has a field referring to a function, which is used as following. struct myT f::Function end function Base.getindex(foo::myT, i)::Float64 foo.f(...) end I noticed that code\_warntype shows │ …

---

## [Memory allocated when using a \`struct\`as function argument?](https://discourse.julialang.org/t/memory-allocated-when-using-a-struct-as-function-argument/95155)

<div class="topic-metadata">

**Author:** [@Tomas\_Grigera](https://discourse.julialang.org/u/Tomas_Grigera)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 5:51pm UTC](https://discourse.julialang.org/t/memory-allocated-when-using-a-struct-as-function-argument/95155 "2023-02-24T17:51:22Z")

</div>

I am relatively new to Julia. I am trying to write code that avoids unnecessary memory allocation, but I do not completely understand when memory allocation happens. Here is an example where I can’t figure out what is …

---

## [Is there barrier condition in Mulit-threading?](https://discourse.julialang.org/t/is-there-barrier-condition-in-mulit-threading/95157)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 0\
**Last updated:** [February 24, 2023, 5:45pm UTC](https://discourse.julialang.org/t/is-there-barrier-condition-in-mulit-threading/95157 "2023-02-24T17:45:09Z")

</div>

Is there a barrier synchronization primitive to synchronize multiple threads created by @threads and ensure that they all reach a certain point in a for loop before continuing execution. Such as below? barrier = Threads…

---

## [Multivariate hypergeometric distribution?](https://discourse.julialang.org/t/multivariate-hypergeometric-distribution/95081)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 5:26pm UTC](https://discourse.julialang.org/t/multivariate-hypergeometric-distribution/95081 "2023-02-24T17:26:41Z")

</div>

Is there a package that implements sampling for the multivariate hypergeometric distribution?

---

## [Finalizer bug? Or am I dumb?](https://discourse.julialang.org/t/finalizer-bug-or-am-i-dumb/95113)

<div class="topic-metadata">

**Author:** [@cadaverous](https://discourse.julialang.org/u/cadaverous)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 5:22pm UTC](https://discourse.julialang.org/t/finalizer-bug-or-am-i-dumb/95113 "2023-02-24T17:22:21Z")

</div>

I have a julia object that contains some data fields that are initialized inside a ccall, so I am trying to write a finalizer to allow C to free the allocated memory, but I’m getting some weird behavior that I think migh…

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

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