# Latest

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

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

**Page:** 710

---

## [After 1.7.3, could not download registries (getaddrinfo() thread failed to start)](https://discourse.julialang.org/t/after-1-7-3-could-not-download-registries-getaddrinfo-thread-failed-to-start/81731)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 4:50pm UTC](https://discourse.julialang.org/t/after-1-7-3-could-not-download-registries-getaddrinfo-thread-failed-to-start/81731 "2022-05-26T16:50:04Z")

</div>

Upgraded to Julia 1.7.3. Thanks to all involved for the new release. Afterwards julia\> using Pkg julia\> Pkg.update() Updating registry at \`C:\\Users\\Audrius-St\\.julia\\registries\\General.toml\` ┌ Warning: could not d…

---

## [Why does the execution time of overlapping GPU and CPU computations not get faster after using the Mem.pin() function?](https://discourse.julialang.org/t/why-does-the-execution-time-of-overlapping-gpu-and-cpu-computations-not-get-faster-after-using-the-mem-pin-function/98257)

<div class="topic-metadata">

**Author:** [@fred\_wu](https://discourse.julialang.org/u/fred_wu)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 9:24am UTC](https://discourse.julialang.org/t/why-does-the-execution-time-of-overlapping-gpu-and-cpu-computations-not-get-faster-after-using-the-mem-pin-function/98257 "2023-05-05T09:24:53Z")

</div>

Hi, I have a question about using Mem.pin() function in GPU concurrent programming. According to my understanding, the GPU and CPU will block when copying data and cannot perform asynchronous operations. However, CPU bl…

---

## [A type of collection inside ()](https://discourse.julialang.org/t/a-type-of-collection-inside/98371)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 8:47am UTC](https://discourse.julialang.org/t/a-type-of-collection-inside/98371 "2023-05-05T08:47:03Z")

</div>

We know array comprehension, for example temp = \[i for i in collect(1:3)\] Instead of brackets I now use parentheses: temp = (i for i in collect(1:3)) This is not a tuple, so temp\[1\] cannot be called. Its type is “Bas…

---

## [Why does it make allocation when using tuples parameters in closure?](https://discourse.julialang.org/t/why-does-it-make-allocation-when-using-tuples-parameters-in-closure/98369)

<div class="topic-metadata">

**Author:** [@wly](https://discourse.julialang.org/u/wly)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 8:32am UTC](https://discourse.julialang.org/t/why-does-it-make-allocation-when-using-tuples-parameters-in-closure/98369 "2023-05-05T08:32:00Z")

</div>

The following code have some allocation: using BenchmarkTools function memoize\_test(n\_outputs) function foo\_i(i::Int64, u...) end return \[(u...) -\> foo\_i(i, u...) for i in 1:n\_outputs\] end fun = memoize\_te…

---

## [Maximum value for Julia integer types](https://discourse.julialang.org/t/maximum-value-for-julia-integer-types/98373)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 8:14am UTC](https://discourse.julialang.org/t/maximum-value-for-julia-integer-types/98373 "2023-05-05T08:14:11Z")

</div>

Julia Integer types have a minimum and maximum value. When calculations go beyond those boundaries, results are ‘incorrect’. for i in Int8\[5, 10, 15, 20\] println(i, " -\> ", i^2) end Result: 5 -\> 25 10 -\> 100 15 -\>…

---

## [Comparition of timing v1.9 vs v1.8 and how to get this precompilation in my own packages?](https://discourse.julialang.org/t/comparition-of-timing-v1-9-vs-v1-8-and-how-to-get-this-precompilation-in-my-own-packages/98372)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [May 5, 2023, 8:13am UTC](https://discourse.julialang.org/t/comparition-of-timing-v1-9-vs-v1-8-and-how-to-get-this-precompilation-in-my-own-packages/98372 "2023-05-05T08:13:58Z")

</div>

Just tested Julia v1.9rc3 and compared the timining to first plot with Julia 1.8 on a terminal under a new temporary project environment: Command Julia 1.9rc3 Julia 1.8 add Plots 2’ 32’’ 1’ 22’’ using Plots 3’…

---

## [Interactive plot data inspection with Makie (à la PlotlyJS)](https://discourse.julialang.org/t/interactive-plot-data-inspection-with-makie-a-la-plotlyjs/58095)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 17\
**Last updated:** [May 5, 2023, 7:43am UTC](https://discourse.julialang.org/t/interactive-plot-data-inspection-with-makie-a-la-plotlyjs/58095 "2023-05-05T07:43:01Z")

</div>

What’s the latest on being able to inspect data interactively in Makie? I mean something similar to what PlotlyJS has by default, where you can for example point the cursor at a point in a scatter plot and it will give y…

---

## [\`Missing Reference: \_\` using Chain.jl](https://discourse.julialang.org/t/missing-reference-using-chain-jl/98334)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 5\
**Last updated:** [May 5, 2023, 7:21am UTC](https://discourse.julialang.org/t/missing-reference-using-chain-jl/98334 "2023-05-05T07:21:32Z")

</div>

I have been enjoying using Chain.jl. However, the VSCode Linter’s Missing Reference check doesn’t like that it requires using the underscore symbol without declaring a value for it. Is there any workaround for these fals…

---

## [Big files placed in .config \[Linux\]](https://discourse.julialang.org/t/big-files-placed-in-config-linux/98258)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 6\
**Last updated:** [May 4, 2023, 11:51am UTC](https://discourse.julialang.org/t/big-files-placed-in-config-linux/98258 "2023-05-04T11:51:04Z")

</div>

I just made the following discovery: It looks like there is about 1GB from julialang in the .config folder, including a .so file. That does not feel right (I am cloud-syncing my .config). Anyone else who sees this as…

---

## [Is there a package for multidimensional ranges?](https://discourse.julialang.org/t/is-there-a-package-for-multidimensional-ranges/98355)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 6:48am UTC](https://discourse.julialang.org/t/is-there-a-package-for-multidimensional-ranges/98355 "2023-05-05T06:48:14Z")

</div>

Is there a convenience package for nonstandard ranges? For instance, I want a rectangle on the complex plane I could use rectangulardomain from RootsAndPoles but that feels pretty specific.

---

## [\[ANN\] OteraEngine.jl(Template Engine for Julia) version 0.2](https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia-version-0-2/98356)

<div class="topic-metadata">

**Author:** [@QGMW22](https://discourse.julialang.org/u/QGMW22)\
**Replies:** 0\
**Last updated:** [May 5, 2023, 1:22am UTC](https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia-version-0-2/98356 "2023-05-05T01:22:49Z")

</div>

Template Engine for Julia OteraEngine.jl is a template engine for Julia. I added new syntax like Jinja2 and this package got more useful! Here is an example: \<html\> \<head\>\<title\>MyPage\</title\>\</head\> \<body\> …

---

## [Chaining Custom Layers using Custom Signature](https://discourse.julialang.org/t/chaining-custom-layers-using-custom-signature/98357)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 6:01am UTC](https://discourse.julialang.org/t/chaining-custom-layers-using-custom-signature/98357 "2023-05-05T06:01:37Z")

</div>

Hi. Is there an idiomatic way of chaining layers in Flux when not all of the outputs of the previous layer pipe into the next layer. Unlike Flux.Chain which directly pipes all of the data, how can one create a custom lay…

---

## [Is startup.jl an acceptable place to store credentials for interactive scripts?](https://discourse.julialang.org/t/is-startup-jl-an-acceptable-place-to-store-credentials-for-interactive-scripts/98343)

<div class="topic-metadata">

**Author:** [@mkjohnson](https://discourse.julialang.org/u/mkjohnson)\
**Replies:** 6\
**Last updated:** [May 5, 2023, 5:56am UTC](https://discourse.julialang.org/t/is-startup-jl-an-acceptable-place-to-store-credentials-for-interactive-scripts/98343 "2023-05-05T05:56:28Z")

</div>

Hi ya’ll! I had a question about using startup.jl in the home directory (not the project) to store credentials as environment variables. I come from an R background, and I’m used to storing credentials in the .Renviron …

---

## [Why does Flux.Chain creates Exprs to get type stability?](https://discourse.julialang.org/t/why-does-flux-chain-creates-exprs-to-get-type-stability/98346)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 1:19am UTC](https://discourse.julialang.org/t/why-does-flux-chain-creates-exprs-to-get-type-stability/98346 "2023-05-05T01:19:15Z")

</div>

Hi. Upon trying to understand how Flux.Chains evaluates inputs, I saw the two following definitions: @generated function \_applychain(layers::Tuple{Vararg{Any,N}}, x) where {N} symbols = vcat(:x, \[gensym() for \_ in 1:N…

---

## [Failed to create a usable precompiled cache file for various packages](https://discourse.julialang.org/t/failed-to-create-a-usable-precompiled-cache-file-for-various-packages/98353)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 12:38am UTC](https://discourse.julialang.org/t/failed-to-create-a-usable-precompiled-cache-file-for-various-packages/98353 "2023-05-05T00:38:21Z")

</div>

I am trying to run some jobs on my work cluster of the form: ‘’’ julia -t 8 my\_code.jl i ‘’‘’ i is an integer between 1 to 12. I keep getting this error: Failed to create a usable precompiled cache file for Multiva…

---

## [Matrix division \`\\\` vs compute by hand, why such big difference?](https://discourse.julialang.org/t/matrix-division-vs-compute-by-hand-why-such-big-difference/98288)

<div class="topic-metadata">

**Author:** [@maxchendt](https://discourse.julialang.org/u/maxchendt)\
**Replies:** 0\
**Last updated:** [May 4, 2023, 1:32am UTC](https://discourse.julialang.org/t/matrix-division-vs-compute-by-hand-why-such-big-difference/98288 "2023-05-04T01:32:47Z")

</div>

In the following example, it seems that the Matrix division \\ does not provide an intended computation. Let x= A'\\b, then if norm(A'\*x-b, Inf) is zero such that A'x-b == 0, then b is a linear combination of rows from A …

---

## ["Cfunction: closures are not supported on this platform" error for barplot?](https://discourse.julialang.org/t/cfunction-closures-are-not-supported-on-this-platform-error-for-barplot/98281)

<div class="topic-metadata">

**Author:** [@julia2kx](https://discourse.julialang.org/u/julia2kx)\
**Replies:** 5\
**Last updated:** [May 4, 2023, 11:16pm UTC](https://discourse.julialang.org/t/cfunction-closures-are-not-supported-on-this-platform-error-for-barplot/98281 "2023-05-04T23:16:07Z")

</div>

Got the error “cfunction: closures are not supported on this platform” fig2 = Figure((6, 4), “in”) 2 xs = \[“1”, “2”, “3”, “4”, “5”, “6”, “7”\] 3 barplot(xs, drdp\[end, :\], dpi=300) 4 ylim((0, 1)) 5 ylabel(“Degree of R…

---

## [Stipple: Reactive data dashboards with Julia \[WIP\]](https://discourse.julialang.org/t/stipple-reactive-data-dashboards-with-julia-wip/37291)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 92\
**Last updated:** [March 23, 2023, 5:38pm UTC](https://discourse.julialang.org/t/stipple-reactive-data-dashboards-with-julia-wip/37291 "2023-03-23T17:38:36Z")

</div>

I wanted to show a quick teaser of an early prototype of reactive UIs with Julia and ask for some early feedback on the API/look-and-feel. This is a data table component that I’m currently working on (two-way reactive fo…

---

## [Is there a more efficient way to compute the log-density of a Multivariate normal with a Symmetric Woodbury Covariance?](https://discourse.julialang.org/t/is-there-a-more-efficient-way-to-compute-the-log-density-of-a-multivariate-normal-with-a-symmetric-woodbury-covariance/98336)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 9:12pm UTC](https://discourse.julialang.org/t/is-there-a-more-efficient-way-to-compute-the-log-density-of-a-multivariate-normal-with-a-symmetric-woodbury-covariance/98336 "2023-05-04T21:12:13Z")

</div>

Suppose that I have \\mathbf{y}\\sim N(\\boldsymbol{\\mu}, \\mathbf{A} + \\mathbf{UCU'}), where \\mathbf{A} and \\mathbf{C} are diagonal matrices. Fortunately, the covariance term follows the pattern of a sparse symmetric Woodb…

---

## [Callback function in IPOP for catching inner iterations](https://discourse.julialang.org/t/callback-function-in-ipop-for-catching-inner-iterations/98246)

<div class="topic-metadata">

**Author:** [@Annaquest](https://discourse.julialang.org/u/Annaquest)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 9:02pm UTC](https://discourse.julialang.org/t/callback-function-in-ipop-for-catching-inner-iterations/98246 "2023-05-04T21:02:03Z")

</div>

Hi, I am currently using a callback function to get the number of inner iterations. Firstly, I have this: set\_optimizer\_attributes(model, “mu\_target” =\> μ, “mu\_init” =\> μ); Where μ is updated outside of IPOPT ( I hav…

---

## [Long stack trace, identify precise error location](https://discourse.julialang.org/t/long-stack-trace-identify-precise-error-location/98285)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 17\
**Last updated:** [May 4, 2023, 8:37pm UTC](https://discourse.julialang.org/t/long-stack-trace-identify-precise-error-location/98285 "2023-05-04T20:37:12Z")

</div>

I am trying to solve a UODE where the neural network uses a tensor-basis neural net. Here are the first few lines of my stack trace (the details are not important since I am not asking you to debug my code :slight\_smile: …

---

## [LSP and EMACS and VSCode and Sublime Text: why the differences?](https://discourse.julialang.org/t/lsp-and-emacs-and-vscode-and-sublime-text-why-the-differences/98339)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 4\
**Last updated:** [May 4, 2023, 8:30pm UTC](https://discourse.julialang.org/t/lsp-and-emacs-and-vscode-and-sublime-text-why-the-differences/98339 "2023-05-04T20:30:03Z")

</div>

It seems to me that there are plenty of examples of the Julia LSP not working right. I’m aware of VSCode and Sublime Text as not being quite able to make the LSP work. What I wonder is: does it work for Emacs users? One …

---

## [Predicting a Successful Mt Everest Climb with Julia](https://discourse.julialang.org/t/predicting-a-successful-mt-everest-climb-with-julia/98341)

<div class="topic-metadata">

**Author:** [@dm13450](https://discourse.julialang.org/u/dm13450)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 8:24pm UTC](https://discourse.julialang.org/t/predicting-a-successful-mt-everest-climb-with-julia/98341 "2023-05-04T20:24:01Z")

</div>

I’ve written about using MLJ.jl and the Himalayan Database to try and predict a successful Mt Everest climb. Check it out here: Predicting a Successful Mt Everest Climb | Dean Markwick

---

## [MongoDB Atlas](https://discourse.julialang.org/t/mongodb-atlas/44250)

<div class="topic-metadata">

**Author:** [@patber](https://discourse.julialang.org/u/patber)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 8:14pm UTC](https://discourse.julialang.org/t/mongodb-atlas/44250 "2023-05-04T20:14:40Z")

</div>

I’m trying out julia and need to connect to a mongoDB Atlas instance to continue, any pointers on how to do that in julia, thx!

---

## [Request help on PATHSolver.jl](https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335)

<div class="topic-metadata">

**Author:** [@Shailesh](https://discourse.julialang.org/u/Shailesh)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 7:54pm UTC](https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335 "2023-05-04T19:54:39Z")

</div>

Hi, I wanted to solve complementarity problem using PATHSolver, and kept getting the error: “could not load library “./julia/datadeps/libpath50/libpath50.dylib” dlopen(.julia/datadeps/libpath50/libpath50.dylib, 0x0001…

---

## [Bitmap arrays: RoaringBitmap, not yet wrapped for Julia](https://discourse.julialang.org/t/bitmap-arrays-roaringbitmap-not-yet-wrapped-for-julia/98340)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [May 4, 2023, 7:05pm UTC](https://discourse.julialang.org/t/bitmap-arrays-roaringbitmap-not-yet-wrapped-for-julia/98340 "2023-05-04T19:05:01Z")

</div>

Bitmaps have some pitfalls, either bits take 8x the storage, stored in a byte, or you have false sharing and problems with threads (I understand the container in C++ considered buggy, and in Julia likely in the same way)…

---

## [How to efficiently save and read dictionaries in Julia?](https://discourse.julialang.org/t/how-to-efficiently-save-and-read-dictionaries-in-julia/98337)

<div class="topic-metadata">

**Author:** [@F\_A](https://discourse.julialang.org/u/F_A)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 7:02pm UTC](https://discourse.julialang.org/t/how-to-efficiently-save-and-read-dictionaries-in-julia/98337 "2023-05-04T19:02:43Z")

</div>

Hi, I’d like to save a dictionary to a file with more than 12500 entries. I’ve read some suggestion here and here. But I was wondering whether these are the most efficient way to do so? Thanks a lot.

---

## [\`StatsBase\` restricted from upgrading due to compatability constraints](https://discourse.julialang.org/t/statsbase-restricted-from-upgrading-due-to-compatability-constraints/98211)

<div class="topic-metadata">

**Author:** [@Debartha\_Paul](https://discourse.julialang.org/u/Debartha_Paul)\
**Replies:** 7\
**Last updated:** [May 4, 2023, 6:46pm UTC](https://discourse.julialang.org/t/statsbase-restricted-from-upgrading-due-to-compatability-constraints/98211 "2023-05-04T18:46:03Z")

</div>

I noticed that StatsBase received a version bump to 0.34.0 from 0.33.21 (was earlier from 0.33.22). I tried to update all of my packages to the latest release, but StatsBase didn’t get updated. Here’s my \]st after updati…

---

## [How to do xor(all bits from an Integer) efficiently?](https://discourse.julialang.org/t/how-to-do-xor-all-bits-from-an-integer-efficiently/98338)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 6:35pm UTC](https://discourse.julialang.org/t/how-to-do-xor-all-bits-from-an-integer-efficiently/98338 "2023-05-04T18:35:47Z")

</div>

For example, I want a function fun such that fun(0b0101) = xor(false, true, false, true) A solution for Int64 would be sufficient. Solutions for short integers are more welcome.

---

## [What's the most performant way to return some bit of an Int in Bool?](https://discourse.julialang.org/t/whats-the-most-performant-way-to-return-some-bit-of-an-int-in-bool/98184)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 6\
**Last updated:** [May 4, 2023, 6:27pm UTC](https://discourse.julialang.org/t/whats-the-most-performant-way-to-return-some-bit-of-an-int-in-bool/98184 "2023-05-04T18:27:17Z")

</div>

Shifting left and right takes two operations and the result needs to be converted. Is there a method with one operation or that can skip the conversion?

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

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