# Latest

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

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

**Page:** 1168

---

## [Recommendation: cache \`~/.julia/artifacts\` in CI services](https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 7\
**Last updated:** [December 28, 2021, 6:39pm UTC](https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484 "2021-12-28T18:39:09Z")

</div>

As many of you are probably already aware, starting from v1.3, Julia is using Artifacts to ship binary packages to the users. You can read more about this in the blog post Reliable and Reproducible Binary Artifacts for …

---

## [Acess an array using another array](https://discourse.julialang.org/t/acess-an-array-using-another-array/73714)

<div class="topic-metadata">

**Author:** [@Renan\_Rabelo](https://discourse.julialang.org/u/Renan_Rabelo)\
**Replies:** 3\
**Last updated:** [December 28, 2021, 6:25pm UTC](https://discourse.julialang.org/t/acess-an-array-using-another-array/73714 "2021-12-28T18:25:37Z")

</div>

I want to be able to acces a multi-dimentional array using another array. This is what happens if I try to do it: x = \[1,1,1\] y = zeros(Int64,(3,3,3)) # 3D array println(y\[x\]) # Prints \[0,0,0\] println(y\[1,1,1\]) # Prints…

---

## [Tuple and NamedTuple types](https://discourse.julialang.org/t/tuple-and-namedtuple-types/73701)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 6\
**Last updated:** [December 28, 2021, 4:24pm UTC](https://discourse.julialang.org/t/tuple-and-namedtuple-types/73701 "2021-12-28T16:24:16Z")

</div>

Dear all, I have some trouble to infer the types of Tuples and NamedTuples. Let’s start with a simple tuple. If each field in the tuple is of the same type, I can state the type of the tuple as follows (MWE): a = (:b, …

---

## [How to find a reviewer for StaticArrays?](https://discourse.julialang.org/t/how-to-find-a-reviewer-for-staticarrays/73709)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 4:00pm UTC](https://discourse.julialang.org/t/how-to-find-a-reviewer-for-staticarrays/73709 "2021-12-28T16:00:01Z")

</div>

How to find a reviewer for StaticArrays? Hello, I wrote a bug report (https://github.com/JuliaArrays/StaticArrays.jl/issues/981), which was approved, and patch was committed (https://github.com/JuliaArrays/StaticArray…

---

## [Is this a good way to export all variables inside of a function?](https://discourse.julialang.org/t/is-this-a-good-way-to-export-all-variables-inside-of-a-function/73699)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [December 28, 2021, 2:25pm UTC](https://discourse.julialang.org/t/is-this-a-good-way-to-export-all-variables-inside-of-a-function/73699 "2021-12-28T14:25:28Z")

</div>

Hello! Not a question per se, more looking for some feedback I suppose. So by googling a bit, I came around and saw that it is possible to call a macro called Base.@locals, which if you use it inside of a function, you…

---

## [Is it normal that github actions hang?](https://discourse.julialang.org/t/is-it-normal-that-github-actions-hang/73653)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [December 28, 2021, 1:48pm UTC](https://discourse.julialang.org/t/is-it-normal-that-github-actions-hang/73653 "2021-12-28T13:48:57Z")

</div>

I started my first github package that uses github actions, it hangs often. Six of seven tasks are completed fast (within a few minutes), and the last task runs for more than 30 min and does not finish. Is that normal? …

---

## [Nonlinear Dynamics textbook + DynamicalSystems.jl 2.0](https://discourse.julialang.org/t/nonlinear-dynamics-textbook-dynamicalsystems-jl-2-0/65665)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 8\
**Last updated:** [December 24, 2021, 4:30pm UTC](https://discourse.julialang.org/t/nonlinear-dynamics-textbook-dynamicalsystems-jl-2-0/65665 "2021-12-24T16:30:37Z")

</div>

Hello everyone! In this post I’m happy to announce the latest news surrounding the DynamicalSystems.jl library! In the following I’ll summarize the most exciting things that have been happening to the library over the p…

---

## [Can I use a function variable name to generate a string to set it equal to?](https://discourse.julialang.org/t/can-i-use-a-function-variable-name-to-generate-a-string-to-set-it-equal-to/73659)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 13\
**Last updated:** [December 28, 2021, 11:20am UTC](https://discourse.julialang.org/t/can-i-use-a-function-variable-name-to-generate-a-string-to-set-it-equal-to/73659 "2021-12-28T11:20:47Z")

</div>

Pre-face: I know that this is properly not the smartest thing to do, if it is even possible. I want to learn and test something out. I was thinking if I could do something like this, imagine by using a macro: @var2str…

---

## [CUDA porting to shift-inverse eigenvalues](https://discourse.julialang.org/t/cuda-porting-to-shift-inverse-eigenvalues/73691)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 12:26am UTC](https://discourse.julialang.org/t/cuda-porting-to-shift-inverse-eigenvalues/73691 "2021-12-28T00:26:22Z")

</div>

The Arpack eigenvalues solver is very fast. With a 100000x100000 sparse matrix, I can get a few eigenvalues with the shift-invert method in 20-30 seconds approximately! Since I always want the best performances, I wonde…

---

## [Trying to understand CUDA benchmark](https://discourse.julialang.org/t/trying-to-understand-cuda-benchmark/73639)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [December 28, 2021, 8:33am UTC](https://discourse.julialang.org/t/trying-to-understand-cuda-benchmark/73639 "2021-12-28T08:33:30Z")

</div>

I am benchmarking my kernel that is relatively simple it iterates over 2 arrays of the same size and accumulates in local variables times both arrays agree or not warp reduction of local variables thread block reductio…

---

## [Package compiler fails when using Julia 1.7.1](https://discourse.julialang.org/t/package-compiler-fails-when-using-julia-1-7-1/73667)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 4\
**Last updated:** [December 28, 2021, 8:04am UTC](https://discourse.julialang.org/t/package-compiler-fails-when-using-julia-1-7-1/73667 "2021-12-28T08:04:10Z")

</div>

Package compiler fails when using Julia 1.7.1. There is a problem with the use of data in the Images package, but not sure if this is the cause of the error. That warning message pops up a minute or so before the error o…

---

## [Package install on (offline) Cluster - Build needs internet](https://discourse.julialang.org/t/package-install-on-offline-cluster-build-needs-internet/19862)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 7\
**Last updated:** [December 28, 2021, 7:25am UTC](https://discourse.julialang.org/t/package-install-on-offline-cluster-build-needs-internet/19862 "2021-12-28T07:25:10Z")

</div>

Hey everyone, I’m trying to use julia 1.0 on our cluster. It is not connected to the internet (login via login-server) so I can’t use the standard procedure to install the packages I need. I read here that one option…

---

## [Updating a Local Registry](https://discourse.julialang.org/t/updating-a-local-registry/73401)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [December 28, 2021, 5:54am UTC](https://discourse.julialang.org/t/updating-a-local-registry/73401 "2021-12-28T05:54:32Z")

</div>

Hello, I am trying to update a local registry but am unsure how to proceed and would appreciate advice. I followed the instructions here for creating my own private registry for sharing with collaborators. I have a rep…

---

## [How do I rebuild PyCall in Pluto](https://discourse.julialang.org/t/how-do-i-rebuild-pycall-in-pluto/73690)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [December 28, 2021, 2:39am UTC](https://discourse.julialang.org/t/how-do-i-rebuild-pycall-in-pluto/73690 "2021-12-28T02:39:21Z")

</div>

I have to change my Python to run a specific version. I know I have to rebuild PyCall but I am doing something wrong. I have used PyCall using Pluto’s internal Pkg manager but when I run the cell Pkg.build(“PyCall”) I …

---

## [How to integrate 3d-force-graph into Dash.jl?](https://discourse.julialang.org/t/how-to-integrate-3d-force-graph-into-dash-jl/73693)

<div class="topic-metadata">

**Author:** [@Junars](https://discourse.julialang.org/u/Junars)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 2:15am UTC](https://discourse.julialang.org/t/how-to-integrate-3d-force-graph-into-dash-jl/73693 "2021-12-28T02:15:33Z")

</div>

I am planning to use Dash.jl to make a web ui, it’s a dashboard with a dynamic 3d graph network illustration, Dash.jl ecosystem already has DashCytoscape and DashVTK，but 3d-force-graph is more fantastic and seems easy to…

---

## [Adding a few variables and constraints makes the model nearly unsolvable](https://discourse.julialang.org/t/adding-a-few-variables-and-constraints-makes-the-model-nearly-unsolvable/70401)

<div class="topic-metadata">

**Author:** [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Replies:** 11\
**Last updated:** [December 28, 2021, 1:52am UTC](https://discourse.julialang.org/t/adding-a-few-variables-and-constraints-makes-the-model-nearly-unsolvable/70401 "2021-12-28T01:52:40Z")

</div>

Hi all, I know that this has nothing to do with Julia, but although I asked the following question in Gurobi community, I have not received a response yet. Could you please help me with the following issue? I have a po…

---

## [How to reproduce an ArcGIS map projection with layers](https://discourse.julialang.org/t/how-to-reproduce-an-arcgis-map-projection-with-layers/73277)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 6\
**Last updated:** [December 27, 2021, 10:42pm UTC](https://discourse.julialang.org/t/how-to-reproduce-an-arcgis-map-projection-with-layers/73277 "2021-12-27T22:42:08Z")

</div>

Hello Watchers: My intention is to produce something similar to a question I presented a colleague days ago THREAD that looks like this: The goal is two-fold: Highlight regions of interest within a country. Ad…

---

## [How to pass compile-time user settings to macro?](https://discourse.julialang.org/t/how-to-pass-compile-time-user-settings-to-macro/73607)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 8\
**Last updated:** [December 27, 2021, 7:36pm UTC](https://discourse.julialang.org/t/how-to-pass-compile-time-user-settings-to-macro/73607 "2021-12-27T19:36:45Z")

</div>

I have a module that develops a kernel using a macro based on settings that a user provides. I need those settings to be compile time available, otherwise the macro won’t work. In this current example, I do this with con…

---

## [Random julia v 1.7](https://discourse.julialang.org/t/random-julia-v-1-7/73444)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 10\
**Last updated:** [December 27, 2021, 5:25pm UTC](https://discourse.julialang.org/t/random-julia-v-1-7/73444 "2021-12-27T17:25:02Z")

</div>

How to change the default random generator? this works: rng=Random.MersenneTwister(1); rand(rng) however, i prefer to use rand() instead of rand(rng). is it possible? this does not work Random.seed!(Random.MersenneT…

---

## [Copy codeblock contents to clipboard](https://discourse.julialang.org/t/copy-codeblock-contents-to-clipboard/73658)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 5:14pm UTC](https://discourse.julialang.org/t/copy-codeblock-contents-to-clipboard/73658 "2021-12-27T17:14:30Z")

</div>

Discourse has the ability to display a copy button for codeblocks - see here: Do we already have this feature? How do we do it? If not, could it be enabled?

---

## [VSCode Julia 1.7.1 MacOS (Rosetta) : cpu load 120%](https://discourse.julialang.org/t/vscode-julia-1-7-1-macos-rosetta-cpu-load-120/73679)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 3\
**Last updated:** [December 27, 2021, 2:39pm UTC](https://discourse.julialang.org/t/vscode-julia-1-7-1-macos-rosetta-cpu-load-120/73679 "2021-12-27T14:39:38Z")

</div>

Hi, I work on a small Julia project with the VSCode IDE. Everything works fine but I just noticed that the cpu temp increases and the perf monitor indicates 120% cpu load while no computation is running nor indexation …

---

## [Iterable collections any()](https://discourse.julialang.org/t/iterable-collections-any/73631)

<div class="topic-metadata">

**Author:** [@apoorvvyas52](https://discourse.julialang.org/u/apoorvvyas52)\
**Replies:** 4\
**Last updated:** [December 27, 2021, 2:36pm UTC](https://discourse.julialang.org/t/iterable-collections-any/73631 "2021-12-27T14:36:40Z")

</div>

‘’’ any(i → ( println(i);i \> 5),3:8) && println(“great”) ‘’’ output is : ​ 3 4 5 6 great ‘’’ any(i → ( println(i);i \> 5),3:8) || println(“great”) ‘’’ output is: 3 4 5 6 true Can anyone explain why is t…

---

## [Spot the error.. need help converting a c libturbojpeg example](https://discourse.julialang.org/t/spot-the-error-need-help-converting-a-c-libturbojpeg-example/32827)

<div class="topic-metadata">

**Author:** [@ianshmean](https://discourse.julialang.org/u/ianshmean)\
**Replies:** 7\
**Last updated:** [December 27, 2021, 12:37pm UTC](https://discourse.julialang.org/t/spot-the-error-need-help-converting-a-c-libturbojpeg-example/32827 "2021-12-27T12:37:17Z")

</div>

I’m trying to wrap this c example of libturbojpeg compression, but while tjCompress2() doesn’t error, its supposed to write into jpegBuf and set jpegSize to the length of jpegBuf but currently both are unchanged. It seem…

---

## [Working with wxWidgets](https://discourse.julialang.org/t/working-with-wxwidgets/73662)

<div class="topic-metadata">

**Author:** [@medanimohamedakram](https://discourse.julialang.org/u/medanimohamedakram)\
**Replies:** 3\
**Last updated:** [December 27, 2021, 9:35am UTC](https://discourse.julialang.org/t/working-with-wxwidgets/73662 "2021-12-27T09:35:20Z")

</div>

I’m trying to work on a gui app and using julia as the main language but i didn’t know how i could import the wxWidgets library what i did: i installed this https://github.com/JuliaBinaryWrappers/wxWidgets\_jll.jl and …

---

## [\`groups\` argument in Flux.Conv : a misunderstanding](https://discourse.julialang.org/t/groups-argument-in-flux-conv-a-misunderstanding/73641)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.julialang.org/u/sim)\
**Replies:** 4\
**Last updated:** [December 27, 2021, 8:50am UTC](https://discourse.julialang.org/t/groups-argument-in-flux-conv-a-misunderstanding/73641 "2021-12-27T08:50:23Z")

</div>

Hello, I want to define a convolutional layer in Flux.jl using the groups option. Ideally, I want to use Conv((1,1), 3=\>3, groups=3). For reference, the Flux.Conv documentation defines this argument as Keyword groups …

---

## [How can I create an interactive game with mutable states with Pluto](https://discourse.julialang.org/t/how-can-i-create-an-interactive-game-with-mutable-states-with-pluto/73672)

<div class="topic-metadata">

**Author:** [@melonedo](https://discourse.julialang.org/u/melonedo)\
**Replies:** 0\
**Last updated:** [December 27, 2021, 8:01am UTC](https://discourse.julialang.org/t/how-can-i-create-an-interactive-game-with-mutable-states-with-pluto/73672 "2021-12-27T08:01:45Z")

</div>

I would like to program an interactive game in a Pluto notebook by using elements from PlutoUI. The game consists of entering data in a TextField and then clicking the “confirm” button to proceed. The game also has a “re…

---

## [Nbdev.jl Alpha release](https://discourse.julialang.org/t/nbdev-jl-alpha-release/73669)

<div class="topic-metadata">

**Author:** [@satyabrata\_pal](https://discourse.julialang.org/u/satyabrata_pal)\
**Replies:** 0\
**Last updated:** [December 27, 2021, 6:21am UTC](https://discourse.julialang.org/t/nbdev-jl-alpha-release/73669 "2021-12-27T06:21:39Z")

</div>

I am happy to announce that I have released the Alpha version of Nbdev.jl. This project is an attempt to port fastai’s Nbdev to Julia. Nbdev (both the original version and the Julia version) is based on the idea of using…

---

## [Why I am getting TaskFailedException for package ParallelUtilities?](https://discourse.julialang.org/t/why-i-am-getting-taskfailedexception-for-package-parallelutilities/73556)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 4\
**Last updated:** [December 27, 2021, 5:11am UTC](https://discourse.julialang.org/t/why-i-am-getting-taskfailedexception-for-package-parallelutilities/73556 "2021-12-27T05:11:27Z")

</div>

I did not have much success using Threads.@threads to accelerate code execution. The code would sometimes run marginally faster and sometimes even slower. So now I am trying packages like ParallelUtilities that use the D…

---

## [Generator questions](https://discourse.julialang.org/t/generator-questions/73665)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 2:15am UTC](https://discourse.julialang.org/t/generator-questions/73665 "2021-12-27T02:15:38Z")

</div>

While poking around with the generator example below to try understanding the concept, some questions popped up: Why is the last equality false given that the generator was regenerated? With the command g.f(g.iter\[n\]),…

---

## [Block number conversion during bit operations](https://discourse.julialang.org/t/block-number-conversion-during-bit-operations/73640)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 2:15am UTC](https://discourse.julialang.org/t/block-number-conversion-during-bit-operations/73640 "2021-12-27T02:15:02Z")

</div>

Hello I am working on problem when I use UInt32 as a bitAttay of 32 entries - (I can not use Bitarray for some reasons) problem is that sometimes (once every couple hundred iterations) when I modify the first bit it lead…

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

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