# Latest

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

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

**Page:** 1501

---

## [So if I have module A defining a struct, then with "using" import the struct to mo](https://discourse.julialang.org/t/so-if-i-have-module-a-defining-a-struct-then-with-using-import-the-struct-to-mo/54704)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [February 6, 2021, 4:41am UTC](https://discourse.julialang.org/t/so-if-i-have-module-a-defining-a-struct-then-with-using-import-the-struct-to-mo/54704 "2021-02-06T04:41:25Z")

</div>

So if I have module A defining a struct, then with “using” import the struct to module B, and define a function on that struct. Then in module C “using” import both module A and B. When I try to run the function on the s…

---

## [How to install PackageCompiler](https://discourse.julialang.org/t/how-to-install-packagecompiler/23824)

<div class="topic-metadata">

**Author:** [@certik](https://discourse.julialang.org/u/certik)\
**Replies:** 6\
**Last updated:** [February 6, 2021, 12:08am UTC](https://discourse.julialang.org/t/how-to-install-packagecompiler/23824 "2021-02-06T00:08:17Z")

</div>

I want to install the PackageCompiler, so that I can execute juliac.jl -vae --compile=all hello.jl. Here is how I have done it: julia\> using Pkg julia\> Pkg.add("PackageCompiler") Here is a simple script called hello.…

---

## [Combinatorial Type Explosion: Nested Parameteric Types](https://discourse.julialang.org/t/combinatorial-type-explosion-nested-parameteric-types/54652)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 12\
**Last updated:** [February 5, 2021, 10:38pm UTC](https://discourse.julialang.org/t/combinatorial-type-explosion-nested-parameteric-types/54652 "2021-02-05T22:38:02Z")

</div>

Let us say I have a bunch of functions that I want to modify based on the stream type. Different density methods for liquid streams and gas streams etc. I create an abstract type “Substance” and define the stream as foll…

---

## [Delaunay Triangulation of Points Scattered Over Triangular Domain](https://discourse.julialang.org/t/delaunay-triangulation-of-points-scattered-over-triangular-domain/54653)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 4\
**Last updated:** [February 5, 2021, 10:01pm UTC](https://discourse.julialang.org/t/delaunay-triangulation-of-points-scattered-over-triangular-domain/54653 "2021-02-05T22:01:48Z")

</div>

I want to triangulate a set of points that are scattered over a two-dimensional triangular domain. For this purpose, I have been looking into a couple of packages including VoronoiDelaunay, GeometryBasics, GeometricalPre…

---

## [Getindex in Model Constraints assign](https://discourse.julialang.org/t/getindex-in-model-constraints-assign/54678)

<div class="topic-metadata">

**Author:** [@user1200](https://discourse.julialang.org/u/user1200)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 9:20pm UTC](https://discourse.julialang.org/t/getindex-in-model-constraints-assign/54678 "2021-02-05T21:20:16Z")

</div>

Hello Is there a way to use getIndex or findfirst function in Constraints in Model? Usage: Get maximum value from “1 vector(column)”-but remember just its index, for example 8th. Then get value from “another vector(co…

---

## [Invalid redefinition of constant](https://discourse.julialang.org/t/invalid-redefinition-of-constant/54686)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 8:53pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant/54686 "2021-02-05T20:53:55Z")

</div>

i have a function where i define inside the following: function relay(x,y,z) block of code funcQ(v)=qrs.prob(a,v,b) return funcQ then when i want to call the inner function, this happens funcQ= relay(argument list) …

---

## [Package Manager Bug? - different behaviour in different Jupyter notbooks](https://discourse.julialang.org/t/package-manager-bug-different-behaviour-in-different-jupyter-notbooks/54698)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 5:24pm UTC](https://discourse.julialang.org/t/package-manager-bug-different-behaviour-in-different-jupyter-notbooks/54698 "2021-02-05T17:24:54Z")

</div>

Hi. I loaded LIBSVM in a Jupyter window and it loaded and ran fine. I opened another notebook in the same session (same environment) and imported LIBSVM ok but kept on getting the error could not load library "/Users…

---

## [Preallocate an array of tuples](https://discourse.julialang.org/t/preallocate-an-array-of-tuples/54699)

<div class="topic-metadata">

**Author:** [@nelsonah](https://discourse.julialang.org/u/nelsonah)\
**Replies:** 7\
**Last updated:** [February 5, 2021, 8:38pm UTC](https://discourse.julialang.org/t/preallocate-an-array-of-tuples/54699 "2021-02-05T20:38:14Z")

</div>

This should be trivial but I’m stumped. Simple code snippet: # points = Array{(UInt8, UInt8, UInt8)}(undef, x\_size, y\_size) points = Array{undef,(6, 4)} # compiles, but not valid val = (100, 225, 255) points\[2\]\[3\] …

---

## [Vectorising Turing models](https://discourse.julialang.org/t/vectorising-turing-models/54700)

<div class="topic-metadata">

**Author:** [@drbenvincent](https://discourse.julialang.org/u/drbenvincent)\
**Replies:** 1\
**Last updated:** [February 5, 2021, 7:49pm UTC](https://discourse.julialang.org/t/vectorising-turing-models/54700 "2021-02-05T19:49:44Z")

</div>

I’m testing out vectorization in Turing models. I’ve managed to get a model that too 195 seconds, down to 60 seconds. But I wonder if there is anything obvious I’m missing in order to get even further benefits? using Tu…

---

## [JLBoost key error](https://discourse.julialang.org/t/jlboost-key-error/54702)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 7:25pm UTC](https://discourse.julialang.org/t/jlboost-key-error/54702 "2021-02-05T19:25:33Z")

</div>

Hi All, I am trying to blindly use JLBoost on a big dataset with 2381 features and 600 000 samples. I have automatically converted the feature matrix to the DataFrame using df = DataFrame(x, :auto), add labels as df.y =…

---

## [How to add multiple same rows in a array](https://discourse.julialang.org/t/how-to-add-multiple-same-rows-in-a-array/54695)

<div class="topic-metadata">

**Author:** [@Shazman](https://discourse.julialang.org/u/Shazman)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 4:58pm UTC](https://discourse.julialang.org/t/how-to-add-multiple-same-rows-in-a-array/54695 "2021-02-05T16:58:27Z")

</div>

Hi I have a array P (1x41227) and I want to add 27856 rows with same elements like P. how can I do it ? thanks 1×41227 Array{Float64,2}: 0.0361328 -0.00634766 0.774414 0.620117 … 0.255859 0.491211 0.666992

---

## [How to use generic constructors in interface modules?](https://discourse.julialang.org/t/how-to-use-generic-constructors-in-interface-modules/54619)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 6\
**Last updated:** [February 5, 2021, 4:56pm UTC](https://discourse.julialang.org/t/how-to-use-generic-constructors-in-interface-modules/54619 "2021-02-05T16:56:43Z")

</div>

I’m writing an interface module that contains a function that transforms any subtype of a given user-defined abstract type. I’m unclear how to write this in an interface module, since the constructor of the concrete coll…

---

## [Logging error, close file](https://discourse.julialang.org/t/logging-error-close-file/54640)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 4:41pm UTC](https://discourse.julialang.org/t/logging-error-close-file/54640 "2021-02-05T16:41:55Z")

</div>

I defined a file Logger in a Module and close the logger file in the test file. Error occurs as follows. Is this the proper way to use Logger in a user-defined module? Thanks! module SomeModule const g\_pkg\_dir = dir…

---

## [Composing probabilistic models](https://discourse.julialang.org/t/composing-probabilistic-models/54604)

<div class="topic-metadata">

**Author:** [@plafl](https://discourse.julialang.org/u/plafl)\
**Replies:** 6\
**Last updated:** [February 5, 2021, 4:20pm UTC](https://discourse.julialang.org/t/composing-probabilistic-models/54604 "2021-02-05T16:20:35Z")

</div>

Hi, I’m quite new to Julia and I have stumbled upon Turing. It looks great and the documentation is nice but either I have missed something or simply it’s not possible. I want to define models in a modular way and combi…

---

## [Hi, I created a new package recently, https://github.com/AlexisRenchon/DAMMmodel.j](https://discourse.julialang.org/t/hi-i-created-a-new-package-recently-https-github-com-alexisrenchon-dammmodel-j/54693)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 5, 2021, 4:00pm UTC](https://discourse.julialang.org/t/hi-i-created-a-new-package-recently-https-github-com-alexisrenchon-dammmodel-j/54693 "2021-02-05T16:00:38Z")

</div>

Hi, I created a new package recently, https://github.com/AlexisRenchon/DAMMmodel.jl and I noticed that the first time I could use its function directly like: using DAMMmodel DAMM\_Makie() but then I released a new ver…

---

## [HTTP.setheaders for file download](https://discourse.julialang.org/t/http-setheaders-for-file-download/54680)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 1\
**Last updated:** [February 5, 2021, 3:09pm UTC](https://discourse.julialang.org/t/http-setheaders-for-file-download/54680 "2021-02-05T15:09:07Z")

</div>

This is the code of web server. In this rest api response, I want the text to be downloaded in the file named results.csv (i.e. user should get the file “results.csv” in the Downloads folder). Here is the code: if last…

---

## [What are the functionality restrictions when compiling Julia with \`USE\_GPL\_LIBS=0\`?](https://discourse.julialang.org/t/what-are-the-functionality-restrictions-when-compiling-julia-with-use-gpl-libs-0/54674)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 5, 2021, 1:53pm UTC](https://discourse.julialang.org/t/what-are-the-functionality-restrictions-when-compiling-julia-with-use-gpl-libs-0/54674 "2021-02-05T13:53:16Z")

</div>

What are the functionality restrictions when compiling Julia with USE\_GPL\_LIBS=0 ? Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to …

---

## [Unable to install Pluto due to MbedTLS error](https://discourse.julialang.org/t/unable-to-install-pluto-due-to-mbedtls-error/54681)

<div class="topic-metadata">

**Author:** [@Allison](https://discourse.julialang.org/u/Allison)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 1:31pm UTC](https://discourse.julialang.org/t/unable-to-install-pluto-due-to-mbedtls-error/54681 "2021-02-05T13:31:25Z")

</div>

Hi, I just started a new course in which I need to use Julia and Pluto. I’ve successfully installed Julia v1.5.3, however, installing Pluto gives an MbedTLS error. I’m not the most tech-savvy person, so I might use incor…

---

## [Solve function for non full rank systems of equations](https://discourse.julialang.org/t/solve-function-for-non-full-rank-systems-of-equations/54611)

<div class="topic-metadata">

**Author:** [@Andres\_Legarra](https://discourse.julialang.org/u/Andres_Legarra)\
**Replies:** 4\
**Last updated:** [February 5, 2021, 1:27pm UTC](https://discourse.julialang.org/t/solve-function-for-non-full-rank-systems-of-equations/54611 "2021-02-05T13:27:05Z")

</div>

Typical OLS ( X'X a = X'y ) with 2 or more dummy (or cross-classified) effects are not full rank and they have infinite solutions. (Minimal example below.) They are conceptually solved using generalized inverses, to obta…

---

## [Windows terminal announcement](https://discourse.julialang.org/t/windows-terminal-announcement/23929)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 8\
**Last updated:** [February 5, 2021, 1:15pm UTC](https://discourse.julialang.org/t/windows-terminal-announcement/23929 "2021-02-05T13:15:48Z")

</div>

The Windows Terminal uses a GPU accelerated DirectWrite/DirectX-based text rendering engine. This new text rendering engine will display text characters, glyphs, and symbols present within fonts on your PC, including …

---

## [Elegant kernel for vectors in matrix](https://discourse.julialang.org/t/elegant-kernel-for-vectors-in-matrix/54648)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 12:57pm UTC](https://discourse.julialang.org/t/elegant-kernel-for-vectors-in-matrix/54648 "2021-02-05T12:57:32Z")

</div>

Hello, I’m trying to write a kernel that does some operations on vectors using CUDA.jl and @cuda. My code is essentially this: points = Nx3 matrix with x,y,z coordinates of points elements = Nx4 matrix with integers th…

---

## [Workflow when Debugger is too slow, module not exporting everything](https://discourse.julialang.org/t/workflow-when-debugger-is-too-slow-module-not-exporting-everything/54683)

<div class="topic-metadata">

**Author:** [@vsaase](https://discourse.julialang.org/u/vsaase)\
**Replies:** 1\
**Last updated:** [February 5, 2021, 12:47pm UTC](https://discourse.julialang.org/t/workflow-when-debugger-is-too-slow-module-not-exporting-everything/54683 "2021-02-05T12:47:00Z")

</div>

Hi, I am trying to debug a package I am writing and find myself often manually stepping through the functions in the REPL. It worked before I put everything into a module, but now I cannot copy paste the source from ins…

---

## [Eval scoping in macros, or removing eval completely](https://discourse.julialang.org/t/eval-scoping-in-macros-or-removing-eval-completely/54602)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 7\
**Last updated:** [February 5, 2021, 11:42am UTC](https://discourse.julialang.org/t/eval-scoping-in-macros-or-removing-eval-completely/54602 "2021-02-05T11:42:46Z")

</div>

Hi all, Took a stroll into marco coding and got totally lost. Trying to solve this issue. Breakdown: We have a simple enough macro helper @agent, which generates a few different types of struct depending on input. @a…

---

## [Planning Large Projects](https://discourse.julialang.org/t/planning-large-projects/28562)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 38\
**Last updated:** [February 5, 2021, 11:16am UTC](https://discourse.julialang.org/t/planning-large-projects/28562 "2021-02-05T11:16:04Z")

</div>

Hi Everyone, For the past two weeks or so I have been working on a large project. Potentially, very large? What tools do you all use as solo developers to keep the planning of projects like these straight? Is there a Pr…

---

## [Revise post-compilation hooks](https://discourse.julialang.org/t/revise-post-compilation-hooks/54629)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 9:50am UTC](https://discourse.julialang.org/t/revise-post-compilation-hooks/54629 "2021-02-05T09:50:20Z")

</div>

I was wondering if there is any way to hook into Revise’s compilation cycle. I’m aware of entr which is great when watching files - and basically what I’m looking for is similar behavior but for code changes that are not…

---

## [Plots.jl - Combined Histogram and Distribution](https://discourse.julialang.org/t/plots-jl-combined-histogram-and-distribution/54656)

<div class="topic-metadata">

**Author:** [@phillc](https://discourse.julialang.org/u/phillc)\
**Replies:** 4\
**Last updated:** [February 5, 2021, 9:03am UTC](https://discourse.julialang.org/t/plots-jl-combined-histogram-and-distribution/54656 "2021-02-05T09:03:50Z")

</div>

I’m trying to convert some plots from R based examples to Julia. The R examples are found here: Essentially the single plot is a histogram of a probability distribution, with the corresponding Beta distribution plotte…

---

## [Debugging with ImageView.jl](https://discourse.julialang.org/t/debugging-with-imageview-jl/54646)

<div class="topic-metadata">

**Author:** [@nicrummel](https://discourse.julialang.org/u/nicrummel)\
**Replies:** 7\
**Last updated:** [February 5, 2021, 9:00am UTC](https://discourse.julialang.org/t/debugging-with-imageview-jl/54646 "2021-02-05T09:00:29Z")

</div>

I really like the simplicity of ImageView.jl. It appears to be everything I need: showing an Matrix{Float64} as an image that scales appropriately, annotating with simple shapes or text I am currently working on a det…

---

## [No method matching ::Type{A{\<:Real}}, only ::Type{A{T}} where {T\<:Real}](https://discourse.julialang.org/t/no-method-matching-type-a-real-only-type-a-t-where-t-real/54673)

<div class="topic-metadata">

**Author:** [@ikirill](https://discourse.julialang.org/u/ikirill)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 8:40am UTC](https://discourse.julialang.org/t/no-method-matching-type-a-real-only-type-a-t-where-t-real/54673 "2021-02-05T08:40:44Z")

</div>

I can’t find this in the julia manual right now, but I’d always assumed that using \<:Real inside a type on the left-hand side of a function definition f(x::A{\<:Real}) is just an alias to f(x::A{T}) where {T\<:Real}. But w…

---

## [I don't see any caveats in \`Setfield.jl / Accessors.jl\`, but I'm getting a method](https://discourse.julialang.org/t/i-dont-see-any-caveats-in-setfield-jl-accessors-jl-but-im-getting-a-method/54657)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 7:59am UTC](https://discourse.julialang.org/t/i-dont-see-any-caveats-in-setfield-jl-accessors-jl-but-im-getting-a-method/54657 "2021-02-05T07:59:25Z")

</div>

I don’t see any caveats in Setfield.jl / Accessors.jl, but I’m getting a method error (ERROR: LoadError: MethodError: no method matching) for the constructor that I’m trying to mutate. Are limitations outlined anywhere? …

---

## [Save the date: JuliaCon 2021](https://discourse.julialang.org/t/save-the-date-juliacon-2021/51940)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 15\
**Last updated:** [February 5, 2021, 7:53am UTC](https://discourse.julialang.org/t/save-the-date-juliacon-2021/51940 "2021-02-05T07:53:23Z")

</div>

On behalf of the JuliaCon organising committee, I want to announce that JuliaCon 2021 will be held online. While the end might be in sight for COVID-19 with vaccine rollouts in some parts of the world, we are not confide…

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

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