# Latest

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

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

**Page:** 1513

---

## [Is there a way to keep and manage an parallel/asyncronous task queue?](https://discourse.julialang.org/t/is-there-a-way-to-keep-and-manage-an-parallel-asyncronous-task-queue/53942)

<div class="topic-metadata">

**Author:** [@apoor](https://discourse.julialang.org/u/apoor)\
**Replies:** 2\
**Last updated:** [January 26, 2021, 10:06am UTC](https://discourse.julialang.org/t/is-there-a-way-to-keep-and-manage-an-parallel-asyncronous-task-queue/53942 "2021-01-26T10:06:18Z")

</div>

I’m playing around with writing a simple load tester (sort of like locust). I want to maintain a task-queue/pool of workers making requests to my web app. When the program starts, the worker pool will fill up. As some r…

---

## [ERROR: syntax: function argument names not unique around](https://discourse.julialang.org/t/error-syntax-function-argument-names-not-unique-around/53944)

<div class="topic-metadata">

**Author:** [@GraceMabele](https://discourse.julialang.org/u/GraceMabele)\
**Replies:** 5\
**Last updated:** [January 26, 2021, 9:46am UTC](https://discourse.julialang.org/t/error-syntax-function-argument-names-not-unique-around/53944 "2021-01-26T09:46:29Z")

</div>

I am currently building a milp model previously done in GAMS and I’m converting it into JuMP (Julia). I am particularly having trouble with constraints and the objective function that has more than one summation with co…

---

## [Simple user similarity in Julia vs Python](https://discourse.julialang.org/t/simple-user-similarity-in-julia-vs-python/53958)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 4\
**Last updated:** [January 26, 2021, 9:34am UTC](https://discourse.julialang.org/t/simple-user-similarity-in-julia-vs-python/53958 "2021-01-26T09:34:09Z")

</div>

I have a simple example in Python to get user similarities based on items they have interacted with. import pandas as pd from sklearn.metrics.pairwise import euclidean\_distances item=\["a", "b", "c", "a", "b", "a","b","c…

---

## [Performance issue with QRCompactWYQ](https://discourse.julialang.org/t/performance-issue-with-qrcompactwyq/53732)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 1\
**Last updated:** [January 26, 2021, 8:46am UTC](https://discourse.julialang.org/t/performance-issue-with-qrcompactwyq/53732 "2021-01-26T08:46:19Z")

</div>

Hey, since it’s not a bug specifically but a performance issue I post it here instead on Github. In the attempt of generating random positive definite matrices I realized there was a huge performance issue with the QRCo…

---

## [Error with Torch.jl](https://discourse.julialang.org/t/error-with-torch-jl/53712)

<div class="topic-metadata">

**Author:** [@LuisB](https://discourse.julialang.org/u/LuisB)\
**Replies:** 6\
**Last updated:** [January 26, 2021, 8:32am UTC](https://discourse.julialang.org/t/error-with-torch-jl/53712 "2021-01-26T08:32:27Z")

</div>

Hello, I am new using Julia. Currently, I am implementing a very simple example with Flux and Torch.jl, and I get the following error: getindex not defined for Tensor{Float32,2}. The code is the following: using Flux u…

---

## [Help with CSV and Dataframe](https://discourse.julialang.org/t/help-with-csv-and-dataframe/53930)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 2\
**Last updated:** [January 26, 2021, 7:27am UTC](https://discourse.julialang.org/t/help-with-csv-and-dataframe/53930 "2021-01-26T07:27:13Z")

</div>

Hello everybody I’m still learning to program in julia and I came across this doubt. How to save data in a DataFrame using the for command? Whenever I try to compile the last for it displays this error message: Method…

---

## [Methods to diagonalize a Matrix{BigFloat}?](https://discourse.julialang.org/t/methods-to-diagonalize-a-matrix-bigfloat/4571)

<div class="topic-metadata">

**Author:** [@lbenet](https://discourse.julialang.org/u/lbenet)\
**Replies:** 22\
**Last updated:** [January 26, 2021, 4:46am UTC](https://discourse.julialang.org/t/methods-to-diagonalize-a-matrix-bigfloat/4571 "2021-01-26T04:46:09Z")

</div>

Does anyone know about methods (or packages) that allow to diagonalize a Matrix{BigFloat}? So far, I have only found (in IterativeSolvers.jl) that powm and invpowm do work with Matrix{BigFloat}, but using them I get onl…

---

## [How to resize? and plot multiple images?](https://discourse.julialang.org/t/how-to-resize-and-plot-multiple-images/53950)

<div class="topic-metadata">

**Author:** [@Ravinder\_Ram](https://discourse.julialang.org/u/Ravinder_Ram)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 4:39am UTC](https://discourse.julialang.org/t/how-to-resize-and-plot-multiple-images/53950 "2021-01-26T04:39:24Z")

</div>

image is so big how to resize? when i plot:- images = MNIST.convert2image(traintensor()) images\[1:5\] i can’t see any images why?

---

## [5 \< x != y \< 5](https://discourse.julialang.org/t/5-x-y-5/53844)

<div class="topic-metadata">

**Author:** [@JimFromAZ](https://discourse.julialang.org/u/JimFromAZ)\
**Replies:** 18\
**Last updated:** [January 26, 2021, 3:37am UTC](https://discourse.julialang.org/t/5-x-y-5/53844 "2021-01-26T03:37:42Z")

</div>

Hi All, I am reviewing The Fast Track to julia. In the Basics section Chaining is mentioned. Three lines of code are: x = y = z = 1 # right-to-left 0 \< x \< 3 # true 5 \< x != y \< 5 # false It’s the last line that I …

---

## [New Dataframe Column from a View from Another DataFrames](https://discourse.julialang.org/t/new-dataframe-column-from-a-view-from-another-dataframes/53945)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [January 26, 2021, 1:29am UTC](https://discourse.julialang.org/t/new-dataframe-column-from-a-view-from-another-dataframes/53945 "2021-01-26T01:29:24Z")

</div>

Hi all, I have a dataframe and a column view of a another dataframe B like this: A = DataFrame(\[1 3 5; 1 3 5; 2 4 6; 2 4 6;\]) C = @view B\[col\] A looks like this: 4×3 DataFrame Row │ x1 x2 x3 │ Int64 In…

---

## [\[ANN\] PrettyTables.jl v0.11](https://discourse.julialang.org/t/ann-prettytables-jl-v0-11/53830)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 12\
**Last updated:** [January 25, 2021, 11:39pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-v0-11/53830 "2021-01-25T23:39:26Z")

</div>

Hi! I just asked for registration of PrettyTables v0.11. There is some improvements and bug fixes in all backends. However, the major change in this release is the alignment system based on anchors for the text backend.…

---

## [Structs: mutable versus immutable](https://discourse.julialang.org/t/structs-mutable-versus-immutable/53889)

<div class="topic-metadata">

**Author:** [@owinter92](https://discourse.julialang.org/u/owinter92)\
**Replies:** 22\
**Last updated:** [January 25, 2021, 10:48pm UTC](https://discourse.julialang.org/t/structs-mutable-versus-immutable/53889 "2021-01-25T22:48:09Z")

</div>

Hi, I struggle to understand the behavior of the following code: struct TestStruct a::Int64 b::Array{Float64,1} end function test\_function!(s) s=TestStruct(2,s.b) end a=TestStruct(1,rand(1\_000)) test\_functio…

---

## [EXIT: Restoration Failed! with JuMP (0.21.4) and Ipopt (0.6.5)](https://discourse.julialang.org/t/exit-restoration-failed-with-jump-0-21-4-and-ipopt-0-6-5/53853)

<div class="topic-metadata">

**Author:** [@indycdrom](https://discourse.julialang.org/u/indycdrom)\
**Replies:** 6\
**Last updated:** [January 25, 2021, 10:42pm UTC](https://discourse.julialang.org/t/exit-restoration-failed-with-jump-0-21-4-and-ipopt-0-6-5/53853 "2021-01-25T22:42:27Z")

</div>

I am really puzzled and also frustrated that no matter how simple the problem was, like one below, Ipopt returns EXIT: Restoration Failed! using JuMP using Ipopt model = Model(Ipopt.Optimizer) @variable(model, x, st…

---

## [Debugging and Visualizing High Dimensional Models (Turing/MCMCChains)](https://discourse.julialang.org/t/debugging-and-visualizing-high-dimensional-models-turing-mcmcchains/41872)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 11\
**Last updated:** [January 25, 2021, 10:14pm UTC](https://discourse.julialang.org/t/debugging-and-visualizing-high-dimensional-models-turing-mcmcchains/41872 "2021-01-25T22:14:13Z")

</div>

Hi all. I’m working on a Tutorial in which I use Turing to fit a time series model to some Economic data (nonfarm payrolls). The model is basically a radial basis function expansion, with parameters for center locations…

---

## [Nonlinear systems: NLsolve alternative (non-convergence issue)](https://discourse.julialang.org/t/nonlinear-systems-nlsolve-alternative-non-convergence-issue/53925)

<div class="topic-metadata">

**Author:** [@vjimenezg](https://discourse.julialang.org/u/vjimenezg)\
**Replies:** 3\
**Last updated:** [January 25, 2021, 9:39pm UTC](https://discourse.julialang.org/t/nonlinear-systems-nlsolve-alternative-non-convergence-issue/53925 "2021-01-25T21:39:39Z")

</div>

Hello Julia community I’m having trouble with the convergence of NLsolve when solving a large system of linear equations (the transition between steady states in a heterogeneous-agent model in economics). Even in its si…

---

## [DoubleFloats plans for fft](https://discourse.julialang.org/t/doublefloats-plans-for-fft/53921)

<div class="topic-metadata">

**Author:** [@Jaime\_Araneda](https://discourse.julialang.org/u/Jaime_Araneda)\
**Replies:** 5\
**Last updated:** [January 25, 2021, 9:33pm UTC](https://discourse.julialang.org/t/doublefloats-plans-for-fft/53921 "2021-01-25T21:33:26Z")

</div>

Hi, I would like to use fft’s under DoubleFloats. Is it possible to use plans to optimize the calculations? Many thanks! Jaime

---

## [Pkg.update() taking ~10min, how do I debug?](https://discourse.julialang.org/t/pkg-update-taking-10min-how-do-i-debug/53926)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 4\
**Last updated:** [January 25, 2021, 9:19pm UTC](https://discourse.julialang.org/t/pkg-update-taking-10min-how-do-i-debug/53926 "2021-01-25T21:19:04Z")

</div>

On this one particular system, Pkg.update()s are unbearably slow, it spends 5-10 minutes displaying Updating registry at ~/.julia/registries/General. This system has a notorioulsy slow network filesystem, granted not thi…

---

## [Hashing for big structs is slow - any alternative?](https://discourse.julialang.org/t/hashing-for-big-structs-is-slow-any-alternative/53815)

<div class="topic-metadata">

**Author:** [@bsuwal](https://discourse.julialang.org/u/bsuwal)\
**Replies:** 12\
**Last updated:** [January 25, 2021, 7:36pm UTC](https://discourse.julialang.org/t/hashing-for-big-structs-is-slow-any-alternative/53815 "2021-01-25T19:36:06Z")

</div>

I have three structs, one mutable and two immutable, defined as: mutable struct Node label::NodeEdge comp::Vector{UInt8} comp\_weights::Vector{UInt8} cc::UInt8 fps::Vector{F…

---

## [How to Pre-check Checkboxes Using Interact.jl?](https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [January 25, 2021, 6:47pm UTC](https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802 "2021-01-25T18:47:38Z")

</div>

How do I use Interact.jl to present a list of checkboxes with some of the boxes already checked off? Tried following the documentation and couldn’t figure out how to set specific checkboxes to true (i.e. checked off). W…

---

## [Inducing a Task to finish](https://discourse.julialang.org/t/inducing-a-task-to-finish/53923)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 0\
**Last updated:** [January 25, 2021, 6:37pm UTC](https://discourse.julialang.org/t/inducing-a-task-to-finish/53923 "2021-01-25T18:37:03Z")

</div>

I’m afraid there a lot of moving parts in this question. I’ve created a Task that reads from a Channel and writes to a WebSocket. I’d like to be able to wait() for the Task to finish, and I’d like the Task to finish when…

---

## [Help translating curl command to HTTP.jl](https://discourse.julialang.org/t/help-translating-curl-command-to-http-jl/53790)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 25\
**Last updated:** [January 25, 2021, 5:32pm UTC](https://discourse.julialang.org/t/help-translating-curl-command-to-http-jl/53790 "2021-01-25T17:32:18Z")

</div>

I would like to scrape data using the Spotify API and I cannot seem to get the example curl command to translate to HTTP.jl I am trying to get the accesstoken using my credentials. The relevant (working) curl command ru…

---

## [Adding packages using GitHub Actions](https://discourse.julialang.org/t/adding-packages-using-github-actions/53789)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 8\
**Last updated:** [January 25, 2021, 6:15pm UTC](https://discourse.julialang.org/t/adding-packages-using-github-actions/53789 "2021-01-25T18:15:09Z")

</div>

I am just starting to use GitHub Actions. When running a github\_ci.yml script via GitHub Actions I am getting the following error: - Run \`import Pkg; Pkg.add("BusinessDays")\` to install the BusinessDays package.\`\`\` Ho…

---

## [How to write scripts with quick startup time (PackageCompiler.jl?)](https://discourse.julialang.org/t/how-to-write-scripts-with-quick-startup-time-packagecompiler-jl/53900)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [January 25, 2021, 6:05pm UTC](https://discourse.julialang.org/t/how-to-write-scripts-with-quick-startup-time-packagecompiler-jl/53900 "2021-01-25T18:05:26Z")

</div>

I’d like to use Julia to write some scripts for quick tasks that could be otherwise done with Bash, sed, etc. Is there a good way to precompile the script to make it start quickly? Is PackageCompiler.jl a good option, an…

---

## [How to get number of Terms in @formula?](https://discourse.julialang.org/t/how-to-get-number-of-terms-in-formula/53864)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 4\
**Last updated:** [January 25, 2021, 5:49pm UTC](https://discourse.julialang.org/t/how-to-get-number-of-terms-in-formula/53864 "2021-01-25T17:49:22Z")

</div>

How to get number of Terms in @formula? Is any API? is a good way to do it? function nterms(model) if isa(model.rhs, Term) p = 1 else isa(model.rhs, Tuple) p = length(model.rhs) …

---

## [Getting function's module by a MethodInstance](https://discourse.julialang.org/t/getting-functions-module-by-a-methodinstance/53419)

<div class="topic-metadata">

**Author:** [@ulysses](https://discourse.julialang.org/u/ulysses)\
**Replies:** 5\
**Last updated:** [January 25, 2021, 5:24pm UTC](https://discourse.julialang.org/t/getting-functions-module-by-a-methodinstance/53419 "2021-01-25T17:24:36Z")

</div>

I’m looping over method instances in a module using @tim.holy’s marvelous MethodAnalysis.jl. I need to run @code\_typed for those instances to extract some type information. For that I first resolve the function using get…

---

## [How to specialize arguments to avoid unions](https://discourse.julialang.org/t/how-to-specialize-arguments-to-avoid-unions/53906)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 9\
**Last updated:** [January 25, 2021, 5:00pm UTC](https://discourse.julialang.org/t/how-to-specialize-arguments-to-avoid-unions/53906 "2021-01-25T17:00:15Z")

</div>

Hello everyone! I am trying to write two functions that accept 3D and 2D arrays that can be either real or complex. The first function receives arguments of one dimension higher than the second function. Then, it iterat…

---

## [Using functions in GPU Kernel (via KernelAbstractions.jl) (k nearest neighbor kernel)](https://discourse.julialang.org/t/using-functions-in-gpu-kernel-via-kernelabstractions-jl-k-nearest-neighbor-kernel/53850)

<div class="topic-metadata">

**Author:** [@jenkspt](https://discourse.julialang.org/u/jenkspt)\
**Replies:** 1\
**Last updated:** [January 25, 2021, 4:44pm UTC](https://discourse.julialang.org/t/using-functions-in-gpu-kernel-via-kernelabstractions-jl-k-nearest-neighbor-kernel/53850 "2021-01-25T16:44:49Z")

</div>

I’ve been working on implementing the k nearest neighbors CUDA kernel from https://github.com/facebookresearch/pytorch3d/tree/master/pytorch3d/csrc/knn in Julia. I found KernelAbstractions.jl allows the code to be simpli…

---

## [Weave texw to tex/pdf](https://discourse.julialang.org/t/weave-texw-to-tex-pdf/43218)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 1\
**Last updated:** [January 25, 2021, 4:43pm UTC](https://discourse.julialang.org/t/weave-texw-to-tex-pdf/43218 "2021-01-25T16:43:00Z")

</div>

Do recent versions of Weave.jl have support for weaving Julia code and output in the texw format? I have found an example file in the source but no reference in the documentation. I could not get this to work.

---

## [Help with JuMP](https://discourse.julialang.org/t/help-with-jump/53724)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 5\
**Last updated:** [January 25, 2021, 4:12pm UTC](https://discourse.julialang.org/t/help-with-jump/53724 "2021-01-25T16:12:40Z")

</div>

Hello I’m trying to make the “for” compile all the variables in the model, but whenever I compile it just returns the variable “c” Can anybody help me ? Thank you!! using JuMP, MathOptInterface, GLPK, GLPKMathProgInt…

---

## [What is the fastest dimension ordering for convolutions?](https://discourse.julialang.org/t/what-is-the-fastest-dimension-ordering-for-convolutions/46182)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 1\
**Last updated:** [January 25, 2021, 12:00pm UTC](https://discourse.julialang.org/t/what-is-the-fastest-dimension-ordering-for-convolutions/46182 "2021-01-25T12:00:57Z")

</div>

Hi! I am wondering what the fastest dimension ordering for convolution operations on the GPU using CUDNN currently is. Flux uses WHCN (column major), pytorch uses NCHW (row major) which is exactly the same. So to say, t…

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

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