# Latest

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

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

**Page:** 890

---

## [Question about how to fix some efficient memory layout of large 1d-structures?](https://discourse.julialang.org/t/question-about-how-to-fix-some-efficient-memory-layout-of-large-1d-structures/88809)

<div class="topic-metadata">

**Author:** [@fins](https://discourse.julialang.org/u/fins)\
**Replies:** 24\
**Last updated:** [October 20, 2022, 7:11pm UTC](https://discourse.julialang.org/t/question-about-how-to-fix-some-efficient-memory-layout-of-large-1d-structures/88809 "2022-10-20T19:11:43Z")

</div>

Hi, I’m trying to figure out the “right way” to be declaring a few 1d-tables for my chess-engine, in julia, such that their memory-layout is as space-efficient as possible, and (b) fixed and never changes (i.e. the gc s…

---

## [Windows: libgit2.dll not found](https://discourse.julialang.org/t/windows-libgit2-dll-not-found/88996)

<div class="topic-metadata">

**Author:** [@Johan-Gronqvist](https://discourse.julialang.org/u/Johan-Gronqvist)\
**Replies:** 8\
**Last updated:** [October 20, 2022, 6:13pm UTC](https://discourse.julialang.org/t/windows-libgit2-dll-not-found/88996 "2022-10-20T18:13:42Z")

</div>

I am trying the juliacall package, installed in a conda environment, and julia fails to find the libgit2 dll on windows. The problem appears when trying to install JuMP. In stdlib/LibGit2/src/LibGit2.jl the problematic …

---

## [Reading a nested JSON file into a predefined type with JSON3](https://discourse.julialang.org/t/reading-a-nested-json-file-into-a-predefined-type-with-json3/89011)

<div class="topic-metadata">

**Author:** [@Robert\_J](https://discourse.julialang.org/u/Robert_J)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 6:08pm UTC](https://discourse.julialang.org/t/reading-a-nested-json-file-into-a-predefined-type-with-json3/89011 "2022-10-20T18:08:21Z")

</div>

Lets say with have this JSON file : { "A": "String", "B": \[ { "B1": "String", "B2": "String", }, { "B1": "String", "B2": "String", …

---

## [Grid of all elements of an arbitrarily sized matrix](https://discourse.julialang.org/t/grid-of-all-elements-of-an-arbitrarily-sized-matrix/89024)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 7\
**Last updated:** [October 20, 2022, 5:35pm UTC](https://discourse.julialang.org/t/grid-of-all-elements-of-an-arbitrarily-sized-matrix/89024 "2022-10-20T17:35:17Z")

</div>

I have an n\*m sized array A, and I would like to create a grid of its elements. The output should look something like: B = (A\[1,1\], A\[2,1\] A\[1,1\], A\[2,2\] ... A\[1,1\], A\[2,m\] A\[1,2\], A\[2,1\] A\[1,2\]…

---

## [ReverseDiff friendly code and domain errors](https://discourse.julialang.org/t/reversediff-friendly-code-and-domain-errors/89007)

<div class="topic-metadata">

**Author:** [@Luis\_Calderon](https://discourse.julialang.org/u/Luis_Calderon)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 4:10pm UTC](https://discourse.julialang.org/t/reversediff-friendly-code-and-domain-errors/89007 "2022-10-20T16:10:16Z")

</div>

Dear all, At the moment, I have the following set-up: Opts = Optim.Options( x\_tol = 0.0, f\_tol = 0.0, g\_…

---

## [Parallel AMG](https://discourse.julialang.org/t/parallel-amg/88926)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 8\
**Last updated:** [October 20, 2022, 4:28pm UTC](https://discourse.julialang.org/t/parallel-amg/88926 "2022-10-20T16:28:26Z")

</div>

Has anyone ever started working on a parallel implementation of algebraic multigrid solvers and preconditioners?

---

## [\[ANN\] IsotopeTable.jl The table of nuclear isotopic data for Julians](https://discourse.julialang.org/t/ann-isotopetable-jl-the-table-of-nuclear-isotopic-data-for-julians/89020)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 0\
**Last updated:** [October 20, 2022, 4:12pm UTC](https://discourse.julialang.org/t/ann-isotopetable-jl-the-table-of-nuclear-isotopic-data-for-julians/89020 "2022-10-20T16:12:49Z")

</div>

I am happy to announce IsotopeTable.jl and its little brother IsotopeTableDF.jl. The package IsotopeTable.jl provides a PeriodicTable.jl inspired interface to the data on 3343 Nuclear Isotopes (the ground states are con…

---

## [Strategies to optimize expensive multi-heatmap animation](https://discourse.julialang.org/t/strategies-to-optimize-expensive-multi-heatmap-animation/89019)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 0\
**Last updated:** [October 20, 2022, 4:06pm UTC](https://discourse.julialang.org/t/strategies-to-optimize-expensive-multi-heatmap-animation/89019 "2022-10-20T16:06:08Z")

</div>

crossposting from Makie discord Hi all! Warning, no MWE for the moment due to the nature of the problem. This is a question about strategy. How to animate this multi-heatmap figure? I am using CairoMakie as I do this …

---

## [How to get the date of a file?](https://discourse.julialang.org/t/how-to-get-the-date-of-a-file/44701)

<div class="topic-metadata">

**Author:** [@jerpic](https://discourse.julialang.org/u/jerpic)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 3:58pm UTC](https://discourse.julialang.org/t/how-to-get-the-date-of-a-file/44701 "2022-10-20T15:58:06Z")

</div>

Hello, I’m very new to Julia. I try to get the last updated date of a list of file, for that I use the method “mtime”. The result for some files is correct but unfortunately for many I get always that date : 1970-01-01T…

---

## [Plots.jl annotation with group colours in grouped plot](https://discourse.julialang.org/t/plots-jl-annotation-with-group-colours-in-grouped-plot/88979)

<div class="topic-metadata">

**Author:** [@klwlevy](https://discourse.julialang.org/u/klwlevy)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 3:56pm UTC](https://discourse.julialang.org/t/plots-jl-annotation-with-group-colours-in-grouped-plot/88979 "2022-10-20T15:56:25Z")

</div>

Dear Plots.jl wizards, could someone give me advice how to best get annotations in the same colour as the lines when using the group option? The following is a working example: using DataFrames, Plots gr(size=(1200, 8…

---

## [Want to contiguously access underlying data of a struct array where the struct is a pair of static arrays](https://discourse.julialang.org/t/want-to-contiguously-access-underlying-data-of-a-struct-array-where-the-struct-is-a-pair-of-static-arrays/89012)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 0\
**Last updated:** [October 20, 2022, 2:25pm UTC](https://discourse.julialang.org/t/want-to-contiguously-access-underlying-data-of-a-struct-array-where-the-struct-is-a-pair-of-static-arrays/89012 "2022-10-20T14:25:03Z")

</div>

using StaticArrays, TensorCast const Point2d{T \<: AbstractFloat} = SVector{2,T} struct PointCspond{T \<: AbstractFloat} first::Point2d{T} second::Point2d{T} end function point\_csponds(u₁,u₂) @cast u₁\[j\]{i:2…

---

## [Freezing when getting out of loop](https://discourse.julialang.org/t/freezing-when-getting-out-of-loop/89006)

<div class="topic-metadata">

**Author:** [@alirza\_azampour](https://discourse.julialang.org/u/alirza_azampour)\
**Replies:** 0\
**Last updated:** [October 20, 2022, 12:21pm UTC](https://discourse.julialang.org/t/freezing-when-getting-out-of-loop/89006 "2022-10-20T12:21:54Z")

</div>

Hey everyone I have this code that runs well for most of the inputs but in some cases, in the loop marked with j counter, it freezes at the time when it has to break out of the loop. I follow the memory and CPU usage du…

---

## [Is it possible to redefine a base operator like .\* in customer package?](https://discourse.julialang.org/t/is-it-possible-to-redefine-a-base-operator-like-in-customer-package/88997)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 12:05pm UTC](https://discourse.julialang.org/t/is-it-possible-to-redefine-a-base-operator-like-in-customer-package/88997 "2022-10-20T12:05:31Z")

</div>

I try to redefine the basic operator like .\* for my special variable type, through the code: import Base: .\* function .\*(a, b) execute some behavior. end I get a warning message of “could not import Base…\* into Main…

---

## [Problem with reversediff when using Turing](https://discourse.julialang.org/t/problem-with-reversediff-when-using-turing/88798)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 10:44am UTC](https://discourse.julialang.org/t/problem-with-reversediff-when-using-turing/88798 "2022-10-20T10:44:41Z")

</div>

I’m receiving the following error when using reversediff for fitting my model. Does anyone have any clue what may be causing this? I’m using reversediff 1.7.0. Forward diff works fine for my model. The sampler is NUTS(20…

---

## [Package statistics, Python's average package is 4x larger](https://discourse.julialang.org/t/package-statistics-pythons-average-package-is-4x-larger/88967)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 8\
**Last updated:** [October 20, 2022, 8:01am UTC](https://discourse.julialang.org/t/package-statistics-pythons-average-package-is-4x-larger/88967 "2022-10-20T08:01:36Z")

</div>

Average Python package is 2212.6 (average) / 507 (median) = 4.4x larger (for lines of code, as I suspected). I think that might inform discussion about e.g. documentation, if/since Julia packages are smaller, and you ten…

---

## ["Offline" Installation Packages via Proxy](https://discourse.julialang.org/t/offline-installation-packages-via-proxy/88656)

<div class="topic-metadata">

**Author:** [@coffee](https://discourse.julialang.org/u/coffee)\
**Replies:** 3\
**Last updated:** [October 20, 2022, 7:28am UTC](https://discourse.julialang.org/t/offline-installation-packages-via-proxy/88656 "2022-10-20T07:28:19Z")

</div>

Hello, everyone I am new to julia. Is it possible, to use julia (v1.7.3) offline and also take the advantages from the package management? I am able to get some stuff from github by an other url (mirror-server/proxy), b…

---

## [Trouble exporting functions from different packages with different methods but same name](https://discourse.julialang.org/t/trouble-exporting-functions-from-different-packages-with-different-methods-but-same-name/88972)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 6:00am UTC](https://discourse.julialang.org/t/trouble-exporting-functions-from-different-packages-with-different-methods-but-same-name/88972 "2022-10-20T06:00:24Z")

</div>

Hi! I have two different packages. Both export the same function getLandSea, but the methods are different. These two packages sometimes intersect, because they are climate-related datasets, but are for different datase…

---

## [How to integrate a multi dimensional SDE forced by the same source of noise?](https://discourse.julialang.org/t/how-to-integrate-a-multi-dimensional-sde-forced-by-the-same-source-of-noise/88988)

<div class="topic-metadata">

**Author:** [@giav1n](https://discourse.julialang.org/u/giav1n)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 4:37am UTC](https://discourse.julialang.org/t/how-to-integrate-a-multi-dimensional-sde-forced-by-the-same-source-of-noise/88988 "2022-10-20T04:37:45Z")

</div>

Hi everyone for my research I need to integrate an SDE system of this kind: dx=f1(x,y)dt + g1(x,y)dW dy=f2(x,y)dt + g2(x,y)dW My issue is that I want the Winer noise dW to be exactly the same for the two variable. I w…

---

## [Index into N-dimensional array with N indices](https://discourse.julialang.org/t/index-into-n-dimensional-array-with-n-indices/88989)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 2:50am UTC](https://discourse.julialang.org/t/index-into-n-dimensional-array-with-n-indices/88989 "2022-10-20T02:50:23Z")

</div>

Given an N-dimensional (custom) array A \<: AbstractArray{T, N}, I want to index into this with N indices: eg. if A \<: AbstractArray{T, 2} I want A\[:, :\] or if A \<: AbstractArray{T, 3} I want A\[:, :, :\] This is a custom…

---

## [Setting a cookie in http.jl so as to start a session](https://discourse.julialang.org/t/setting-a-cookie-in-http-jl-so-as-to-start-a-session/88572)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 2:27am UTC](https://discourse.julialang.org/t/setting-a-cookie-in-http-jl-so-as-to-start-a-session/88572 "2022-10-20T02:27:50Z")

</div>

Hi, I appreciate this will seem obvious to those in the know, but could someone post an example of how to add a cookie server-side to a response that can be used as a session identifier? As a kind of middleware, I think…

---

## [Custom structure constructor](https://discourse.julialang.org/t/custom-structure-constructor/88958)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 3\
**Last updated:** [October 20, 2022, 12:34am UTC](https://discourse.julialang.org/t/custom-structure-constructor/88958 "2022-10-20T00:34:55Z")

</div>

Dear all, I have a question about the use of custom constructor to initialize a Julia struct. I would like to initialize a parameter z (operational parameter) of a structure from some physical parameters, e.g. x and y. …

---

## [Slicing a SparseAxisArray Variable in JuMP](https://discourse.julialang.org/t/slicing-a-sparseaxisarray-variable-in-jump/88332)

<div class="topic-metadata">

**Author:** [@Janogo](https://discourse.julialang.org/u/Janogo)\
**Replies:** 11\
**Last updated:** [October 19, 2022, 10:55pm UTC](https://discourse.julialang.org/t/slicing-a-sparseaxisarray-variable-in-jump/88332 "2022-10-19T22:55:06Z")

</div>

Hi everyone, I wish to slice a SparseAxisArray Container in JuMP. The documentation says this should work: julia\> x = Containers.@container(\[i = 1:3, j = \[:A, :B\]; i \> 1\], (i, j)) JuMP.Containers.SparseAxisArray{Tuple{…

---

## [Creating fixed model associated with a MIP model using Gurobi in JuMP](https://discourse.julialang.org/t/creating-fixed-model-associated-with-a-mip-model-using-gurobi-in-jump/88961)

<div class="topic-metadata">

**Author:** [@SarojKhanal](https://discourse.julialang.org/u/SarojKhanal)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 8:39pm UTC](https://discourse.julialang.org/t/creating-fixed-model-associated-with-a-mip-model-using-gurobi-in-jump/88961 "2022-10-19T20:39:23Z")

</div>

Hi, I am using JuMP and Gurobi solver to implement a mixed-integer linear program model and trying to access duals. I see \[Model.fixed()\](https://www.gurobi.com/documentation/9.5/refman/py\_model\_fixed.html) as a way to f…

---

## [GIFImages.jl: Decodes GIFs x15 faster](https://discourse.julialang.org/t/gifimages-jl-decodes-gifs-x15-faster/88940)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 7:43pm UTC](https://discourse.julialang.org/t/gifimages-jl-decodes-gifs-x15-faster/88940 "2022-10-19T19:43:05Z")

</div>

Happy to announce release of GIFImages.jl 0.1.0 !! GIFImages.jl decodes GIFs in Julia x15 times faster than current ImageMagick method. GIFImages.jl provides support for decoding and encoding GIF images in Julia by wra…

---

## [Some documentation missing in VS Code?](https://discourse.julialang.org/t/some-documentation-missing-in-vs-code/88980)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 0\
**Last updated:** [October 19, 2022, 7:19pm UTC](https://discourse.julialang.org/t/some-documentation-missing-in-vs-code/88980 "2022-10-19T19:19:21Z")

</div>

I ran into this issue today: When I search for methods in the VS Code Documentation menu for Julia, I get a clear description of methods. But when I search for methodswith, I get “No results found.” The online documen…

---

## [How to efficiently create a table/array through known function?](https://discourse.julialang.org/t/how-to-efficiently-create-a-table-array-through-known-function/88965)

<div class="topic-metadata">

**Author:** [@swish47](https://discourse.julialang.org/u/swish47)\
**Replies:** 6\
**Last updated:** [October 19, 2022, 6:43pm UTC](https://discourse.julialang.org/t/how-to-efficiently-create-a-table-array-through-known-function/88965 "2022-10-19T18:43:33Z")

</div>

As the question, if I want to create a table by a function, I may use collect: @elapsed collect(Vector{Float64}(m\*\[2\*pi,(2pi)/sqrt(3)\]+n\*\[0,(4\*pi)/sqrt(3)\]) for m in range(0.,1.,1001), n in range(0.,1.,1001)) with outp…

---

## [Memory allocation and usage of dot notation](https://discourse.julialang.org/t/memory-allocation-and-usage-of-dot-notation/88951)

<div class="topic-metadata">

**Author:** [@dgegen](https://discourse.julialang.org/u/dgegen)\
**Replies:** 6\
**Last updated:** [October 19, 2022, 6:35pm UTC](https://discourse.julialang.org/t/memory-allocation-and-usage-of-dot-notation/88951 "2022-10-19T18:35:59Z")

</div>

The article Performance Tips advises to pay attention to memory allocation when trying to evaluate or improve the efficiency of a program. This made me wonder whether the estimated number of allocations or the estimated …

---

## [Broadcasting with functions of structs](https://discourse.julialang.org/t/broadcasting-with-functions-of-structs/88975)

<div class="topic-metadata">

**Author:** [@AstroBarker](https://discourse.julialang.org/u/AstroBarker)\
**Replies:** 6\
**Last updated:** [October 19, 2022, 5:52pm UTC](https://discourse.julialang.org/t/broadcasting-with-functions-of-structs/88975 "2022-10-19T17:52:47Z")

</div>

Hey folks, I have a struct with some large arrays that need to be updated in place. The updates are not quite trivial and are in a function. What I would like to be able to do is something of the sort @. updatefunc( my\_…

---

## [How to add a title to an existing plot?](https://discourse.julialang.org/t/how-to-add-a-title-to-an-existing-plot/88956)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 4:58pm UTC](https://discourse.julialang.org/t/how-to-add-a-title-to-an-existing-plot/88956 "2022-10-19T16:58:07Z")

</div>

Hi all! I’m doing some plots for a series of data. Since I needed to multiply two columns, and plot the output in a box plot, I came up with this: adc\_I\_symbol = Symbol("Arc ADC Current (A)") adc\_V\_symbol = Symbol("Ar…

---

## [TypeError: in typeassert, expected Float64, got a value of type ForwardDiff.Dual{Nothing, Float64, 12}](https://discourse.julialang.org/t/typeerror-in-typeassert-expected-float64-got-a-value-of-type-forwarddiff-dual-nothing-float64-12/88959)

<div class="topic-metadata">

**Author:** [@mauricio\_k8](https://discourse.julialang.org/u/mauricio_k8)\
**Replies:** 8\
**Last updated:** [October 19, 2022, 3:42pm UTC](https://discourse.julialang.org/t/typeerror-in-typeassert-expected-float64-got-a-value-of-type-forwarddiff-dual-nothing-float64-12/88959 "2022-10-19T15:42:59Z")

</div>

Dear all, I am to fit a model that uses an interaction surface in Turing.jl, the interaction surface is a function that is outside the model but gets called inside the model to estimate the competitive equivalence of ind…

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

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