# Latest

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

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

**Page:** 899

---

## [Cub library functions in cuda.jl](https://discourse.julialang.org/t/cub-library-functions-in-cuda-jl/88476)

<div class="topic-metadata">

**Author:** [@nethaji8](https://discourse.julialang.org/u/nethaji8)\
**Replies:** 5\
**Last updated:** [October 11, 2022, 5:02pm UTC](https://discourse.julialang.org/t/cub-library-functions-in-cuda-jl/88476 "2022-10-11T17:02:02Z")

</div>

Hi everyone, I am trying to implement block-level reduction operations in the Cuda Julia kernel. Does Julia has “cub” kind of device-level functions…? How can I use the cub library device intrinsics for the following …

---

## [\[Makie\] Observables, Animations, & an annoying plot workflow](https://discourse.julialang.org/t/makie-observables-animations-an-annoying-plot-workflow/88574)

<div class="topic-metadata">

**Author:** [@AstroBarker](https://discourse.julialang.org/u/AstroBarker)\
**Replies:** 6\
**Last updated:** [October 11, 2022, 4:45pm UTC](https://discourse.julialang.org/t/makie-observables-animations-an-annoying-plot-workflow/88574 "2022-10-11T16:45:42Z")

</div>

Hey folks, I’m slowly getting used to Makie and the animations workflow. I am currently trying to make an animation of a 2D surface plot (quite similar to the use case here. I learned that my workflow was slow because I…

---

## [Conformal Predictive distributions](https://discourse.julialang.org/t/conformal-predictive-distributions/88067)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 21\
**Last updated:** [October 11, 2022, 4:36pm UTC](https://discourse.julialang.org/t/conformal-predictive-distributions/88067 "2022-10-11T16:36:04Z")

</div>

Note: this is updated code (corrects bugs in previous versions) Recently, there has been a rise in interest in “prior-free posterior distributions”. There is a related neat new package ConformalPrediction.jl (by @pat-a…

---

## [Speeding up repetitive calls to ODEProblem](https://discourse.julialang.org/t/speeding-up-repetitive-calls-to-odeproblem/87644)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 11\
**Last updated:** [October 11, 2022, 3:41pm UTC](https://discourse.julialang.org/t/speeding-up-repetitive-calls-to-odeproblem/87644 "2022-10-11T15:41:49Z")

</div>

Hey ODE people. Thanks for all the mind-bending great work on top-of-the-line packages. I have stupid code solving the same ODE with different boundary conditions thousands of times. Unfortunately for this use case, thi…

---

## [What is the fastest way to obtain an infinity of the correct type?](https://discourse.julialang.org/t/what-is-the-fastest-way-to-obtain-an-infinity-of-the-correct-type/88579)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 3:03pm UTC](https://discourse.julialang.org/t/what-is-the-fastest-way-to-obtain-an-infinity-of-the-correct-type/88579 "2022-10-11T15:03:06Z")

</div>

This is related to Analogue of zero(T) for infinitiy - #5 by rdeits, but the suggestion T(Inf) isn’t as fast as expected. In particular, julia\> @btime convert(Float16, $(Ref(Inf))\[\]); 9.205 ns (0 allocations: 0 byte…

---

## [Slider in scatter plot adds new layers but doesnt delete old ones](https://discourse.julialang.org/t/slider-in-scatter-plot-adds-new-layers-but-doesnt-delete-old-ones/88508)

<div class="topic-metadata">

**Author:** [@candidaorelmex](https://discourse.julialang.org/u/candidaorelmex)\
**Replies:** 6\
**Last updated:** [October 11, 2022, 2:25pm UTC](https://discourse.julialang.org/t/slider-in-scatter-plot-adds-new-layers-but-doesnt-delete-old-ones/88508 "2022-10-11T14:25:16Z")

</div>

I would like to turn information in a dataframe into a scatterplot which I can filter with help of sliders. What I came up with is this: using Makie, GLMakie fig = Figure() # initialize canvas plot = Axis(fig\[1, 1\]) #…

---

## [Documentation: how should names be qualified?](https://discourse.julialang.org/t/documentation-how-should-names-be-qualified/88529)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 1:47pm UTC](https://discourse.julialang.org/t/documentation-how-should-names-be-qualified/88529 "2022-10-11T13:47:59Z")

</div>

There seem to be different styles in the documentation regarding qualified names. For example, the docstring for Threads.foreach describes the functions as Threads.foreach(f, channel::Channel; schedule::…

---

## [Documentation: how to add cross-references to functions in other modules?](https://discourse.julialang.org/t/documentation-how-to-add-cross-references-to-functions-in-other-modules/88504)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 1:14pm UTC](https://discourse.julialang.org/t/documentation-how-to-add-cross-references-to-functions-in-other-modules/88504 "2022-10-11T13:14:29Z")

</div>

I’m trying to add cross-references to some Julia docstrings, but I’m running into problems. Take for example the docstring for Base.@sync in base/task.jl (shortened): """ @sync Wait until all lexically-enclosed use…

---

## [Approaches to store a \`MIME\` type \*with\* a regular \`String\` for show() et'al?](https://discourse.julialang.org/t/approaches-to-store-a-mime-type-with-a-regular-string-for-show-etal/88528)

<div class="topic-metadata">

**Author:** [@a2m0](https://discourse.julialang.org/u/a2m0)\
**Replies:** 4\
**Last updated:** [October 11, 2022, 1:04pm UTC](https://discourse.julialang.org/t/approaches-to-store-a-mime-type-with-a-regular-string-for-show-etal/88528 "2022-10-11T13:04:42Z")

</div>

I found using multiple dispatch with show(io::IO, ::MIME"text/plain", ::T) quite handy. This seems to work like magic – that is, if you have your own types for show()'s dispatch. But if ::T arrives at show() as String,…

---

## [Why Julia can be faster than C?](https://discourse.julialang.org/t/why-julia-can-be-faster-than-c/88573)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 12:06pm UTC](https://discourse.julialang.org/t/why-julia-can-be-faster-than-c/88573 "2022-10-11T12:06:17Z")

</div>

To esitimate Pi with using Monte Calo: C version: #include \<stdlib.h\> #include \<stdio.h\> #include \<chrono\> #include \<array\> #define N\_POINTS 10000000 #define N\_REPEATS 5 float estimate\_pi(int n\_points) { double x,…

---

## [Findmin/max and generators](https://discourse.julialang.org/t/findmin-max-and-generators/88473)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 13\
**Last updated:** [October 11, 2022, 11:18am UTC](https://discourse.julialang.org/t/findmin-max-and-generators/88473 "2022-10-11T11:18:52Z")

</div>

I noticed the following oddity println(findmin(identity, x for x in \[3, 2, 1\])) println(findmin(identity, x for x in \[3, 2, 1\] if x != 1)) showing (1, 3) ERROR: MethodError: no method matching keys(::Base.Iterators.Fi…

---

## [OpenStreetMapX, folium](https://discourse.julialang.org/t/openstreetmapx-folium/88563)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 11:24am UTC](https://discourse.julialang.org/t/openstreetmapx-folium/88563 "2022-10-11T11:24:06Z")

</div>

I’m not sure this is the right place to post this but I’m trying to accomplish something like this: OpenStreetMapX\_tutorial but with real coordinates. Anyways, my problems is that the end result of the loop map = flm.M…

---

## [Sketching Phase Portrait in Julia](https://discourse.julialang.org/t/sketching-phase-portrait-in-julia/88441)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 6\
**Last updated:** [October 11, 2022, 10:51am UTC](https://discourse.julialang.org/t/sketching-phase-portrait-in-julia/88441 "2022-10-11T10:51:30Z")

</div>

Dear All, I watch this on youtube tutorial and wonder can Julia plot phase portrait from a matrix? I also try the LinearAlgebra and why does the eigenvectors different from the tutorial? this is my cod…

---

## [Regex on an Expr](https://discourse.julialang.org/t/regex-on-an-expr/88560)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 10:50am UTC](https://discourse.julialang.org/t/regex-on-an-expr/88560 "2022-10-11T10:50:14Z")

</div>

Hi! Within the program I have coded, I arrived at a place where I have the following Expr: ex = :(Float64\[32\]) Is there any way to extract the number within brackets without doing ex\_str = String(Symbol(ex)) num = ma…

---

## [Efficiently access data that changes rarely](https://discourse.julialang.org/t/efficiently-access-data-that-changes-rarely/88564)

<div class="topic-metadata">

**Author:** [@braeburn](https://discourse.julialang.org/u/braeburn)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 10:27am UTC](https://discourse.julialang.org/t/efficiently-access-data-that-changes-rarely/88564 "2022-10-11T10:27:07Z")

</div>

Hey. I want to run some simulations depending on weather forecasts. The data is used very often so access is performance critical. It also may change, even though this only happens whenever a new forecast is available. I…

---

## [Juniper doesn't seem to be using all available threads](https://discourse.julialang.org/t/juniper-doesnt-seem-to-be-using-all-available-threads/88568)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 10:14am UTC](https://discourse.julialang.org/t/juniper-doesnt-seem-to-be-using-all-available-threads/88568 "2022-10-11T10:14:19Z")

</div>

I run Julia with 8 threads, as verified by Threads.nthreads(), but when I try to solve a problem using Juniper I get the warning Julia was started with less processors than you defined in your options. Start julia with: …

---

## [Large optimal control problems in Julia](https://discourse.julialang.org/t/large-optimal-control-problems-in-julia/88566)

<div class="topic-metadata">

**Author:** [@Kieran\_Marray](https://discourse.julialang.org/u/Kieran_Marray)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 10:05am UTC](https://discourse.julialang.org/t/large-optimal-control-problems-in-julia/88566 "2022-10-11T10:05:34Z")

</div>

I am trying to set up and solve a large (10/20 control variables, and approx 20,000 state variables following ODE constraints) optimal control problem with non-linear constraints in Julia using the IPOPT solver. Is there…

---

## [Roots Package Resulting in Different Roots if adding another zeros to interval](https://discourse.julialang.org/t/roots-package-resulting-in-different-roots-if-adding-another-zeros-to-interval/88551)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 9:43am UTC](https://discourse.julialang.org/t/roots-package-resulting-in-different-roots-if-adding-another-zeros-to-interval/88551 "2022-10-11T09:43:59Z")

</div>

Hi all, I am trying to find roots of this equation: 490x + 2450 e^{-x/50} - 2450 = 0 I use this code: using Roots f(x) = 490x + 2450\*(exp(-x/50)) - 2450 find\_zeros(f, -1000,1000000000) the results are 2-element Ve…

---

## [Help locating CI falure reason](https://discourse.julialang.org/t/help-locating-ci-falure-reason/88565)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [October 11, 2022, 9:38am UTC](https://discourse.julialang.org/t/help-locating-ci-falure-reason/88565 "2022-10-11T09:38:35Z")

</div>

I have created a package called EasyFFTs.jl. This workflow shows the following error on line 119: ERROR: LoadError: ArgumentError: Package Base does not have EasyFFTs in its dependencies: - You may have a partially inst…

---

## [Howto resolve a module or a field by its full name](https://discourse.julialang.org/t/howto-resolve-a-module-or-a-field-by-its-full-name/88550)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 0\
**Last updated:** [October 11, 2022, 4:24am UTC](https://discourse.julialang.org/t/howto-resolve-a-module-or-a-field-by-its-full-name/88550 "2022-10-11T04:24:24Z")

</div>

Hi, I am looking for a way to resolve a module or a field by its full name I have not found anything in Base (reflection.jl etc.) Is there anything recommended ? more than my own version there : field(qname::Tuple{Sy…

---

## [Expand symbolic expression](https://discourse.julialang.org/t/expand-symbolic-expression/88544)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 3:40am UTC](https://discourse.julialang.org/t/expand-symbolic-expression/88544 "2022-10-11T03:40:52Z")

</div>

x₁\*(2x₁ + 6x₂) + x₂\*(6x₁ + 7x₂) How can I expand this into (2x₁^2 + 12x₁\*x₂ + 7x₂) ?

---

## [Generate line function data with noise](https://discourse.julialang.org/t/generate-line-function-data-with-noise/88548)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 1\
**Last updated:** [October 11, 2022, 3:20am UTC](https://discourse.julialang.org/t/generate-line-function-data-with-noise/88548 "2022-10-11T03:20:17Z")

</div>

I would like to assess one dimension reduction method on simulation data. Besides totally random data, I want to simulate a partial random dataset. Right now I can think of one method to generate such data rand2 = colle…

---

## [New to Julia / lost in translation / how to index a simple 2d-array of strings](https://discourse.julialang.org/t/new-to-julia-lost-in-translation-how-to-index-a-simple-2d-array-of-strings/88537)

<div class="topic-metadata">

**Author:** [@fins](https://discourse.julialang.org/u/fins)\
**Replies:** 7\
**Last updated:** [October 11, 2022, 2:38am UTC](https://discourse.julialang.org/t/new-to-julia-lost-in-translation-how-to-index-a-simple-2d-array-of-strings/88537 "2022-10-11T02:38:48Z")

</div>

Hi, I’ve (very recently) started with julia and decided I would migrate my (java-) chess-engine to julia. Installation of the environment and ide (vs code) has been pretty smooth and I like working in the repl, which n…

---

## [Work array for parallel loop](https://discourse.julialang.org/t/work-array-for-parallel-loop/88546)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 2:00am UTC](https://discourse.julialang.org/t/work-array-for-parallel-loop/88546 "2022-10-11T02:00:08Z")

</div>

I’m investigating parallelization of some loops in an older code of mine. The structure is like this: work\_vector = zeros(small\_size) for i = 1 : big\_size x = big\_vector1\[i\] # ... # compute y from x using w…

---

## [Juliaup appears to have corrupted julia language server information for vscode](https://discourse.julialang.org/t/juliaup-appears-to-have-corrupted-julia-language-server-information-for-vscode/88545)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 1:51am UTC](https://discourse.julialang.org/t/juliaup-appears-to-have-corrupted-julia-language-server-information-for-vscode/88545 "2022-10-11T01:51:05Z")

</div>

I have been using vscode successfully with Julia on linux for years. OS VersionJulia Version 1.8.2 Commit 36034abf260 (2022-09-29 15:21 UTC) Platform Info: OS: Linux (x86\_64-linux-gnu) CPU: 128 × AMD EPYC 7702P 64-C…

---

## [Efficient way to get the JuMP.value of all variables in a JuMP.Model?](https://discourse.julialang.org/t/efficient-way-to-get-the-jump-value-of-all-variables-in-a-jump-model/88539)

<div class="topic-metadata">

**Author:** [@nlaws](https://discourse.julialang.org/u/nlaws)\
**Replies:** 7\
**Last updated:** [October 11, 2022, 1:01am UTC](https://discourse.julialang.org/t/efficient-way-to-get-the-jump-value-of-all-variables-in-a-jump-model/88539 "2022-10-11T01:01:01Z")

</div>

I wrote a method to get all the variable values in a JuMP Model: function get\_results\_dict(m::JuMP.Model) av = JuMP.all\_variables(m); d = Dict() for v in av # special handling of time series, sub-in…

---

## [Sparse matrix and sparse subarray subtraction returns full arrays](https://discourse.julialang.org/t/sparse-matrix-and-sparse-subarray-subtraction-returns-full-arrays/88239)

<div class="topic-metadata">

**Author:** [@vivian-rogers](https://discourse.julialang.org/u/vivian-rogers)\
**Replies:** 6\
**Last updated:** [October 11, 2022, 12:24am UTC](https://discourse.julialang.org/t/sparse-matrix-and-sparse-subarray-subtraction-returns-full-arrays/88239 "2022-10-11T00:24:49Z")

</div>

Hi! So, I am writing a routine to recursively invert a big, sparse matrix which is known to be nice and reasonably invertible with this recursive method. Specifically, this pertains to the green’s function of a sparse ha…

---

## [How to generate nonnegtive integer array with fixed row sums and column sums](https://discourse.julialang.org/t/how-to-generate-nonnegtive-integer-array-with-fixed-row-sums-and-column-sums/88082)

<div class="topic-metadata">

**Author:** [@ChingLinHuang](https://discourse.julialang.org/u/ChingLinHuang)\
**Replies:** 9\
**Last updated:** [October 10, 2022, 11:21pm UTC](https://discourse.julialang.org/t/how-to-generate-nonnegtive-integer-array-with-fixed-row-sums-and-column-sums/88082 "2022-10-10T23:21:37Z")

</div>

I am trying to randomly generate arrays with given row sums and column sums. The elements in the array should be nonnegative integers. Originally, I wanted to enumerate all the combinations and later filter out those tha…

---

## [Semidefinite programming with BigFloat](https://discourse.julialang.org/t/semidefinite-programming-with-bigfloat/88513)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [October 10, 2022, 11:09pm UTC](https://discourse.julialang.org/t/semidefinite-programming-with-bigfloat/88513 "2022-10-10T23:09:52Z")

</div>

I’m looking at the package SDPAFamily.jl which provides access to arbitrary-precision semidefinite programming solvers. The README says that the JuMP interface does not support BigFloat. Is it still possible to somehow u…

---

## [VS Code crashes and Ubuntu freezes when starting Julia Language Server](https://discourse.julialang.org/t/vs-code-crashes-and-ubuntu-freezes-when-starting-julia-language-server/88541)

<div class="topic-metadata">

**Author:** [@lbonaldo](https://discourse.julialang.org/u/lbonaldo)\
**Replies:** 0\
**Last updated:** [October 10, 2022, 10:57pm UTC](https://discourse.julialang.org/t/vs-code-crashes-and-ubuntu-freezes-when-starting-julia-language-server/88541 "2022-10-10T22:57:39Z")

</div>

Hi all! I have been using Julia and Julia VS Code extension for years without issues. However, recently, whenever I run VS Code on my Ubuntu machine (18.04), the extension tries to start the Julia Language Server and do…

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

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