# Latest

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

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

**Page:** 1018

---

## [Prepare self-hosted runner on Windows 10 for Github Actions and Julia private registry and packages](https://discourse.julialang.org/t/prepare-self-hosted-runner-on-windows-10-for-github-actions-and-julia-private-registry-and-packages/82367)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 12:18pm UTC](https://discourse.julialang.org/t/prepare-self-hosted-runner-on-windows-10-for-github-actions-and-julia-private-registry-and-packages/82367 "2022-06-07T12:18:01Z")

</div>

Leaving this here just as an instruction for others. I’ve tried to add Windows self-hosted runner to build and test my private package and got the following error: \> Run julia-actions/add-julia-registry@v1 C:\\Windows\\S…

---

## [Parallel Programming](https://discourse.julialang.org/t/parallel-programming/82174)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 17\
**Last updated:** [June 7, 2022, 11:55am UTC](https://discourse.julialang.org/t/parallel-programming/82174 "2022-06-07T11:55:09Z")

</div>

I am new to parallel programming concept and I am trying to follow up with the basics but I have this problem when I run julia -t 4 using Base.Threads nthreads() The result is always 1 so I cannot start applying t…

---

## [Unregistered dependencies do not work with unregistered package](https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [June 7, 2022, 11:48am UTC](https://discourse.julialang.org/t/unregistered-dependencies-do-not-work-with-unregistered-package/82340 "2022-06-07T11:48:20Z")

</div>

Hi all, I have two unregistered packages on a private repo, A and B. A is a dependency of B. When I set up the packages locally, and add the unregistered package to the Project.toml, everything works ok. However, if I …

---

## [Benchmarking all algorithms in DiffEq/Optimisation code](https://discourse.julialang.org/t/benchmarking-all-algorithms-in-diffeq-optimisation-code/82358)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [June 7, 2022, 11:05am UTC](https://discourse.julialang.org/t/benchmarking-all-algorithms-in-diffeq-optimisation-code/82358 "2022-06-07T11:05:41Z")

</div>

If I have some ODE code, say this code from the https://diffeq.sciml.ai/stable/tutorials/advanced\_ode\_example/: using DifferentialEquations, LinearAlgebra, SparseArrays const N = 32 const xyd\_brusselator = range(0,stop…

---

## [Feature selection+classification pipeline](https://discourse.julialang.org/t/feature-selection-classification-pipeline/81365)

<div class="topic-metadata">

**Author:** [@Michele\_Avanzo](https://discourse.julialang.org/u/Michele_Avanzo)\
**Replies:** 3\
**Last updated:** [June 7, 2022, 11:04am UTC](https://discourse.julialang.org/t/feature-selection-classification-pipeline/81365 "2022-06-07T11:04:16Z")

</div>

Hi, I am relatively new to Julia. I find it very difficult to build a pipeline that selects optimal subset of features from a large number of features and then training a ML classifier. Currently, I first apply ShapML…

---

## [RISC-V Dev Term r01](https://discourse.julialang.org/t/risc-v-dev-term-r01/82345)

<div class="topic-metadata">

**Author:** [@AlanAylmer](https://discourse.julialang.org/u/AlanAylmer)\
**Replies:** 3\
**Last updated:** [June 7, 2022, 9:28am UTC](https://discourse.julialang.org/t/risc-v-dev-term-r01/82345 "2022-06-07T09:28:01Z")

</div>

Hi everyone. I got a ClockworkPi Dev Term r01 and the website says Julia is tested on clockwork pi. Seems like the sort of thing julia users (like me!) would like. The Kinetic Kudu Debian OS shipped with the box doesn’…

---

## [How to solve this Ax=b faster?](https://discourse.julialang.org/t/how-to-solve-this-ax-b-faster/81693)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 24\
**Last updated:** [June 7, 2022, 8:40am UTC](https://discourse.julialang.org/t/how-to-solve-this-ax-b-faster/81693 "2022-06-07T08:40:32Z")

</div>

I am trying to solve a sparse stiffness matrix (positive definite) of size 1986360x1986360 SparseMatrixCSC{Float64, Int64} with 18327153 stored entries. Here’s a sample code. using SparseArrays using LinearAlgebra A =…

---

## [Failing to register new version because](https://discourse.julialang.org/t/failing-to-register-new-version-because/82346)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 9\
**Last updated:** [June 7, 2022, 8:30am UTC](https://discourse.julialang.org/t/failing-to-register-new-version-because/82346 "2022-06-07T08:30:02Z")

</div>

What does this mean? \[ Info: Attempting to \`Pkg.add\` the package Copying registry from \`~/work/General/General\` Copied registry \`General\` to \`/tmp/jl\_jNfC54/registries/General\` \[ Info: Attempting to \`Pkg.add\`…

---

## [Bottom horizontal legend](https://discourse.julialang.org/t/bottom-horizontal-legend/62548)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [June 7, 2022, 7:26am UTC](https://discourse.julialang.org/t/bottom-horizontal-legend/62548 "2022-06-07T07:26:54Z")

</div>

layer = let n = 100 df = (; x=rand(n), y=rand(n), c=rand(\["a", "b", "c"\], n), ) d = data(df) m = mapping(:x, :y, color=:c) v = visual(Lines) d \* m \* v end grid = draw(layer) leg = only(x for …

---

## [How to distribute the solving of a linear system on multiple Procs?](https://discourse.julialang.org/t/how-to-distribute-the-solving-of-a-linear-system-on-multiple-procs/82359)

<div class="topic-metadata">

**Author:** [@Eurel](https://discourse.julialang.org/u/Eurel)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 7:24am UTC](https://discourse.julialang.org/t/how-to-distribute-the-solving-of-a-linear-system-on-multiple-procs/82359 "2022-06-07T07:24:06Z")

</div>

I intend to solve a linear system on a cluster and expect some scaling. I tried to combine DistributedArrays.jl with IterativeSolvers.jl on my local machine but it would seem the overhead isn’t worth it. using Distrib…

---

## [MultiResidue.jl (A new package to calculate the multi-variable residue)](https://discourse.julialang.org/t/multiresidue-jl-a-new-package-to-calculate-the-multi-variable-residue/82028)

<div class="topic-metadata">

**Author:** [@gangchern](https://discourse.julialang.org/u/gangchern)\
**Replies:** 18\
**Last updated:** [June 7, 2022, 5:54am UTC](https://discourse.julialang.org/t/multiresidue-jl-a-new-package-to-calculate-the-multi-variable-residue/82028 "2022-06-07T05:54:28Z")

</div>

I am announce a new package onMultiResidue.jl, which is used to calculate the multi-variable residue over a zero-dimensional point in multi-variable complex space. The method and Mathematica code have beed included in M…

---

## [Dictionary Issue when using MAT.jl](https://discourse.julialang.org/t/dictionary-issue-when-using-mat-jl/82334)

<div class="topic-metadata">

**Author:** [@Aditya\_Rai](https://discourse.julialang.org/u/Aditya_Rai)\
**Replies:** 6\
**Last updated:** [June 7, 2022, 5:52am UTC](https://discourse.julialang.org/t/dictionary-issue-when-using-mat-jl/82334 "2022-06-07T05:52:26Z")

</div>

Hi Everyone, I am new to Julia and I was trying to convert some MATLAB code to Julia. The code I am converting uses .MAT file ( a MATLAB file to store workspace variables). In order to load this .MAT file I am using MAT…

---

## [Setting up a SDESystem, encountering an error while using structural\_simplify](https://discourse.julialang.org/t/setting-up-a-sdesystem-encountering-an-error-while-using-structural-simplify/82313)

<div class="topic-metadata">

**Author:** [@Rohan\_Rajagopal](https://discourse.julialang.org/u/Rohan_Rajagopal)\
**Replies:** 2\
**Last updated:** [June 7, 2022, 5:04am UTC](https://discourse.julialang.org/t/setting-up-a-sdesystem-encountering-an-error-while-using-structural-simplify/82313 "2022-06-07T05:04:48Z")

</div>

Setting up a SDESystem, encountering an error while using structural\_simplify that I can’t quite understand. using ModelingToolkit, Symbolics, Plots, DifferentialEquations, LogExpFunctions e\_0 = 2.5 ν\_0 = 6 r = 0.56 …

---

## [SDE \`EnsembleProblem\` unhappy with \`trajectories\>=2\`?](https://discourse.julialang.org/t/sde-ensembleproblem-unhappy-with-trajectories-2/82098)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 4\
**Last updated:** [June 7, 2022, 4:21am UTC](https://discourse.julialang.org/t/sde-ensembleproblem-unhappy-with-trajectories-2/82098 "2022-06-07T04:21:22Z")

</div>

The title is a bit generic, but I have trouble seeing a more specific version of my SDE problem. Consider the following problem: using DifferentialEquations using LinearAlgebra function make\_problem\_2() m1 = rand(C…

---

## [Semaphore with permit id?](https://discourse.julialang.org/t/semaphore-with-permit-id/82142)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 1\
**Last updated:** [June 7, 2022, 2:50am UTC](https://discourse.julialang.org/t/semaphore-with-permit-id/82142 "2022-06-07T02:50:44Z")

</div>

I’d like to use a Semaphore like object with say four permits, where a call to acquire would tell me which of the four permits was assigned and a call to release would release that specific permit. I understand that Sem…

---

## [How do I regularise MLJFlux models?](https://discourse.julialang.org/t/how-do-i-regularise-mljflux-models/82349)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 1\
**Last updated:** [June 6, 2022, 11:18pm UTC](https://discourse.julialang.org/t/how-do-i-regularise-mljflux-models/82349 "2022-06-06T23:18:00Z")

</div>

Reposting this question from a Slack channel.

---

## [Parallel programming loops](https://discourse.julialang.org/t/parallel-programming-loops/82284)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 5\
**Last updated:** [June 6, 2022, 10:57pm UTC](https://discourse.julialang.org/t/parallel-programming-loops/82284 "2022-06-06T22:57:52Z")

</div>

Hi I am new to parallel programming concept and I do not know how to make this piece of my code runs parallel scatter(\[Person\[i\]\["x"\] for i in 1:Npopulations\], \[Person\[i\]\["y"\] for i in1:Npopulations\],legend=false, col…

---

## [Failing builds on GitHub](https://discourse.julialang.org/t/failing-builds-on-github/82344)

<div class="topic-metadata">

**Author:** [@patrick](https://discourse.julialang.org/u/patrick)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 9:30pm UTC](https://discourse.julialang.org/t/failing-builds-on-github/82344 "2022-06-06T21:30:00Z")

</div>

I noticed that the continuous integration builds are frequently failing on GitHub: master builds · julia-master. I flipped through the last 20 pages there and saw a significant percentage of failed builds. Further, even…

---

## [Results of SecondOrderODEProblem give ERROR: This object is not a GPU array](https://discourse.julialang.org/t/results-of-secondorderodeproblem-give-error-this-object-is-not-a-gpu-array/82100)

<div class="topic-metadata">

**Author:** [@Molox](https://discourse.julialang.org/u/Molox)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 9:02pm UTC](https://discourse.julialang.org/t/results-of-secondorderodeproblem-give-error-this-object-is-not-a-gpu-array/82100 "2022-06-06T21:02:47Z")

</div>

This is a sample code I found on DiffEqGPU. I can easily get results using Array(sol) for 1st order ODE, but for 2nd order, it returns “ERROR: This object is not a GPU array” Thanks for the help!! # -----------------…

---

## [An example in the manual about conditions within comprehensions would be great](https://discourse.julialang.org/t/an-example-in-the-manual-about-conditions-within-comprehensions-would-be-great/82343)

<div class="topic-metadata">

**Author:** [@skraemer](https://discourse.julialang.org/u/skraemer)\
**Replies:** 4\
**Last updated:** [June 6, 2022, 8:48pm UTC](https://discourse.julialang.org/t/an-example-in-the-manual-about-conditions-within-comprehensions-would-be-great/82343 "2022-06-06T20:48:46Z")

</div>

I am not sure if this is the right place to mention this and if it works this way, but I am going to give it a try. I earlier read a post asking for improvements on the manual, and in that spirit this is meant with best …

---

## [Including a function/file in Julia](https://discourse.julialang.org/t/including-a-function-file-in-julia/82211)

<div class="topic-metadata">

**Author:** [@Raed\_Maraabeh](https://discourse.julialang.org/u/Raed_Maraabeh)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 7:33pm UTC](https://discourse.julialang.org/t/including-a-function-file-in-julia/82211 "2022-06-06T19:33:52Z")

</div>

Hello, I know this issue is mentioned a few times here but it is still not clear for me how to fix it. I am trying to define a function then call it in a different Julia code. For instance, I wrote a code for Euler met…

---

## [Closures over types are type unstable](https://discourse.julialang.org/t/closures-over-types-are-type-unstable/82337)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 6\
**Last updated:** [June 6, 2022, 7:33pm UTC](https://discourse.julialang.org/t/closures-over-types-are-type-unstable/82337 "2022-06-06T19:33:00Z")

</div>

The closure returned by the following function function f(x::AbstractArray) T = eltype(x) ax = axes(x) return () -\> zeros(T, 1000) end is type unstable: @code\_warntype f(rand(3))() Met…

---

## [Expressiveness for queries](https://discourse.julialang.org/t/expressiveness-for-queries/82318)

<div class="topic-metadata">

**Author:** [@kumarbalachandran](https://discourse.julialang.org/u/kumarbalachandran)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 6:58pm UTC](https://discourse.julialang.org/t/expressiveness-for-queries/82318 "2022-06-06T18:58:04Z")

</div>

I have a table, with some missing values and I wanted to do a data retrieval from the table. It so happened that a comparison of the DataFrames implementation I came up with is much more wordy than the equivalent Pandas.…

---

## [Saving sufficient information about array to construct a similar one later](https://discourse.julialang.org/t/saving-sufficient-information-about-array-to-construct-a-similar-one-later/82331)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 6:45pm UTC](https://discourse.julialang.org/t/saving-sufficient-information-about-array-to-construct-a-similar-one-later/82331 "2022-06-06T18:45:47Z")

</div>

I have a function f which takes in x::AbstractArray. My function returns another function g (a closure). Inside g, I do not need x, but I need to construct similar(x). Therefore, so that I do not to waste memory by clo…

---

## [Exponentiation returning negative value or zero value when should be positive](https://discourse.julialang.org/t/exponentiation-returning-negative-value-or-zero-value-when-should-be-positive/82330)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 1\
**Last updated:** [June 6, 2022, 6:18pm UTC](https://discourse.julialang.org/t/exponentiation-returning-negative-value-or-zero-value-when-should-be-positive/82330 "2022-06-06T18:18:31Z")

</div>

If I use the exponentiation operator in the terminal for a positive integer to itself, sometimes it returns a negative value or returns zero. Below is two screen shots. Could someone explain why this could be occurr…

---

## [How to Handle MissingException in Makie?](https://discourse.julialang.org/t/how-to-handle-missingexception-in-makie/82325)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 5\
**Last updated:** [June 6, 2022, 6:18pm UTC](https://discourse.julialang.org/t/how-to-handle-missingexception-in-makie/82325 "2022-06-06T18:18:09Z")

</div>

Hi all, I have columns in my dataframe as follows: These columns contain Ints as well as missings. I know that Makie.jl handles missings per this issue: handling vectors with \`Missing\` in type signature (even if the…

---

## [Simple macroeconomic model in DynamicalSystems.jl](https://discourse.julialang.org/t/simple-macroeconomic-model-in-dynamicalsystems-jl/82221)

<div class="topic-metadata">

**Author:** [@josec](https://discourse.julialang.org/u/josec)\
**Replies:** 20\
**Last updated:** [June 6, 2022, 4:51pm UTC](https://discourse.julialang.org/t/simple-macroeconomic-model-in-dynamicalsystems-jl/82221 "2022-06-06T16:51:58Z")

</div>

Hi. I am very new to Julia. I have a very simple macroeconomic model, which I managed to simulate and plot with numpy for Julia. I tried to simulate it in DynamicalSystems.jl, but not all the equations are of the type:…

---

## [Function to check if a value is contained in a MutableBinaryHeap](https://discourse.julialang.org/t/function-to-check-if-a-value-is-contained-in-a-mutablebinaryheap/82159)

<div class="topic-metadata">

**Author:** [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 4:48pm UTC](https://discourse.julialang.org/t/function-to-check-if-a-value-is-contained-in-a-mutablebinaryheap/82159 "2022-06-06T16:48:26Z")

</div>

Hello everyone. Yesterday I posted this question I found a solution that I would like to share, given an input heap (minhp) and a value that I want to look for (node): function searchhp(minhp,node) #this functio…

---

## [UndefVarError when calling macro inside function](https://discourse.julialang.org/t/undefvarerror-when-calling-macro-inside-function/82320)

<div class="topic-metadata">

**Author:** [@luciano-drozda](https://discourse.julialang.org/u/luciano-drozda)\
**Replies:** 7\
**Last updated:** [June 6, 2022, 4:25pm UTC](https://discourse.julialang.org/t/undefvarerror-when-calling-macro-inside-function/82320 "2022-06-06T16:25:37Z")

</div>

It relates to this post but I’m still unclear about the correct use of esc in my case. I’m willing to call a function func to all fields of a struct. Here’s my macro : macro call\_on\_fields(func, struct\_) exprs = \[:(…

---

## [ACM Turing Award Honors Jack J. Dongarra for Pioneering Concepts and Methods Which Have Resulted in World-Changing Computations](https://discourse.julialang.org/t/acm-turing-award-honors-jack-j-dongarra-for-pioneering-concepts-and-methods-which-have-resulted-in-world-changing-computations/78746)

<div class="topic-metadata">

**Author:** [@caleb-allen](https://discourse.julialang.org/u/caleb-allen)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 3:54pm UTC](https://discourse.julialang.org/t/acm-turing-award-honors-jack-j-dongarra-for-pioneering-concepts-and-methods-which-have-resulted-in-world-changing-computations/78746 "2022-06-06T15:54:52Z")

</div>

I thought this would be relevant to the Julia scientific computing community! Jack J. Dongarra is the primary author of BLAS and LAPACK, without which scientific computing would be much more difficult!

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

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