# Latest

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

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

**Page:** 866

---

## [Understanding Shuffle in CUDA](https://discourse.julialang.org/t/understanding-shuffle-in-cuda/90235)

<div class="topic-metadata">

**Author:** [@nethaji8](https://discourse.julialang.org/u/nethaji8)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 1:43pm UTC](https://discourse.julialang.org/t/understanding-shuffle-in-cuda/90235 "2022-11-14T13:43:43Z")

</div>

Hi everyone, I am trying to use shuffle in a Cuda kernel, can someone explain to me how to use CUDA.shfl\_sync, CUDA.shfl\_up\_sync, CUDA.shfl\_down\_sync, CUDA.shfl\_xor\_sync with a simple example…? It’s not clear in the do…

---

## [How to calcule the mean of values considering their tuples of another value:](https://discourse.julialang.org/t/how-to-calcule-the-mean-of-values-considering-their-tuples-of-another-value/89974)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 6\
**Last updated:** [November 14, 2022, 12:02pm UTC](https://discourse.julialang.org/t/how-to-calcule-the-mean-of-values-considering-their-tuples-of-another-value/89974 "2022-11-14T12:02:18Z")

</div>

Hi all, I have an issue that I can’t figure out how to solve it: I have a df that stores two columns that look like this: df.scores1 = \[\[1,2,2,3,5,6,1,2,9,2,1,6,4,2\]\] df.normalized\_len = \[\[0,0,0.1,0.1,0.2,0.3,0.4,0.5,…

---

## [Piracy hunting](https://discourse.julialang.org/t/piracy-hunting/90119)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 14\
**Last updated:** [November 14, 2022, 11:30am UTC](https://discourse.julialang.org/t/piracy-hunting/90119 "2022-11-14T11:30:17Z")

</div>

I made a script to detect piracy, and I’d like feedback. Eventually I hope to put the functionality in Aqua.jl. There is already an old thread with a similar script here: Pirate Hunter. However, the script to longer work…

---

## [Sample \`arraydist\` of \`filldist\`s in Turing](https://discourse.julialang.org/t/sample-arraydist-of-filldist-s-in-turing/90225)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 8:35am UTC](https://discourse.julialang.org/t/sample-arraydist-of-filldist-s-in-turing/90225 "2022-11-14T08:35:09Z")

</div>

Is it possible to sample many filldistss using arraydist in Turing.jl? For example, say I have data of the following structure: and every key-value comes from an Exponential distribution. I know of a prior for each…

---

## [\`empty!\` and garbage collection for \`Tuple\`, \`NamedTuple\`, and \`Pairs\`](https://discourse.julialang.org/t/empty-and-garbage-collection-for-tuple-namedtuple-and-pairs/90214)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 7:50am UTC](https://discourse.julialang.org/t/empty-and-garbage-collection-for-tuple-namedtuple-and-pairs/90214 "2022-11-14T07:50:39Z")

</div>

I just started learning garbage collection, so this question may not be well-proposed, please bear with me if I am wrong. AFAIU, you can empty! a Vector or Dict so that what are inside them will be garbage collected in …

---

## [Gurobi v10 and Julia](https://discourse.julialang.org/t/gurobi-v10-and-julia/90220)

<div class="topic-metadata">

**Author:** [@MirelEce](https://discourse.julialang.org/u/MirelEce)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 2:59am UTC](https://discourse.julialang.org/t/gurobi-v10-and-julia/90220 "2022-11-14T02:59:38Z")

</div>

Hi there! I saw on Github that support for the version 10 of Gurobi is added and I just updated to that release of Gurobi; however couldn’t manage to use it in Julia (v1.7.2). I removed the package and added it again aft…

---

## [Syntax error when interpolating a quoted operator into a quoted expression](https://discourse.julialang.org/t/syntax-error-when-interpolating-a-quoted-operator-into-a-quoted-expression/90217)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 2:52am UTC](https://discourse.julialang.org/t/syntax-error-when-interpolating-a-quoted-operator-into-a-quoted-expression/90217 "2022-11-14T02:52:56Z")

</div>

I thought I understood how expression interpolation worked. This works as expected: julia\> sym = :a :a julia\> :(b \> $sym) :(b \> a) But when I try to interpolate an operator into an expression, I get a weird syntax err…

---

## [Error while plotting](https://discourse.julialang.org/t/error-while-plotting/90210)

<div class="topic-metadata">

**Author:** [@alemoreno991](https://discourse.julialang.org/u/alemoreno991)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 2:22am UTC](https://discourse.julialang.org/t/error-while-plotting/90210 "2022-11-14T02:22:56Z")

</div>

Hello, I’m getting an error while trying to plot a simple graph. I don’t really understand how to solve this. So, I’d really appreciate if you could help me. ┌ Warning: \`URIParser\` is deprecated, use \`URIs\` instead. │ …

---

## [Switching between light and dark mode in Pluto v0.17.7](https://discourse.julialang.org/t/switching-between-light-and-dark-mode-in-pluto-v0-17-7/75396)

<div class="topic-metadata">

**Author:** [@lars](https://discourse.julialang.org/u/lars)\
**Replies:** 6\
**Last updated:** [November 14, 2022, 12:03am UTC](https://discourse.julialang.org/t/switching-between-light-and-dark-mode-in-pluto-v0-17-7/75396 "2022-11-14T00:03:06Z")

</div>

I am new to julia and really enjoy using it for computational purposes in my math program. I started using Pluto.jl for homework and love it. I just installed v0.17.7 that includes support for dark mode. Is there a way t…

---

## [Criteria for including of functionality in \`Base\`](https://discourse.julialang.org/t/criteria-for-including-of-functionality-in-base/90151)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 6\
**Last updated:** [November 13, 2022, 11:13pm UTC](https://discourse.julialang.org/t/criteria-for-including-of-functionality-in-base/90151 "2022-11-13T23:13:58Z")

</div>

When is a construct that is not required by the compiler or Pkg included in Base? What criteria are used to decide if a PR adding such functionality should be merged? Are these criteria documented? For example, I’m thin…

---

## [How to call multi-dimensional vector value Vectorized Cubature numerical integration?](https://discourse.julialang.org/t/how-to-call-multi-dimensional-vector-value-vectorized-cubature-numerical-integration/90200)

<div class="topic-metadata">

**Author:** [@swish47](https://discourse.julialang.org/u/swish47)\
**Replies:** 2\
**Last updated:** [November 13, 2022, 9:16pm UTC](https://discourse.julialang.org/t/how-to-call-multi-dimensional-vector-value-vectorized-cubature-numerical-integration/90200 "2022-11-13T21:16:56Z")

</div>

As the topic, I want to use parallelized numerical integration. However, since the special receives of hcubature with vector-valued integrands, and I don’t know how to set each components of v respectively, there is a pr…

---

## [Trouble using plots (on macOS)](https://discourse.julialang.org/t/trouble-using-plots-on-macos/90182)

<div class="topic-metadata">

**Author:** [@Schneeschaufel](https://discourse.julialang.org/u/Schneeschaufel)\
**Replies:** 18\
**Last updated:** [November 13, 2022, 9:15pm UTC](https://discourse.julialang.org/t/trouble-using-plots-on-macos/90182 "2022-11-13T21:15:49Z")

</div>

And now the next blow I realised pyplot() wouldn’t work on my OSX Ventura. Recap: Using Plots; pyplot() works on Linux using Plots without pyplot() works on my Ventura (e.g. import Plots as plt; plt.rand(23)) using Pl…

---

## [Lambdify getting error if expression is function of time](https://discourse.julialang.org/t/lambdify-getting-error-if-expression-is-function-of-time/90118)

<div class="topic-metadata">

**Author:** [@Starpower\_Power](https://discourse.julialang.org/u/Starpower_Power)\
**Replies:** 6\
**Last updated:** [November 13, 2022, 8:55pm UTC](https://discourse.julialang.org/t/lambdify-getting-error-if-expression-is-function-of-time/90118 "2022-11-13T20:55:22Z")

</div>

using SymPy using PyCall sp = pyimport("sympy") @vars t x = sp.Function("x")(t) y = sp.Function("y")(t) z = x^2+y^2 hz = lambdify(z,(x,y)) # hz = lambdify(z,(x,y)) hz(1,1)

---

## [Why did the \`source\` button in Julia docs disappear?](https://discourse.julialang.org/t/why-did-the-source-button-in-julia-docs-disappear/90205)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 1\
**Last updated:** [November 13, 2022, 8:47pm UTC](https://discourse.julialang.org/t/why-did-the-source-button-in-julia-docs-disappear/90205 "2022-11-13T20:47:36Z")

</div>

Sometimes I wish to see how exactly a function in Base is implemented, e.g. the 3 argument dot function. But the documentation doesn’t have the blue source button that links me directly to the code on Github https://do…

---

## [Convert Array to DataFrame](https://discourse.julialang.org/t/convert-array-to-dataframe/90163)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 11\
**Last updated:** [November 13, 2022, 2:37pm UTC](https://discourse.julialang.org/t/convert-array-to-dataframe/90163 "2022-11-13T14:37:54Z")

</div>

Dear Friends, I would like to convert a multi-dimensional array to DataFrame. For example a = \[0 1;2 3\] Expected result: 4×3 DataFrame Row │ index1 index2 value │ Int64 Int64 Int64 ─────┼────────…

---

## [How to tell ModelingToolkit that two variables have the same initial conditions without computing them](https://discourse.julialang.org/t/how-to-tell-modelingtoolkit-that-two-variables-have-the-same-initial-conditions-without-computing-them/87999)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 6\
**Last updated:** [November 12, 2022, 2:46pm UTC](https://discourse.julialang.org/t/how-to-tell-modelingtoolkit-that-two-variables-have-the-same-initial-conditions-without-computing-them/87999 "2022-11-12T14:46:48Z")

</div>

Suppose that we have a differential-algebraic system of equations, with two variables f(t) and g(t) such that f(0) = g(0). Suppose moreover that g(t) is algebraic and g(0) could be explicitly calculated. Is it possible …

---

## [Why these simple codes have so much difference in performace?](https://discourse.julialang.org/t/why-these-simple-codes-have-so-much-difference-in-performace/90190)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 1\
**Last updated:** [November 13, 2022, 12:57pm UTC](https://discourse.julialang.org/t/why-these-simple-codes-have-so-much-difference-in-performace/90190 "2022-11-13T12:57:25Z")

</div>

struct TestStruct a::Int b::Int end get\_field1(x::Vector{TestStruct}, y::S) = getfield.(x, y) get\_field2(x::Vector{TestStruct}, y::S) = \[getfield(x\_, y) for x\_ in x\] get\_field3(x::Vector{TestStruct}, y::Val{T}) …

---

## [A Tree? Multi-dimensional Array? hmm](https://discourse.julialang.org/t/a-tree-multi-dimensional-array-hmm/89969)

<div class="topic-metadata">

**Author:** [@theboiwholived](https://discourse.julialang.org/u/theboiwholived)\
**Replies:** 9\
**Last updated:** [November 13, 2022, 11:02am UTC](https://discourse.julialang.org/t/a-tree-multi-dimensional-array-hmm/89969 "2022-11-13T11:02:25Z")

</div>

Hey all, could really use your expertise in determining if what i need here is a tree… and how i would go about doing that At the moment my code basically determines out the difference of all trades between currencies. …

---

## [Can't launch a basic example with Evolution.jl](https://discourse.julialang.org/t/cant-launch-a-basic-example-with-evolution-jl/90184)

<div class="topic-metadata">

**Author:** [@culebron](https://discourse.julialang.org/u/culebron)\
**Replies:** 0\
**Last updated:** [November 13, 2022, 8:51am UTC](https://discourse.julialang.org/t/cant-launch-a-basic-example-with-evolution-jl/90184 "2022-11-13T08:51:44Z")

</div>

I’m trying to run a genetic algorithm optimization, and to reuse Evolution.jl package instead of writing the implementation on my own. The docs don’t show any basic example, so I tried this code in tests as a pattern, s…

---

## [Why do functions whose arguments are named tuples fail when one element of the named tuple has type Any?](https://discourse.julialang.org/t/why-do-functions-whose-arguments-are-named-tuples-fail-when-one-element-of-the-named-tuple-has-type-any/90172)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 3\
**Last updated:** [November 13, 2022, 7:39am UTC](https://discourse.julialang.org/t/why-do-functions-whose-arguments-are-named-tuples-fail-when-one-element-of-the-named-tuple-has-type-any/90172 "2022-11-13T07:39:00Z")

</div>

I defined a function that prints the elements of a named tuple. I do not know the type of the second element of the named tuple, so I set it to Any. function foo(nt::NamedTuple{(:A, :V), Tuple{String, Any}}) printl…

---

## [Dojo - simulating a quadcopter](https://discourse.julialang.org/t/dojo-simulating-a-quadcopter/90050)

<div class="topic-metadata">

**Author:** [@Daniel\_Lewis](https://discourse.julialang.org/u/Daniel_Lewis)\
**Replies:** 2\
**Last updated:** [November 13, 2022, 6:46am UTC](https://discourse.julialang.org/t/dojo-simulating-a-quadcopter/90050 "2022-11-13T06:46:26Z")

</div>

Hello, I started working on a multi rigid body dynamic using Dojo.jl. I’m interested in simulating a Quadcopter, my question is : How can I simulate the fan’s thrust force? thanks Daniel

---

## [Fastq to OTU table pipeline in julia](https://discourse.julialang.org/t/fastq-to-otu-table-pipeline-in-julia/90183)

<div class="topic-metadata">

**Author:** [@Ritu\_Lahkar](https://discourse.julialang.org/u/Ritu_Lahkar)\
**Replies:** 0\
**Last updated:** [November 13, 2022, 4:21am UTC](https://discourse.julialang.org/t/fastq-to-otu-table-pipeline-in-julia/90183 "2022-11-13T04:21:07Z")

</div>

Is there any available julia pipeline for analysis of FASTQ data into OTU tables? If yes any reference of how to use or any documentation?

---

## [Tricky interpolation issue](https://discourse.julialang.org/t/tricky-interpolation-issue/90142)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 6\
**Last updated:** [November 13, 2022, 4:22am UTC](https://discourse.julialang.org/t/tricky-interpolation-issue/90142 "2022-11-13T04:22:23Z")

</div>

Hi All, I am trying to create a function that turns a shorter vector (len nk) into a longer vector (len nkp). For example, 1x10 would become 1x20. I’m running into an issue with indexing. I see why mine does not work, b…

---

## [\[ANN\] Announcing EasyFFTs.jl](https://discourse.julialang.org/t/ann-announcing-easyffts-jl/90174)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [November 13, 2022, 4:15am UTC](https://discourse.julialang.org/t/ann-announcing-easyffts-jl/90174 "2022-11-13T04:15:38Z")

</div>

I am pleased to announce a simple little package called EasyFFTs.jl. I think the readme explains why this package exists and how to use it well, and will copy it here: EasyFFTs Are you sick and tired of always doing the…

---

## [Simulate manual memory management to reduce RAM usage?](https://discourse.julialang.org/t/simulate-manual-memory-management-to-reduce-ram-usage/67281)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 3\
**Last updated:** [November 13, 2022, 1:17am UTC](https://discourse.julialang.org/t/simulate-manual-memory-management-to-reduce-ram-usage/67281 "2022-11-13T01:17:06Z")

</div>

Julia can avoid unnecessary GC by allocating immutable objects on the stack, but I’m wondering if it’s possible to push further: for heap-allocated local objects that do not “escape” the function (e.g. returned or passed…

---

## [Using emacs-jupyter mode for development](https://discourse.julialang.org/t/using-emacs-jupyter-mode-for-development/45276)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 24\
**Last updated:** [November 12, 2022, 1:48pm UTC](https://discourse.julialang.org/t/using-emacs-jupyter-mode-for-development/45276 "2022-11-12T13:48:58Z")

</div>

Can you write a post on your setup? (Your emacs config for it, an example notebook or two, a videocast perhaps) It sounds wonderful. :slight\_smile:

---

## [Graph compile issue](https://discourse.julialang.org/t/graph-compile-issue/90173)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 3\
**Last updated:** [November 13, 2022, 12:08am UTC](https://discourse.julialang.org/t/graph-compile-issue/90173 "2022-11-13T00:08:23Z")

</div>

I’m suddenly unable to graph without getting an error. when I try re-compiling GR. When I run: using Pkg; Pkg.build("GR") I get: Building GR → \`~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/c98aea69666…

---

## [Why are the return-values of fft and fftfreq so terrible?](https://discourse.julialang.org/t/why-are-the-return-values-of-fft-and-fftfreq-so-terrible/87510)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 16\
**Last updated:** [November 12, 2022, 10:48pm UTC](https://discourse.julialang.org/t/why-are-the-return-values-of-fft-and-fftfreq-so-terrible/87510 "2022-11-12T22:48:46Z")

</div>

The situation When I calculate the fft of a signal, I want to plot it almost every time. However, there is a number of operations that I want to do each time, as the output from fft and fftfreq is honestly terrible. So …

---

## [Trouble using Plots (on Linux)](https://discourse.julialang.org/t/trouble-using-plots-on-linux/90061)

<div class="topic-metadata">

**Author:** [@Schneeschaufel](https://discourse.julialang.org/u/Schneeschaufel)\
**Replies:** 29\
**Last updated:** [November 11, 2022, 10:34am UTC](https://discourse.julialang.org/t/trouble-using-plots-on-linux/90061 "2022-11-11T10:34:45Z")

</div>

The best would be to just remove the Plots package from the Julia distribution. It is just a mess (according to the internet and all the other people with the same Qt problem and no real solution in sight). And no I ca…

---

## [Creating a new variable in JuMP with other variables already existing](https://discourse.julialang.org/t/creating-a-new-variable-in-jump-with-other-variables-already-existing/90138)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 4\
**Last updated:** [November 12, 2022, 10:02pm UTC](https://discourse.julialang.org/t/creating-a-new-variable-in-jump-with-other-variables-already-existing/90138 "2022-11-12T22:02:09Z")

</div>

Hi there. Can anyone help me? I’m doing sort of implementation of a column generation model and after finding a new pattern I want to add a new variable from a existing set of existing variables. Example: This is my ma…

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

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