# Latest

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

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

**Page:** 511

---

## [What should go in module docstrings?](https://discourse.julialang.org/t/what-should-go-in-module-docstrings/108742)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 7\
**Last updated:** [January 13, 2024, 1:04am UTC](https://discourse.julialang.org/t/what-should-go-in-module-docstrings/108742 "2024-01-13T01:04:04Z")

</div>

Currently a community effort is adding docstrings for a lot of names, tracked by @stevengj in Missing docstrings for public/exported symbols · Issue #52725 · JuliaLang/julia · GitHub. For some ecosystem modules, the mod…

---

## [Package compiler app with two entry points](https://discourse.julialang.org/t/package-compiler-app-with-two-entry-points/108748)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [January 12, 2024, 10:54pm UTC](https://discourse.julialang.org/t/package-compiler-app-with-two-entry-points/108748 "2024-01-12T22:54:38Z")

</div>

I have a file foo.jl with two functions. One is to review ods files, and then if they are all accepable the other is to summarize them. It would be easy to put this code in a module and then in principle I should be ab…

---

## [How to combine multiple SummaryStats objects into a single DataFrame?](https://discourse.julialang.org/t/how-to-combine-multiple-summarystats-objects-into-a-single-dataframe/108747)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 4\
**Last updated:** [January 12, 2024, 9:27pm UTC](https://discourse.julialang.org/t/how-to-combine-multiple-summarystats-objects-into-a-single-dataframe/108747 "2024-01-12T21:27:22Z")

</div>

I am apparently still missing some basic data manipulation skills. Is there a quick way to create a dataframe where the first row contains sx, and second row contains sy with the appropriate column names? julia\> using S…

---

## [Parametrize a struct with numbers not types](https://discourse.julialang.org/t/parametrize-a-struct-with-numbers-not-types/108725)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 4\
**Last updated:** [January 12, 2024, 6:38pm UTC](https://discourse.julialang.org/t/parametrize-a-struct-with-numbers-not-types/108725 "2024-01-12T18:38:56Z")

</div>

Structs parametrized with types are common, struct coo{T} where {T} x::T y::T end Is it possible to parametrize a struct with numbers, like integers? For example, suppose I want to classify all n-component vector…

---

## [When does it make sense to post a new package to the Julia repository?](https://discourse.julialang.org/t/when-does-it-make-sense-to-post-a-new-package-to-the-julia-repository/108701)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 15\
**Last updated:** [January 12, 2024, 6:07pm UTC](https://discourse.julialang.org/t/when-does-it-make-sense-to-post-a-new-package-to-the-julia-repository/108701 "2024-01-12T18:07:05Z")

</div>

Say, I was wondering when does it make sense to register a new package with the Julia registry? I am developing a set of packages for my own research. Now the paper is not released yet and the development is still on-go…

---

## [How can I register a new version from a branch?](https://discourse.julialang.org/t/how-can-i-register-a-new-version-from-a-branch/108730)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 2\
**Last updated:** [January 12, 2024, 6:05pm UTC](https://discourse.julialang.org/t/how-can-i-register-a-new-version-from-a-branch/108730 "2024-01-12T18:05:17Z")

</div>

I’d like to register a new patch version of a package from a branch (GitHub - JuliaDynamics/Agents.jl at fix-agents-again), which is a lot behind the main branch containing instead a new major release (not stable enough …

---

## [Indexing strings by Unicode code point instead of code unit?](https://discourse.julialang.org/t/indexing-strings-by-unicode-code-point-instead-of-code-unit/55248)

<div class="topic-metadata">

**Author:** [@johann-petrak](https://discourse.julialang.org/u/johann-petrak)\
**Replies:** 14\
**Last updated:** [January 12, 2024, 5:54pm UTC](https://discourse.julialang.org/t/indexing-strings-by-unicode-code-point-instead-of-code-unit/55248 "2024-01-12T17:54:44Z")

</div>

I am very new to Julia and would like to find out if I want to use it for implementing a library. For this, I need to deal with Unicode strings and especially offset ranges of substrings a lot. In this context, I would …

---

## [Efficiency of parsing ASCII vs. Unicode](https://discourse.julialang.org/t/efficiency-of-parsing-ascii-vs-unicode/108727)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 10\
**Last updated:** [January 12, 2024, 5:42pm UTC](https://discourse.julialang.org/t/efficiency-of-parsing-ascii-vs-unicode/108727 "2024-01-12T17:42:51Z")

</div>

What about performance implications for parsing ASCII text files? Consider the following function which checks if a file has an equal number of left brackets and right brackets: function file\_has\_balanced\_brackets(file)…

---

## [Union splitting not working in Julia 1.10?](https://discourse.julialang.org/t/union-splitting-not-working-in-julia-1-10/108710)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 7\
**Last updated:** [January 12, 2024, 4:20pm UTC](https://discourse.julialang.org/t/union-splitting-not-working-in-julia-1-10/108710 "2024-01-12T16:20:51Z")

</div>

I’m getting the following results under 1.10: julia\> using BenchmarkTools julia\> x = rand(10\_000); julia\> function badsum(x) s = 0 for t in x s += t end …

---

## [Debugging memory corruption in Julia code](https://discourse.julialang.org/t/debugging-memory-corruption-in-julia-code/108717)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 2\
**Last updated:** [January 12, 2024, 3:48pm UTC](https://discourse.julialang.org/t/debugging-memory-corruption-in-julia-code/108717 "2024-01-12T15:48:37Z")

</div>

I have a complicated Julia code and for some inputs it crashes with all the memory corruption errors you can think of: segmentation fault munmap error corrupted double linked list malloc consolidate invalid chunk size u…

---

## [Is it possible to diagonalize matrices with M-series Apple Silicon GPUs?](https://discourse.julialang.org/t/is-it-possible-to-diagonalize-matrices-with-m-series-apple-silicon-gpus/106075)

<div class="topic-metadata">

**Author:** [@mdyuki](https://discourse.julialang.org/u/mdyuki)\
**Replies:** 10\
**Last updated:** [January 12, 2024, 3:39pm UTC](https://discourse.julialang.org/t/is-it-possible-to-diagonalize-matrices-with-m-series-apple-silicon-gpus/106075 "2024-01-12T15:39:22Z")

</div>

Hello. I have to diagonalize Hermtian matrices with large (e.g. 10k X 10k) dimensions for many times. To reduce computing time, I am considering using GPUs. Since I have a Mac mini with M1 chip now, I would like to try …

---

## [How do you round -0.1 and +0.1 to 0.0? not -0.0 and 0.0](https://discourse.julialang.org/t/how-do-you-round-0-1-and-0-1-to-0-0-not-0-0-and-0-0/108731)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 3\
**Last updated:** [January 12, 2024, 3:12pm UTC](https://discourse.julialang.org/t/how-do-you-round-0-1-and-0-1-to-0-0-not-0-0-and-0-0/108731 "2024-01-12T15:12:54Z")

</div>

The function round.(\[0.1 ,-0.1\]) returns minus zeros and positive zero. Is there a way, that both will be just zero (positive). I have this issue, since later I use unique(\[-0.0,0.0\]), which give again two zeros: -0.0 …

---

## [Computational Biology/Bioinformatics PhD/Post-doc in University of Exeter, UK](https://discourse.julialang.org/t/computational-biology-bioinformatics-phd-post-doc-in-university-of-exeter-uk/108732)

<div class="topic-metadata">

**Author:** [@owensnick](https://discourse.julialang.org/u/owensnick)\
**Replies:** 0\
**Last updated:** [January 12, 2024, 3:10pm UTC](https://discourse.julialang.org/t/computational-biology-bioinformatics-phd-post-doc-in-university-of-exeter-uk/108732 "2024-01-12T15:10:30Z")

</div>

PhD or Post-doc available in my group (https://owensnick.github.io/) at the University of Exeter, UK. Computational biology or bioinformatics job, open to those with and without a background in biological data. We study…

---

## [Setting \`pt\_per\_unit\` in GLMakie for animation](https://discourse.julialang.org/t/setting-pt-per-unit-in-glmakie-for-animation/107063)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [January 12, 2024, 2:27pm UTC](https://discourse.julialang.org/t/setting-pt-per-unit-in-glmakie-for-animation/107063 "2024-01-12T14:27:16Z")

</div>

With the recent update to GLMakie, I know we can set set pt\_per\_unit while saving figure created by GLMakie. What about animation? I make my animation with something like the following: t\_idx = Observable(1) fig = Figu…

---

## [How to obtain the result of a diff between 2 files in a loop?](https://discourse.julialang.org/t/how-to-obtain-the-result-of-a-diff-between-2-files-in-a-loop/23784)

<div class="topic-metadata">

**Author:** [@steph\_de\_paris](https://discourse.julialang.org/u/steph_de_paris)\
**Replies:** 14\
**Last updated:** [January 12, 2024, 2:09pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-result-of-a-diff-between-2-files-in-a-loop/23784 "2024-01-12T14:09:29Z")

</div>

Hello, I would like to compare in a loop files and to obtain the result through an integer (1=OK, 0=FALSE). I use the following code: for n in 1:10 run(\`diff file\_a file\_b\`) end If the 2 files file\_a and file\_b ar…

---

## [Reduce allocations when extracting values from NamedTuples](https://discourse.julialang.org/t/reduce-allocations-when-extracting-values-from-namedtuples/108570)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 12\
**Last updated:** [January 12, 2024, 1:18pm UTC](https://discourse.julialang.org/t/reduce-allocations-when-extracting-values-from-namedtuples/108570 "2024-01-12T13:18:51Z")

</div>

Hello, I have a situation where I need to extract values from NamedTuples which are embedded within structs. Unfortunately, there are a lot of allocations, and it is not type stable. I have created a MWE below. mutable…

---

## [Reading binary data from a file](https://discourse.julialang.org/t/reading-binary-data-from-a-file/108695)

<div class="topic-metadata">

**Author:** [@MrBean](https://discourse.julialang.org/u/MrBean)\
**Replies:** 9\
**Last updated:** [January 12, 2024, 12:13pm UTC](https://discourse.julialang.org/t/reading-binary-data-from-a-file/108695 "2024-01-12T12:13:17Z")

</div>

Dear all, This is my first post and I am a baby user of Julia. I would like to read data from a file saved in binary format that comes from the sampler of an analytical instrument. The data is of a complex type and ac…

---

## [How to use exactly a single Module with a single code?](https://discourse.julialang.org/t/how-to-use-exactly-a-single-module-with-a-single-code/108557)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 10\
**Last updated:** [January 12, 2024, 11:28am UTC](https://discourse.julialang.org/t/how-to-use-exactly-a-single-module-with-a-single-code/108557 "2024-01-12T11:28:18Z")

</div>

I’ve already looked at several tutorials on code layout that are a bit long. But I can’t apply them to my case because I can’t see my mistake. I use Module. Here’s the problem. I have a code that contains a lot of data …

---

## [ModelingToolkit.jl and type-based equation deciding: best practices?](https://discourse.julialang.org/t/modelingtoolkit-jl-and-type-based-equation-deciding-best-practices/107491)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [January 12, 2024, 11:13am UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-and-type-based-equation-deciding-best-practices/107491 "2024-01-12T11:13:33Z")

</div>

What do people recommend for ModelingToolkit.jl with variable equations that change depending on some input “type” specification? By that I mean that I have some sort of physical process that has a couple of different wa…

---

## [Tab completion of \\uXXXX in the REPL?](https://discourse.julialang.org/t/tab-completion-of-uxxxx-in-the-repl/108442)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 23\
**Last updated:** [January 12, 2024, 10:39am UTC](https://discourse.julialang.org/t/tab-completion-of-uxxxx-in-the-repl/108442 "2024-01-12T10:39:47Z")

</div>

I would like to see better explicit support for UTF-8 encodings in Julia. The incredible success of Unicode in extending character encodings to pretty much all human languages is amazing. The ability to encode glyphs…

---

## [Save plot as .tex file](https://discourse.julialang.org/t/save-plot-as-tex-file/108691)

<div class="topic-metadata">

**Author:** [@flobe](https://discourse.julialang.org/u/flobe)\
**Replies:** 6\
**Last updated:** [January 12, 2024, 9:31am UTC](https://discourse.julialang.org/t/save-plot-as-tex-file/108691 "2024-01-12T09:31:08Z")

</div>

Hi all, I’m trying to export my plot in Julia as a pgf plot. So basically I want a .tex file with the data, the header, etc. automatically generated from the plot. However I’m not sure how to do it correctly. Currently …

---

## [Color channel](https://discourse.julialang.org/t/color-channel/108714)

<div class="topic-metadata">

**Author:** [@Afonso\_Britto](https://discourse.julialang.org/u/Afonso_Britto)\
**Replies:** 1\
**Last updated:** [January 12, 2024, 9:18am UTC](https://discourse.julialang.org/t/color-channel/108714 "2024-01-12T09:18:22Z")

</div>

I’m learning how to use Julia for image processing. I want to change the values in the color channels. Something like this: red.(j\[:, i\]) .= red.(j\[:, i\]) But I don’t understand why it does not work.

---

## [Nested optimisation problem in JuMP](https://discourse.julialang.org/t/nested-optimisation-problem-in-jump/107409)

<div class="topic-metadata">

**Author:** [@dbro](https://discourse.julialang.org/u/dbro)\
**Replies:** 6\
**Last updated:** [January 12, 2024, 7:17am UTC](https://discourse.julialang.org/t/nested-optimisation-problem-in-jump/107409 "2024-01-12T07:17:29Z")

</div>

I am working on a multi-objective optimisation problem involving a collection of demand nodes supplied by a collection of source nodes. The aim is to explore a range of different potential networks and their ability to m…

---

## [MapMaths and MapMakie - Computing and plotting in planetary coordinate systems](https://discourse.julialang.org/t/mapmaths-and-mapmakie-computing-and-plotting-in-planetary-coordinate-systems/108498)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 15\
**Last updated:** [January 12, 2024, 6:50am UTC](https://discourse.julialang.org/t/mapmaths-and-mapmakie-computing-and-plotting-in-planetary-coordinate-systems/108498 "2024-01-12T06:50:11Z")

</div>

Subnero, a wireless underwater communications company from sunny Singapore, proudly presents to the world the following two packages: MapMakie: Plot on OpenStreetMap using Makie. MapMaths: Utility tools for working wit…

---

## [Some eigenpairs from a large, sparse, nonsymmetric matrix: Julia vs Matlab](https://discourse.julialang.org/t/some-eigenpairs-from-a-large-sparse-nonsymmetric-matrix-julia-vs-matlab/93742)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 22\
**Last updated:** [January 12, 2024, 4:18am UTC](https://discourse.julialang.org/t/some-eigenpairs-from-a-large-sparse-nonsymmetric-matrix-julia-vs-matlab/93742 "2024-01-12T04:18:21Z")

</div>

In the course of working through a book on frequency domain finite difference solutions for electromagnetics, I have been converting the supplied Matlab programs to Julia. For the problem of determining the modes of an …

---

## [Gurobi 11.0 support](https://discourse.julialang.org/t/gurobi-11-0-support/108667)

<div class="topic-metadata">

**Author:** [@Petra123](https://discourse.julialang.org/u/Petra123)\
**Replies:** 2\
**Last updated:** [January 12, 2024, 3:31am UTC](https://discourse.julialang.org/t/gurobi-11-0-support/108667 "2024-01-12T03:31:34Z")

</div>

Hi, I am new to Julia, and trying to set it up in my wsl environment. I want to use julia for stochastic programming, using the package StochasticPrograms.jl to be exact. I tried setting up Gurobi. I installed the laste…

---

## [A pass-through option for IOCapture](https://discourse.julialang.org/t/a-pass-through-option-for-iocapture/108642)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 8\
**Last updated:** [January 12, 2024, 2:49am UTC](https://discourse.julialang.org/t/a-pass-through-option-for-iocapture/108642 "2024-01-12T02:49:19Z")

</div>

I’ve been using the amazing IOCapture quite extensively, and I was considering abusing for a situation where I want to siphon off (tee, in unix jargon) the stdout data while also allowing it to be printed in the termina…

---

## [How to change my Mach number to stop at 2.89 instead of it going higher](https://discourse.julialang.org/t/how-to-change-my-mach-number-to-stop-at-2-89-instead-of-it-going-higher/108699)

<div class="topic-metadata">

**Author:** [@Abood\_123](https://discourse.julialang.org/u/Abood_123)\
**Replies:** 5\
**Last updated:** [January 12, 2024, 2:46am UTC](https://discourse.julialang.org/t/how-to-change-my-mach-number-to-stop-at-2-89-instead-of-it-going-higher/108699 "2024-01-12T02:46:37Z")

</div>

so the graph I’m getting here has a line that goes to up pretty much double the amount that I need it to go to. It’s supposed to stop at 2.893 as that’s the highest Mach number my nozzle goes up to but can’t seem to get …

---

## [How to filter geojson files?](https://discourse.julialang.org/t/how-to-filter-geojson-files/108599)

<div class="topic-metadata">

**Author:** [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Replies:** 1\
**Last updated:** [January 12, 2024, 2:08am UTC](https://discourse.julialang.org/t/how-to-filter-geojson-files/108599 "2024-01-12T02:08:34Z")

</div>

I just want to try GeoMakie.jl package follow this page: csv :economic-growth map:geojson gdp.csv file include 173 countries and region , but geojson include 255 feature how to alignment data ? how to fill …

---

## [Documenter.jl: @repl generated output differs from REPL](https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 0\
**Last updated:** [January 12, 2024, 12:54am UTC](https://discourse.julialang.org/t/documenter-jl-repl-generated-output-differs-from-repl/108713 "2024-01-12T00:54:27Z")

</div>

Let’s say I want to generate the REPL sequence julia\> f(x) = x f (generic function with 1 method) julia\> repr(f) "f" with a @repl block in Documenter.jl. If I write \`\`\`@repl f(x) = x repr(f) \`\`\` then I get the outpu…

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

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