# Latest

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

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

**Page:** 1277

---

## [Embedding Julia in C++ jl\_init is super slow](https://discourse.julialang.org/t/embedding-julia-in-c-jl-init-is-super-slow/67549)

<div class="topic-metadata">

**Author:** [@solaris](https://discourse.julialang.org/u/solaris)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 8:49pm UTC](https://discourse.julialang.org/t/embedding-julia-in-c-jl-init-is-super-slow/67549 "2021-09-03T20:49:13Z")

</div>

Hi, I’m completely new to Julia, from a mostly C++ background, and am very intrigued by it. I’m trying to embed Julia into C++ for a gaming application. I copied and pasted the code in the docs (Embedding Julia · The J…

---

## [Overlay Normal distribution on density or histogram plot](https://discourse.julialang.org/t/overlay-normal-distribution-on-density-or-histogram-plot/67664)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 8:32pm UTC](https://discourse.julialang.org/t/overlay-normal-distribution-on-density-or-histogram-plot/67664 "2021-09-03T20:32:24Z")

</div>

I’m trying out Makie and AlgebraOfGraphics. Very cool! I’m wondering how to add a plot of a Normal distribution pdf over my density or histogram layer. For example, how could I add it as a third curve in this particular…

---

## [Why don't remotecalls to a WorkerPool block when all workers are busy?](https://discourse.julialang.org/t/why-dont-remotecalls-to-a-workerpool-block-when-all-workers-are-busy/22059)

<div class="topic-metadata">

**Author:** [@Cody-G](https://discourse.julialang.org/u/Cody-G)\
**Replies:** 6\
**Last updated:** [September 3, 2021, 7:09pm UTC](https://discourse.julialang.org/t/why-dont-remotecalls-to-a-workerpool-block-when-all-workers-are-busy/22059 "2021-09-03T19:09:20Z")

</div>

Based on the docs for remotecall I expect the WorkerPool variant to block until a worker in the pool is available for a new job. From docs: remotecall(f, pool::AbstractWorkerPool, args...; kwargs...) -\> Future Work…

---

## [Syntax of types with "new" in constructors, where is it described?](https://discourse.julialang.org/t/syntax-of-types-with-new-in-constructors-where-is-it-described/67652)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 6:37pm UTC](https://discourse.julialang.org/t/syntax-of-types-with-new-in-constructors-where-is-it-described/67652 "2021-09-03T18:37:21Z")

</div>

I ran into the issue described in How to resolve syntax: too few type parameters specified in &ldquo;new{&hellip;}&rdquo;? yesterday and for the life of me I can’t find anywhere in the documentation where the syntax new{…

---

## [How to exchange x-y axis and layout with another image?](https://discourse.julialang.org/t/how-to-exchange-x-y-axis-and-layout-with-another-image/67615)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 5:52pm UTC](https://discourse.julialang.org/t/how-to-exchange-x-y-axis-and-layout-with-another-image/67615 "2021-09-03T17:52:46Z")

</div>

All I want to achieve is something like this: the second plot should be drawn with x-y axes exchanged y axis of the two plots should be overlayed Can anyone help me about this? Thanks in advance.

---

## [Makie: mouse position in data coordinates](https://discourse.julialang.org/t/makie-mouse-position-in-data-coordinates/67573)

<div class="topic-metadata">

**Author:** [@inverseproblem](https://discourse.julialang.org/u/inverseproblem)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 5:43pm UTC](https://discourse.julialang.org/t/makie-mouse-position-in-data-coordinates/67573 "2021-09-03T17:43:51Z")

</div>

Hello, I’m having troubles in getting the mouse position in data coordinates from a Makie plot. Using mouseposition() seems to return the position in pixel coordinates contrary to what described in the documentation ht…

---

## [Loading individual entries from BSON ignoring all others](https://discourse.julialang.org/t/loading-individual-entries-from-bson-ignoring-all-others/67660)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 0\
**Last updated:** [September 3, 2021, 5:37pm UTC](https://discourse.julialang.org/t/loading-individual-entries-from-bson-ignoring-all-others/67660 "2021-09-03T17:37:05Z")

</div>

I’ve been using BSON to save my data. I’m using Turing and saved a BNN model. I tried to save the model, but I can’t reload it without explicitly using every dependent package utilized and finally some function for VarNa…

---

## [RCall.jl and Unicode](https://discourse.julialang.org/t/rcall-jl-and-unicode/67654)

<div class="topic-metadata">

**Author:** [@matvil](https://discourse.julialang.org/u/matvil)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 5:33pm UTC](https://discourse.julialang.org/t/rcall-jl-and-unicode/67654 "2021-09-03T17:33:52Z")

</div>

R on Windows does not seem to support unicode (UTF-8), at least not the non-experimental versions. I am currently doing a workaround where I copy all unicode arguments in Julia to ascii before passing them to R via RCal…

---

## [Applying Julia for Solving an LMI and an optimization at the same time](https://discourse.julialang.org/t/applying-julia-for-solving-an-lmi-and-an-optimization-at-the-same-time/67644)

<div class="topic-metadata">

**Author:** [@jeanluc](https://discourse.julialang.org/u/jeanluc)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 3:27pm UTC](https://discourse.julialang.org/t/applying-julia-for-solving-an-lmi-and-an-optimization-at-the-same-time/67644 "2021-09-03T15:27:53Z")

</div>

Dear Friends, I need to solve the next matrix inequality: I do now know how to solve it with Julia are there similar solved problems with Julia that I can study? Here both P\\geq0 and lambda are unknown and \\Pi \\g…

---

## [How to adjust the density of streamplot in Julia?](https://discourse.julialang.org/t/how-to-adjust-the-density-of-streamplot-in-julia/67647)

<div class="topic-metadata">

**Author:** [@GoH](https://discourse.julialang.org/u/GoH)\
**Replies:** 1\
**Last updated:** [September 3, 2021, 3:08pm UTC](https://discourse.julialang.org/t/how-to-adjust-the-density-of-streamplot-in-julia/67647 "2021-09-03T15:08:40Z")

</div>

Hi, I am trying to generate the phase space of the SI model, based on the example code in https://lazarusa.github.io/BeautifulMakie/FlowFields/streamplots3/ my code (in Pluto notebook) is begin using CairoMakie let …

---

## [Get types of members of a Tuple{} type](https://discourse.julialang.org/t/get-types-of-members-of-a-tuple-type/67645)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 7\
**Last updated:** [September 3, 2021, 2:35pm UTC](https://discourse.julialang.org/t/get-types-of-members-of-a-tuple-type/67645 "2021-09-03T14:35:50Z")

</div>

Given a Tuple type Tuple{typeof(DXFutils.parseraction), Parser, DXFGroup, EntityType\_SECTION} how do I extract the types of the 2nd and 3rd elements, to get something like (DXFGroup, EntityType\_SECTION})\` Fieldnames …

---

## [How to create vector of specific structure?](https://discourse.julialang.org/t/how-to-create-vector-of-specific-structure/67606)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 9\
**Last updated:** [September 3, 2021, 1:59pm UTC](https://discourse.julialang.org/t/how-to-create-vector-of-specific-structure/67606 "2021-09-03T13:59:58Z")

</div>

I have this structure: julia\> Base.@kwdef mutable struct Vsines instancename::String="Def" value::Float64=0.0 end and I want to create a vector of “Vsines” instances (name of this vector is…

---

## [Graph ismorphism library?](https://discourse.julialang.org/t/graph-ismorphism-library/58555)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 1:43pm UTC](https://discourse.julialang.org/t/graph-ismorphism-library/58555 "2021-09-03T13:43:43Z")

</div>

Are there good graph isomorphism libraries written in or accessible from Julia? Lightgrpahs.jl doesn’t seem to have this functionality. A bonus would be support for vertex / edge colors and multigrpahs.

---

## [How to prevent type conversion for single value array?](https://discourse.julialang.org/t/how-to-prevent-type-conversion-for-single-value-array/67632)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 1:27pm UTC](https://discourse.julialang.org/t/how-to-prevent-type-conversion-for-single-value-array/67632 "2021-09-03T13:27:26Z")

</div>

I am trying to create a single valued array called xs in which I am later pushing in values. xs = \[x0,\] where x0 is obtained through a slider in Pluto notebook as follows. @bind x0 Slider(0.0:0.01:0.99, show\_value=tru…

---

## [Use ForwardDiff instead of Zygote with Flux?](https://discourse.julialang.org/t/use-forwarddiff-instead-of-zygote-with-flux/67572)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 10\
**Last updated:** [September 3, 2021, 12:35pm UTC](https://discourse.julialang.org/t/use-forwarddiff-instead-of-zygote-with-flux/67572 "2021-09-03T12:35:36Z")

</div>

I’m embedding a Flux model into a physical simulation but Zygote doesn’t seem to be able to handle taking the gradient. I got ForwardDiff.gradient working with the code yesterday. Can I use ForwardDiff as the backend in…

---

## [How to use Lyapunov function in Julia](https://discourse.julialang.org/t/how-to-use-lyapunov-function-in-julia/4195)

<div class="topic-metadata">

**Author:** [@ashim-haque](https://discourse.julialang.org/u/ashim-haque)\
**Replies:** 13\
**Last updated:** [September 3, 2021, 12:23pm UTC](https://discourse.julialang.org/t/how-to-use-lyapunov-function-in-julia/4195 "2021-09-03T12:23:30Z")

</div>

Please can anyone guide me how to use the Lyapunov function in julia?

---

## [How to get the name of the current function](https://discourse.julialang.org/t/how-to-get-the-name-of-the-current-function/51223)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 5\
**Last updated:** [September 3, 2021, 10:29am UTC](https://discourse.julialang.org/t/how-to-get-the-name-of-the-current-function/51223 "2021-09-03T10:29:51Z")

</div>

I want to meta-program functions that include messages with their names. This works: fname = :foo @eval $fname() = "This function is \`$(fname)\`" julia\> foo() "This function is \`foo\`" But this doesn’t: for fname in (:…

---

## [Adding multiple agent types to an AgentBasedModel (in Agents.jl)](https://discourse.julialang.org/t/adding-multiple-agent-types-to-an-agentbasedmodel-in-agents-jl/65270)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 8\
**Last updated:** [September 3, 2021, 9:23am UTC](https://discourse.julialang.org/t/adding-multiple-agent-types-to-an-agentbasedmodel-in-agents-jl/65270 "2021-09-03T09:23:21Z")

</div>

Hi, I am trying create an Agent Based Model using the Agents.jl package and wondering how to add multiple agent types in GridSpace based model. In this instance I want to add two type of agents using Agents:: Abstract…

---

## [CUDAnative: register host memory for pinned memory access](https://discourse.julialang.org/t/cudanative-register-host-memory-for-pinned-memory-access/23046)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 26\
**Last updated:** [September 3, 2021, 8:42am UTC](https://discourse.julialang.org/t/cudanative-register-host-memory-for-pinned-memory-access/23046 "2021-09-03T08:42:25Z")

</div>

Hi all, how do I register host memory with CUDAnative in order to enable pinned memory access directly from a GPU kernel? In other words, I wonder how in Julia one can do the equivalent of the following CUDA code: …

---

## [CUDNN operators not supporting Views/SubArrays](https://discourse.julialang.org/t/cudnn-operators-not-supporting-views-subarrays/67463)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 8:05am UTC](https://discourse.julialang.org/t/cudnn-operators-not-supporting-views-subarrays/67463 "2021-09-03T08:05:58Z")

</div>

Is there a reason for Convolution (and other CUDNN related functions) to be restricted to DenseCuArray as found in the NNlibCUDA.jl repo? For example, taking a view here will result in an error as CUDA has to resort to …

---

## [Interpolate Dates](https://discourse.julialang.org/t/interpolate-dates/8091)

<div class="topic-metadata">

**Author:** [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Replies:** 5\
**Last updated:** [September 3, 2021, 7:29am UTC](https://discourse.julialang.org/t/interpolate-dates/8091 "2021-09-03T07:29:56Z")

</div>

Similar to this, I am interested in writing an interpolation for Date(Times). julia\> using Interpolations julia\> dates = \[Dates.today()+Dates.Year(i-1) for i in 1:6\] 6-element Array{Date,1}: 2018-01-01 2019-01-01 20…

---

## [Slowdown when computing eigenvalues for list of matrices with pmap](https://discourse.julialang.org/t/slowdown-when-computing-eigenvalues-for-list-of-matrices-with-pmap/67622)

<div class="topic-metadata">

**Author:** [@christian-hh](https://discourse.julialang.org/u/christian-hh)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 7:09am UTC](https://discourse.julialang.org/t/slowdown-when-computing-eigenvalues-for-list-of-matrices-with-pmap/67622 "2021-09-03T07:09:57Z")

</div>

I am attempting to compute, in parallel, the eigenvalues for a list of symmetric matrices. In the code below this is achieved with pmap (using 10 workers) and sequentially (for comparison). I’ve set the number of threads…

---

## [While loop with try/catch error in Julia logic problem](https://discourse.julialang.org/t/while-loop-with-try-catch-error-in-julia-logic-problem/67629)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 1\
**Last updated:** [September 3, 2021, 6:32am UTC](https://discourse.julialang.org/t/while-loop-with-try-catch-error-in-julia-logic-problem/67629 "2021-09-03T06:32:03Z")

</div>

I’m trying to write a while loop that tests whether an input is valid or not and it keeps asking if the user insists on the wrong input. If it is a valid one, the program just goes on. This is where i’m at. whil…

---

## [Plotting: Log-log plot: How do I resolve a "no strict ticks" warning?](https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510)

<div class="topic-metadata">

**Author:** [@psanan](https://discourse.julialang.org/u/psanan)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 6:18am UTC](https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510 "2021-09-03T06:18:32Z")

</div>

I’d like to plot data, as in the following example, on a log-log plot. Recently (I think since upgrading from 1.5.x to 1.6.2), I’ve noticed “no strict ticks” warnings and no ticks on the x axis. I assume a heuristic for …

---

## [Juno installing issue](https://discourse.julialang.org/t/juno-installing-issue/67626)

<div class="topic-metadata">

**Author:** [@Chaitanya](https://discourse.julialang.org/u/Chaitanya)\
**Replies:** 0\
**Last updated:** [September 3, 2021, 6:15am UTC](https://discourse.julialang.org/t/juno-installing-issue/67626 "2021-09-03T06:15:58Z")

</div>

I am getting this screen while installing uber-juno. i just can type in there. No other button is working! like escape…etc. how do i go further?

---

## [How do I simply express a canonical basis for G4 using Symbolics.jl](https://discourse.julialang.org/t/how-do-i-simply-express-a-canonical-basis-for-g4-using-symbolics-jl/67540)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 4:48am UTC](https://discourse.julialang.org/t/how-do-i-simply-express-a-canonical-basis-for-g4-using-symbolics-jl/67540 "2021-09-03T04:48:05Z")

</div>

I am fumbling my way through learning basic Geometric Algebra. I want to bootstrap my understanding of using Symbolics.jl at the same time. I have some dumb questions about the mathematics, and usage of the Symbolics pac…

---

## [I don't understand gradient with Flux and Julia](https://discourse.julialang.org/t/i-dont-understand-gradient-with-flux-and-julia/67552)

<div class="topic-metadata">

**Author:** [@Emmanuel\_371](https://discourse.julialang.org/u/Emmanuel_371)\
**Replies:** 2\
**Last updated:** [September 2, 2021, 9:26am UTC](https://discourse.julialang.org/t/i-dont-understand-gradient-with-flux-and-julia/67552 "2021-09-02T09:26:53Z")

</div>

Hi there ! I’m a newcomer to Julia and Flux. I don’t understand this return with gradient Here’s my code: f(x,y) = sum(x .- y) g(x,y) = sum((x .- y).^2) gradient(g, \[1,2\], \[3,4\]) The answer is (\[-4, -4\], \[4…

---

## [Differential Equation solve problem](https://discourse.julialang.org/t/differential-equation-solve-problem/67587)

<div class="topic-metadata">

**Author:** [@hzgzh](https://discourse.julialang.org/u/hzgzh)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 3:26am UTC](https://discourse.julialang.org/t/differential-equation-solve-problem/67587 "2021-09-03T03:26:15Z")

</div>

I have a dae problem to solve ,but always have singualar error, could someone help? using DifferentialEquations, Plots function ga!(du,u,p,t) t2=0.02; τ, kp, ki, tc=p du\[1\] = ki \* (u\[5\] - u\[2\]) …

---

## [Segfault when jl\_init in R (also python?) with julia 1.6 on macOS](https://discourse.julialang.org/t/segfault-when-jl-init-in-r-also-python-with-julia-1-6-on-macos/58110)

<div class="topic-metadata">

**Author:** [@Non-Contradiction](https://discourse.julialang.org/u/Non-Contradiction)\
**Replies:** 4\
**Last updated:** [September 3, 2021, 3:20am UTC](https://discourse.julialang.org/t/segfault-when-jl-init-in-r-also-python-with-julia-1-6-on-macos/58110 "2021-09-03T03:20:07Z")

</div>

Hi, I’m debugging an issue for JuliaCall segfault with julia 1.6 on macOS, which embeds julia in R: https://github.com/Non-Contradiction/JuliaCall/issues/164 The issue can be simplified to the following code in R: dyn.…

---

## [Problem with CSV.jl reading csv file with extra spaces](https://discourse.julialang.org/t/problem-with-csv-jl-reading-csv-file-with-extra-spaces/67546)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 5\
**Last updated:** [September 3, 2021, 3:02am UTC](https://discourse.julialang.org/t/problem-with-csv-jl-reading-csv-file-with-extra-spaces/67546 "2021-09-03T03:02:49Z")

</div>

I’m trying to read a csv file into julia, e.g. a,b,c 1,23,4 1, , 5 by using CSV.File(csvfile, missingstring = " ", types = \[Int, Int, Int\]) but getting this 2-element CSV.File{false}: CSV.Row: (a = 1, b = 23, c = 4…

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

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