# Latest

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

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

**Page:** 1056

---

## [Performance of for loop vs. broadcast](https://discourse.julialang.org/t/performance-of-for-loop-vs-broadcast/80211)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 8\
**Last updated:** [April 28, 2022, 8:59pm UTC](https://discourse.julialang.org/t/performance-of-for-loop-vs-broadcast/80211 "2022-04-28T20:59:15Z")

</div>

In scaling a vector I tried a number of implementations to determine the best performance. Initially I implemented it with global variables and a for loop. Then reading the performance tips (and discourse) I realized t…

---

## [\[ANN\] Announcing GeoArrays.jl](https://discourse.julialang.org/t/ann-announcing-geoarrays-jl/56737)

<div class="topic-metadata">

**Author:** [@evetion](https://discourse.julialang.org/u/evetion)\
**Replies:** 8\
**Last updated:** [April 28, 2022, 6:29pm UTC](https://discourse.julialang.org/t/ann-announcing-geoarrays-jl/56737 "2022-04-28T18:29:08Z")

</div>

I’d like to announce GeoArrays.jl. To be fair, it’s from 2018, but I think it’s good to have it indexed here. GeoArrays provides simple geographical raster interaction built on top of ArchGDAL, GDAL and CoordinateTransf…

---

## [Can't add ParetoSmooth to the current environment because ERROR: Unsatisfiable requirements](https://discourse.julialang.org/t/cant-add-paretosmooth-to-the-current-environment-because-error-unsatisfiable-requirements/80140)

<div class="topic-metadata">

**Author:** [@lsaravia](https://discourse.julialang.org/u/lsaravia)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 7:01pm UTC](https://discourse.julialang.org/t/cant-add-paretosmooth-to-the-current-environment-because-error-unsatisfiable-requirements/80140 "2022-04-28T19:01:34Z")

</div>

I am working with vscode, I made an environment in the current folder \] activate . Selected it from the list of environments in vscode bottom left side added some packages pkg\> st Status \`~/GitProjects/FANS/Pr…

---

## [Warning: when using both Plots and StatsPlots](https://discourse.julialang.org/t/warning-when-using-both-plots-and-statsplots/50118)

<div class="topic-metadata">

**Author:** [@Xijiang\_Yu](https://discourse.julialang.org/u/Xijiang_Yu)\
**Replies:** 9\
**Last updated:** [April 28, 2022, 6:35pm UTC](https://discourse.julialang.org/t/warning-when-using-both-plots-and-statsplots/50118 "2022-04-28T18:35:10Z")

</div>

I am working on a package which has both Plots and StatsPlots added. When using density from StatsPlots, even I use StatsPlots.density(blah), I got a warning twice for each density call: ┌ Warning: seriestype density ha…

---

## [Tier 1 support: E.g. why isn't Windows supported for 32-bit?](https://discourse.julialang.org/t/tier-1-support-e-g-why-isnt-windows-supported-for-32-bit/80219)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 5\
**Last updated:** [April 28, 2022, 5:01pm UTC](https://discourse.julialang.org/t/tier-1-support-e-g-why-isnt-windows-supported-for-32-bit/80219 "2022-04-28T17:01:19Z")

</div>

Julia supports 32-bit (on Linux with tier 1 support). I’m just curious, why not on Windows. E.g. Windows 10 supports 32-bit (but not Windows 11). Are there any tests know to fail? Is it just an oversight, and can be giv…

---

## [How to make Geom.errorbar work with Geom.subplot\_grid in Gadfly.jl](https://discourse.julialang.org/t/how-to-make-geom-errorbar-work-with-geom-subplot-grid-in-gadfly-jl/80158)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 5:38pm UTC](https://discourse.julialang.org/t/how-to-make-geom-errorbar-work-with-geom-subplot-grid-in-gadfly-jl/80158 "2022-04-28T17:38:08Z")

</div>

Hello Everyone, I am trying to make bar plot with error bars in a plot grid. But I am getting following error. Please advise what I may be doing wrong. Fake Data v = rand(8) df\_plot = DataFrame( model = repeat(\[“M1…

---

## [Performance Issues with Symbolically Generated Functions for use with DifferentialEquations](https://discourse.julialang.org/t/performance-issues-with-symbolically-generated-functions-for-use-with-differentialequations/80185)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://discourse.julialang.org/u/Sam_S)\
**Replies:** 6\
**Last updated:** [April 28, 2022, 5:14pm UTC](https://discourse.julialang.org/t/performance-issues-with-symbolically-generated-functions-for-use-with-differentialequations/80185 "2022-04-28T17:14:02Z")

</div>

Hello anyone reading this, sorry if there are some formatting issues. First post and all. Promise I’ll learn. Anyways, a lot of the work I do involves optimal control for spacecraft using indirect methods, so I would lik…

---

## [Disabling badge notifications](https://discourse.julialang.org/t/disabling-badge-notifications/78625)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 7\
**Last updated:** [April 28, 2022, 4:51pm UTC](https://discourse.julialang.org/t/disabling-badge-notifications/78625 "2022-04-28T16:51:02Z")

</div>

Hya folks, I’m a new member on the site. So far this seems like a great community, and I’m happy to be a part of it. One question though–How do I disable the deluge of notifications for silly badges? I want to be notifi…

---

## [Symbol not found when importing Fortran library within custom Package](https://discourse.julialang.org/t/symbol-not-found-when-importing-fortran-library-within-custom-package/80063)

<div class="topic-metadata">

**Author:** [@cjproud](https://discourse.julialang.org/u/cjproud)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 4:38pm UTC](https://discourse.julialang.org/t/symbol-not-found-when-importing-fortran-library-within-custom-package/80063 "2022-04-28T16:38:10Z")

</div>

I’m importing compiled Fortran code as a shared library within a custom package I have created. However, when I call a Fortran function from my module within Python using JuliaCall (GitHub - cjdoris/PythonCall.jl: Python…

---

## [Can Gamification be turned off?](https://discourse.julialang.org/t/can-gamification-be-turned-off/80220)

<div class="topic-metadata">

**Author:** [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 4:04pm UTC](https://discourse.julialang.org/t/can-gamification-be-turned-off/80220 "2022-04-28T16:04:45Z")

</div>

I don’t want to see my awards and badges, nor the messages that we haven’t seen so-and-so for a few months, nor any other Discourse gamifications. Can these be turned off?

---

## [Submodules accessing global variables in Parent module](https://discourse.julialang.org/t/submodules-accessing-global-variables-in-parent-module/80164)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 4\
**Last updated:** [April 28, 2022, 4:00pm UTC](https://discourse.julialang.org/t/submodules-accessing-global-variables-in-parent-module/80164 "2022-04-28T16:00:29Z")

</div>

How can we make a submodule access a variable defined in its parent module? Sorry if this is a really basic question, but I’ve spent almost an hour looking for an answer without any success. I have only seen how to acce…

---

## [Cambridge Area Julia User's Meetup: April 28th 2022,](https://discourse.julialang.org/t/cambridge-area-julia-users-meetup-april-28th-2022/80217)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 3:10pm UTC](https://discourse.julialang.org/t/cambridge-area-julia-users-meetup-april-28th-2022/80217 "2022-04-28T15:10:13Z")

</div>

This week it will be hosted by @nassarhuda at the Relational AI Spaces office in the Boston Back Bay. If you haven’t seen it, check out the announcement of the Relational AI Series B funding round: Huda from Relationa…

---

## [Alllocations in a reduction over a Tuple](https://discourse.julialang.org/t/alllocations-in-a-reduction-over-a-tuple/80083)

<div class="topic-metadata">

**Author:** [@ademonts](https://discourse.julialang.org/u/ademonts)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 1:29pm UTC](https://discourse.julialang.org/t/alllocations-in-a-reduction-over-a-tuple/80083 "2022-04-28T13:29:06Z")

</div>

I’m trying to make a recursive reduction over a Tuple that calculates the inverse of the reduction of a nested Tuple everytime it encounters one. I.e. for x=(1,(2,3)), foo(x) should compute f(1)+\\frac{1}{f(2)+f(3)}. The …

---

## [How to best use DistributedArray.jl](https://discourse.julialang.org/t/how-to-best-use-distributedarray-jl/79848)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 1:16pm UTC](https://discourse.julialang.org/t/how-to-best-use-distributedarray-jl/79848 "2022-04-28T13:16:38Z")

</div>

I have a couple of questions about Distributed arrays. I have to simulate a lattice, and for every point of this lattice I have to save a collection of matrices. This is because I’m interested in the links connecting e…

---

## [QML, animations, and asynchronous variable updating](https://discourse.julialang.org/t/qml-animations-and-asynchronous-variable-updating/79995)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 12:45pm UTC](https://discourse.julialang.org/t/qml-animations-and-asynchronous-variable-updating/79995 "2022-04-28T12:45:01Z")

</div>

Hi, I’m trying to build a simple GUI for a metropolis Monte Carlo simulation of a spin ising model. What I want to do, basically is having a while loop in the background running at all times (ideally which can be paused…

---

## [Vector{Integer} vs Vector{Int64} in mutable struct template](https://discourse.julialang.org/t/vector-integer-vs-vector-int64-in-mutable-struct-template/80175)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.julialang.org/u/kerim)\
**Replies:** 5\
**Last updated:** [April 28, 2022, 11:14am UTC](https://discourse.julialang.org/t/vector-integer-vs-vector-int64-in-mutable-struct-template/80175 "2022-04-28T11:14:39Z")

</div>

Hi, I can’t understand why I can’t pass Int64 instead of Integer. I need to create an instance of the following struct: mutable struct MyStruct{T} a::Array{Integer,1} b::Array{Integer,1} c::Array{T,1} end a = o…

---

## [How do I avoid subtypes when building a type lookup for parsing?](https://discourse.julialang.org/t/how-do-i-avoid-subtypes-when-building-a-type-lookup-for-parsing/80198)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 10:07am UTC](https://discourse.julialang.org/t/how-do-i-avoid-subtypes-when-building-a-type-lookup-for-parsing/80198 "2022-04-28T10:07:41Z")

</div>

I read in a csv file and I want to generate types based on the content. My idea was to build a lookup dictionary for this, however the subtypes function only exists in InteractiveUtils.jl. I would like to avoid includin…

---

## [Best practice for argument type declarations?](https://discourse.julialang.org/t/best-practice-for-argument-type-declarations/80194)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 9:33am UTC](https://discourse.julialang.org/t/best-practice-for-argument-type-declarations/80194 "2022-04-28T09:33:31Z")

</div>

Hi all, I started learning Julia a few days ago and was wondering what the recommended coding practice is with regard to argument type declarations. I witnessed some people on stackoverflow saying it is “nonesense” to ex…

---

## [Section links in search results](https://discourse.julialang.org/t/section-links-in-search-results/80186)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 8:38am UTC](https://discourse.julialang.org/t/section-links-in-search-results/80186 "2022-04-28T08:38:53Z")

</div>

When searching for something with duckduckgo or Google, I often stub my toe on this problem, example: I search for julia customizing broadcasting and scroll down a bit. It finds Interfaces · The Julia Language, with a d…

---

## [How to loop over the key/value pairs of a NamedTuple?](https://discourse.julialang.org/t/how-to-loop-over-the-key-value-pairs-of-a-namedtuple/5470)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [April 28, 2022, 6:47am UTC](https://discourse.julialang.org/t/how-to-loop-over-the-key-value-pairs-of-a-namedtuple/5470 "2022-04-28T06:47:40Z")

</div>

I tried the following without success: using NamedTuples nt = @NT(a=1, b=1.0) for (k,v) in nt println(k, " =\> ", v) end

---

## [ReinterpretedArray Performance (even worse on 1.8)](https://discourse.julialang.org/t/reinterpretedarray-performance-even-worse-on-1-8/80102)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 26\
**Last updated:** [April 28, 2022, 6:16am UTC](https://discourse.julialang.org/t/reinterpretedarray-performance-even-worse-on-1-8/80102 "2022-04-28T06:16:45Z")

</div>

I’d like to use reinterpreted arrays to write into and read from an array. Here is a little script that is a bit oversimplified but not too far from my real use-case. using BenchmarkTools function cheb!(A, x) A\[1\] =…

---

## [How does MixedModels.jl initialize model parameters for optimization?](https://discourse.julialang.org/t/how-does-mixedmodels-jl-initialize-model-parameters-for-optimization/40630)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 4:47am UTC](https://discourse.julialang.org/t/how-does-mixedmodels-jl-initialize-model-parameters-for-optimization/40630 "2022-04-28T04:47:25Z")

</div>

Hi, I’m curious about how MixedModels.jl initialize model parameters for optimization. From page 12 of this document This template contains three types of elements: structural zeros (denoted by .), off- diagonal covar…

---

## [Is there any glmmTMB package for Julia?](https://discourse.julialang.org/t/is-there-any-glmmtmb-package-for-julia/19868)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 15\
**Last updated:** [April 28, 2022, 4:44am UTC](https://discourse.julialang.org/t/is-there-any-glmmtmb-package-for-julia/19868 "2022-04-28T04:44:31Z")

</div>

I’m trying to fit mixed-effect models to large dataset. R’s lme4 is very slow and can’t deal with more than 50000 rows on my computer. The amount of memory seems to increase with the cube of the number of rows. Julia’s…

---

## [Help with JuMP extension](https://discourse.julialang.org/t/help-with-jump-extension/79485)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 8\
**Last updated:** [April 28, 2022, 2:02am UTC](https://discourse.julialang.org/t/help-with-jump-extension/79485 "2022-04-28T02:02:05Z")

</div>

I am trying to tweak JuMP so that I can specify and query some more specific stuff that I can not currently do with inbuilt JuMP functions and macros. See the example below: First, I want to specify the ‘kind’ of variab…

---

## [Querying lower level objective value in BilevelJuMP.jl](https://discourse.julialang.org/t/querying-lower-level-objective-value-in-bileveljump-jl/80084)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 1:06am UTC](https://discourse.julialang.org/t/querying-lower-level-objective-value-in-bileveljump-jl/80084 "2022-04-28T01:06:38Z")

</div>

Is there an inbuilt function I can use to query the lower level objective value when using BilevelJuMP.jl? For the following example: using JuMP, BilevelJuMP, Gurobi model = BilevelModel(Gurobi.Optimizer, mode = Bilev…

---

## [@register multidimensional interpolation in ModelingToolkit](https://discourse.julialang.org/t/register-multidimensional-interpolation-in-modelingtoolkit/80136)

<div class="topic-metadata">

**Author:** [@KyemyungPark](https://discourse.julialang.org/u/KyemyungPark)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 12:08am UTC](https://discourse.julialang.org/t/register-multidimensional-interpolation-in-modelingtoolkit/80136 "2022-04-28T00:08:55Z")

</div>

Hello, I am trying to feed multidimensional interpolating functions into initial conditions to solve a system of multidimensional PDEs using NeuralPDE.jl. However, registering those functions as symbolic functions with @…

---

## [NaN errors in Flux](https://discourse.julialang.org/t/nan-errors-in-flux/80092)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [April 27, 2022, 10:33pm UTC](https://discourse.julialang.org/t/nan-errors-in-flux/80092 "2022-04-27T22:33:04Z")

</div>

Hi all, I am trying to replicate a Likelihood Approximation Network (LAN) with Flux.jl. LANs are used to learn the likelihood function of intractable computational models. As a proof of concept, I am trying to apply th…

---

## [Splatting an array of plots](https://discourse.julialang.org/t/splatting-an-array-of-plots/80171)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 9:06pm UTC](https://discourse.julialang.org/t/splatting-an-array-of-plots/80171 "2022-04-27T21:06:13Z")

</div>

I’m trying to construct an array of plots and then plot them all on a grid. I initialize the array like this: plots = Array{Plots.Plot{Plots.GRBackend}}(undef,10) and populate the array inside a loop like this: plots…

---

## [Append a single line to a csv file for a multiple of times using Julia](https://discourse.julialang.org/t/append-a-single-line-to-a-csv-file-for-a-multiple-of-times-using-julia/24200)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 8\
**Last updated:** [April 27, 2022, 9:02pm UTC](https://discourse.julialang.org/t/append-a-single-line-to-a-csv-file-for-a-multiple-of-times-using-julia/24200 "2022-04-27T21:02:59Z")

</div>

Hi, my task is to append a single line to a given csv file for a couple of times using Julia. There might be more than one ways to do it. I was thinking to use the DataFrames module and the CSV module to accomplish this.…

---

## [Plot only real part of solution](https://discourse.julialang.org/t/plot-only-real-part-of-solution/80167)

<div class="topic-metadata">

**Author:** [@ograsdijk](https://discourse.julialang.org/u/ograsdijk)\
**Replies:** 3\
**Last updated:** [April 27, 2022, 8:58pm UTC](https://discourse.julialang.org/t/plot-only-real-part-of-solution/80167 "2022-04-27T20:58:08Z")

</div>

I have some ODE systems generated with ModelingToolkit that have complex solutions but I only want to plot the real part of the solution. I know I can pull out the solution for a specific component manually and use real …

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

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