# Latest

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

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

**Page:** 887

---

## [\[ANN\] OMOPCDMCohortCreator.jl v0.2.0 - Docs, Tests, Features Oh My!](https://discourse.julialang.org/t/ann-omopcdmcohortcreator-jl-v0-2-0-docs-tests-features-oh-my/89179)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [October 24, 2022, 5:11am UTC](https://discourse.julialang.org/t/ann-omopcdmcohortcreator-jl-v0-2-0-docs-tests-features-oh-my/89179 "2022-10-24T05:11:39Z")

</div>

Hi everyone, It is with pride that my colleagues and I announce the release of OMOPCDMCohortCreator.jl 0.2.0! :tada: Some of the biggest updates are that: The documentation has received a massive update with fantasti…

---

## [Use function on type parameter to decide struct field type at compile time](https://discourse.julialang.org/t/use-function-on-type-parameter-to-decide-struct-field-type-at-compile-time/89172)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 3\
**Last updated:** [October 24, 2022, 4:47am UTC](https://discourse.julialang.org/t/use-function-on-type-parameter-to-decide-struct-field-type-at-compile-time/89172 "2022-10-24T04:47:07Z")

</div>

This code does not work, but I want to do something like the following (the general idea should be clear): map\_type(::Type{String}) = Int64 map\_type(::Type{Int64}) = String struct Foo{T} a::map\_type(T) end Basical…

---

## [Question about quadratic cost function in JuMP](https://discourse.julialang.org/t/question-about-quadratic-cost-function-in-jump/89143)

<div class="topic-metadata">

**Author:** [@Steve\_Zhang](https://discourse.julialang.org/u/Steve_Zhang)\
**Replies:** 2\
**Last updated:** [October 24, 2022, 1:56am UTC](https://discourse.julialang.org/t/question-about-quadratic-cost-function-in-jump/89143 "2022-10-24T01:56:52Z")

</div>

I am new to Julia and transferred from Matlab. Now I am using JuMP to write an optimization problem with a quadratic cost function like: and my code for optimization problem is: function get\_cost\_func(sys, R, M) …

---

## [Why size(vector, 2) return 1?](https://discourse.julialang.org/t/why-size-vector-2-return-1/89166)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 11:31pm UTC](https://discourse.julialang.org/t/why-size-vector-2-return-1/89166 "2022-10-23T23:31:59Z")

</div>

I was wondering if there is a reason for this design decision. Code example: julia\> v = \[1, 2, 3\] 3-element Vector{Int64}: 1 2 3 julia\> size(v, 1) 3 julia\> size(v, 2) 1

---

## [PATHsolver not working](https://discourse.julialang.org/t/pathsolver-not-working/89156)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 3\
**Last updated:** [October 23, 2022, 11:25pm UTC](https://discourse.julialang.org/t/pathsolver-not-working/89156 "2022-10-23T23:25:00Z")

</div>

Hello all, I am trying to run a simple mixed complementary problem using PATHsolver, but it is giving me this error “UndefVarError: solveMCP not defined” My code is: using PATHSolver M = \[0 0 -1 -1 ; 0 0 1 -2 ; …

---

## [Building a PC optimized for "time to first plot"](https://discourse.julialang.org/t/building-a-pc-optimized-for-time-to-first-plot/88801)

<div class="topic-metadata">

**Author:** [@pepijndevos](https://discourse.julialang.org/u/pepijndevos)\
**Replies:** 86\
**Last updated:** [October 23, 2022, 11:18pm UTC](https://discourse.julialang.org/t/building-a-pc-optimized-for-time-to-first-plot/88801 "2022-10-23T23:18:25Z")

</div>

It would really improve my experience with Julia if loading a bunch of big package ecosystems wouldn’t cause a considerable delay while a bunch of stuff gets recompiled. Revise.jl is great but sometimes doesn’t work when…

---

## [Setting Button properties](https://discourse.julialang.org/t/setting-button-properties/89133)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 11:10pm UTC](https://discourse.julialang.org/t/setting-button-properties/89133 "2022-10-23T23:10:29Z")

</div>

Hi, I’m using Makie to create a basic UI using a grid of buttons that I observe and then run the appropriate code. commandlabels = \["Option A","Option B","Option C"\] CommandButtonGrid = fig\[3,3\] = GridLayout(w…

---

## [Are functions that operate only on types computed at compile time](https://discourse.julialang.org/t/are-functions-that-operate-only-on-types-computed-at-compile-time/89161)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 9:30pm UTC](https://discourse.julialang.org/t/are-functions-that-operate-only-on-types-computed-at-compile-time/89161 "2022-10-23T21:30:19Z")

</div>

Suppose I have the following function get\_first\_type(::Type{T}) where T \<: Tuple = begin fieldtypes(T)\[1\] end If another function calls this function with one of its input type parameters, will this function be co…

---

## [Getproperty/getfield type instability?](https://discourse.julialang.org/t/getproperty-getfield-type-instability/89095)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 3\
**Last updated:** [October 23, 2022, 9:08pm UTC](https://discourse.julialang.org/t/getproperty-getfield-type-instability/89095 "2022-10-23T21:08:50Z")

</div>

I’m trying to understand type stability when accessing composite types. Consider the custom datatype: struct MyStruct a::Int b::Number c::AbstractDict end I create an instance, obj = MyStruct(1, 2.0, Dict…

---

## [Guide for embedding Julia with packages?](https://discourse.julialang.org/t/guide-for-embedding-julia-with-packages/89154)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 7:42pm UTC](https://discourse.julialang.org/t/guide-for-embedding-julia-with-packages/89154 "2022-10-23T19:42:59Z")

</div>

I am aware of this 2017 question: Embedding Julia and Packages. However, it doesn’t really have an answer. I am looking for a way to embed Julia into a C/C++ program, and the Julia script may use a variety of packages.…

---

## [How to remove RegexMatch() in output](https://discourse.julialang.org/t/how-to-remove-regexmatch-in-output/89158)

<div class="topic-metadata">

**Author:** [@Chintu\_sharma](https://discourse.julialang.org/u/Chintu_sharma)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 6:11pm UTC](https://discourse.julialang.org/t/how-to-remove-regexmatch-in-output/89158 "2022-10-23T18:11:19Z")

</div>

filefull="main.cpp" extension\_pattern=r"\[^.\]+$" println(match(extension\_pattern,filefull)) # answer is RegexMatch("cpp") #but i need only output word "cpp"

---

## [Unsupported Argument in Optimization.solve](https://discourse.julialang.org/t/unsupported-argument-in-optimization-solve/89146)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 5:29pm UTC](https://discourse.julialang.org/t/unsupported-argument-in-optimization-solve/89146 "2022-10-23T17:29:48Z")

</div>

I am running a demonstration of NeuralODE, fond at: https://diffeqflux.sciml.ai/stable/examples/neural\_ode/: result\_neuralode2 = Optimization.solve(optprob2, Optim.BFGS(initial\_stepnorm=0.01), callback = callb…

---

## [How to access reactive variables in Stipple?](https://discourse.julialang.org/t/how-to-access-reactive-variables-in-stipple/89148)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 0\
**Last updated:** [October 23, 2022, 3:35pm UTC](https://discourse.julialang.org/t/how-to-access-reactive-variables-in-stipple/89148 "2022-10-23T15:35:22Z")

</div>

I need to have a reactive vector checks that can change length during the execution time. See below. How can make it work? Note that push!(model.checks\[\], false) successfully increases its length. However, the length(m…

---

## [Error running highdim\_pde script from 2019 on 2022 SciML versions](https://discourse.julialang.org/t/error-running-highdim-pde-script-from-2019-on-2022-sciml-versions/89093)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 12\
**Last updated:** [October 23, 2022, 3:33pm UTC](https://discourse.julialang.org/t/error-running-highdim-pde-script-from-2019-on-2022-sciml-versions/89093 "2022-10-23T15:33:50Z")

</div>

I am trying to run the “Universal Differential Equations” demos posted at the github repository: GitHub - ChrisRackauckas/universal\_differential\_equations: Repository for the Universal Differential Equations for Scienti…

---

## [What is Julia Package that is able to compute General Solution with Method of Integrating Factors?](https://discourse.julialang.org/t/what-is-julia-package-that-is-able-to-compute-general-solution-with-method-of-integrating-factors/89139)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 1:15pm UTC](https://discourse.julialang.org/t/what-is-julia-package-that-is-able-to-compute-general-solution-with-method-of-integrating-factors/89139 "2022-10-23T13:15:56Z")

</div>

Hi all, I want to solve this initial value problem 2y' + ty = 2 y(0)=1 the answer from the book for the general solution is y = e^{-t^{2}/4} \\int^{t} e^{s^{2}/4} \\ ds + ce^{-t^{2}/4} Edit: I want the answer in anal…

---

## [How to obtain maximized ELBO value from Turing to use as approximation to model evidence?](https://discourse.julialang.org/t/how-to-obtain-maximized-elbo-value-from-turing-to-use-as-approximation-to-model-evidence/88787)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 5\
**Last updated:** [October 23, 2022, 11:02am UTC](https://discourse.julialang.org/t/how-to-obtain-maximized-elbo-value-from-turing-to-use-as-approximation-to-model-evidence/88787 "2022-10-23T11:02:33Z")

</div>

Hi all! I’m running variational inference in Turing. However, I can’t seem to find a way to extract the maximized ELBO from the Turing ADVI. If anyone can point me to relevant information that would be wonderful!

---

## [Reliability of Enzyme.jl](https://discourse.julialang.org/t/reliability-of-enzyme-jl/89060)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 11\
**Last updated:** [October 23, 2022, 9:10am UTC](https://discourse.julialang.org/t/reliability-of-enzyme-jl/89060 "2022-10-23T09:10:41Z")

</div>

I read in this post that Enzyme.jl can be a very promising autodiff option for certain cases. However in the same link, it is also mentioned that: Enzyme … doesn’t have general support for higher level Julia functiona…

---

## [VSCode: How to move the cursor in the REPL by clicking?](https://discourse.julialang.org/t/vscode-how-to-move-the-cursor-in-the-repl-by-clicking/52102)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 5\
**Last updated:** [October 23, 2022, 7:55am UTC](https://discourse.julialang.org/t/vscode-how-to-move-the-cursor-in-the-repl-by-clicking/52102 "2022-10-23T07:55:19Z")

</div>

Hello, I am brand new to Julia and also the VSCode IDE. I noticed that when typing a line of code into the REPL, I can’t navigate the cursor by clicking with my mouse. I’m only able to do this with the left and right arr…

---

## [Julia Copenhagen Meetup the 11th of November at Novozymes](https://discourse.julialang.org/t/julia-copenhagen-meetup-the-11th-of-november-at-novozymes/88974)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 6:43am UTC](https://discourse.julialang.org/t/julia-copenhagen-meetup-the-11th-of-november-at-novozymes/88974 "2022-10-23T06:43:19Z")

</div>

Want to learn about enzymes and static type checking tools in Julia? Want a sandwich and meet Novozymes? Then check out our Julia Copenhagen Meetup, Fall edition!

---

## [Connection timed out problem on SSHManager of Distributed.jl](https://discourse.julialang.org/t/connection-timed-out-problem-on-sshmanager-of-distributed-jl/89129)

<div class="topic-metadata">

**Author:** [@hsianktin](https://discourse.julialang.org/u/hsianktin)\
**Replies:** 0\
**Last updated:** [October 23, 2022, 5:51am UTC](https://discourse.julialang.org/t/connection-timed-out-problem-on-sshmanager-of-distributed-jl/89129 "2022-10-23T05:51:57Z")

</div>

Hi everyone, I met a problem in adding another Windows machine as a worker using SSHManager. Background information: I am able to direct ssh into the remote machine, and the machine is under the same local network wit…

---

## [Wasserstein distance for histograms](https://discourse.julialang.org/t/wasserstein-distance-for-histograms/89083)

<div class="topic-metadata">

**Author:** [@ignace](https://discourse.julialang.org/u/ignace)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 11:38pm UTC](https://discourse.julialang.org/t/wasserstein-distance-for-histograms/89083 "2022-10-22T23:38:53Z")

</div>

Hello, How can one compute the Wasserstein distance between two histograms. To be clear, what I mean with a histogram is, e.g., the following h : using StatsBase x = randn(10^4) h = fit(Histogram, x) Looking forwar…

---

## [Vector vs n-element Vector?! Can push to one but not the other](https://discourse.julialang.org/t/vector-vs-n-element-vector-can-push-to-one-but-not-the-other/89080)

<div class="topic-metadata">

**Author:** [@micampbell](https://discourse.julialang.org/u/micampbell)\
**Replies:** 11\
**Last updated:** [October 22, 2022, 10:51pm UTC](https://discourse.julialang.org/t/vector-vs-n-element-vector-can-push-to-one-but-not-the-other/89080 "2022-10-22T22:51:39Z")

</div>

Why is there a difference between a & b? Why can I push to a but not b? julia\> a = Real \[ \] Real \[ \] julia\> push!(a, 0.0) 1-element Vector{Real}: 0.0 julia\> b = Vector{Real} Vector{Real} (alias for Array{Re…

---

## [Arrays with non-uniform dimensions](https://discourse.julialang.org/t/arrays-with-non-uniform-dimensions/88725)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 8\
**Last updated:** [October 22, 2022, 9:35pm UTC](https://discourse.julialang.org/t/arrays-with-non-uniform-dimensions/88725 "2022-10-22T21:35:56Z")

</div>

I’m looking for a data-structure that essentially works as an array-of-arrays, where each “row” can have a different number of “columns”. The point of that is being able to easily perform map or broadcast, etc, as if it …

---

## [CSV.jl type stability](https://discourse.julialang.org/t/csv-jl-type-stability/89097)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 26\
**Last updated:** [October 22, 2022, 8:10pm UTC](https://discourse.julialang.org/t/csv-jl-type-stability/89097 "2022-10-22T20:10:57Z")

</div>

I want to convert the rows of a CSV file into custom types in my own code. I have defined the Base.convert methods I need: Base.convert(::Type{MyCustomType}, row::CSV.Row) = begin MyCustomType( a = row.a, …

---

## [Abstract and System-Native Types of Integers and Floats: Int, Integer, Float, AbstractFloat](https://discourse.julialang.org/t/abstract-and-system-native-types-of-integers-and-floats-int-integer-float-abstractfloat/88985)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 7\
**Last updated:** [October 22, 2022, 8:00pm UTC](https://discourse.julialang.org/t/abstract-and-system-native-types-of-integers-and-floats-int-integer-float-abstractfloat/88985 "2022-10-22T20:00:54Z")

</div>

Two questions: Why is the abstract type for an integer called Integer, meanwhile the abstract type for a float is AbstractFloat? This seems like an inconsistent naming pattern: either changing Integer to AbstractInt, …

---

## [ABLines in Algebraofgraphics (x=y line, identity line, 1-to-1 line)](https://discourse.julialang.org/t/ablines-in-algebraofgraphics-x-y-line-identity-line-1-to-1-line/89106)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 7:39pm UTC](https://discourse.julialang.org/t/ablines-in-algebraofgraphics-x-y-line-identity-line-1-to-1-line/89106 "2022-10-22T19:39:28Z")

</div>

Dear all, I am new to Julia and AoG - coming from the Tidyverse and ggplot… - and don’t (even) manage to add an x=y line to a scatter plot: using AlgebraOfGraphics, CairoMakie, Statistics x=rand(4) y = x .+ 0.2 .+ 0.2…

---

## [Obtaining the posterior distribution of parameters in Turing using the MCMC method](https://discourse.julialang.org/t/obtaining-the-posterior-distribution-of-parameters-in-turing-using-the-mcmc-method/89111)

<div class="topic-metadata">

**Author:** [@Aru](https://discourse.julialang.org/u/Aru)\
**Replies:** 3\
**Last updated:** [October 22, 2022, 6:35pm UTC](https://discourse.julialang.org/t/obtaining-the-posterior-distribution-of-parameters-in-turing-using-the-mcmc-method/89111 "2022-10-22T18:35:37Z")

</div>

Hello everyone. I am a student majoring in physics with no solid background in statistics. I recently tried to use Turing, but I found that there are some hard-to-understand problems that make it difficult for me to use …

---

## [Plot of integral curves not showing all of them](https://discourse.julialang.org/t/plot-of-integral-curves-not-showing-all-of-them/89112)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [October 22, 2022, 6:22pm UTC](https://discourse.julialang.org/t/plot-of-integral-curves-not-showing-all-of-them/89112 "2022-10-22T18:22:48Z")

</div>

Dear all, I have tried to solve this initial value problem ty' + 2y = 4t^{2} y(1) = 2 I plot it with this code: using Plots, LaTeXStrings, Plots.PlotMeasures gr() f(x) = x^(2) + (1 / x^(2)) p = plot(f, -1, 5, xtic…

---

## [Is my plot $-x^{2}$ that has vertical asymptote is correct?](https://discourse.julialang.org/t/is-my-plot-x-2-that-has-vertical-asymptote-is-correct/88781)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [October 22, 2022, 5:32pm UTC](https://discourse.julialang.org/t/is-my-plot-x-2-that-has-vertical-asymptote-is-correct/88781 "2022-10-22T17:32:17Z")

</div>

Dear all, I just want to ask and satisfy my curiosity, I see this I wonder whether my plotting is correct or not (how to show the - \\frac{1}{x-5} graph only the one below x-axis?): using Plots, LaTeXStrings, Plots.…

---

## [Debugging a segfault with lldb](https://discourse.julialang.org/t/debugging-a-segfault-with-lldb/89103)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 5:05pm UTC](https://discourse.julialang.org/t/debugging-a-segfault-with-lldb/89103 "2022-10-22T17:05:05Z")

</div>

I’m trying to find out why RadeonProRender.jl segfaults on Mac. I put the code at the bottom into a script rpr.jl and then ran this: lldb julia -- rpr.jl (lldb) target create "julia" Current executable set to 'julia' (…

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

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