# Latest

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

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

**Page:** 727

---

## [Is it the correct way to check for specializations?](https://discourse.julialang.org/t/is-it-the-correct-way-to-check-for-specializations/93490)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 4\
**Last updated:** [April 14, 2023, 5:49pm UTC](https://discourse.julialang.org/t/is-it-the-correct-way-to-check-for-specializations/93490 "2023-04-14T17:49:29Z")

</div>

Following the last paragraph at docs, I want to check if julia is generating specialized version for some of my code. Testing against some built-in functions, first define function get\_sp(wfx) for mi in wfx.speciali…

---

## [Type instability with CuVector inside struct](https://discourse.julialang.org/t/type-instability-with-cuvector-inside-struct/97476)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 5:45pm UTC](https://discourse.julialang.org/t/type-instability-with-cuvector-inside-struct/97476 "2023-04-14T17:45:38Z")

</div>

this is a very simple problem, so i fear i’m making a dumb mistake. apologies if so. but i can’t figure out why the function foo below is type unstable when input with a struct that has a CuVector in it, whereas if it’…

---

## [Several second delay to process first input with OhMyREPL installed](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 4\
**Last updated:** [April 14, 2023, 4:58pm UTC](https://discourse.julialang.org/t/several-second-delay-to-process-first-input-with-ohmyrepl-installed/97447 "2023-04-14T16:58:01Z")

</div>

Running Julia 1.8.5 x86, built by Homebrew on an M2 MBP. The problem: When I start Julia, the REPL prompt shows normally. But when I type my first input, it takes several seconds before it even appears. After the first …

---

## [Ratio between the plot and the figure - white area around](https://discourse.julialang.org/t/ratio-between-the-plot-and-the-figure-white-area-around/97406)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 4\
**Last updated:** [April 14, 2023, 4:32pm UTC](https://discourse.julialang.org/t/ratio-between-the-plot-and-the-figure-white-area-around/97406 "2023-04-14T16:32:44Z")

</div>

I am having trouble removing this white area around my plot: I have tried aspect\_ratio and size options but couldn’t change. It happens both in VSCode and Jupyter notebook. It doesn’t happen in my laptop though. Any g…

---

## [VR in Julia!](https://discourse.julialang.org/t/vr-in-julia/69922)

<div class="topic-metadata">

**Author:** [@Chris\_Green](https://discourse.julialang.org/u/Chris_Green)\
**Replies:** 9\
**Last updated:** [April 14, 2023, 3:06pm UTC](https://discourse.julialang.org/t/vr-in-julia/69922 "2023-04-14T15:06:40Z")

</div>

I’m a game developer who generally programs in c++. I’m new to the language and came up with a plan to make it really simple to call my codebase from julia. I succeeded enough on this to make it really trivial to try emb…

---

## [Mutable function parameter of primitive type](https://discourse.julialang.org/t/mutable-function-parameter-of-primitive-type/40204)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 12\
**Last updated:** [April 14, 2023, 2:43pm UTC](https://discourse.julialang.org/t/mutable-function-parameter-of-primitive-type/40204 "2023-04-14T14:43:53Z")

</div>

I’m going through Julia manual and I’m having a bit of a problem comprehending mutability and pass by sharing concept as applied to primitive types. Can some show me an example where x will be modified by calling f(x) so…

---

## [Multithreaded CSV writes](https://discourse.julialang.org/t/multithreaded-csv-writes/47660)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 20\
**Last updated:** [April 14, 2023, 2:09pm UTC](https://discourse.julialang.org/t/multithreaded-csv-writes/47660 "2023-04-14T14:09:00Z")

</div>

Hi! I am trying to write many data frames to CSV format in parallel. Interestingly, the multi-threaded version is slower than doing it sequentially, and it comes with a very high GC cost. Any idea what’s happening? What …

---

## [And now for something completely different: multimedia](https://discourse.julialang.org/t/and-now-for-something-completely-different-multimedia/97477)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 0\
**Last updated:** [April 14, 2023, 2:01pm UTC](https://discourse.julialang.org/t/and-now-for-something-completely-different-multimedia/97477 "2023-04-14T14:01:25Z")

</div>

It struck me that is might be fun to write some julia programs (system?) for multimedia support. Has this already been done but I could not find any references/links to it? I’m thinking of building libraries of movies,…

---

## [Package negligence](https://discourse.julialang.org/t/package-negligence/97434)

<div class="topic-metadata">

**Author:** [@Charles\_Brauer](https://discourse.julialang.org/u/Charles_Brauer)\
**Replies:** 26\
**Last updated:** [April 14, 2023, 1:43pm UTC](https://discourse.julialang.org/t/package-negligence/97434 "2023-04-14T13:43:13Z")

</div>

Hello. I’m a 25-year veteran of Microsoft’s C#, and I’ve become very discouraged by the status of the Machine Learning (ML.NET) project at Microsoft. It seems to be dying, and developers are left holding an empty bag. S…

---

## [Annotations disappear when put on modified plot](https://discourse.julialang.org/t/annotations-disappear-when-put-on-modified-plot/97394)

<div class="topic-metadata">

**Author:** [@Woodmouth](https://discourse.julialang.org/u/Woodmouth)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 1:51pm UTC](https://discourse.julialang.org/t/annotations-disappear-when-put-on-modified-plot/97394 "2023-04-14T13:51:28Z")

</div>

This disscusion presents a way to use annotations to create a multi-colored title, but I have some issues creating annotations on plots that have been modified. Here is a minimal reproducible example using Julia 1.7.2. u…

---

## [How to early return from inside a @threads loop](https://discourse.julialang.org/t/how-to-early-return-from-inside-a-threads-loop/97457)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [April 14, 2023, 12:17pm UTC](https://discourse.julialang.org/t/how-to-early-return-from-inside-a-threads-loop/97457 "2023-04-14T12:17:01Z")

</div>

Normally you are thought to avoid thread race in parallel programming, but in certain conditions you would want a sort of thread race. I need to compute some expensive computation and return the function the first time …

---

## [Bringing old C code into Julia](https://discourse.julialang.org/t/bringing-old-c-code-into-julia/97442)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 7\
**Last updated:** [April 14, 2023, 11:58am UTC](https://discourse.julialang.org/t/bringing-old-c-code-into-julia/97442 "2023-04-14T11:58:36Z")

</div>

Hi everyone. I finally found the original and pro stockwell transform code in C wrapped somewhere. I was wondering if anyone can help me figure out how to call this from julia. Kind regards

---

## [Custom vector type causes runtime dispatch when used as view slicing indices](https://discourse.julialang.org/t/custom-vector-type-causes-runtime-dispatch-when-used-as-view-slicing-indices/97470)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [April 14, 2023, 11:46am UTC](https://discourse.julialang.org/t/custom-vector-type-causes-runtime-dispatch-when-used-as-view-slicing-indices/97470 "2023-04-14T11:46:07Z")

</div>

In my code there’s a custom vector type (SkipVec) that is used for indexing a matrix with @view. I recently realized (due to JET.jl) that it seems to cause runtime dispatch for some reason: src/SkipVectors.jl · main · Ne…

---

## [Missing data](https://discourse.julialang.org/t/missing-data/97469)

<div class="topic-metadata">

**Author:** [@OUALID](https://discourse.julialang.org/u/OUALID)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 11:34am UTC](https://discourse.julialang.org/t/missing-data/97469 "2023-04-14T11:34:37Z")

</div>

Hi dear comunity, I am working actually with a data frame \[ :Date,\[:var1,:var2,…\]\] that contains a lot of missing data. How can I deal with theme such that this missing values are spread over large periods.

---

## [What should I do with these building errors?](https://discourse.julialang.org/t/what-should-i-do-with-these-building-errors/97467)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 0\
**Last updated:** [April 14, 2023, 11:20am UTC](https://discourse.julialang.org/t/what-should-i-do-with-these-building-errors/97467 "2023-04-14T11:20:51Z")

</div>

Hi, I’m trying to migrate GMT.jl to use a GMT\_jll artifact but it has not been easy. The build fails for Julia1.7 and nightly but works fine for Julia 1.8 and 1.9rc Specifically it fails for 1.7 with and for night…

---

## [How to use DifferentialEquations.jl to do a Monte Carlo](https://discourse.julialang.org/t/how-to-use-differentialequations-jl-to-do-a-monte-carlo/97450)

<div class="topic-metadata">

**Author:** [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 10:51am UTC](https://discourse.julialang.org/t/how-to-use-differentialequations-jl-to-do-a-monte-carlo/97450 "2023-04-14T10:51:07Z")

</div>

Hi, I managed to simulate (with EnsembleProblem ) 1000 paths of a 2-dimensional SDE. Let’s call the one dimensional components x(t) and y(t). I have some problems handling the solution to the problem: the paths are of d…

---

## [@time vs @btime in docs](https://discourse.julialang.org/t/time-vs-btime-in-docs/97454)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 10:49am UTC](https://discourse.julialang.org/t/time-vs-btime-in-docs/97454 "2023-04-14T10:49:07Z")

</div>

Performance Tips · The Julia Language says "Measure performance with @time " but whenever someone comes with a performance question on Discourse they’re always advised to use @btime instead. Should the docs be changed or…

---

## [Start REPL: The terminal process failed to launch: Path to shell executable "\\bin\\sh" does not exist](https://discourse.julialang.org/t/start-repl-the-terminal-process-failed-to-launch-path-to-shell-executable-bin-sh-does-not-exist/97298)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 10:21am UTC](https://discourse.julialang.org/t/start-repl-the-terminal-process-failed-to-launch-path-to-shell-executable-bin-sh-does-not-exist/97298 "2023-04-14T10:21:02Z")

</div>

Hi, since today I cannot launch a REPL from VSCode on windows anymore. It fails with the error: The terminal process failed to launch: Path to shell executable "\\bin\\sh" does not exist. I interpret this as the julia …

---

## [Package got merged by Registrator.jl, but still not available to add](https://discourse.julialang.org/t/package-got-merged-by-registrator-jl-but-still-not-available-to-add/97463)

<div class="topic-metadata">

**Author:** [@himanshu](https://discourse.julialang.org/u/himanshu)\
**Replies:** 0\
**Last updated:** [April 14, 2023, 10:06am UTC](https://discourse.julialang.org/t/package-got-merged-by-registrator-jl-but-still-not-available-to-add/97463 "2023-04-14T10:06:07Z")

</div>

My pull request to register a new package was merged after 3 day waiting period. github.com/waitasecant/BestModelSubset.jl/issues/4 Still the package is not available at juliapackages.com. Are there any further steps? …

---

## [Odd example :-)](https://discourse.julialang.org/t/odd-example/97460)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 8:43am UTC](https://discourse.julialang.org/t/odd-example/97460 "2023-04-14T08:43:17Z")

</div>

hmmm… I assume because min trasforming the int to a float round it up a little and doing that it brings it over the value of typemax… any nice workaround rather than manually remove values ? julia\> Int(typemax(Int64)) 9…

---

## [Large ManifoldProjection causing memory issues in DifferentialEquations.jl](https://discourse.julialang.org/t/large-manifoldprojection-causing-memory-issues-in-differentialequations-jl/97420)

<div class="topic-metadata">

**Author:** [@chrishalcrow](https://discourse.julialang.org/u/chrishalcrow)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 7:56am UTC](https://discourse.julialang.org/t/large-manifoldprojection-causing-memory-issues-in-differentialequations-jl/97420 "2023-04-14T07:56:05Z")

</div>

Hello, I’m solving a PDE in three spatial dimension where the field takes values in S^3. A convenient way to work with this is to define a four-vector u and project it onto the sphere at each point. So I have u\_i(x,y,z)…

---

## [Canonical Julian way to represent multiple implementations of same algorithm](https://discourse.julialang.org/t/canonical-julian-way-to-represent-multiple-implementations-of-same-algorithm/97312)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 7\
**Last updated:** [April 10, 2023, 8:35pm UTC](https://discourse.julialang.org/t/canonical-julian-way-to-represent-multiple-implementations-of-same-algorithm/97312 "2023-04-10T20:35:24Z")

</div>

Suppose I have some number of different implementations of the same algorithm, or more generally just multiple implementations meeting the same requirements (i.e. identical inputs give identical outputs, modulo usual flo…

---

## [How can I evaluate a neural net and take the derivative of a neural net](https://discourse.julialang.org/t/how-can-i-evaluate-a-neural-net-and-take-the-derivative-of-a-neural-net/72987)

<div class="topic-metadata">

**Author:** [@Goosee](https://discourse.julialang.org/u/Goosee)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 7:44am UTC](https://discourse.julialang.org/t/how-can-i-evaluate-a-neural-net-and-take-the-derivative-of-a-neural-net/72987 "2023-04-14T07:44:52Z")

</div>

I have solved a differential equation with a neural net. I leave code below with an example. I want to be able to compute the first derivative of this neural net with respect to its input “x” and evaluate this derivative…

---

## [Converting array to a vector](https://discourse.julialang.org/t/converting-array-to-a-vector/34881)

<div class="topic-metadata">

**Author:** [@bandaya](https://discourse.julialang.org/u/bandaya)\
**Replies:** 15\
**Last updated:** [April 14, 2023, 7:29am UTC](https://discourse.julialang.org/t/converting-array-to-a-vector/34881 "2023-04-14T07:29:58Z")

</div>

I have an array T which is 76×1 Array{Any,2}. How can I convert it into 76-element Array{Float64,1} or a 76 element row vector? This array contains data only in rows.

---

## [Freeze a weight with Flux](https://discourse.julialang.org/t/freeze-a-weight-with-flux/97441)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 6:07am UTC](https://discourse.julialang.org/t/freeze-a-weight-with-flux/97441 "2023-04-14T06:07:23Z")

</div>

I have a few linear layers created with Flux. I ran these layers for a few epochs, and would now to freeze all the weights of one of the linear layers, but leaving the bias unfrozen. Could somebody post a MWE demonstrati…

---

## ["Julian" way to include external scripts/modules without name conflicts](https://discourse.julialang.org/t/julian-way-to-include-external-scripts-modules-without-name-conflicts/97023)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 7\
**Last updated:** [April 13, 2023, 10:57pm UTC](https://discourse.julialang.org/t/julian-way-to-include-external-scripts-modules-without-name-conflicts/97023 "2023-04-13T22:57:52Z")

</div>

I’m trying to manage a set of machine-learning models, each with its own custom-defined data preprocessing pipeline to highlight important features. In a directory, I have one folder per model and within each folder, I h…

---

## [Convert array to string and separate each element with underscore](https://discourse.julialang.org/t/convert-array-to-string-and-separate-each-element-with-underscore/97452)

<div class="topic-metadata">

**Author:** [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 9:54pm UTC](https://discourse.julialang.org/t/convert-array-to-string-and-separate-each-element-with-underscore/97452 "2023-04-13T21:54:52Z")

</div>

Hi I am trying to convert one array, like A=\[“a”, “b”, “c”\] into one string, like str=“a\_b\_c”. I am wondering, in Julia, how can we get it. Thanks

---

## [UndefVarError: \_throw\_dmrs not defined but "\_throw\_dmrs" is nowhere in my code](https://discourse.julialang.org/t/undefvarerror-throw-dmrs-not-defined-but-throw-dmrs-is-nowhere-in-my-code/97445)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 9:46pm UTC](https://discourse.julialang.org/t/undefvarerror-throw-dmrs-not-defined-but-throw-dmrs-is-nowhere-in-my-code/97445 "2023-04-13T21:46:37Z")

</div>

What does this error mean? It happens in the context of a NLsolve but I have no idea what “\_throw\_dmrs” is.

---

## [Interesting paper from Oak Ridge: Evaluating performance and portability of high-level programming models:](https://discourse.julialang.org/t/interesting-paper-from-oak-ridge-evaluating-performance-and-portability-of-high-level-programming-models/97451)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 9:43pm UTC](https://discourse.julialang.org/t/interesting-paper-from-oak-ridge-evaluating-performance-and-portability-of-high-level-programming-models/97451 "2023-04-13T21:43:18Z")

</div>

I noticed this interesting paper from Oak Ridge browsing arXiv: Evaluating performance and portability of high-level programming models: Julia, Python/Numba, and Kokkos on exascale nodes

---

## [Are there any pertained models to generated image, text,video and audio embeddings in Julia ? If yes where can I find /download them to use?](https://discourse.julialang.org/t/are-there-any-pertained-models-to-generated-image-text-video-and-audio-embeddings-in-julia-if-yes-where-can-i-find-download-them-to-use/97408)

<div class="topic-metadata">

**Author:** [@5hv5hvnk](https://discourse.julialang.org/u/5hv5hvnk)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 9:04pm UTC](https://discourse.julialang.org/t/are-there-any-pertained-models-to-generated-image-text-video-and-audio-embeddings-in-julia-if-yes-where-can-i-find-download-them-to-use/97408 "2023-04-13T21:04:58Z")

</div>

I want to find embedding of different type of datafiles and save them. Since I am quite new to Julia I am not being able to find appropriate models that does these tasks. Thank you

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

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