# Latest

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

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

**Page:** 785

---

## [Eliminating of consecutive columns with the same values, in two separate vectors with same length and dependant on that accordingly for for a third vector with same length](https://discourse.julialang.org/t/eliminating-of-consecutive-columns-with-the-same-values-in-two-separate-vectors-with-same-length-and-dependant-on-that-accordingly-for-for-a-third-vector-with-same-length/94422)

<div class="topic-metadata">

**Author:** [@ratwolf](https://discourse.julialang.org/u/ratwolf)\
**Replies:** 9\
**Last updated:** [February 11, 2023, 7:11am UTC](https://discourse.julialang.org/t/eliminating-of-consecutive-columns-with-the-same-values-in-two-separate-vectors-with-same-length-and-dependant-on-that-accordingly-for-for-a-third-vector-with-same-length/94422 "2023-02-11T07:11:20Z")

</div>

eliminating of consecutive columns with the same values, in two separate vectors with same length and dependant on that accordingly for for a third vector with same length. Example: x = \[1, 2, 3, 2, 4, 5, 6, 3, 7…\] y…

---

## [Node.js 12 actions deprecation warning on github](https://discourse.julialang.org/t/node-js-12-actions-deprecation-warning-on-github/88718)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 2\
**Last updated:** [February 11, 2023, 5:46am UTC](https://discourse.julialang.org/t/node-js-12-actions-deprecation-warning-on-github/88718 "2023-02-11T05:46:05Z")

</div>

In several CI runs, I see a warning like Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. …

---

## [Reactive UI that does not stop tasks after page refresh/close](https://discourse.julialang.org/t/reactive-ui-that-does-not-stop-tasks-after-page-refresh-close/94455)

<div class="topic-metadata">

**Author:** [@wiseac](https://discourse.julialang.org/u/wiseac)\
**Replies:** 0\
**Last updated:** [February 11, 2023, 5:33am UTC](https://discourse.julialang.org/t/reactive-ui-that-does-not-stop-tasks-after-page-refresh-close/94455 "2023-02-11T05:33:40Z")

</div>

Hello, I’m trying to get into using a reactive web ui like Stipple.jl to create a Web UI that can control an analytical instrument. My main problem is i do not know how to keep a function running on the backend when the…

---

## [How to pass all the variables defined within a function to a nested function?](https://discourse.julialang.org/t/how-to-pass-all-the-variables-defined-within-a-function-to-a-nested-function/94418)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 3\
**Last updated:** [February 11, 2023, 4:11am UTC](https://discourse.julialang.org/t/how-to-pass-all-the-variables-defined-within-a-function-to-a-nested-function/94418 "2023-02-11T04:11:41Z")

</div>

Hi there, I am trying to pass all the variables defined within a function (say foo) to a nested function (say bar) as arguments. Something along the lines of function foo(arg1, arg2; kwarg1=1, kwarg2=2) # do somet…

---

## [VS Code Linting missingref on my own package](https://discourse.julialang.org/t/vs-code-linting-missingref-on-my-own-package/94450)

<div class="topic-metadata">

**Author:** [@graphitical](https://discourse.julialang.org/u/graphitical)\
**Replies:** 0\
**Last updated:** [February 11, 2023, 1:53am UTC](https://discourse.julialang.org/t/vs-code-linting-missingref-on-my-own-package/94450 "2023-02-11T01:53:20Z")

</div>

I’m writing my own package using VS Code and when I go to write some minor programs in a scripts folder I get a missingref warning for my own package. Other people have posted about this, but I can’t seem to use their so…

---

## [How do I choose between QuadGK and Cubature when I do singular integral of a complex-valued function?](https://discourse.julialang.org/t/how-do-i-choose-between-quadgk-and-cubature-when-i-do-singular-integral-of-a-complex-valued-function/94198)

<div class="topic-metadata">

**Author:** [@f1974939505](https://discourse.julialang.org/u/f1974939505)\
**Replies:** 4\
**Last updated:** [February 11, 2023, 1:10am UTC](https://discourse.julialang.org/t/how-do-i-choose-between-quadgk-and-cubature-when-i-do-singular-integral-of-a-complex-valued-function/94198 "2023-02-11T01:10:23Z")

</div>

A simple example is f(x) = 1 / (x + im\*10^(-6)) and calculate the integral of f(x) from -1 to 1. How do I write the Julia code? Note that I don’t want to substitute f(x) with a delta function here.

---

## [What causes this performance loss when using value types?](https://discourse.julialang.org/t/what-causes-this-performance-loss-when-using-value-types/94065)

<div class="topic-metadata">

**Author:** [@akrishnamoorthy](https://discourse.julialang.org/u/akrishnamoorthy)\
**Replies:** 3\
**Last updated:** [February 10, 2023, 11:50pm UTC](https://discourse.julialang.org/t/what-causes-this-performance-loss-when-using-value-types/94065 "2023-02-10T23:50:42Z")

</div>

The following are two implementations of the factorial function: fact1(n) = fact1(Val(n)) fact1(::Val{n}) where {n} = n\*fact1(Val(n-1)) fact1(::Val{1}) = 1 and fact2(n) = n==1 ? 1 : n\*fact2(n-1) This may be subjectiv…

---

## ["static" autodiff](https://discourse.julialang.org/t/static-autodiff/94392)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 13\
**Last updated:** [February 10, 2023, 11:06pm UTC](https://discourse.julialang.org/t/static-autodiff/94392 "2023-02-10T23:06:13Z")

</div>

Hey, Is there a way to have an autodiff system such as forwarddiff “write out” the dual version of a piece of code for further manual optimisation ? The function to derivate is not that complicated, but derivating it b…

---

## [Initial conditions as functions of parameters in ModelingToolkit?](https://discourse.julialang.org/t/initial-conditions-as-functions-of-parameters-in-modelingtoolkit/94438)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 10:23pm UTC](https://discourse.julialang.org/t/initial-conditions-as-functions-of-parameters-in-modelingtoolkit/94438 "2023-02-10T22:23:32Z")

</div>

Hi everyone, Is it possible to have initial conditions as functions of the parameters in ModelingToolkit?

---

## [Vectorization heuristics are hard! Is there a way to ask/get more information to/from the compiler/LLVM about loop vectorization](https://discourse.julialang.org/t/vectorization-heuristics-are-hard-is-there-a-way-to-ask-get-more-information-to-from-the-compiler-llvm-about-loop-vectorization/94432)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 10:11pm UTC](https://discourse.julialang.org/t/vectorization-heuristics-are-hard-is-there-a-way-to-ask-get-more-information-to-from-the-compiler-llvm-about-loop-vectorization/94432 "2023-02-10T22:11:21Z")

</div>

In the PR below, we have made a lot of progress speeding up isascii with something as simple as essentially: (which is faster than using UInt64) function \_isascii(cu::AbstractVector{CU}, first, last) where {CU} r = …

---

## [Converting row major to column major in 3 (or more) dimensions](https://discourse.julialang.org/t/converting-row-major-to-column-major-in-3-or-more-dimensions/94434)

<div class="topic-metadata">

**Author:** [@Robert\_Aronoff](https://discourse.julialang.org/u/Robert_Aronoff)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 10:05pm UTC](https://discourse.julialang.org/t/converting-row-major-to-column-major-in-3-or-more-dimensions/94434 "2023-02-10T22:05:06Z")

</div>

I have a use case where I receive an array (pointer) back from a C library. The C array is converted to a Julia array with unsafe\_wrap. Every thing is fine with 1 and 2 dimensional arrays. Unsafe\_wrap assumes the sourc…

---

## [What's using up so much memory?](https://discourse.julialang.org/t/whats-using-up-so-much-memory/69712)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 12\
**Last updated:** [February 10, 2023, 8:53pm UTC](https://discourse.julialang.org/t/whats-using-up-so-much-memory/69712 "2023-02-10T20:53:19Z")

</div>

After loading some data into a DataFrame using LibPQ, I can see from htop that the Julia process is using 9.5 GB of resident memory, which doesn’t shrink even after running the garbage collector. I only have 1.2 GB of v…

---

## [CodeCov doesn't see @recipe macro](https://discourse.julialang.org/t/codecov-doesnt-see-recipe-macro/94433)

<div class="topic-metadata">

**Author:** [@jared711](https://discourse.julialang.org/u/jared711)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 8:44pm UTC](https://discourse.julialang.org/t/codecov-doesnt-see-recipe-macro/94433 "2023-02-10T20:44:13Z")

</div>

I’ve been trying to get my code coverage to 100% in my package ThreeBodyProblem.jl\[GitHub - jared711/ThreeBodyProblem.jl: An astrodynamics package for working in the three body problem\] The last thing left that isn’t co…

---

## [JuMP: get (warm)start value of an expression](https://discourse.julialang.org/t/jump-get-warm-start-value-of-an-expression/93259)

<div class="topic-metadata">

**Author:** [@john\_standard](https://discourse.julialang.org/u/john_standard)\
**Replies:** 3\
**Last updated:** [February 10, 2023, 8:24pm UTC](https://discourse.julialang.org/t/jump-get-warm-start-value-of-an-expression/93259 "2023-02-10T20:24:07Z")

</div>

Context I’m trying to write some utility functions to solve non linear control problems using JuMP. Following the Rocket control tutorial I set my state variables as JuMP variables and the dynamics as constraints. Howev…

---

## [\[ANN\] PandasJSON](https://discourse.julialang.org/t/ann-pandasjson/94430)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 8:04pm UTC](https://discourse.julialang.org/t/ann-pandasjson/94430 "2023-02-10T20:04:30Z")

</div>

Here’s a little package for reading and writing tabular data in any of the Pandas JSON formats. It’s not too hard to parse such files yourself but: This integrates with the Tables.jl ecosystem. This handles datetimes…

---

## [Passing DoubleFloat types into a Julia function](https://discourse.julialang.org/t/passing-doublefloat-types-into-a-julia-function/94425)

<div class="topic-metadata">

**Author:** [@Thushara\_Gunaratne](https://discourse.julialang.org/u/Thushara_Gunaratne)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 7:22pm UTC](https://discourse.julialang.org/t/passing-doublefloat-types-into-a-julia-function/94425 "2023-02-10T19:22:48Z")

</div>

I’m trying to create a julia function in order to optimize the implementation of a FIR filter that can handle data and coefficients represented with different Floating-Point formats (i.e. Double64, Double32, Double16, Fl…

---

## [MethodError: Convert Ref value between GPU and CPU](https://discourse.julialang.org/t/methoderror-convert-ref-value-between-gpu-and-cpu/94426)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 7:07pm UTC](https://discourse.julialang.org/t/methoderror-convert-ref-value-between-gpu-and-cpu/94426 "2023-02-10T19:07:45Z")

</div>

Can anyone teach me how to overload the convert function to remove this error, using CUDA? MethodError: Cannot \`convert\` an object of type CUDA.CuRefValue{Int64} to an object of type Base.RefValue{Int64} Kind regards

---

## [Two separate vectors of same length and eliminating items in both vectors, whenever the values of those vectors are the same at identical columns. Depending on this the values of a third vector shall be eliminated accordingly](https://discourse.julialang.org/t/two-separate-vectors-of-same-length-and-eliminating-items-in-both-vectors-whenever-the-values-of-those-vectors-are-the-same-at-identical-columns-depending-on-this-the-values-of-a-third-vector-shall-be-eliminated-accordingly/94371)

<div class="topic-metadata">

**Author:** [@ratwolf](https://discourse.julialang.org/u/ratwolf)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 7:35pm UTC](https://discourse.julialang.org/t/two-separate-vectors-of-same-length-and-eliminating-items-in-both-vectors-whenever-the-values-of-those-vectors-are-the-same-at-identical-columns-depending-on-this-the-values-of-a-third-vector-shall-be-eliminated-accordingly/94371 "2023-02-09T19:35:24Z")

</div>

Two separate vectors of same length (but the lenghth can vary and is not predictable) and eliminating items in both vectors, whenever the values of those vectors are the same at identical columns. Depending on this the v…

---

## [CatViews for CUDA.jl?](https://discourse.julialang.org/t/catviews-for-cuda-jl/94304)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 12\
**Last updated:** [February 10, 2023, 6:06pm UTC](https://discourse.julialang.org/t/catviews-for-cuda-jl/94304 "2023-02-10T18:06:03Z")

</div>

Hello! I found a bit of an old package, but with a great feature I want to have so much in my code. It would let me keep current code structure and give me the flexibility I need. The package is: With the example pro…

---

## [OrdinaryDiffEq Loading Time](https://discourse.julialang.org/t/ordinarydiffeq-loading-time/94386)

<div class="topic-metadata">

**Author:** [@pranavkrishna](https://discourse.julialang.org/u/pranavkrishna)\
**Replies:** 11\
**Last updated:** [February 10, 2023, 5:58pm UTC](https://discourse.julialang.org/t/ordinarydiffeq-loading-time/94386 "2023-02-10T17:58:08Z")

</div>

I am wondering if it is usual for it to take ~30 seconds to load the OrdinaryDiffEq package. I am curious why there is so much recompilation when loading the package. Is there something I could do to reduce the load time…

---

## [Different behaviour between CairoMakie and GLMakie](https://discourse.julialang.org/t/different-behaviour-between-cairomakie-and-glmakie/94405)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 1:22pm UTC](https://discourse.julialang.org/t/different-behaviour-between-cairomakie-and-glmakie/94405 "2023-02-10T13:22:30Z")

</div>

Hi all, I am confused since a couple of days, because GLMakie and CairoMakie have a different behavior. Here is the MWE: using CairoMakie # using GLMakie x = range(0., 2π, 100) z = sin.(x) x = range(0., 2π, 100) z = …

---

## [Find\_zero to find a solution x as a function of y?](https://discourse.julialang.org/t/find-zero-to-find-a-solution-x-as-a-function-of-y/91628)

<div class="topic-metadata">

**Author:** [@kwyyoo](https://discourse.julialang.org/u/kwyyoo)\
**Replies:** 10\
**Last updated:** [February 10, 2023, 5:45pm UTC](https://discourse.julialang.org/t/find-zero-to-find-a-solution-x-as-a-function-of-y/91628 "2023-02-10T17:45:18Z")

</div>

Hi. This is my first thread topic and question ever posting here. I have the following function and the my goal is to find a solution of x to make it zero. f(x, y) = (x^0.5 - y)/(1-x) - x^(-0.5); Can I find the soluti…

---

## [Julia v1.9.0-beta4 is now available](https://discourse.julialang.org/t/julia-v1-9-0-beta4-is-now-available/94421)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 5:30pm UTC](https://discourse.julialang.org/t/julia-v1-9-0-beta4-is-now-available/94421 "2023-02-10T17:30:33Z")

</div>

The Julia developers are pleased to announce that v1.9.0-beta4, the fourth beta version for the upcoming 1.9 stable series, is now available. Binaries are available for download at https://julialang.org/downloads in the …

---

## [Video uploads](https://discourse.julialang.org/t/video-uploads/94263)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 7\
**Last updated:** [February 10, 2023, 4:03pm UTC](https://discourse.julialang.org/t/video-uploads/94263 "2023-02-10T16:03:17Z")

</div>

We can’t upload videos here, which would often be useful for Makie questions. Not sure if the policy is because of file sizes or spam or else, but at least this Can you upload video(s) in posts? - #2 by Johani - support …

---

## [How to get upper triangular values of a \`Matrix\`?](https://discourse.julialang.org/t/how-to-get-upper-triangular-values-of-a-matrix/94391)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 3:37pm UTC](https://discourse.julialang.org/t/how-to-get-upper-triangular-values-of-a-matrix/94391 "2023-02-10T15:37:07Z")

</div>

Suppose I have a Matrix, and I only want the upper triangular values stored in a Vector: julia\> A = \[1.0 2.0 3.0; 4.0 5.0 6.0; 7.0 8.0 9.0\] 3×3 Matrix{Float64}: 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 julia\> Upper…

---

## [Question about CUDA kernels](https://discourse.julialang.org/t/question-about-cuda-kernels/94345)

<div class="topic-metadata">

**Author:** [@EduMolinero](https://discourse.julialang.org/u/EduMolinero)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 3:33pm UTC](https://discourse.julialang.org/t/question-about-cuda-kernels/94345 "2023-02-10T15:33:02Z")

</div>

Hi! I’m struggling to implement the following CUDA kernel: using CUDA using LinearAlgebra function kernel!(A, B, C) X = CUDA.size(A)\[3\] Y = CUDA.size(B)\[3\] for j in 1:X for i in 1:Y @in…

---

## [First Pluto notebook launches are slower on Julia 1.9 beta 3](https://discourse.julialang.org/t/first-pluto-notebook-launches-are-slower-on-julia-1-9-beta-3/93429)

<div class="topic-metadata">

**Author:** [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Replies:** 157\
**Last updated:** [February 10, 2023, 3:30pm UTC](https://discourse.julialang.org/t/first-pluto-notebook-launches-are-slower-on-julia-1-9-beta-3/93429 "2023-02-10T15:30:58Z")

</div>

Hi! :waving\_hand: Today, I ran some benchmarks to compare real-life launch times for first-time users of Julia 1.9.0-beta3 vs Julia 1.8.5. That means people who just installed Julia on their computer, and they are excite…

---

## [Jupyter Unicode symbols issue](https://discourse.julialang.org/t/jupyter-unicode-symbols-issue/94407)

<div class="topic-metadata">

**Author:** [@Nikolay\_Ebel](https://discourse.julialang.org/u/Nikolay_Ebel)\
**Replies:** 8\
**Last updated:** [February 10, 2023, 3:20pm UTC](https://discourse.julialang.org/t/jupyter-unicode-symbols-issue/94407 "2023-02-10T15:20:13Z")

</div>

Hi! I have a problem with using the Unicode symbols in Jupyter lab. After entering \\bbD, \\bbO, or any other character with the Unicode starting with “1D” in a Jupyter cell, Jupyter stops to understand any other Unicode …

---

## [Elegant way to do multi-index algebra](https://discourse.julialang.org/t/elegant-way-to-do-multi-index-algebra/94370)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 2:34pm UTC](https://discourse.julialang.org/t/elegant-way-to-do-multi-index-algebra/94370 "2023-02-10T14:34:59Z")

</div>

I want to use a number to represent a multi-index. Consider i in 1:3 and j in 1:3. I want 3 to represent for (0,3), 4 for (1,1), 8 for (3,2) and so forth. This can be done by i = (num-1)÷3 + 1 and j = (num-1)%3 + 1. Thi…

---

## [Surprising benchmark results for a basic mixed precision example](https://discourse.julialang.org/t/surprising-benchmark-results-for-a-basic-mixed-precision-example/94410)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 1:47pm UTC](https://discourse.julialang.org/t/surprising-benchmark-results-for-a-basic-mixed-precision-example/94410 "2023-02-10T13:47:57Z")

</div>

I started to experiment with mixed precision and I benchmarked a basic example as follows: using BenchmarkTools using Quadmath using LinearAlgebra a16 = Vector{Float16}(undef, 100\_000\_000); a32 = Vector{Float32}(undef, …

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

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