# Latest

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

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

**Page:** 580

---

## [MTK - simple case with \`@mtkmodel\` and standard library doesn't work](https://discourse.julialang.org/t/mtk-simple-case-with-mtkmodel-and-standard-library-doesnt-work/104807)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 7:10am UTC](https://discourse.julialang.org/t/mtk-simple-case-with-mtkmodel-and-standard-library-doesnt-work/104807 "2023-10-11T07:10:06Z")

</div>

I’m experimenting with the new @mtkmodel in combination with the ModelingToolkitStandardLibrary. I get an error message… My case is simple: a liquid tank “class” Tank\_m with flow out given by gravity, encoded via @mtkmo…

---

## [Concrete vs parametric when determining type specificity](https://discourse.julialang.org/t/concrete-vs-parametric-when-determining-type-specificity/104784)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 23\
**Last updated:** [October 11, 2023, 6:12am UTC](https://discourse.julialang.org/t/concrete-vs-parametric-when-determining-type-specificity/104784 "2023-10-11T06:12:26Z")

</div>

Consider these two methods: foo(x::T, ::Vector) where T = "vector" foo(x::T, ::AbstractVector{T}) where T = "abstract vector" Clearly, neither method signature is a subset of the other: foo(1, \[1.0\]) matches only the f…

---

## [2D state space model using Turing.jl](https://discourse.julialang.org/t/2d-state-space-model-using-turing-jl/104486)

<div class="topic-metadata">

**Author:** [@KotaAihara](https://discourse.julialang.org/u/KotaAihara)\
**Replies:** 4\
**Last updated:** [October 11, 2023, 5:34am UTC](https://discourse.julialang.org/t/2d-state-space-model-using-turing-jl/104486 "2023-10-11T05:34:37Z")

</div>

I’m making 2d state space model by using Turing.jl Here is my code. x\[t\] is state equation and y\[t\] is observation equation. #Multivariate SSM #sample model # model using Turing using Random, Distributions using P…

---

## [Makie.jl as a Manim alternative?](https://discourse.julialang.org/t/makie-jl-as-a-manim-alternative/104406)

<div class="topic-metadata">

**Author:** [@savq](https://discourse.julialang.org/u/savq)\
**Replies:** 10\
**Last updated:** [October 9, 2023, 11:03pm UTC](https://discourse.julialang.org/t/makie-jl-as-a-manim-alternative/104406 "2023-10-09T23:03:00Z")

</div>

This semester I have to present a video for my Computer Algebra class, and the topic I chose is related to random walks generated by irrational numbers. Our professor suggested using Manim to animate the videos. I’m unf…

---

## [Matplotlib animation](https://discourse.julialang.org/t/matplotlib-animation/104779)

<div class="topic-metadata">

**Author:** [@Edward\_Montague](https://discourse.julialang.org/u/Edward_Montague)\
**Replies:** 0\
**Last updated:** [October 10, 2023, 1:26am UTC](https://discourse.julialang.org/t/matplotlib-animation/104779 "2023-10-10T01:26:31Z")

</div>

Over at the matplotlib website, at the discourse, there’s an example of an animated surface function with proper perspective. You may have a use for this.

---

## [Loops, allocations and helping the coder](https://discourse.julialang.org/t/loops-allocations-and-helping-the-coder/104733)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 26\
**Last updated:** [October 10, 2023, 9:10pm UTC](https://discourse.julialang.org/t/loops-allocations-and-helping-the-coder/104733 "2023-10-10T21:10:12Z")

</div>

One of the performance pitfalls in Julia is allocations, especially in loops. For instance, with lots of arrays being created inside a long loop. This can be handled by creating “workspaces” and then filling/overwriting…

---

## [Package compiler with Visual Studio C](https://discourse.julialang.org/t/package-compiler-with-visual-studio-c/104756)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [October 10, 2023, 8:10pm UTC](https://discourse.julialang.org/t/package-compiler-with-visual-studio-c/104756 "2023-10-10T20:10:02Z")

</div>

I’m trying to us PackageCompiler.jl to make a stand-alone C library. I’ll use it on linux eventually, but right now I’m trying to test it out in Visual Studio 2019. None of the examples seem to talk about setting thing…

---

## [Distributing a job across a cluster with SlurmClusterManager.jl](https://discourse.julialang.org/t/distributing-a-job-across-a-cluster-with-slurmclustermanager-jl/104735)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 7:41pm UTC](https://discourse.julialang.org/t/distributing-a-job-across-a-cluster-with-slurmclustermanager-jl/104735 "2023-10-10T19:41:22Z")

</div>

I asked about this on the slack channel, but didn’t get a response. I’ve been using SlurmClusterManager and been pretty satisfied with it, but there’s a job I want to accomplish with it that I’m not sure how to do. The…

---

## [String Documentation Wiki Prototype](https://discourse.julialang.org/t/string-documentation-wiki-prototype/104816)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 7:39pm UTC](https://discourse.julialang.org/t/string-documentation-wiki-prototype/104816 "2023-10-10T19:39:10Z")

</div>

Strings Strings in Julia represent a finite sequence of characters. The default String type consists of immutable sequence of UTF-8 codeunits. This is a wiki experiment in building a friendly crowd sourced supplementary…

---

## [Correct way to perform direct socket io, i.e no memory copy](https://discourse.julialang.org/t/correct-way-to-perform-direct-socket-io-i-e-no-memory-copy/104758)

<div class="topic-metadata">

**Author:** [@L\_Adam](https://discourse.julialang.org/u/L_Adam)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 7:26pm UTC](https://discourse.julialang.org/t/correct-way-to-perform-direct-socket-io-i-e-no-memory-copy/104758 "2023-10-10T19:26:43Z")

</div>

currently, socket read/write are through stream interface, and it’s buffered. and to read that, there is an extra memory copy with take!. what is the proper way to do direct socket io, without memory copy?(or is direct …

---

## [MTK components with shared parameters](https://discourse.julialang.org/t/mtk-components-with-shared-parameters/104811)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 6:22pm UTC](https://discourse.julialang.org/t/mtk-components-with-shared-parameters/104811 "2023-10-10T18:22:52Z")

</div>

I am looking to create a system which allows me to share input parameters, which as a consequence allows me to keep my system parameter space small. I give an MTK example from the standard library but I am also happy to …

---

## [Errors when creating sysimage](https://discourse.julialang.org/t/errors-when-creating-sysimage/104801)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 4:40pm UTC](https://discourse.julialang.org/t/errors-when-creating-sysimage/104801 "2023-10-10T16:40:33Z")

</div>

Hi good folks! I am trying to create a sysimage to distribute a package I have created. I also don’t want the source code of the package to be available. As a first step I am trying to create such a sysimage for the CSV…

---

## [Looking for a constrained optimization algorithm](https://discourse.julialang.org/t/looking-for-a-constrained-optimization-algorithm/104799)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [October 10, 2023, 1:32pm UTC](https://discourse.julialang.org/t/looking-for-a-constrained-optimization-algorithm/104799 "2023-10-10T13:32:00Z")

</div>

After solving some structural estimation problems in economics with existing tools, I have a more clear idea of the kind of algorithm I am looking for. AFAICT no existing Julia package exists that does everything below —…

---

## [Add DICOMTree.jl to JuliaHealth organisation?](https://discourse.julialang.org/t/add-dicomtree-jl-to-juliahealth-organisation/102873)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 1:28pm UTC](https://discourse.julialang.org/t/add-dicomtree-jl-to-juliahealth-organisation/102873 "2023-10-10T13:28:54Z")

</div>

Hello ! :grin: Continuing the discussion from \[ANN\] DICOMTree.jl: fdekerme/DICOMTree.jl: A small Julia tool for visualizing DICOM metadata. (github.com) I have recently published a new DICOMTree package which has just…

---

## [Get all names accessible from a Module](https://discourse.julialang.org/t/get-all-names-accessible-from-a-module/98492)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 10\
**Last updated:** [October 10, 2023, 1:04pm UTC](https://discourse.julialang.org/t/get-all-names-accessible-from-a-module/98492 "2023-10-10T13:04:08Z")

</div>

I know that Base.names can be used to extract most of the names that are accessible from inside a Module m, but I just realized that even if one calls it names(m;all=true, imported=true), the list of returned names does …

---

## [Interim values of Metaheuristics optimiziers](https://discourse.julialang.org/t/interim-values-of-metaheuristics-optimiziers/104768)

<div class="topic-metadata">

**Author:** [@jcusick](https://discourse.julialang.org/u/jcusick)\
**Replies:** 3\
**Last updated:** [October 10, 2023, 12:45pm UTC](https://discourse.julialang.org/t/interim-values-of-metaheuristics-optimiziers/104768 "2023-10-10T12:45:31Z")

</div>

I’m interested in getting the interim population values for algorithms within Metaheuristics.jl at each timestep, for example Differential Evolution. I’ve seen examples where the single member of the population with the…

---

## [Loop vs vectorization](https://discourse.julialang.org/t/loop-vs-vectorization/104796)

<div class="topic-metadata">

**Author:** [@Alberto\_Roman](https://discourse.julialang.org/u/Alberto_Roman)\
**Replies:** 4\
**Last updated:** [October 10, 2023, 12:40pm UTC](https://discourse.julialang.org/t/loop-vs-vectorization/104796 "2023-10-10T12:40:15Z")

</div>

Hi all, I have a partial differential equation to solve using finite difference. I am trying to understand if it is better to use a vectorized version or a loop version to calculate the right hand side of the equation, …

---

## [Researcher @ Royal Military Academy, Brussels](https://discourse.julialang.org/t/researcher-royal-military-academy-brussels/104797)

<div class="topic-metadata">

**Author:** [@barche](https://discourse.julialang.org/u/barche)\
**Replies:** 0\
**Last updated:** [October 10, 2023, 11:23am UTC](https://discourse.julialang.org/t/researcher-royal-military-academy-brussels/104797 "2023-10-10T11:23:25Z")

</div>

Hi all, We are looking for a researcher to work on the implementation of a numerical model for dispersion following the release of a chemical, nuclear or biological agent (by a weapon or other), as well as response mana…

---

## [Passing multiple Control Inputs to a Continuous data driven problem](https://discourse.julialang.org/t/passing-multiple-control-inputs-to-a-continuous-data-driven-problem/104617)

<div class="topic-metadata">

**Author:** [@Harry\_Armstrong](https://discourse.julialang.org/u/Harry_Armstrong)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 4:31pm UTC](https://discourse.julialang.org/t/passing-multiple-control-inputs-to-a-continuous-data-driven-problem/104617 "2023-10-09T16:31:13Z")

</div>

I’ve recently been working with the DataDrivenDiffEq.jl package to implement system identification on non linear systems and have run into a bit of a road block. The model I’m trying to identify takes two control inputs …

---

## [Modeling a leaking tank](https://discourse.julialang.org/t/modeling-a-leaking-tank/104750)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 5\
**Last updated:** [October 10, 2023, 8:39am UTC](https://discourse.julialang.org/t/modeling-a-leaking-tank/104750 "2023-10-10T08:39:51Z")

</div>

Hello ! I’m currently working on modeling a system that resembles an open-topped tank with a leak, where the tank is also being supplied, so if the leak isn’t sufficient, it overflows. The system’s equations (reasonabl…

---

## [Tullio for general dimensional tensors](https://discourse.julialang.org/t/tullio-for-general-dimensional-tensors/104787)

<div class="topic-metadata">

**Author:** [@J.J.sakurai](https://discourse.julialang.org/u/J.J.sakurai)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 7:27am UTC](https://discourse.julialang.org/t/tullio-for-general-dimensional-tensors/104787 "2023-10-10T07:27:03Z")

</div>

Tullio.jl seems to be super faster. But how can I write tullio code for general dimensional tensors. For example, an outer product of vectors, do we need such a branch as follow? Is there any way to write the following …

---

## [Indexing within double quotation mark](https://discourse.julialang.org/t/indexing-within-double-quotation-mark/32968)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 9\
**Last updated:** [October 10, 2023, 6:12am UTC](https://discourse.julialang.org/t/indexing-within-double-quotation-mark/32968 "2023-10-10T06:12:09Z")

</div>

Hi community, Julia is amazing in “$a”. One step further, are there any way to achieve this? plot(…,label=\[“a1 is $a\[:,1\], a2 is $a\[:,2\].”\]) Or other command like ‘legend!(a,b)’ to define which parameters will be sp…

---

## [Help with a JuMP.jl problem](https://discourse.julialang.org/t/help-with-a-jump-jl-problem/104778)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 5:48am UTC](https://discourse.julialang.org/t/help-with-a-jump-jl-problem/104778 "2023-10-10T05:48:52Z")

</div>

The task is fairly straightforward. I need to group the numbers in A into pairs, such that the sum of each pair corresponds to one of the numbers in S. using HiGHS using JuMP m = Model(HiGHS.Optimizer) A = \[ 119 225 5…

---

## [Feedback on a Threadsafe Buffer Manager](https://discourse.julialang.org/t/feedback-on-a-threadsafe-buffer-manager/104782)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 0\
**Last updated:** [October 10, 2023, 3:32am UTC](https://discourse.julialang.org/t/feedback-on-a-threadsafe-buffer-manager/104782 "2023-10-10T03:32:26Z")

</div>

In this conversation, I mentioned that I used a Channel to manage preallocated objects over the lifetime of a pipeline. I was hoping someone could offer some feedback on my approach to that: """ get\_buffer\_manager(…

---

## [Help in accelerating constructing Symbolic jacobian?](https://discourse.julialang.org/t/help-in-accelerating-constructing-symbolic-jacobian/104701)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 9\
**Last updated:** [October 10, 2023, 1:19am UTC](https://discourse.julialang.org/t/help-in-accelerating-constructing-symbolic-jacobian/104701 "2023-10-10T01:19:06Z")

</div>

Can anyone help me accelerate/optimize this computation of symbolic computation of Jacobian? I am on latest version of Symbolics and julia 1.9.3. using Symbolics using ToeplitzMatrices N= 280; a = Symbolics.variable…

---

## [Best way to store arrays with metadata?](https://discourse.julialang.org/t/best-way-to-store-arrays-with-metadata/104776)

<div class="topic-metadata">

**Author:** [@felipeh](https://discourse.julialang.org/u/felipeh)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 12:33am UTC](https://discourse.julialang.org/t/best-way-to-store-arrays-with-metadata/104776 "2023-10-10T00:33:14Z")

</div>

I plan to run a sequence of many (on the order 100) simulations, each of which outputs an array of floating point numbers (on the order of 10k each). I want to store these arrays with metadata about the parameters used …

---

## [Most performant way to perform matrix and vector calculations in a function](https://discourse.julialang.org/t/most-performant-way-to-perform-matrix-and-vector-calculations-in-a-function/104672)

<div class="topic-metadata">

**Author:** [@eduardosalaz](https://discourse.julialang.org/u/eduardosalaz)\
**Replies:** 5\
**Last updated:** [October 9, 2023, 9:42pm UTC](https://discourse.julialang.org/t/most-performant-way-to-perform-matrix-and-vector-calculations-in-a-function/104672 "2023-10-09T21:42:50Z")

</div>

Hi there everone. Currently I have the following function: function start\_constraints(S, B, M, V, R, X, values\_matrix, risk\_vec) for i in 1:S for m in 1:M values\_matrix\[i, m\] = sum(X\[i, j\] \* V\[m\]…

---

## [JuliaLS fails to start in neovim (and Jupyter)](https://discourse.julialang.org/t/julials-fails-to-start-in-neovim-and-jupyter/104731)

<div class="topic-metadata">

**Author:** [@arik](https://discourse.julialang.org/u/arik)\
**Replies:** 4\
**Last updated:** [October 9, 2023, 9:18pm UTC](https://discourse.julialang.org/t/julials-fails-to-start-in-neovim-and-jupyter/104731 "2023-10-09T21:18:31Z")

</div>

Hello. I am using neovim mostly for coding in julia. Sadly, the julia LSP does not work. Every time I open a julia file I get the message “Client X quit with exit code 1 and signal 0”, and the LSP is dead. I have searche…

---

## [RFC: give up on SemVer](https://discourse.julialang.org/t/rfc-give-up-on-semver/103536)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 36\
**Last updated:** [October 9, 2023, 8:46pm UTC](https://discourse.julialang.org/t/rfc-give-up-on-semver/103536 "2023-10-09T20:46:54Z")

</div>

I am opening a new topic because I do not want to sidetrack the one about main(). This is just the latest of “minor breaking changes” that are technically breaking, yet practically harmless and easy to deal with. SemVer …

---

## [On the future of Flux.destructure and SciML integration](https://discourse.julialang.org/t/on-the-future-of-flux-destructure-and-sciml-integration/104760)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 4\
**Last updated:** [October 9, 2023, 8:24pm UTC](https://discourse.julialang.org/t/on-the-future-of-flux-destructure-and-sciml-integration/104760 "2023-10-09T20:24:50Z")

</div>

Due to some technical limitations regarding Lux and coupling layers (1, 2, 3) and the existence of InvertibleNetworks.jl, I have chosen to use Flux for my designs. Still, my long-term objective would be to use Optimizati…

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

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