# Latest

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

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

**Page:** 322

---

## [When running a certain code, the screen goes black. What hardware problem?](https://discourse.julialang.org/t/when-running-a-certain-code-the-screen-goes-black-what-hardware-problem/119361)

<div class="topic-metadata">

**Author:** [@XuJingye2022](https://discourse.julialang.org/u/XuJingye2022)\
**Replies:** 2\
**Last updated:** [September 14, 2024, 3:03am UTC](https://discourse.julialang.org/t/when-running-a-certain-code-the-screen-goes-black-what-hardware-problem/119361 "2024-09-14T03:03:40Z")

</div>

I want to optimize the performance of my previous code: using BenchmarkTools function discrete\_integrate(xvec::Vector, y1vec::Vector, y2vec::Vector, y3vec::Vector) s = zero(promote\_type(eltype(xvec), eltype(y1vec),…

---

## [\[ANN\] New Julia Podcast](https://discourse.julialang.org/t/ann-new-julia-podcast/118570)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 11\
**Last updated:** [September 13, 2024, 10:34pm UTC](https://discourse.julialang.org/t/ann-new-julia-podcast/118570 "2024-09-13T22:34:47Z")

</div>

Hey Julia folks! I know this space is usually for package announcements, but I’m gonna shake things up a bit. Instead of “import NewPackage”, how about we “import Podcast”? :wink: Do you miss the good ol’ days when Talk…

---

## [Collaborative editing: Zed editor and conflict-free replicated data type (CRDT) abstract data type](https://discourse.julialang.org/t/collaborative-editing-zed-editor-and-conflict-free-replicated-data-type-crdt-abstract-data-type/110415)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 19\
**Last updated:** [September 13, 2024, 9:19pm UTC](https://discourse.julialang.org/t/collaborative-editing-zed-editor-and-conflict-free-replicated-data-type-crdt-abstract-data-type/110415 "2024-09-13T21:19:34Z")

</div>

Zed editor from the people that made Atom editor (at the time the main Julia editor): Save time and keystrokes by generating code with AI. Zed supports GitHub Copilot out of the box, and you can use GPT-4 to genera…

---

## [Algorithms for non-square rootfinding](https://discourse.julialang.org/t/algorithms-for-non-square-rootfinding/119370)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [September 13, 2024, 6:33pm UTC](https://discourse.julialang.org/t/algorithms-for-non-square-rootfinding/119370 "2024-09-13T18:33:13Z")

</div>

Consider a rootfinding problem f(x) = 0 in x \\in \\mathbb{R}^ n, where f is differentiable. Most texts I am familiar with assume that f: \\mathbb{R}^n \\to \\mathbb{R}^n, so implicitly the Jacobian J is square. But in e…

---

## [How to launch Julia with command-line arguments in VS Code?](https://discourse.julialang.org/t/how-to-launch-julia-with-command-line-arguments-in-vs-code/93716)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 6\
**Last updated:** [September 13, 2024, 5:07pm UTC](https://discourse.julialang.org/t/how-to-launch-julia-with-command-line-arguments-in-vs-code/93716 "2024-09-13T17:07:17Z")

</div>

I usually start Julia with some command-line options when starting it from a terminal. How to do this when using the Julia REPL in the Code editor?

---

## [Correct way to benchmark StaticVectors](https://discourse.julialang.org/t/correct-way-to-benchmark-staticvectors/119357)

<div class="topic-metadata">

**Author:** [@bthorne93](https://discourse.julialang.org/u/bthorne93)\
**Replies:** 4\
**Last updated:** [September 13, 2024, 5:01pm UTC](https://discourse.julialang.org/t/correct-way-to-benchmark-staticvectors/119357 "2024-09-13T17:01:22Z")

</div>

I am writing some code to do geometric intersection tests using StaticArrays.jl. I would like to keep some benchmarks as I am developing and would like to know if I am benchmarking static arrays correctly. The documenta…

---

## [Discrete Non-Integer Design Variables in Evolutionary.jl](https://discourse.julialang.org/t/discrete-non-integer-design-variables-in-evolutionary-jl/119379)

<div class="topic-metadata">

**Author:** [@AkchurinDA](https://discourse.julialang.org/u/AkchurinDA)\
**Replies:** 0\
**Last updated:** [September 13, 2024, 4:49pm UTC](https://discourse.julialang.org/t/discrete-non-integer-design-variables-in-evolutionary-jl/119379 "2024-09-13T16:49:26Z")

</div>

Hi, Can I add discrete non-integer variable constraints such that my design variables are chosen from specified lists of available discrete values in Evolutionary.jl? I want something similar as in this MATLAB example:…

---

## [Does GC.@preserve v preserve elements of vector v?](https://discourse.julialang.org/t/does-gc-preserve-v-preserve-elements-of-vector-v/119375)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 0\
**Last updated:** [September 13, 2024, 3:11pm UTC](https://discourse.julialang.org/t/does-gc-preserve-v-preserve-elements-of-vector-v/119375 "2024-09-13T15:11:11Z")

</div>

Hello, I need to preserve from GC a list of arrays define at runtime. In the following code, will the GC.@preserve statement preserve the content of v\[1\] to be garbage collected and ensure p to be valid ? v = \[ \[1, 2\]…

---

## [SVectors + @reset from Accessors: Strange Benchmarks](https://discourse.julialang.org/t/svectors-reset-from-accessors-strange-benchmarks/119201)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 31\
**Last updated:** [September 13, 2024, 3:00pm UTC](https://discourse.julialang.org/t/svectors-reset-from-accessors-strange-benchmarks/119201 "2024-09-13T15:00:53Z")

</div>

Full MWE: MWEusing StaticArrays, Parameters, Accessors, BenchmarkTools # Test Functions function loop1(dat) for t in 1:10 for i in eachindex(dat) @reset dat\[i\].A .+= dat\[i\].B end end…

---

## [Type Definition of Array Arguments to Functions](https://discourse.julialang.org/t/type-definition-of-array-arguments-to-functions/119372)

<div class="topic-metadata">

**Author:** [@freestatelabs](https://discourse.julialang.org/u/freestatelabs)\
**Replies:** 8\
**Last updated:** [September 13, 2024, 2:36pm UTC](https://discourse.julialang.org/t/type-definition-of-array-arguments-to-functions/119372 "2024-09-13T14:36:42Z")

</div>

Hi, for a project I’m working on, I defaulted to defining my functions with input arrays with data types as Float64, i.e. function foo(vec::Vector{Float64}) # do stuff end However, I realized later that this was a…

---

## [How to include a Distributed into a package?](https://discourse.julialang.org/t/how-to-include-a-distributed-into-a-package/81561)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 2\
**Last updated:** [September 13, 2024, 1:52pm UTC](https://discourse.julialang.org/t/how-to-include-a-distributed-into-a-package/81561 "2024-09-13T13:52:51Z")

</div>

I am writing a package where at some point a big loop appears. What is the proper way to allow using the Distributed.jl package to replace map by pmap? Should we do like that: module MyPackage using Distributed ### …

---

## [Maximizing Input File Read Performance](https://discourse.julialang.org/t/maximizing-input-file-read-performance/117034)

<div class="topic-metadata">

**Author:** [@freestatelabs](https://discourse.julialang.org/u/freestatelabs)\
**Replies:** 7\
**Last updated:** [September 13, 2024, 1:20pm UTC](https://discourse.julialang.org/t/maximizing-input-file-read-performance/117034 "2024-09-13T13:20:47Z")

</div>

Hi everyone, I’m writing a simple simulation program, and trying to figure out the best way of designing a format for my input files. The simulation calculates the effect of multiple types of sources (each defined in a …

---

## [Meetup in Prague, Czechia 🇨🇿](https://discourse.julialang.org/t/meetup-in-prague-czechia/114692)

<div class="topic-metadata">

**Author:** [@thevolatilebit](https://discourse.julialang.org/u/thevolatilebit)\
**Replies:** 1\
**Last updated:** [September 13, 2024, 1:13pm UTC](https://discourse.julialang.org/t/meetup-in-prague-czechia/114692 "2024-09-13T13:13:01Z")

</div>

Hello everyone, Along with the organizers of previous Julia meetups in Prague, we are planning to revive our local community, which has been dormant since the onset of the pandemic. We may not all be well-acquainted yet…

---

## [Suffix Tree/Suffix Arrays](https://discourse.julialang.org/t/suffix-tree-suffix-arrays/119369)

<div class="topic-metadata">

**Author:** [@Jose\_Ghislain\_Quenum](https://discourse.julialang.org/u/Jose_Ghislain_Quenum)\
**Replies:** 0\
**Last updated:** [September 13, 2024, 11:47am UTC](https://discourse.julialang.org/t/suffix-tree-suffix-arrays/119369 "2024-09-13T11:47:59Z")

</div>

Hi all, what’s the best library to implement (exact and inexact) search with suffix trees or suffix arrays? I tried SuffixArrays.jl, but the API was limited. Any suggestion? Thanks in advance.

---

## [Is anyone working on an VSCode extension for Julia that can show the inferred types? Koka has something like this. Would be fun to work on](https://discourse.julialang.org/t/is-anyone-working-on-an-vscode-extension-for-julia-that-can-show-the-inferred-types-koka-has-something-like-this-would-be-fun-to-work-on/119323)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 10\
**Last updated:** [September 13, 2024, 11:33am UTC](https://discourse.julialang.org/t/is-anyone-working-on-an-vscode-extension-for-julia-that-can-show-the-inferred-types-koka-has-something-like-this-would-be-fun-to-work-on/119323 "2024-09-13T11:33:24Z")

</div>

The above is from Koka’s website and show how the inferred type can be shown to the user. Theoretically, we can do the same in Julia。 Wonder if anyone’s working on this? It would be fun to work on. Eg. one can add a…

---

## [Bug in DifferentialEquations](https://discourse.julialang.org/t/bug-in-differentialequations/116968)

<div class="topic-metadata">

**Author:** [@elcup](https://discourse.julialang.org/u/elcup)\
**Replies:** 2\
**Last updated:** [September 13, 2024, 11:04am UTC](https://discourse.julialang.org/t/bug-in-differentialequations/116968 "2024-09-13T11:04:49Z")

</div>

Hi! Note: I am working on a new environment with only DifferentialEquations.jl installed. When I run the following simple code taken from the tutorials of DifferentialEquations.jl (Conditional Dosing in Pharmacometrics…

---

## [GitHub Actions now offers free Apple Silicon macOS runners for public repositories](https://discourse.julialang.org/t/github-actions-now-offers-free-apple-silicon-macos-runners-for-public-repositories/109641)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 0\
**Last updated:** [February 2, 2024, 6:45pm UTC](https://discourse.julialang.org/t/github-actions-now-offers-free-apple-silicon-macos-runners-for-public-repositories/109641 "2024-02-02T18:45:52Z")

</div>

Today, GitHub is excited to announce the launch of a new M1 macOS runner! This runner is available for all plans, free in public repositories, and eligible to consume included free plan minutes in private repositories. …

---

## [Signalling towards convergence of chain/ chains in turing](https://discourse.julialang.org/t/signalling-towards-convergence-of-chain-chains-in-turing/118441)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [September 13, 2024, 8:31am UTC](https://discourse.julialang.org/t/signalling-towards-convergence-of-chain-chains-in-turing/118441 "2024-09-13T08:31:31Z")

</div>

Hello everyone :)… Based on my understanding of Turing based inference(case of NUTS). We see that during warmup time chain gets to convergence and then we collect samples. Now there are two things . when model is sim…

---

## [I think one can calculate logarithmn using only one known logarithmn value log2(1.5)](https://discourse.julialang.org/t/i-think-one-can-calculate-logarithmn-using-only-one-known-logarithmn-value-log2-1-5/119213)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 17\
**Last updated:** [September 13, 2024, 3:59am UTC](https://discourse.julialang.org/t/i-think-one-can-calculate-logarithmn-using-only-one-known-logarithmn-value-log2-1-5/119213 "2024-09-13T03:59:29Z")

</div>

If civilization collapses , then how do we calculate logarithm. I think that one can calculate logarithmn using only one knwn logarithm value log2(1.5). I already know that log10(x) = ln(x)/ln(10) So if we know log of …

---

## [App using Makie.jl or Plots.jl compiled with PackageCompiler.jl does not work](https://discourse.julialang.org/t/app-using-makie-jl-or-plots-jl-compiled-with-packagecompiler-jl-does-not-work/104319)

<div class="topic-metadata">

**Author:** [@Miroslav-Stimac](https://discourse.julialang.org/u/Miroslav-Stimac)\
**Replies:** 9\
**Last updated:** [September 13, 2024, 2:17am UTC](https://discourse.julialang.org/t/app-using-makie-jl-or-plots-jl-compiled-with-packagecompiler-jl-does-not-work/104319 "2024-09-13T02:17:13Z")

</div>

Hello, I have a program that I programmed with Julia using DataFrames, ODBC, TOML any some other packages. I had been compiling it to a Windows App (.EXE-file) by using PackageCompiler.jl many times and everything is OK…

---

## [Convert SymPy.jl equation system to JuMP.jl Model](https://discourse.julialang.org/t/convert-sympy-jl-equation-system-to-jump-jl-model/119091)

<div class="topic-metadata">

**Author:** [@lufu](https://discourse.julialang.org/u/lufu)\
**Replies:** 5\
**Last updated:** [September 12, 2024, 11:07pm UTC](https://discourse.julialang.org/t/convert-sympy-jl-equation-system-to-jump-jl-model/119091 "2024-09-12T23:07:11Z")

</div>

Hello together, I am new to Julia and ran into a problem that I am stuck with for quite some while now. I want to convert equation systems from SymPy into JuMP Models. However, the symbolic variables and equations are …

---

## [Is it possible to create a non-normal distribution of agents on a grid using Agents.jl?](https://discourse.julialang.org/t/is-it-possible-to-create-a-non-normal-distribution-of-agents-on-a-grid-using-agents-jl/119351)

<div class="topic-metadata">

**Author:** [@tfranks](https://discourse.julialang.org/u/tfranks)\
**Replies:** 4\
**Last updated:** [September 12, 2024, 10:26pm UTC](https://discourse.julialang.org/t/is-it-possible-to-create-a-non-normal-distribution-of-agents-on-a-grid-using-agents-jl/119351 "2024-09-12T22:26:51Z")

</div>

Hello, Using Julia Agents.jl, I’ve built an agent-based model where the bank agents are plotted on a x-y axis and added to the grid by “add\_agents!.” This function adds the agents in a normal distribution as shown belo…

---

## [Question about eachindex behavior in DenseAxisArray in JuMP](https://discourse.julialang.org/t/question-about-eachindex-behavior-in-denseaxisarray-in-jump/119333)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 9:35pm UTC](https://discourse.julialang.org/t/question-about-eachindex-behavior-in-denseaxisarray-in-jump/119333 "2024-09-12T21:35:13Z")

</div>

This is more of a question of whether this is expected behavior or a corner case that should not work correctly anyway. When we run this code the access of indices through the use of eachindex in dense axis array is not…

---

## [Recover weights of logistic regression using MLJ.jl](https://discourse.julialang.org/t/recover-weights-of-logistic-regression-using-mlj-jl/119331)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 0\
**Last updated:** [September 12, 2024, 2:55pm UTC](https://discourse.julialang.org/t/recover-weights-of-logistic-regression-using-mlj-jl/119331 "2024-09-12T14:55:07Z")

</div>

Hi all, I’m trying to see if I can recover the weights of the logistic regression from data I’m generating synthetically, but for some reason there is large error in the optimized weights when using MLJ.jl. To create t…

---

## [Failure to download artifacts: cannot add/update some packages!](https://discourse.julialang.org/t/failure-to-download-artifacts-cannot-add-update-some-packages/119248)

<div class="topic-metadata">

**Author:** [@Livio](https://discourse.julialang.org/u/Livio)\
**Replies:** 2\
**Last updated:** [September 12, 2024, 7:11pm UTC](https://discourse.julialang.org/t/failure-to-download-artifacts-cannot-add-update-some-packages/119248 "2024-09-12T19:11:29Z")

</div>

The problem: I run ENV\["JULIA\_DEBUG"\] = "all" # detailed debug info import Pkg Pkg.add("HTTP") but fail to install HTTP because I can’t download the artifact OpenSSL (stacktrace below). Additional info: Julia version…

---

## [Error message: The Julia launcher failed to load a configuration file](https://discourse.julialang.org/t/error-message-the-julia-launcher-failed-to-load-a-configuration-file/119336)

<div class="topic-metadata">

**Author:** [@GiovanniPaiela](https://discourse.julialang.org/u/GiovanniPaiela)\
**Replies:** 3\
**Last updated:** [September 12, 2024, 7:06pm UTC](https://discourse.julialang.org/t/error-message-the-julia-launcher-failed-to-load-a-configuration-file/119336 "2024-09-12T19:06:19Z")

</div>

I wanted to run my julia code but after I did so (trying both from vs code and command prompt), I received an error message: "Error: The Julia launcher failed to load a configuration file. Caused by: Could not create …

---

## [Function property differs based on the position of the generic type](https://discourse.julialang.org/t/function-property-differs-based-on-the-position-of-the-generic-type/119340)

<div class="topic-metadata">

**Author:** [@akrishnamoorthy](https://discourse.julialang.org/u/akrishnamoorthy)\
**Replies:** 2\
**Last updated:** [September 12, 2024, 6:08pm UTC](https://discourse.julialang.org/t/function-property-differs-based-on-the-position-of-the-generic-type/119340 "2024-09-12T18:08:58Z")

</div>

Let julia\> using LinearAlgebra julia\> id(X,T) = T(Matrix{eltype(X)}(I, size(X)...)) id (generic function with 1 method) julia\> A = complex.(randn(2,2),randn(2,2)); julia\> typeof(transpose(id(A,Hermitian))) Transpose{…

---

## [Question on performance of views](https://discourse.julialang.org/t/question-on-performance-of-views/119292)

<div class="topic-metadata">

**Author:** [@xvries](https://discourse.julialang.org/u/xvries)\
**Replies:** 4\
**Last updated:** [September 12, 2024, 5:20pm UTC](https://discourse.julialang.org/t/question-on-performance-of-views/119292 "2024-09-12T17:20:12Z")

</div>

In some of our code we use views based on integer indexing (we need to remove some colums from our matrices). I noticed that these views have very poor performance in multiplication. a = rand(1000, 1000) @btime a\*a # 1…

---

## [For statement type instability](https://discourse.julialang.org/t/for-statement-type-instability/118817)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 10\
**Last updated:** [September 12, 2024, 4:24pm UTC](https://discourse.julialang.org/t/for-statement-type-instability/118817 "2024-09-12T16:24:14Z")

</div>

Hello all. I encountered the same problem as in the title. Sorry if this is a known problem. \[Added later\] @code\_warntype warns @\_2::Union{Nothing, Tuple{Union{One, Two}, Int64}} has type instability. How can I solve …

---

## [How would you solve this DAE?](https://discourse.julialang.org/t/how-would-you-solve-this-dae/119303)

<div class="topic-metadata">

**Author:** [@martru](https://discourse.julialang.org/u/martru)\
**Replies:** 2\
**Last updated:** [September 12, 2024, 4:00pm UTC](https://discourse.julialang.org/t/how-would-you-solve-this-dae/119303 "2024-09-12T16:00:08Z")

</div>

Hi everyone, I’m a new user and I’m struggling to solve this (pictured below) DAE system. I know next to nothing about solvers so I’d appreciate all the help I can get! So far I’ve tried: function f(out, dx, x, p, …

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

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