# Latest

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

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

**Page:** 1291

---

## [^2 exhibits postfix behavior](https://discourse.julialang.org/t/2-exhibits-postfix-behavior/66857)

<div class="topic-metadata">

**Author:** [@dgpdx](https://discourse.julialang.org/u/dgpdx)\
**Replies:** 7\
**Last updated:** [August 23, 2021, 5:19pm UTC](https://discourse.julialang.org/t/2-exhibits-postfix-behavior/66857 "2021-08-23T17:19:13Z")

</div>

julia\> 4 ^2 16 But julia\> ^2(4) ERROR:\*\* syntax: “^” is not a unary operator What is the rational for this behavior?

---

## [Managing dependencies between un-registered packages](https://discourse.julialang.org/t/managing-dependencies-between-un-registered-packages/66850)

<div class="topic-metadata">

**Author:** [@sefffal](https://discourse.julialang.org/u/sefffal)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 4:46pm UTC](https://discourse.julialang.org/t/managing-dependencies-between-un-registered-packages/66850 "2021-08-23T16:46:16Z")

</div>

Hi all, I’m looking for some advice on managing multiple unregistered packages. I have three astronomy-related packages, DirectImages.jl, DirectOrbits.jl, and DirectDetections.jl (notice a theme?). The first is for ge…

---

## [Pytorch's Identity() implementation/alternative in Fluxml?](https://discourse.julialang.org/t/pytorchs-identity-implementation-alternative-in-fluxml/66810)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 8\
**Last updated:** [August 23, 2021, 4:17pm UTC](https://discourse.julialang.org/t/pytorchs-identity-implementation-alternative-in-fluxml/66810 "2021-08-23T16:17:32Z")

</div>

description: A placeholder identity operator that is argument-insensitive. example pseudocode: self.layer = nn.Sequential( nn.Dropout(0.5) if dropout else nn.Identity(), )

---

## [Flux.jl: params() and gradient() ocnfusion](https://discourse.julialang.org/t/flux-jl-params-and-gradient-ocnfusion/66775)

<div class="topic-metadata">

**Author:** [@Alex-ZA](https://discourse.julialang.org/u/Alex-ZA)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 4:13pm UTC](https://discourse.julialang.org/t/flux-jl-params-and-gradient-ocnfusion/66775 "2021-08-23T16:13:04Z")

</div>

Hello everyone, I apologise if this is not the area to ask Flux questions. If not, please direct to the correct place. I have been going through the Flux.jl documentation and came across this code. julia\> x = \[2, 1\];…

---

## [What's the proper way of dealing with Adjoint?](https://discourse.julialang.org/t/whats-the-proper-way-of-dealing-with-adjoint/13457)

<div class="topic-metadata">

**Author:** [@vpetukhov](https://discourse.julialang.org/u/vpetukhov)\
**Replies:** 6\
**Last updated:** [August 23, 2021, 4:00pm UTC](https://discourse.julialang.org/t/whats-the-proper-way-of-dealing-with-adjoint/13457 "2021-08-23T16:00:37Z")

</div>

During upgrade of some libraries to Julia 0.7 I’ve met many situations where package developers use DenseMatrix{T} as an abstract class for a matrix data. But after new release, all code, which use transpose stopped work…

---

## [Quantum clustering algorithm in Julia](https://discourse.julialang.org/t/quantum-clustering-algorithm-in-julia/65061)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 3:56pm UTC](https://discourse.julialang.org/t/quantum-clustering-algorithm-in-julia/65061 "2021-08-23T15:56:32Z")

</div>

Hi, Is there any example of quantum clustering algorithm written in Julia? Ideally something that is automatically determining number of clusters? This is my first step into quantum computing so I hope the question is …

---

## [PyCall PyCapsule\_Import could not import module "datetime"](https://discourse.julialang.org/t/pycall-pycapsule-import-could-not-import-module-datetime/66853)

<div class="topic-metadata">

**Author:** [@billykalfus](https://discourse.julialang.org/u/billykalfus)\
**Replies:** 0\
**Last updated:** [August 23, 2021, 3:46pm UTC](https://discourse.julialang.org/t/pycall-pycapsule-import-could-not-import-module-datetime/66853 "2021-08-23T15:46:52Z")

</div>

I have a Python virtual environment and I’d like to install PyCall to point to the environment’s Python, but I get an error when I try to execute “using PyCall” (error message below). I’m on Linux and I first activate th…

---

## [Could MathTeXEngine hook up into LaTeX?](https://discourse.julialang.org/t/could-mathtexengine-hook-up-into-latex/66742)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 10\
**Last updated:** [August 23, 2021, 3:15pm UTC](https://discourse.julialang.org/t/could-mathtexengine-hook-up-into-latex/66742 "2021-08-23T15:15:31Z")

</div>

This topic might be quite irritating, so sorry for that in advance. Currently, Makie.jl uses MathTeXEngine.jl to process LaTeX. I have looked at MathTeXEngine.jl, and what I understood is that it returns information abo…

---

## [@test in Pluto](https://discourse.julialang.org/t/test-in-pluto/66831)

<div class="topic-metadata">

**Author:** [@dpinol](https://discourse.julialang.org/u/dpinol)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 2:48pm UTC](https://discourse.julialang.org/t/test-in-pluto/66831 "2021-08-23T14:48:53Z")

</div>

Hi has anybody tried to use @test from Pluto? I run into issues with both Pluto & PlutoTest thanks

---

## [Julia + VSCode + ipynb for elementary school science](https://discourse.julialang.org/t/julia-vscode-ipynb-for-elementary-school-science/66621)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 5\
**Last updated:** [August 23, 2021, 2:09pm UTC](https://discourse.julialang.org/t/julia-vscode-ipynb-for-elementary-school-science/66621 "2021-08-23T14:09:41Z")

</div>

My kids are starting in not-in-person school this week. We’re waiting to see how stable the COVID transmission environment is in local schools, and maybe availability of vaccines for their age group (10 and 11). Meantime…

---

## [PyCall error on lsf cluster](https://discourse.julialang.org/t/pycall-error-on-lsf-cluster/66837)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 1:50pm UTC](https://discourse.julialang.org/t/pycall-error-on-lsf-cluster/66837 "2021-08-23T13:50:04Z")

</div>

Dear all, I am having an issue importing a Python package (with PyCall) on the lsf cluster of my university. I want to perform an MCMC analysis using Turing on the Cluster. I have been able to use Turing on my local ma…

---

## [How to use threads in a reduction with LoopVectorization?](https://discourse.julialang.org/t/how-to-use-threads-in-a-reduction-with-loopvectorization/66836)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 12:55pm UTC](https://discourse.julialang.org/t/how-to-use-threads-in-a-reduction-with-loopvectorization/66836 "2021-08-23T12:55:39Z")

</div>

I have the following function. How do I make this parallel with LoopVectorization? In C++ I would add the reduction clause and the associated variable to my OpenMP #pragma, but in Julia I do not know what is the best per…

---

## [Why is minimum so much faster than argmin?](https://discourse.julialang.org/t/why-is-minimum-so-much-faster-than-argmin/66814)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 11\
**Last updated:** [August 23, 2021, 11:40am UTC](https://discourse.julialang.org/t/why-is-minimum-so-much-faster-than-argmin/66814 "2021-08-23T11:40:22Z")

</div>

Interesting behavior - minimum is about 4x faster than argmin. Perhaps it knows how to use more cores? The question came up from the HoJ Discord server. julia\> y = rand(100\_000); julia\> @btime argmin($y); 181.410 μs …

---

## [Add gradient to ribbon based on density](https://discourse.julialang.org/t/add-gradient-to-ribbon-based-on-density/62081)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 11:01am UTC](https://discourse.julialang.org/t/add-gradient-to-ribbon-based-on-density/62081 "2021-08-23T11:01:30Z")

</div>

Suppose I have a time series plot, such as: using Plots t = 0:.1:10 n = length(t) m = sin.(t) y = m + randn(n) \* .3 plot(t, m) scatter!(t, y) How can I add a gradient to the alpha value of the ribbon based on the dens…

---

## [ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS](https://discourse.julialang.org/t/error-argumenterror-unsupported-architecture-aarch64-for-macos/49512)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 8\
**Last updated:** [August 23, 2021, 10:39am UTC](https://discourse.julialang.org/t/error-argumenterror-unsupported-architecture-aarch64-for-macos/49512 "2021-08-23T10:39:04Z")

</div>

I was trying to add a package and got this error. ERROR: ArgumentError: Unsupported architecture ‘aarch64’ for macOS However, I’m on a Windows machine - do not understand it.

---

## [JuMP-dev 2021: that's a wrap](https://discourse.julialang.org/t/jump-dev-2021-thats-a-wrap/65584)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 9:50am UTC](https://discourse.julialang.org/t/jump-dev-2021-thats-a-wrap/65584 "2021-08-23T09:50:11Z")

</div>

Dear all, That’s a wrap for JuMP-dev 2021! I want to start by thanking the JuliaCon organizing committee for helping us co-locate JuMP-dev at JuliaCon. They went over and beyond to accommodate us and make the interacti…

---

## [Lazy global pyimports](https://discourse.julialang.org/t/lazy-global-pyimports/66796)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 6\
**Last updated:** [August 23, 2021, 8:51am UTC](https://discourse.julialang.org/t/lazy-global-pyimports/66796 "2021-08-23T08:51:53Z")

</div>

In my packages, I’d like to import Python packages (currently with PyCall, but happy to switch if theres a PythonCall solution) as global variables and use these in my functions, but for performance reasons, I want to de…

---

## [Broadcasted assignment slower than for loop when indices are arbitrary](https://discourse.julialang.org/t/broadcasted-assignment-slower-than-for-loop-when-indices-are-arbitrary/66729)

<div class="topic-metadata">

**Author:** [@mehdi](https://discourse.julialang.org/u/mehdi)\
**Replies:** 15\
**Last updated:** [August 23, 2021, 8:10am UTC](https://discourse.julialang.org/t/broadcasted-assignment-slower-than-for-loop-when-indices-are-arbitrary/66729 "2021-08-23T08:10:20Z")

</div>

Is there a way to make a broadcasted values assignment faster than a for loop when the subset of indexes on which the assignment is done is arbitrary? I explain with this simple example: N = 10000; a = ones(N); ##Origi…

---

## [ERROR: LoadError: ArgumentError: cannot take the CPU address of a CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}](https://discourse.julialang.org/t/error-loaderror-argumenterror-cannot-take-the-cpu-address-of-a-cuarray-float32-2-cuda-mem-devicebuffer/66801)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 12\
**Last updated:** [August 23, 2021, 7:35am UTC](https://discourse.julialang.org/t/error-loaderror-argumenterror-cannot-take-the-cpu-address-of-a-cuarray-float32-2-cuda-mem-devicebuffer/66801 "2021-08-23T07:35:42Z")

</div>

the problem is in " x\_batch, y\_batch = x\_batch|\>gpu, y\_batch|\>gpu " when i convert batches to gpu, removing it will work, but how can i make it work on gpu? pullback function from Zygote. here is fullcode using Flux us…

---

## [Using a manually downloaded package](https://discourse.julialang.org/t/using-a-manually-downloaded-package/66800)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 6:43am UTC](https://discourse.julialang.org/t/using-a-manually-downloaded-package/66800 "2021-08-23T06:43:10Z")

</div>

I recently manually downloaded a package for Julia. Where should I put the folder ? (I would prefer to put the package in the working directory in my situation). Then, how should I “include/import/using” it ? At the mome…

---

## [Inconsistency in interpreting and indexing with ranges of CartesianIndexes if a step is specified while constructing them](https://discourse.julialang.org/t/inconsistency-in-interpreting-and-indexing-with-ranges-of-cartesianindexes-if-a-step-is-specified-while-constructing-them/66828)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 5:48am UTC](https://discourse.julialang.org/t/inconsistency-in-interpreting-and-indexing-with-ranges-of-cartesianindexes-if-a-step-is-specified-while-constructing-them/66828 "2021-08-23T05:48:47Z")

</div>

This is related to the issue https://github.com/JuliaLang/julia/issues/41959, but I didn’t want to derail the issue so thought I would continue the conversation on discourse. Fundamentally, CartesianIndices represent an…

---

## [How to dispatch this serializer function?](https://discourse.julialang.org/t/how-to-dispatch-this-serializer-function/65981)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 37\
**Last updated:** [August 23, 2021, 5:24am UTC](https://discourse.julialang.org/t/how-to-dispatch-this-serializer-function/65981 "2021-08-23T05:24:58Z")

</div>

""" io = serialize(v) reinterprets a Julia object into a series of bytes. An exercise in multiple dispatch style. Based on https://de.mathworks.com/matlabcentral/fileexchange/29457-serialize-deserialize and "julianized…

---

## [Minimum Mode Problem: minimum number - maximum repetition](https://discourse.julialang.org/t/minimum-mode-problem-minimum-number-maximum-repetition/66749)

<div class="topic-metadata">

**Author:** [@karalis1](https://discourse.julialang.org/u/karalis1)\
**Replies:** 7\
**Last updated:** [August 22, 2021, 2:18pm UTC](https://discourse.julialang.org/t/minimum-mode-problem-minimum-number-maximum-repetition/66749 "2021-08-22T14:18:57Z")

</div>

Hey guys, is there a performant way to solve this problem in julia? Given a vector \[1…n\] return the minimum number that has the highest repetition examples: \[1, 3, 3, 2, 3, 4\] → should return 3 because it’s the most r…

---

## [BinaryBuilder project works on Travis CI, but fails on GitLab CI](https://discourse.julialang.org/t/binarybuilder-project-works-on-travis-ci-but-fails-on-gitlab-ci/66819)

<div class="topic-metadata">

**Author:** [@stemann](https://discourse.julialang.org/u/stemann)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 4:53am UTC](https://discourse.julialang.org/t/binarybuilder-project-works-on-travis-ci-but-fails-on-gitlab-ci/66819 "2021-08-23T04:53:46Z")

</div>

Any idea, why the following (Julia 1.0) BinaryBuilder project, https://github.com/IHPSystems/pylon\_julia\_wrapper/tree/feature/travis\_ci\_2021, builds (using BB) just fine on Travis CI (in 2019 and today in Aug. 2021), but…

---

## [Documenter: I'm not seeing the "link to source" buttons in my local docs build, how can I?](https://discourse.julialang.org/t/documenter-im-not-seeing-the-link-to-source-buttons-in-my-local-docs-build-how-can-i/66823)

<div class="topic-metadata">

**Author:** [@kimlaberinto](https://discourse.julialang.org/u/kimlaberinto)\
**Replies:** 0\
**Last updated:** [August 23, 2021, 1:39am UTC](https://discourse.julialang.org/t/documenter-im-not-seeing-the-link-to-source-buttons-in-my-local-docs-build-how-can-i/66823 "2021-08-23T01:39:23Z")

</div>

Hello! I’m building some docs locally, and I noticed that I do not have the “source” button appearing when I try to hover over docstrings in the docs. (See below for an image of such “source” buttons). Does anyone know…

---

## [Generated functions for performance auto-tuning](https://discourse.julialang.org/t/generated-functions-for-performance-auto-tuning/66821)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 7\
**Last updated:** [August 23, 2021, 2:31am UTC](https://discourse.julialang.org/t/generated-functions-for-performance-auto-tuning/66821 "2021-08-23T02:31:22Z")

</div>

To get the best performance across different inputs, we often have multiple implementations, and choose which one to use based on the input given. For example, for array traversals we may want to unroll loops for small a…

---

## [Letting users change the default types](https://discourse.julialang.org/t/letting-users-change-the-default-types/66781)

<div class="topic-metadata">

**Author:** [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)\
**Replies:** 13\
**Last updated:** [August 23, 2021, 1:26am UTC](https://discourse.julialang.org/t/letting-users-change-the-default-types/66781 "2021-08-23T01:26:35Z")

</div>

It is common that programming languages have different types with similar or analogous functionality. For example, consider the integer types Int64, BigInt, or the float point types Float64, BigFloat. The reason for thi…

---

## [Why am I getting five vectors instead of one?](https://discourse.julialang.org/t/why-am-i-getting-five-vectors-instead-of-one/66822)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 12:05am UTC](https://discourse.julialang.org/t/why-am-i-getting-five-vectors-instead-of-one/66822 "2021-08-23T00:05:32Z")

</div>

arr = \[\] \[push!(arr,Char(ch)) for ch in "flarp"\] 5-element Vector{Vector{Any}}: \[‘f’, ‘l’, ‘a’, ‘r’, ‘p’\] \[‘f’, ‘l’, ‘a’, ‘r’, ‘p’\] \[‘f’, ‘l’, ‘a’, ‘r’, ‘p’\] \[‘f’, ‘l’, ‘a’, ‘r’, ‘p’\] \[‘f’, ‘l’, ‘a’, ‘r’, ‘p’\]

---

## [Write a 2ndOrderODEProblem](https://discourse.julialang.org/t/write-a-2ndorderodeproblem/66815)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 10:20pm UTC](https://discourse.julialang.org/t/write-a-2ndorderodeproblem/66815 "2021-08-22T22:20:20Z")

</div>

Hi, I am trying to solve the following problem with DifferentialEquations, but when I run my code it does not come out. I don’t know what is wrong, I hope you can help me. f(x,t)=-2 \\ddot{x} + 0.2\\dot{x} - 2x + 4 f(d…

---

## [Makie Direction of Heatmap](https://discourse.julialang.org/t/makie-direction-of-heatmap/66811)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 2\
**Last updated:** [August 22, 2021, 9:31pm UTC](https://discourse.julialang.org/t/makie-direction-of-heatmap/66811 "2021-08-22T21:31:46Z")

</div>

I’m trying to create a 3 part heat map using this code P₁ = transpose(dfm\[1:21,88:108\]) # Matrix{Float64} seq₁ = reverse(transpose(singlemutfitness\[1:21\])) # Vector{Float64} seq₂ = reverse(transpose(singlemutfitness\[88:…

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

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