# Latest

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

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

**Page:** 700

---

## [Speeding-up the construction of a second order cone JuMP model](https://discourse.julialang.org/t/speeding-up-the-construction-of-a-second-order-cone-jump-model/98311)

<div class="topic-metadata">

**Author:** [@cgois](https://discourse.julialang.org/u/cgois)\
**Replies:** 6\
**Last updated:** [May 15, 2023, 12:42pm UTC](https://discourse.julialang.org/t/speeding-up-the-construction-of-a-second-order-cone-jump-model/98311 "2023-05-15T12:42:16Z")

</div>

Hi everyone. I need to solve tens of thousands of second order cone problems, so I need my code to be as fast as possible. Currently, my main bottleneck is actually building the problem in JuMP and I would appreciate any…

---

## [De-\`NamedTuple\`izing keyword arguments](https://discourse.julialang.org/t/de-namedtuple-izing-keyword-arguments/98837)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 6\
**Last updated:** [May 15, 2023, 12:21pm UTC](https://discourse.julialang.org/t/de-namedtuple-izing-keyword-arguments/98837 "2023-05-15T12:21:34Z")

</div>

I’m trying to understand if there’s optimization potential in Makie regarding its ubiquitous use of keyword arguments. My idea is writing a macro that makes a function gather its keyword arguments not into a NamedTuple b…

---

## [Is serialization a safe option for data storage?](https://discourse.julialang.org/t/is-serialization-a-safe-option-for-data-storage/98872)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 2\
**Last updated:** [May 15, 2023, 12:06pm UTC](https://discourse.julialang.org/t/is-serialization-a-safe-option-for-data-storage/98872 "2023-05-15T12:06:25Z")

</div>

In my code i last used text files to pass parameters and these parameters are finally processed and used in structs. I was wondering if I could save these structs directly to reduce the overhead in the code. One method …

---

## [How to configure an artifact to use a header during package download?](https://discourse.julialang.org/t/how-to-configure-an-artifact-to-use-a-header-during-package-download/96057)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 3\
**Last updated:** [May 15, 2023, 11:49am UTC](https://discourse.julialang.org/t/how-to-configure-an-artifact-to-use-a-header-during-package-download/96057 "2023-05-15T11:49:40Z")

</div>

While trying to configure an artifact for a package stored on a private GitLab instance, I tested the requests using a private token to retrieve the file, which worked fine with Downloads.download by passing a headers=Di…

---

## [Integer power of large Integer returning very wrong results](https://discourse.julialang.org/t/integer-power-of-large-integer-returning-very-wrong-results/98747)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 7\
**Last updated:** [May 15, 2023, 10:49am UTC](https://discourse.julialang.org/t/integer-power-of-large-integer-returning-very-wrong-results/98747 "2023-05-15T10:49:46Z")

</div>

I am with Julia 1.9 on a fresh session (windows). (Maybe it happens on previous version already) Is it normal to get stuff like julia\> 5^2000 -7794321243379011391 julia\> 2^200 0 With floating power 5^2000., it is Inf.…

---

## [Solve a DSGE model using neural networks](https://discourse.julialang.org/t/solve-a-dsge-model-using-neural-networks/98873)

<div class="topic-metadata">

**Author:** [@Vahagn](https://discourse.julialang.org/u/Vahagn)\
**Replies:** 0\
**Last updated:** [May 15, 2023, 10:32am UTC](https://discourse.julialang.org/t/solve-a-dsge-model-using-neural-networks/98873 "2023-05-15T10:32:37Z")

</div>

Hi, I have a DSGE model for which I need to approximate decision functions using neural network. I have already written many parts of my code. But I don’t know how to train it. I have written some training loop in the b…

---

## [Vscode 'send to active terminal' for persistence and access to scheduler-controlled HPC nodes?](https://discourse.julialang.org/t/vscode-send-to-active-terminal-for-persistence-and-access-to-scheduler-controlled-hpc-nodes/65132)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 4\
**Last updated:** [May 15, 2023, 8:48am UTC](https://discourse.julialang.org/t/vscode-send-to-active-terminal-for-persistence-and-access-to-scheduler-controlled-hpc-nodes/65132 "2023-05-15T08:48:07Z")

</div>

Question: How do we make @command:language-julia.executeJuliaCodeInREPL control the active terminal instead of the REPL? This would be analogous to setting "r.alwaysUseActiveTerminal": true for Yuki Ueda’s R extension b…

---

## [Unsure why I'm getting errors with LoopVectorization](https://discourse.julialang.org/t/unsure-why-im-getting-errors-with-loopvectorization/98766)

<div class="topic-metadata">

**Author:** [@Dominic\_Pazzula](https://discourse.julialang.org/u/Dominic_Pazzula)\
**Replies:** 3\
**Last updated:** [May 15, 2023, 7:58am UTC](https://discourse.julialang.org/t/unsure-why-im-getting-errors-with-loopvectorization/98766 "2023-05-15T07:58:37Z")

</div>

Julia v1.8.5 LoopVectorization v0.12.159 Working on trying to maximize performance of some functions and I’m getting errors. Here is a minimum code example of one: function test(a,n) rows = size(a,1) cols = s…

---

## [LoopVectorization: Best way to have a multi and single threaded version?](https://discourse.julialang.org/t/loopvectorization-best-way-to-have-a-multi-and-single-threaded-version/98862)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [May 15, 2023, 6:51am UTC](https://discourse.julialang.org/t/loopvectorization-best-way-to-have-a-multi-and-single-threaded-version/98862 "2023-05-15T06:51:04Z")

</div>

Sometimes when I use LoopVectorization, I want to have both a single and multi-threaded variant of the function available. For instance: using LoopVectorization function add!(out, x, y; thread) if thread ad…

---

## [Do blocks inner arguments](https://discourse.julialang.org/t/do-blocks-inner-arguments/98861)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 1\
**Last updated:** [May 15, 2023, 6:50am UTC](https://discourse.julialang.org/t/do-blocks-inner-arguments/98861 "2023-05-15T06:50:06Z")

</div>

Hello! From the documentation https://docs.julialang.org/en/v1/base/collections/: get!(d, i) do i^2 end Should this not be get!(d, i) do i i^2 end ??

---

## [Out-of-memory errors using Ipopt to solve very large-scale trajectory optimization problems](https://discourse.julialang.org/t/out-of-memory-errors-using-ipopt-to-solve-very-large-scale-trajectory-optimization-problems/98840)

<div class="topic-metadata">

**Author:** [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Replies:** 4\
**Last updated:** [May 15, 2023, 5:43am UTC](https://discourse.julialang.org/t/out-of-memory-errors-using-ipopt-to-solve-very-large-scale-trajectory-optimization-problems/98840 "2023-05-15T05:43:18Z")

</div>

Hi, I’m trying to use Ipopt via NLPModelsIpopt.jl in order to solve large trajectory optimization problems. It is essentially an optimal control problem, to minimize \\int\_{0}^{T} g(x, u(t)) \\, dt subject to the constrai…

---

## [\[ANN\] CommonLicenses.jl](https://discourse.julialang.org/t/ann-commonlicenses-jl/98822)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 8\
**Last updated:** [May 15, 2023, 4:29am UTC](https://discourse.julialang.org/t/ann-commonlicenses-jl/98822 "2023-05-15T04:29:28Z")

</div>

New Package I just wrote ~Licenses.jl~CommonLicenses.jl! ~And I need help with naming…~ Overview I’ve found myself cutting and pasting an MIT license into my Pluto notebooks. We’ll all be writing more executable documen…

---

## [How to properly update Julia without re-uploading packages](https://discourse.julialang.org/t/how-to-properly-update-julia-without-re-uploading-packages/98599)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 16\
**Last updated:** [May 15, 2023, 3:20am UTC](https://discourse.julialang.org/t/how-to-properly-update-julia-without-re-uploading-packages/98599 "2023-05-15T03:20:37Z")

</div>

Hello, I have downloaded the new Julia (1.9) – well done to the developers, by the way. I don’t know if there is a straightforward way to upgrade julia core (in R, one can type in the terminal $ sudo add-apt-repository…

---

## [MPI collectives (e.g., MPI.Allgatherv!) scaling issues](https://discourse.julialang.org/t/mpi-collectives-e-g-mpi-allgatherv-scaling-issues/97129)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 1\
**Last updated:** [May 15, 2023, 2:33am UTC](https://discourse.julialang.org/t/mpi-collectives-e-g-mpi-allgatherv-scaling-issues/97129 "2023-05-15T02:33:10Z")

</div>

I found that MPI.Allgatherv! doesn’t scale well when testing it on a cluster. The plot above summarizes the execution time of MPI.Allgatherv! against the number of processes. The scaling shows in the plot doesn’t mat…

---

## [Problem installing SigmoidalProgramming](https://discourse.julialang.org/t/problem-installing-sigmoidalprogramming/98731)

<div class="topic-metadata">

**Author:** [@meet.saiya](https://discourse.julialang.org/u/meet.saiya)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 11:12pm UTC](https://discourse.julialang.org/t/problem-installing-sigmoidalprogramming/98731 "2023-05-14T23:12:36Z")

</div>

I tried installing SigmoidalProgramming in Julia 1.8.5 and it gave the following error. julia\> using SigmoidalProgramming \[ Info: Precompiling SigmoidalProgramming \[ce2a0656-6bed-5c64-9e01-e7b1ac833b80\] ERROR: LoadError…

---

## [Scientific notation vs 10^](https://discourse.julialang.org/t/scientific-notation-vs-10/98849)

<div class="topic-metadata">

**Author:** [@Ke\_Gao](https://discourse.julialang.org/u/Ke_Gao)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 10:23pm UTC](https://discourse.julialang.org/t/scientific-notation-vs-10/98849 "2023-05-14T22:23:46Z")

</div>

julia\> a = 6.02\*10^23 1.2062660515345518e18 julia\> b = 6.02e23 6.02e23 julia\> a == b false Why is a not equals to b? Any help possible is greatly appreciated!

---

## [Why Random.seed!(123) don't produce the same result?](https://discourse.julialang.org/t/why-random-seed-123-dont-produce-the-same-result/98848)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 9:49pm UTC](https://discourse.julialang.org/t/why-random-seed-123-dont-produce-the-same-result/98848 "2023-05-14T21:49:30Z")

</div>

How to force rand to generate the same thing every single time? I wish to create a random list of 100 numbers between 200 and 500 and due to reproduceablity I wish to use random seed. But running the follwoing gives me …

---

## [Error with MKL artifact when running app built through PackageCompiler.jl](https://discourse.julialang.org/t/error-with-mkl-artifact-when-running-app-built-through-packagecompiler-jl/98847)

<div class="topic-metadata">

**Author:** [@heyx3](https://discourse.julialang.org/u/heyx3)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 9:42pm UTC](https://discourse.julialang.org/t/error-with-mkl-artifact-when-running-app-built-through-packagecompiler-jl/98847 "2023-05-14T21:42:33Z")

</div>

I’m experimenting with building my Julia application into an executable using PackageCompiler.jl. The build process seems to go just fine, but when I run the executable, it tries twice to “download artifact: MKL”, appear…

---

## [Discrete empirical distribution](https://discourse.julialang.org/t/discrete-empirical-distribution/98835)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.julialang.org/u/Pino)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 6:38pm UTC](https://discourse.julialang.org/t/discrete-empirical-distribution/98835 "2023-05-14T18:38:23Z")

</div>

Silly question: if I have a histogram such as: histogram(rand(Normal(0,1),10000),nbins=100) how can I save the frequency per bin such as to have it as measure for the discretized series?

---

## [How Is Building Julia for 32-bit ARM Architecture Done?](https://discourse.julialang.org/t/how-is-building-julia-for-32-bit-arm-architecture-done/98841)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 4\
**Last updated:** [May 14, 2023, 6:00pm UTC](https://discourse.julialang.org/t/how-is-building-julia-for-32-bit-arm-architecture-done/98841 "2023-05-14T18:00:57Z")

</div>

Hi folks, This is a very naive question I have about Julia and 32-bit ARM builds! I use the last known (that I know of) 32-bit build of Julia 1.6.7 on a personal Raspberry Pi 4 server I have set-up. My question is what …

---

## [Use of Not() in select() with a function](https://discourse.julialang.org/t/use-of-not-in-select-with-a-function/53793)

<div class="topic-metadata">

**Author:** [@andferrari](https://discourse.julialang.org/u/andferrari)\
**Replies:** 5\
**Last updated:** [May 14, 2023, 4:59pm UTC](https://discourse.julialang.org/t/use-of-not-in-select-with-a-function/53793 "2023-05-14T16:59:33Z")

</div>

I try to use Not() column selector when applying a function in select() without success julia\> df = DataFrame(id1 = 1:2, id2 = 1:2) 2×2 DataFrame Row │ id1 id2 │ Int64 Int64 ─────┼────────────── 1 │ …

---

## [ODE Parameter Estimation Using NLopt.jl](https://discourse.julialang.org/t/ode-parameter-estimation-using-nlopt-jl/98825)

<div class="topic-metadata">

**Author:** [@a\_lasko](https://discourse.julialang.org/u/a_lasko)\
**Replies:** 6\
**Last updated:** [May 14, 2023, 3:04pm UTC](https://discourse.julialang.org/t/ode-parameter-estimation-using-nlopt-jl/98825 "2023-05-14T15:04:03Z")

</div>

Good day. I’m new to Julia and using different sources implemented optimization procedure of Predator-Prey ODE system (2 possible models): using ProgressBars, Distributions, DelimitedFiles, DifferentialEquations, DiffE…

---

## [Flux output layer with custom activation function](https://discourse.julialang.org/t/flux-output-layer-with-custom-activation-function/98821)

<div class="topic-metadata">

**Author:** [@YuriS](https://discourse.julialang.org/u/YuriS)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 2:31pm UTC](https://discourse.julialang.org/t/flux-output-layer-with-custom-activation-function/98821 "2023-05-14T14:31:35Z")

</div>

Hello! I am trying to create a neural network that is mostly standard, except with an output layer that applies a sigmoid activation function to one of its four outputs, and just identity to the other three outputs. I …

---

## [Is \` SuiteSparse.CHOLMOD.ldlt\` working correctly?](https://discourse.julialang.org/t/is-suitesparse-cholmod-ldlt-working-correctly/78951)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 2:17pm UTC](https://discourse.julialang.org/t/is-suitesparse-cholmod-ldlt-working-correctly/78951 "2023-05-14T14:17:48Z")

</div>

I have a sparse matrix, symmetric, real. Dimension 101680 , number of non zeros ~6M. Calling cholesky takes around 11 seconds. @time K = SuiteSparse.CHOLMOD.cholesky(K) Calling ldlt results in several minutes of “noth…

---

## [Slower execution and more GC in command prompt than VSCode](https://discourse.julialang.org/t/slower-execution-and-more-gc-in-command-prompt-than-vscode/98739)

<div class="topic-metadata">

**Author:** [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)\
**Replies:** 5\
**Last updated:** [May 14, 2023, 1:52pm UTC](https://discourse.julialang.org/t/slower-execution-and-more-gc-in-command-prompt-than-vscode/98739 "2023-05-14T13:52:56Z")

</div>

I have a large repository for solving a dynamic economic model with heterogeneous agents. The code takes about 400 seconds to run when running Julia from the command prompt, but only about 240 seconds when running in VS…

---

## [How do I store a data structure at the nodes of a graph from Graphs.jl?](https://discourse.julialang.org/t/how-do-i-store-a-data-structure-at-the-nodes-of-a-graph-from-graphs-jl/86774)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 11:52am UTC](https://discourse.julialang.org/t/how-do-i-store-a-data-structure-at-the-nodes-of-a-graph-from-graphs-jl/86774 "2023-05-14T11:52:15Z")

</div>

Say I have a data structure with a “location” (ComplexF64) and a value (Float64) and I want to associate each node of a SimpleGraph from Graphs.jl to each node to keep track of connections between nodes. How should I go …

---

## [Using the new "Contextual Module REPL" to clear the workspace](https://discourse.julialang.org/t/using-the-new-contextual-module-repl-to-clear-the-workspace/98799)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 11:48am UTC](https://discourse.julialang.org/t/using-the-new-contextual-module-repl-to-clear-the-workspace/98799 "2023-05-14T11:48:49Z")

</div>

I was very interested to see the Contextual module REPL in the Julia 1.9 Highlights. People in the past have asked about how to clear the REPL workspace, e.g., It seems like the contextual module REPL goes a long…

---

## [JuMP.jl vs MatLab's Optimization Toolbox](https://discourse.julialang.org/t/jump-jl-vs-matlabs-optimization-toolbox/61674)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 11:14am UTC](https://discourse.julialang.org/t/jump-jl-vs-matlabs-optimization-toolbox/61674 "2023-05-14T11:14:47Z")

</div>

I am an undergrad, and I am considering taking an optional course on Optimization Engineering next semester. In my engineering faculty, MatLab is the default programming language, and I have heard that the subject relies…

---

## [How to create a 3D network with GMT.jl](https://discourse.julialang.org/t/how-to-create-a-3d-network-with-gmt-jl/98668)

<div class="topic-metadata">

**Author:** [@gabipana7](https://discourse.julialang.org/u/gabipana7)\
**Replies:** 7\
**Last updated:** [May 14, 2023, 9:57am UTC](https://discourse.julialang.org/t/how-to-create-a-3d-network-with-gmt-jl/98668 "2023-05-14T09:57:13Z")

</div>

Hi everyone, I would like to create a 3D network using real coordinates of seismic centers. Without going too much into detail, I have a graph file of edgelists and I laso have the coordinates of the nodes. I am able to…

---

## [ANN: ReduceWindows.jl](https://discourse.julialang.org/t/ann-reducewindows-jl/98094)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 5\
**Last updated:** [May 14, 2023, 8:56am UTC](https://discourse.julialang.org/t/ann-reducewindows-jl/98094 "2023-05-14T08:56:46Z")

</div>

I am happy to announce ReduceWindows.jl. The package allows to apply reduce over a sliding window. From the Readme: Usage using ReduceWindows x = \[1,2,3,4,5\] reduce\_window(+, x, (-1:1,)) # \[3, 6, 9, 12, 9\] reduce\_window…

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

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