# Latest

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

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

**Page:** 386

---

## [Wanted: an API for merging sorted collections](https://discourse.julialang.org/t/wanted-an-api-for-merging-sorted-collections/115722)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [June 16, 2024, 6:57pm UTC](https://discourse.julialang.org/t/wanted-an-api-for-merging-sorted-collections/115722 "2024-06-16T18:57:56Z")

</div>

I don’t think there’s a public function for the merge algorithm anywhere in Julia or the ecosystem. It’s what merge sort is based on. Wikipedia introduces merging like this: Merge algorithms are a family of algorithms …

---

## [Suggestions for best practice in scaling analysis](https://discourse.julialang.org/t/suggestions-for-best-practice-in-scaling-analysis/114237)

<div class="topic-metadata">

**Author:** [@SamBrand](https://discourse.julialang.org/u/SamBrand)\
**Replies:** 3\
**Last updated:** [June 16, 2024, 5:16pm UTC](https://discourse.julialang.org/t/suggestions-for-best-practice-in-scaling-analysis/114237 "2024-06-16T17:16:00Z")

</div>

Hi everyone, I’m exploring whether there are good examples around of using Julia at scale that people can link? At the moment I’m helping develop a package for model-based epidemiological inference Rt-without-renewal/E…

---

## [How to get remote data in newline terminating chunks?](https://discourse.julialang.org/t/how-to-get-remote-data-in-newline-terminating-chunks/115717)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [June 16, 2024, 3:36pm UTC](https://discourse.julialang.org/t/how-to-get-remote-data-in-newline-terminating-chunks/115717 "2024-06-16T15:36:29Z")

</div>

I thought that this would end up in several some buffer-size chunks, but actually the 9GB file seems to be downloaded at once: data\_url = "https://zenodo.org/records/11549846/files/U2018\_CLC2018\_V2020\_20u1.gpkg?download…

---

## [Why Julia doesn't throw error if pre-declared array is reassigned to a new differently sized array?](https://discourse.julialang.org/t/why-julia-doesnt-throw-error-if-pre-declared-array-is-reassigned-to-a-new-differently-sized-array/115697)

<div class="topic-metadata">

**Author:** [@singularity](https://discourse.julialang.org/u/singularity)\
**Replies:** 16\
**Last updated:** [June 16, 2024, 2:10pm UTC](https://discourse.julialang.org/t/why-julia-doesnt-throw-error-if-pre-declared-array-is-reassigned-to-a-new-differently-sized-array/115697 "2024-06-16T14:10:29Z")

</div>

Another confusing thing with Julia. Why does julia not throw an error if I declare an array as x::Vector{Float64} = zeros(100); and then reassign as x = rand(50); How can I ensure bound-checking with this kind of fre…

---

## [An interesting take on security](https://discourse.julialang.org/t/an-interesting-take-on-security/115699)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [June 16, 2024, 12:58pm UTC](https://discourse.julialang.org/t/an-interesting-take-on-security/115699 "2024-06-16T12:58:50Z")

</div>

Quite different from the current approach, for sure.

---

## [How to solve the non linear Coupled Cluster equations using Inexact Newton with DIIS?](https://discourse.julialang.org/t/how-to-solve-the-non-linear-coupled-cluster-equations-using-inexact-newton-with-diis/115291)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 1\
**Last updated:** [June 16, 2024, 12:02pm UTC](https://discourse.julialang.org/t/how-to-solve-the-non-linear-coupled-cluster-equations-using-inexact-newton-with-diis/115291 "2024-06-16T12:02:09Z")

</div>

I have been trying to solve the Coupled Cluster Amplitude Equations which are a set of non-linear equations using Julia. The aim is to find cluster amplitudes tensor T2 such that the residual tensor (defined below) is ze…

---

## [Can i start out with Julia as my 1st coding language](https://discourse.julialang.org/t/can-i-start-out-with-julia-as-my-1st-coding-language/115663)

<div class="topic-metadata">

**Author:** [@Zorn\_thimmberglobber](https://discourse.julialang.org/u/Zorn_thimmberglobber)\
**Replies:** 7\
**Last updated:** [June 16, 2024, 11:08am UTC](https://discourse.julialang.org/t/can-i-start-out-with-julia-as-my-1st-coding-language/115663 "2024-06-16T11:08:26Z")

</div>

Is it a good idea to learn Julia as my 1st coding language? If so what are some good beginner projects.

---

## [LocalRegistry on Azure DevOps](https://discourse.julialang.org/t/localregistry-on-azure-devops/111649)

<div class="topic-metadata">

**Author:** [@kealme](https://discourse.julialang.org/u/kealme)\
**Replies:** 2\
**Last updated:** [June 16, 2024, 10:57am UTC](https://discourse.julialang.org/t/localregistry-on-azure-devops/111649 "2024-06-16T10:57:01Z")

</div>

Hi, I’m developing some packages. In Python, my workflow for this is as follows: Developing: Develop package and start release pipeline in Azure DevOps DevOps publishes the Python Package in the Azure Artifact Feed U…

---

## [Print string from readavailable now seems to get a wrong encoding](https://discourse.julialang.org/t/print-string-from-readavailable-now-seems-to-get-a-wrong-encoding/115712)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [June 16, 2024, 9:23am UTC](https://discourse.julialang.org/t/print-string-from-readavailable-now-seems-to-get-a-wrong-encoding/115712 "2024-06-16T09:23:44Z")

</div>

This was working “before” but now produces strange symbols in the output (like a binary output): using HTTP HTTP.open("GET", "https://julialang.org/") do io # Note the SSL support while !eof(io) println(Stri…

---

## [Multithreading when task vary in length (and need temporary arrays)](https://discourse.julialang.org/t/multithreading-when-task-vary-in-length-and-need-temporary-arrays/115689)

<div class="topic-metadata">

**Author:** [@nicolas](https://discourse.julialang.org/u/nicolas)\
**Replies:** 5\
**Last updated:** [June 16, 2024, 9:10am UTC](https://discourse.julialang.org/t/multithreading-when-task-vary-in-length-and-need-temporary-arrays/115689 "2024-06-16T09:10:45Z")

</div>

I am running simulations on my personal computer. The compute time of each draw/specification can vary significantly (in an unpredictable way). I think Threads.@threads schedules each iteration of a loop between threads …

---

## [Zoom in GLMakie 3d plot then save](https://discourse.julialang.org/t/zoom-in-glmakie-3d-plot-then-save/65745)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.julialang.org/u/sim)\
**Replies:** 15\
**Last updated:** [June 16, 2024, 7:36am UTC](https://discourse.julialang.org/t/zoom-in-glmakie-3d-plot-then-save/65745 "2024-06-16T07:36:02Z")

</div>

Hello, I need some help to perform some simple operations on GLMakie. I want, say, to draw a simple torus juste like this example, zoom in, and save the plot, but I could find no example on how to use Makie’s zoom! func…

---

## [MethodOfLines issue with coupled non-linear PDE system](https://discourse.julialang.org/t/methodoflines-issue-with-coupled-non-linear-pde-system/115681)

<div class="topic-metadata">

**Author:** [@Ryan\_B](https://discourse.julialang.org/u/Ryan_B)\
**Replies:** 2\
**Last updated:** [June 16, 2024, 4:15am UTC](https://discourse.julialang.org/t/methodoflines-issue-with-coupled-non-linear-pde-system/115681 "2024-06-16T04:15:18Z")

</div>

Hi. I am trying to solve a coupled system of nonlinear PDEs. I have attached the code, and I am happy to answer any questions. I have a 2D domain (x,z) and time dependence. My two variables are c (x,z,t), a 2D concentrat…

---

## [\`local\` just in case: good idea or code smell?](https://discourse.julialang.org/t/local-just-in-case-good-idea-or-code-smell/115668)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 8\
**Last updated:** [June 16, 2024, 3:55am UTC](https://discourse.julialang.org/t/local-just-in-case-good-idea-or-code-smell/115668 "2024-06-16T03:55:03Z")

</div>

I often write local to ensure a variable does not accidently reuse another definition such as in the example below. Is that a good idea, or is there something more sophisticated I should be doing to test local scoping? f…

---

## [Determining if a symbolic expression is positive and real](https://discourse.julialang.org/t/determining-if-a-symbolic-expression-is-positive-and-real/115538)

<div class="topic-metadata">

**Author:** [@thquinn](https://discourse.julialang.org/u/thquinn)\
**Replies:** 5\
**Last updated:** [June 16, 2024, 2:40am UTC](https://discourse.julialang.org/t/determining-if-a-symbolic-expression-is-positive-and-real/115538 "2024-06-16T02:40:08Z")

</div>

I’m about to start rewriting a physics simulation from Wolfram Client Library for Python to Julia using Symbolics.jl. The simulation consists of collisions between circles and line segments. At each time step, I find th…

---

## [How to specify thousand separator with CSV.read data](https://discourse.julialang.org/t/how-to-specify-thousand-separator-with-csv-read-data/86890)

<div class="topic-metadata">

**Author:** [@Nikx](https://discourse.julialang.org/u/Nikx)\
**Replies:** 7\
**Last updated:** [June 16, 2024, 1:10am UTC](https://discourse.julialang.org/t/how-to-specify-thousand-separator-with-csv-read-data/86890 "2024-06-16T01:10:58Z")

</div>

My Excel spread uses apostrophes to separate thousands and even worse it uses" ’ " instead of straight apostroph e.g. 1’000. Is there a way to specify this in CSV.read()? Because when I import data it interprets 1’000 a…

---

## [ModelingToolkit for nonlinear circuits and interface with fixed time-step simulators](https://discourse.julialang.org/t/modelingtoolkit-for-nonlinear-circuits-and-interface-with-fixed-time-step-simulators/115628)

<div class="topic-metadata">

**Author:** [@kevjzheng](https://discourse.julialang.org/u/kevjzheng)\
**Replies:** 4\
**Last updated:** [June 15, 2024, 9:51pm UTC](https://discourse.julialang.org/t/modelingtoolkit-for-nonlinear-circuits-and-interface-with-fixed-time-step-simulators/115628 "2024-06-15T21:51:48Z")

</div>

Hi all, I am relatively new to Julia and believe MTK offers an efficient way to model nonlinear circuits/communication channels for an existing link simulation framework I am building. As shown in the picture, most …

---

## [Recommendations for Learning Ordinary Differential Equations](https://discourse.julialang.org/t/recommendations-for-learning-ordinary-differential-equations/115661)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [June 15, 2024, 8:39pm UTC](https://discourse.julialang.org/t/recommendations-for-learning-ordinary-differential-equations/115661 "2024-06-15T20:39:08Z")

</div>

Can anyone recommend some good resources for learning ordinary differential equations? I’m not looking to become an expert or to write my own solvers - I’m just looking for something that will provide me with a good soli…

---

## [ModelingToolkit change parameter vector size based on structural parameter](https://discourse.julialang.org/t/modelingtoolkit-change-parameter-vector-size-based-on-structural-parameter/109914)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 4\
**Last updated:** [June 15, 2024, 6:30pm UTC](https://discourse.julialang.org/t/modelingtoolkit-change-parameter-vector-size-based-on-structural-parameter/109914 "2024-06-15T18:30:39Z")

</div>

Hi all, I’m trying to model a nonlinear component with @mtkmodel in ModelingToolkit. The base model with a given nonlinerity order (3 in this case) is @mtkmodel NLComponent begin @parameters begin r\[1:3\] …

---

## [How to investigate output of type instability checks?](https://discourse.julialang.org/t/how-to-investigate-output-of-type-instability-checks/115639)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 11\
**Last updated:** [June 15, 2024, 4:44pm UTC](https://discourse.julialang.org/t/how-to-investigate-output-of-type-instability-checks/115639 "2024-06-15T16:44:29Z")

</div>

I am trying to eliminate the type instabilities that might cause my code (shown below) of an iterative solver to some non linear system of equations to become slow: using Printf,Plots, TimerOutputs include("ccd-helper.j…

---

## [Optimization.jl and Lux.jl 1.10.0 Compatability](https://discourse.julialang.org/t/optimization-jl-and-lux-jl-1-10-0-compatability/108590)

<div class="topic-metadata">

**Author:** [@afulkers](https://discourse.julialang.org/u/afulkers)\
**Replies:** 3\
**Last updated:** [June 15, 2024, 12:47pm UTC](https://discourse.julialang.org/t/optimization-jl-and-lux-jl-1-10-0-compatability/108590 "2024-06-15T12:47:35Z")

</div>

I was revisiting code I wrote in Julia 1.9.3 which closely mimics the code written by Chris here. While it worked fine in 1.9.3, when I updated my packages and installation to 1.10.0. I started getting the following erro…

---

## [Problems with reverse mode automatic diff (e.g. zygote) with NeuralSDEs](https://discourse.julialang.org/t/problems-with-reverse-mode-automatic-diff-e-g-zygote-with-neuralsdes/113501)

<div class="topic-metadata">

**Author:** [@agelgazzar](https://discourse.julialang.org/u/agelgazzar)\
**Replies:** 2\
**Last updated:** [June 15, 2024, 11:17am UTC](https://discourse.julialang.org/t/problems-with-reverse-mode-automatic-diff-e-g-zygote-with-neuralsdes/113501 "2024-06-15T11:17:57Z")

</div>

Hello, I am having difficulty computing gradients of a neural sdes (either custom or in DiffeqFlux) using Zygote or ReverseDiff. I think it has to do with the shape of the noise during the backward pass but I am not su…

---

## [Fitting values in a vector to separate Onlinestats Univariate statistics](https://discourse.julialang.org/t/fitting-values-in-a-vector-to-separate-onlinestats-univariate-statistics/115664)

<div class="topic-metadata">

**Author:** [@Dario\_Sarra](https://discourse.julialang.org/u/Dario_Sarra)\
**Replies:** 1\
**Last updated:** [June 15, 2024, 11:16am UTC](https://discourse.julialang.org/t/fitting-values-in-a-vector-to-separate-onlinestats-univariate-statistics/115664 "2024-06-15T11:16:22Z")

</div>

My final goal was to compute N separate Means after vectorizing a CircularBuffer Matrix and update the means after a certain number of steps of the Circular buffer. I know how to get separate calculations using LinearAlg…

---

## [PDE with neural network and derivative of NN using MethodOfLines](https://discourse.julialang.org/t/pde-with-neural-network-and-derivative-of-nn-using-methodoflines/114673)

<div class="topic-metadata">

**Author:** [@jenrei](https://discourse.julialang.org/u/jenrei)\
**Replies:** 2\
**Last updated:** [June 15, 2024, 11:15am UTC](https://discourse.julialang.org/t/pde-with-neural-network-and-derivative-of-nn-using-methodoflines/114673 "2024-06-15T11:15:09Z")

</div>

I want to solve the energy equation where the potential energy is expressed by a neural network and then solved for a prescribed energy (actually temperature) profile. So a very simplified version of my problem would loo…

---

## [Visualize the points that are used for training in NeuralPDE](https://discourse.julialang.org/t/visualize-the-points-that-are-used-for-training-in-neuralpde/114666)

<div class="topic-metadata">

**Author:** [@PetrosStefanou](https://discourse.julialang.org/u/PetrosStefanou)\
**Replies:** 1\
**Last updated:** [June 15, 2024, 11:07am UTC](https://discourse.julialang.org/t/visualize-the-points-that-are-used-for-training-in-neuralpde/114666 "2024-06-15T11:07:07Z")

</div>

Hi, I would like to print and visualize the points that are being selected at each iteration by the QuasiRandomTraining strategy in NeuralPDE. I have checked the many fields of symbolic\_discretize but I cannot pinpoint…

---

## [System of SDE with complex noise](https://discourse.julialang.org/t/system-of-sde-with-complex-noise/111469)

<div class="topic-metadata">

**Author:** [@matt1](https://discourse.julialang.org/u/matt1)\
**Replies:** 1\
**Last updated:** [June 15, 2024, 11:00am UTC](https://discourse.julialang.org/t/system-of-sde-with-complex-noise/111469 "2024-06-15T11:00:46Z")

</div>

Hello! Let’s say I want to solve numerically the following stochastic partial differential equation: \\begin{equation} du(x,y,t)=\\nabla^{2}u(x,y,t) dt+k\\cdot dW^{r}(x,y,t)+i k\\cdot dW^{c}(x,y,t)) \\end{equation}, wher…

---

## [Add time dependent terms in a differential equation](https://discourse.julialang.org/t/add-time-dependent-terms-in-a-differential-equation/113338)

<div class="topic-metadata">

**Author:** [@Piyush](https://discourse.julialang.org/u/Piyush)\
**Replies:** 3\
**Last updated:** [June 15, 2024, 10:58am UTC](https://discourse.julialang.org/t/add-time-dependent-terms-in-a-differential-equation/113338 "2024-06-15T10:58:04Z")

</div>

Hi, I am a new to Julia and trying to solve Differential Equation with exogenous inputs. The inputs will be read from data at discrete times. Can someone help with the minimal code for the same. I would also like to do …

---

## [CUB wrapper ccall overhead on Windows](https://discourse.julialang.org/t/cub-wrapper-ccall-overhead-on-windows/115585)

<div class="topic-metadata">

**Author:** [@eldee](https://discourse.julialang.org/u/eldee)\
**Replies:** 10\
**Last updated:** [June 15, 2024, 10:37am UTC](https://discourse.julialang.org/t/cub-wrapper-ccall-overhead-on-windows/115585 "2024-06-15T10:37:35Z")

</div>

Hi, To get a faster GPU sort + sortperm for a specific use case, I succesfully wrapped CUB’s SortPairs method for sorting 64-bit integer keys (sort) and 32-bit integer values (sortperm). However, when measuring the exec…

---

## [MTK - instantiate \*vectors\* of models?](https://discourse.julialang.org/t/mtk-instantiate-vectors-of-models/113487)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [June 15, 2024, 10:34am UTC](https://discourse.julialang.org/t/mtk-instantiate-vectors-of-models/113487 "2024-06-15T10:34:15Z")

</div>

Is it possible to instantiate vectors of models in MTK? What I mean is the following. I have created a re-usable “class” which I have named Well. In the past, I have instantiated several copies of this model and used th…

---

## [Automatic State Transition Matrix](https://discourse.julialang.org/t/automatic-state-transition-matrix/115657)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 3\
**Last updated:** [June 15, 2024, 10:02am UTC](https://discourse.julialang.org/t/automatic-state-transition-matrix/115657 "2024-06-15T10:02:53Z")

</div>

Hello, When solving an ODE with the DifferentialEquations package, is there a way to automatically retrieve the state transition matrix, i.e. the sensitivity of the solution w.r.t. the initial conditions, along the enti…

---

## [Implementing two different noise processes in a differential equation](https://discourse.julialang.org/t/implementing-two-different-noise-processes-in-a-differential-equation/101908)

<div class="topic-metadata">

**Author:** [@absorbtion](https://discourse.julialang.org/u/absorbtion)\
**Replies:** 1\
**Last updated:** [June 15, 2024, 10:01am UTC](https://discourse.julialang.org/t/implementing-two-different-noise-processes-in-a-differential-equation/101908 "2024-06-15T10:01:47Z")

</div>

Hi! I’m trying to implement the 3-dim complex valued DE du/dt = (alpha(t) + beta(t))\*u(t) alpha(t) is a 3-dim OU process and beta(t) is a 1-dim OU process (mean 0) with a given covariance E\[beta(t)beta(s)\] = f(s,t). I…

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

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