# Latest

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

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

**Page:** 1316

---

## [Pluralisation of @NLparameter](https://discourse.julialang.org/t/pluralisation-of-nlparameter/61060)

<div class="topic-metadata">

**Author:** [@path-doc](https://discourse.julialang.org/u/path-doc)\
**Replies:** 4\
**Last updated:** [July 30, 2021, 9:49pm UTC](https://discourse.julialang.org/t/pluralisation-of-nlparameter/61060 "2021-07-30T21:49:20Z")

</div>

Hi I’m enjoying using JuMP, is there any reason why there is no pluralisation of @NLparameter ? I’ve had a peek at the macro file and the format of variables, constraints and expressions are the same. What would be th…

---

## [Shared definitions across modules](https://discourse.julialang.org/t/shared-definitions-across-modules/65570)

<div class="topic-metadata">

**Author:** [@markcbaumann](https://discourse.julialang.org/u/markcbaumann)\
**Replies:** 2\
**Last updated:** [July 30, 2021, 9:14pm UTC](https://discourse.julialang.org/t/shared-definitions-across-modules/65570 "2021-07-30T21:14:54Z")

</div>

Hello, I’m new to Julia. I am writing an application that is divided up into several modules, but I’m having trouble figuring out how to incorporate those modules with each other. In particular, I have some data struct…

---

## [Problem initializing dataframe column types](https://discourse.julialang.org/t/problem-initializing-dataframe-column-types/65561)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 6\
**Last updated:** [July 30, 2021, 9:40pm UTC](https://discourse.julialang.org/t/problem-initializing-dataframe-column-types/65561 "2021-07-30T21:40:32Z")

</div>

I’m having trouble initializing an empty dataframe intended to hold integer and floating point values: julia\> using DataFrames julia\> df = DataFrame(\[Int\[\],Float64\[\]\], :auto) 0×2 DataFrame julia\> push!(df,Any\[1,10.0\])…

---

## [Reading multiple integers from the same line without string manipulation](https://discourse.julialang.org/t/reading-multiple-integers-from-the-same-line-without-string-manipulation/65572)

<div class="topic-metadata">

**Author:** [@burntclaw](https://discourse.julialang.org/u/burntclaw)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 8:55pm UTC](https://discourse.julialang.org/t/reading-multiple-integers-from-the-same-line-without-string-manipulation/65572 "2021-07-30T20:55:53Z")

</div>

Hi all! I’m relatively new to Julia. I’m wondering if there is a way to read a line of integers like this in a file without using readline(s) and then parsing and manipulating the resulting string. The text file I want t…

---

## [Segmentation fault in julia nightly when running standard tests on github CI](https://discourse.julialang.org/t/segmentation-fault-in-julia-nightly-when-running-standard-tests-on-github-ci/65048)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 6:50pm UTC](https://discourse.julialang.org/t/segmentation-fault-in-julia-nightly-when-running-standard-tests-on-github-ci/65048 "2021-07-30T18:50:32Z")

</div>

Just run into this error when running the standard tests of my new package ExtensibleEffects.jl under julia nightly. On Julia 1.6 everything runs smoothly. Does someone know whether I should push this to github julia? h…

---

## [PosDefException: matrix is not positive definite; Cholesky factorization failed](https://discourse.julialang.org/t/posdefexception-matrix-is-not-positive-definite-cholesky-factorization-failed/65518)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 9\
**Last updated:** [July 30, 2021, 5:39pm UTC](https://discourse.julialang.org/t/posdefexception-matrix-is-not-positive-definite-cholesky-factorization-failed/65518 "2021-07-30T17:39:31Z")

</div>

Hello Julians: I am encountering the issue above when I am building a logistic regression model using the GLM package. I was able to catch a reply from @tim.holy that covered some functions that could potentially a…

---

## [Makie: how to avoid dropdown menus overlapping?](https://discourse.julialang.org/t/makie-how-to-avoid-dropdown-menus-overlapping/65556)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 5:10pm UTC](https://discourse.julialang.org/t/makie-how-to-avoid-dropdown-menus-overlapping/65556 "2021-07-30T17:10:50Z")

</div>

Hi, Here’s a MWE of a Makie Figure with two dropdown menus. f = Figure() f\[1,1\] = Menu(f, options = \["aaa", "bbb", "ccc"\]) f\[2,1\] = Menu(f, options = \["aaa", "bbb", "ccc"\], direction = :up) You’ll notice that when ope…

---

## [Glitching plot in GLMakie when reopening an interactive figure](https://discourse.julialang.org/t/glitching-plot-in-glmakie-when-reopening-an-interactive-figure/65560)

<div class="topic-metadata">

**Author:** [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 4:39pm UTC](https://discourse.julialang.org/t/glitching-plot-in-glmakie-when-reopening-an-interactive-figure/65560 "2021-07-30T16:39:32Z")

</div>

I am finding that interactive plots in GLMakie seem to glitch upon reopening a figure. What I mean by this is that when I initially run the code to produce an interactive plot, it displays correctly in the Makie window, …

---

## [StructArrays Memory Layout](https://discourse.julialang.org/t/structarrays-memory-layout/65105)

<div class="topic-metadata">

**Author:** [@mdtisdall](https://discourse.julialang.org/u/mdtisdall)\
**Replies:** 14\
**Last updated:** [July 29, 2021, 6:22pm UTC](https://discourse.julialang.org/t/structarrays-memory-layout/65105 "2021-07-29T18:22:44Z")

</div>

I’m trying to understand the memory layout of a StructArray I’m constructing in my code. Specifically, it looks to me like the memory layout is still an array of structs, rather than a struct of arrays. I’m very new to J…

---

## [Omitting type parameters on dispatch: accepted or implementation detail?](https://discourse.julialang.org/t/omitting-type-parameters-on-dispatch-accepted-or-implementation-detail/65552)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 2\
**Last updated:** [July 30, 2021, 2:31pm UTC](https://discourse.julialang.org/t/omitting-type-parameters-on-dispatch-accepted-or-implementation-detail/65552 "2021-07-30T14:31:30Z")

</div>

I am unsure if omitting additional type parameters on dispatch is an accepted and stable language behavior, or if it should be avoided, meaning doing things like this: julia\> using StaticArrays julia\> f(x::SVector{3}) …

---

## [JuMP & SumOfSquares generate SDPs with ~18x more constraints than YALMIP](https://discourse.julialang.org/t/jump-sumofsquares-generate-sdps-with-18x-more-constraints-than-yalmip/65377)

<div class="topic-metadata">

**Author:** [@ciba12](https://discourse.julialang.org/u/ciba12)\
**Replies:** 15\
**Last updated:** [July 30, 2021, 1:45pm UTC](https://discourse.julialang.org/t/jump-sumofsquares-generate-sdps-with-18x-more-constraints-than-yalmip/65377 "2021-07-30T13:45:13Z")

</div>

Hi, I am attempting to rewrite MATLAB code, which is slow due to Yalmip’s parsing speed. The resulting problem that gets sent to the solver from JuMP is much larger (and slower to solve) than Yalmip’s output. I don’t t…

---

## [@test macro](https://discourse.julialang.org/t/test-macro/65531)

<div class="topic-metadata">

**Author:** [@Alois](https://discourse.julialang.org/u/Alois)\
**Replies:** 8\
**Last updated:** [July 30, 2021, 1:29pm UTC](https://discourse.julialang.org/t/test-macro/65531 "2021-07-30T13:29:38Z")

</div>

I understand that @assert 2 == 3; println("never") stops execution. But why does @test 2 == 3; println("never") abort execution, even with Error? I mean it is just a test which failed, but this should not result in a…

---

## [Finding row index of matrix](https://discourse.julialang.org/t/finding-row-index-of-matrix/65540)

<div class="topic-metadata">

**Author:** [@juls](https://discourse.julialang.org/u/juls)\
**Replies:** 5\
**Last updated:** [July 30, 2021, 12:15pm UTC](https://discourse.julialang.org/t/finding-row-index-of-matrix/65540 "2021-07-30T12:15:43Z")

</div>

Hi, I have two matrices : b = 6×2 Array{Int64,2}: 0 2 1 4 0 7 1 4 1 5 2 4 and a = 6×2 Array{Int64,2}: 0 2 0 7 1 4 1 4 1 5 2 4 I need to find row index, i of matrix b with respect to a. i.e.…

---

## [Problem with Ntuple and VariableRef when using NLconstraint in JuMP](https://discourse.julialang.org/t/problem-with-ntuple-and-variableref-when-using-nlconstraint-in-jump/65200)

<div class="topic-metadata">

**Author:** [@ylish](https://discourse.julialang.org/u/ylish)\
**Replies:** 4\
**Last updated:** [July 30, 2021, 11:27am UTC](https://discourse.julialang.org/t/problem-with-ntuple-and-variableref-when-using-nlconstraint-in-jump/65200 "2021-07-30T11:27:11Z")

</div>

Hi everybody, Below is a simplified part of my code, which attempts to do nonlinear optimization using JuMP . I have both cost and constraints which require vector input. However I am having issues with NLconstraint. Wo…

---

## [CUDA requirements](https://discourse.julialang.org/t/cuda-requirements/65355)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 2\
**Last updated:** [July 30, 2021, 9:06am UTC](https://discourse.julialang.org/t/cuda-requirements/65355 "2021-07-30T09:06:50Z")

</div>

First, thanks to Tim & co. for great JuliaCon workshops. I was not able to install CUDA.jl, unfortunately. My PC only has Intel UHD Graphics 620, no NVIDIA card. Am I right in assuming that CUDA.jl requires an NVIDIA …

---

## [Looking for a Julia Group in Trondheim](https://discourse.julialang.org/t/looking-for-a-julia-group-in-trondheim/65546)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 9:03am UTC](https://discourse.julialang.org/t/looking-for-a-julia-group-in-trondheim/65546 "2021-07-30T09:03:18Z")

</div>

I moved to Trondheim in Spring to work at NTNU. I would like to communicate/meet with other Julia enthusiasts / beginners / … that are also in Trondheim. Are there some? If so – would anyone be interested in meetings, m…

---

## [Monitoring GPU activity asynchronously (read data from the GPU)](https://discourse.julialang.org/t/monitoring-gpu-activity-asynchronously-read-data-from-the-gpu/65496)

<div class="topic-metadata">

**Author:** [@gil](https://discourse.julialang.org/u/gil)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 8:59am UTC](https://discourse.julialang.org/t/monitoring-gpu-activity-asynchronously-read-data-from-the-gpu/65496 "2021-07-30T08:59:05Z")

</div>

Hi, Is there a way to continuously read a data array from the GPU (such as print it) while a kernel continues to update that data? in effect monitoring the kernel activity? for instance, I want a long-running kernel to…

---

## [CUDA.jl - ERROR: LoadError: LoadError: UndefVarError: parameters not defined](https://discourse.julialang.org/t/cuda-jl-error-loaderror-loaderror-undefvarerror-parameters-not-defined/65501)

<div class="topic-metadata">

**Author:** [@molen89](https://discourse.julialang.org/u/molen89)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 8:58am UTC](https://discourse.julialang.org/t/cuda-jl-error-loaderror-loaderror-undefvarerror-parameters-not-defined/65501 "2021-07-30T08:58:02Z")

</div>

I am having issues with the cuda/flux packages when using the gpu. Example code using Flux, CUDA m = Dense(10,5) |\> gpu x = rand(10) |\> gpu m(x) \> UndefVarError: parameters not defined versions Julia 1.6.1 CUDA 11.…

---

## [Julia packages that have no equivalents in other languages?](https://discourse.julialang.org/t/julia-packages-that-have-no-equivalents-in-other-languages/64646)

<div class="topic-metadata">

**Author:** [@Erasmo98](https://discourse.julialang.org/u/Erasmo98)\
**Replies:** 42\
**Last updated:** [July 30, 2021, 8:15am UTC](https://discourse.julialang.org/t/julia-packages-that-have-no-equivalents-in-other-languages/64646 "2021-07-30T08:15:15Z")

</div>

I’m going to give a talk to students with experience in Python and R about the advantages of Julia. I already have most of the talk but would like to have an argument related to existing Julia packages. I know Julia is …

---

## [How to use one DrWatson project in another DrWatson project?](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 5\
**Last updated:** [July 30, 2021, 8:14am UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363 "2021-07-30T08:14:35Z")

</div>

I love DrWatson, and I use it whenever I start a new project. I have some project (all it project\_A) which I also made a module (as insturcted in the documentation : Real World Examples · DrWatson.jl). Now I have anoth…

---

## [Computations with decimals (arbitrary precision)](https://discourse.julialang.org/t/computations-with-decimals-arbitrary-precision/65534)

<div class="topic-metadata">

**Author:** [@Gilles\_Dubois](https://discourse.julialang.org/u/Gilles_Dubois)\
**Replies:** 2\
**Last updated:** [July 30, 2021, 4:40am UTC](https://discourse.julialang.org/t/computations-with-decimals-arbitrary-precision/65534 "2021-07-30T04:40:32Z")

</div>

Hello everybody ! I’m busy now with studying the speed of convergence of sequences of real numbers. I begin to study classical algorithms like Archimedes polygonal approximation of pi, and newton computations of a squa…

---

## [How to skip the error with try/catch statements?](https://discourse.julialang.org/t/how-to-skip-the-error-with-try-catch-statements/65527)

<div class="topic-metadata">

**Author:** [@Sebastian\_Mena](https://discourse.julialang.org/u/Sebastian_Mena)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 1:39am UTC](https://discourse.julialang.org/t/how-to-skip-the-error-with-try-catch-statements/65527 "2021-07-30T01:39:04Z")

</div>

Hi, Do you know how to try with another option when first doesn’t work? For example: try var = first\_option #this variable sometimes works, but in some cases throw an error #so, when this var throw an error, I want t…

---

## [Error deploying documentation](https://discourse.julialang.org/t/error-deploying-documentation/65039)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 4\
**Last updated:** [July 30, 2021, 12:47am UTC](https://discourse.julialang.org/t/error-deploying-documentation/65039 "2021-07-30T00:47:11Z")

</div>

I’m running into an issue deploying documentation on GitHub. I have Documenter setup with GitHub actions, and the deployment seems to be running smoothly ┌ Info: Deployment criteria for deploying devbranch build from Gi…

---

## [Make a Dictionary of files in ZipFile indexed by filename](https://discourse.julialang.org/t/make-a-dictionary-of-files-in-zipfile-indexed-by-filename/65533)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 1\
**Last updated:** [July 29, 2021, 11:07pm UTC](https://discourse.julialang.org/t/make-a-dictionary-of-files-in-zipfile-indexed-by-filename/65533 "2021-07-29T23:07:25Z")

</div>

I was hoping this would work, but get all sorts of weird stuff. using ZipFile z = ZipFile.Reader(archive\_filepath) files = z.files iter = (f -\> f.name =\> f for f in files) # which is Base.Generator{Vector{ZipFile.Readab…

---

## [Plot 2D histogram of 3D+ multivariate data](https://discourse.julialang.org/t/plot-2d-histogram-of-3d-multivariate-data/65525)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [July 29, 2021, 10:02pm UTC](https://discourse.julialang.org/t/plot-2d-histogram-of-3d-multivariate-data/65525 "2021-07-29T22:02:09Z")

</div>

To plot a bivariate histogram with as many bins as I like in each dimension, I can use using StatsBase, Plots d1 = randn(10\_000) d2 = randn(10\_000) nbins1 = 25 nbins2 = 10 hist = fit(Histogram, (d1,d2), (range(mini…

---

## [Algorithms design book / cookbook for Julia?](https://discourse.julialang.org/t/algorithms-design-book-cookbook-for-julia/64720)

<div class="topic-metadata">

**Author:** [@phendric](https://discourse.julialang.org/u/phendric)\
**Replies:** 28\
**Last updated:** [July 29, 2021, 11:11pm UTC](https://discourse.julialang.org/t/algorithms-design-book-cookbook-for-julia/64720 "2021-07-29T23:11:37Z")

</div>

Not having a computer science degree, I never took a course in design or analysis of algorithms + data structures at a non-beginner level. I’ve taken a beginning data structures course and implemented beginner algorithm…

---

## [Calling C with a tuple where I write the C to parse the tuple](https://discourse.julialang.org/t/calling-c-with-a-tuple-where-i-write-the-c-to-parse-the-tuple/65530)

<div class="topic-metadata">

**Author:** [@bootchk](https://discourse.julialang.org/u/bootchk)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 10:32pm UTC](https://discourse.julialang.org/t/calling-c-with-a-tuple-where-i-write-the-c-to-parse-the-tuple/65530 "2021-07-29T22:32:31Z")

</div>

From Julia, I want to call a C program and pass a tuple. Tuple is variable length. Tuple is actually written by a third party. The domain is a GIMP plugin. A third party author will write the Julia, calling GIMP proc…

---

## [How to find the error line using try/catch statements?](https://discourse.julialang.org/t/how-to-find-the-error-line-using-try-catch-statements/65511)

<div class="topic-metadata">

**Author:** [@Sebastian\_Mena](https://discourse.julialang.org/u/Sebastian_Mena)\
**Replies:** 6\
**Last updated:** [July 29, 2021, 10:03pm UTC](https://discourse.julialang.org/t/how-to-find-the-error-line-using-try-catch-statements/65511 "2021-07-29T22:03:16Z")

</div>

Hi, I want to get the line number of an error using try/catch statements. try \[my\_function\] catch err println(err) #this only shows the name of the error #i want to print the line number of the error I hope you can h…

---

## [JuliaCon: broken link](https://discourse.julialang.org/t/juliacon-broken-link/65471)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 4\
**Last updated:** [July 29, 2021, 9:58pm UTC](https://discourse.julialang.org/t/juliacon-broken-link/65471 "2021-07-29T21:58:31Z")

</div>

Keynote: William Kahan: The content of that page is Vitek’s keynote.

---

## [Faster default Base.sort! for Julia](https://discourse.julialang.org/t/faster-default-base-sort-for-julia/65508)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 4\
**Last updated:** [July 29, 2021, 9:46pm UTC](https://discourse.julialang.org/t/faster-default-base-sort-for-julia/65508 "2021-07-29T21:46:21Z")

</div>

There are functions like factorial where Julia uses a factorial\_lookup function to directly return results from a table when the value is lower or equal to 20. Playing around with sorting algorithms I built a simple one…

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

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