# Latest

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

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

**Page:** 1311

---

## [Ccall of a thread C function from REPL](https://discourse.julialang.org/t/ccall-of-a-thread-c-function-from-repl/65845)

<div class="topic-metadata">

**Author:** [@Lecrapouille](https://discourse.julialang.org/u/Lecrapouille)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 10:32pm UTC](https://discourse.julialang.org/t/ccall-of-a-thread-c-function-from-repl/65845 "2021-08-04T22:32:44Z")

</div>

Hello, I’ve made a standalone GUI application in C++ and I can call it from Julia REPL. To achieve this, I exported a C function named int entry\_point() calling the GUI which loops for ever until the user close the wind…

---

## [\[RFC\] Mr Phelps - a distributed workflow orchestrator](https://discourse.julialang.org/t/rfc-mr-phelps-a-distributed-workflow-orchestrator/32893)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 42\
**Last updated:** [August 4, 2021, 9:44pm UTC](https://discourse.julialang.org/t/rfc-mr-phelps-a-distributed-workflow-orchestrator/32893 "2021-08-04T21:44:33Z")

</div>

So I was talking in chat with @kevbonham and other’s about tools that are missing in the Julia ecosystem. It became readily apparent that the ability to monitor workflows(distributed or just script stacks) is mostly a P…

---

## [Understanding source of allocations when profiling](https://discourse.julialang.org/t/understanding-source-of-allocations-when-profiling/65831)

<div class="topic-metadata">

**Author:** [@mdtisdall](https://discourse.julialang.org/u/mdtisdall)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 9:01pm UTC](https://discourse.julialang.org/t/understanding-source-of-allocations-when-profiling/65831 "2021-08-04T21:01:19Z")

</div>

I’m a little confused on how to attribute some allocations that I see, depending on how I profile some code. In particular, I’m curious because when I profile this code using julia --track-allocation=user (running testfu…

---

## [Different behaviors between SVector and SMatrix parametric types](https://discourse.julialang.org/t/different-behaviors-between-svector-and-smatrix-parametric-types/65837)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 3\
**Last updated:** [August 4, 2021, 7:59pm UTC](https://discourse.julialang.org/t/different-behaviors-between-svector-and-smatrix-parametric-types/65837 "2021-08-04T19:59:46Z")

</div>

Hi, I’m confused about the different parametric type behaviors between SVector and SMatrix, both are SArray types. When sufficient size info is supplied, SVector has all parameters evaluated, but SMatrix still has one pa…

---

## [Replicate Chris Rackauckas's Juno environment in VS Code from SciML demo in JuliaCon 2020](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 15\
**Last updated:** [August 4, 2021, 7:54pm UTC](https://discourse.julialang.org/t/replicate-chris-rackauckass-juno-environment-in-vs-code-from-sciml-demo-in-juliacon-2020/63254 "2021-08-04T19:54:13Z")

</div>

I’m interested in getting the kind of experience demonstrated starting here, where lines are presumably run in what seems to be a notebook-like manner, and the outputs of the lines are previewed to the right of the blue …

---

## [DataFrames.jl (Tables.jl) is smart enough to consume my array of custom types...love it](https://discourse.julialang.org/t/dataframes-jl-tables-jl-is-smart-enough-to-consume-my-array-of-custom-types-love-it/65819)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 11\
**Last updated:** [August 4, 2021, 7:46pm UTC](https://discourse.julialang.org/t/dataframes-jl-tables-jl-is-smart-enough-to-consume-my-array-of-custom-types-love-it/65819 "2021-08-04T19:46:37Z")

</div>

First, I want to say that I love that this just works: using DataFrames using HTTP using JSON using Unmarshal const appid = # my appid const url = "https://api.openweathermap.org/data/2.5/onecall" params = Dict( …

---

## [Error with parallel sparse array building](https://discourse.julialang.org/t/error-with-parallel-sparse-array-building/65833)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 5:46pm UTC](https://discourse.julialang.org/t/error-with-parallel-sparse-array-building/65833 "2021-08-04T17:46:54Z")

</div>

I know that the recommended way to @thread build array is to split the work based on nthreads() and then join the array later. (What I said is the same as the macro @threads.) Nevertheless, in the below each thread shoul…

---

## [Can't reproduce package environment](https://discourse.julialang.org/t/cant-reproduce-package-environment/65830)

<div class="topic-metadata">

**Author:** [@LinasBa](https://discourse.julialang.org/u/LinasBa)\
**Replies:** 1\
**Last updated:** [August 4, 2021, 6:36pm UTC](https://discourse.julialang.org/t/cant-reproduce-package-environment/65830 "2021-08-04T18:36:56Z")

</div>

Hello, I am trying to install private package on new device, but dependencies doesn’t work. Here are steps I took: git clone dev MyPackage using MyPackage In package Project.Toml there is specified dependency: Color…

---

## [Function that converts rgb color to CAM02-UCS coordinates](https://discourse.julialang.org/t/function-that-converts-rgb-color-to-cam02-ucs-coordinates/65822)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 5:47pm UTC](https://discourse.julialang.org/t/function-that-converts-rgb-color-to-cam02-ucs-coordinates/65822 "2021-08-04T17:47:03Z")

</div>

The state of the art perceptual uniform colormaps (matplotlib viridis, plasma, magma, inferno, cividis), all sequential cmocean and cmasher colormaps, and a few seaborn ones have linear lightness in the color appearance…

---

## [How to create structs with fields that are reserved Julia keywords](https://discourse.julialang.org/t/how-to-create-structs-with-fields-that-are-reserved-julia-keywords/65784)

<div class="topic-metadata">

**Author:** [@orso](https://discourse.julialang.org/u/orso)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 4:34pm UTC](https://discourse.julialang.org/t/how-to-create-structs-with-fields-that-are-reserved-julia-keywords/65784 "2021-08-04T16:34:16Z")

</div>

I do not seem to be able to create structs that have reserved Julia keywords as fields Essentials · The Julia Language For example: struct test local::Float64 end will throw a syntax: malformed expression error B…

---

## [Warning: Atom.jl: unrecognised message \`cacheCompletions\`](https://discourse.julialang.org/t/warning-atom-jl-unrecognised-message-cachecompletions/35908)

<div class="topic-metadata">

**Author:** [@Kavitha](https://discourse.julialang.org/u/Kavitha)\
**Replies:** 7\
**Last updated:** [August 4, 2021, 4:08pm UTC](https://discourse.julialang.org/t/warning-atom-jl-unrecognised-message-cachecompletions/35908 "2021-08-04T16:08:40Z")

</div>

Hi, When I start Julia in Atom, I get the following warning. ‘julia-client’ and all the packages are up to date. I just updated it earlier today. After the update, I tried to run an example from the repo, but I couldn…

---

## [With Dash, how to obtain a directory name from a file browser](https://discourse.julialang.org/t/with-dash-how-to-obtain-a-directory-name-from-a-file-browser/65826)

<div class="topic-metadata">

**Author:** [@a5vzener](https://discourse.julialang.org/u/a5vzener)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 4:02pm UTC](https://discourse.julialang.org/t/with-dash-how-to-obtain-a-directory-name-from-a-file-browser/65826 "2021-08-04T16:02:23Z")

</div>

I would like users of my Dash app to be able to select a directory on their local machine — not just one file – and obtain the relative path and name of that directory. Ideally I would get the names of files in the direc…

---

## [Union type in struct: type conversion](https://discourse.julialang.org/t/union-type-in-struct-type-conversion/42276)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 3:59pm UTC](https://discourse.julialang.org/t/union-type-in-struct-type-conversion/42276 "2021-08-04T15:59:59Z")

</div>

As a minimum example, one field in my struct can be a complex-valued matrix or vector: struct foo\_1 a::VecOrMat{ComplexF64} end VecOrMat{ComplexF64}(x::Vector) = Vector{ComplexF64}(x) VecOrMat{ComplexF64}(x::Matrix…

---

## [\[SOLVED\] Package Management: Remove a local registry](https://discourse.julialang.org/t/solved-package-management-remove-a-local-registry/65756)

<div class="topic-metadata">

**Author:** [@RogerP](https://discourse.julialang.org/u/RogerP)\
**Replies:** 5\
**Last updated:** [August 4, 2021, 3:39pm UTC](https://discourse.julialang.org/t/solved-package-management-remove-a-local-registry/65756 "2021-08-04T15:39:03Z")

</div>

Question: I would like to know the command syntax to remove a local registry. Minimal Working Example: (APCSv0.1) pkg\> registry st Registry Status \[098e1cba\] APCS-Registry (git@path.to.registry/apcs-registry.git) \[23…

---

## [JuliaPro - package installation issues](https://discourse.julialang.org/t/juliapro-package-installation-issues/65807)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 12\
**Last updated:** [August 4, 2021, 3:25pm UTC](https://discourse.julialang.org/t/juliapro-package-installation-issues/65807 "2021-08-04T15:25:31Z")

</div>

Why can’t I install MLJ.j? This is my error: (@JuliaPro\_v1.5.1-1) pkg\> add MLJ Updating registry at C:\\Users\\dell\\.julia\\registries\\JuliaComputingRegistry ERROR: The following package names could not be resolved: M…

---

## [Loss of precision when plotting large floats in Makie](https://discourse.julialang.org/t/loss-of-precision-when-plotting-large-floats-in-makie/65802)

<div class="topic-metadata">

**Author:** [@MaltheSR](https://discourse.julialang.org/u/MaltheSR)\
**Replies:** 3\
**Last updated:** [August 4, 2021, 3:05pm UTC](https://discourse.julialang.org/t/loss-of-precision-when-plotting-large-floats-in-makie/65802 "2021-08-04T15:05:53Z")

</div>

I’m new to Julia and have been toying around with Makie to move some of my plotting from R/ggplot to Julia/Makie, which has been a pleasure so far. However, I’ve been having an issue which I believe to be illustrated by …

---

## [\[documentation\] Questions about the use of semicolon](https://discourse.julialang.org/t/documentation-questions-about-the-use-of-semicolon/65775)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 1\
**Last updated:** [August 4, 2021, 3:05pm UTC](https://discourse.julialang.org/t/documentation-questions-about-the-use-of-semicolon/65775 "2021-08-04T15:05:39Z")

</div>

I’ve 2 questions regarding the use of semicolon: I remember a few releases ago, if you have variables with the same name as function named arguments, you may omit the foo=foo likex = 1 f(a; x) = a+x f(10; x) as a sh…

---

## [How to convert a string to UInt8?](https://discourse.julialang.org/t/how-to-convert-a-string-to-uint8/65811)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 5\
**Last updated:** [August 4, 2021, 1:59pm UTC](https://discourse.julialang.org/t/how-to-convert-a-string-to-uint8/65811 "2021-08-04T13:59:45Z")

</div>

This does not work: reinterpret(UInt8, "Ab") UInt8.("Ab")

---

## [Where can I follow compiler work progress?](https://discourse.julialang.org/t/where-can-i-follow-compiler-work-progress/65503)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 21\
**Last updated:** [August 4, 2021, 1:54pm UTC](https://discourse.julialang.org/t/where-can-i-follow-compiler-work-progress/65503 "2021-08-04T13:54:36Z")

</div>

Hi, I would like to follow the progress done on Julia with regards to slow compilation time. I found the following list of work: Is there a web page where I can see the milestones being completed or how each steps in…

---

## [Convert a 3D Array to 2D array of vectors](https://discourse.julialang.org/t/convert-a-3d-array-to-2d-array-of-vectors/65755)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 7\
**Last updated:** [August 4, 2021, 1:34pm UTC](https://discourse.julialang.org/t/convert-a-3d-array-to-2d-array-of-vectors/65755 "2021-08-04T13:34:45Z")

</div>

Hi, I have a 3D array (X::Array{Int8, 3}, size N x K x 2). How can I convert it to a Matrix (size N x K) of Vector such that new X will be X\[i, j\] = X\[i, j, :\] with very little new memory allocation. Thanks, Vishnu Ra…

---

## [Question about possibility prediction](https://discourse.julialang.org/t/question-about-possibility-prediction/65809)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 1:24pm UTC](https://discourse.julialang.org/t/question-about-possibility-prediction/65809 "2021-08-04T13:24:49Z")

</div>

I am studying the probabilistic prediction of time series data of power system. Is there any Pkg in Julia that can realize the multidimensional probabilistic prediction problem? thanks!!!

---

## [How to timeout in a function call](https://discourse.julialang.org/t/how-to-timeout-in-a-function-call/65763)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 1\
**Last updated:** [August 4, 2021, 11:50am UTC](https://discourse.julialang.org/t/how-to-timeout-in-a-function-call/65763 "2021-08-04T11:50:24Z")

</div>

I am currently downloading some data from a remote server, however the connection may not always be stable and therefore the data loading might hang. Therefore, I would like break the connection and restart it after a c…

---

## [Why \`lock\` does NOT work for full channel?](https://discourse.julialang.org/t/why-lock-does-not-work-for-full-channel/65710)

<div class="topic-metadata">

**Author:** [@zwtechnb](https://discourse.julialang.org/u/zwtechnb)\
**Replies:** 10\
**Last updated:** [August 4, 2021, 11:14am UTC](https://discourse.julialang.org/t/why-lock-does-not-work-for-full-channel/65710 "2021-08-04T11:14:01Z")

</div>

I am wondering why lock function does NOT work for full channel? For example: function showme(n, m) c = Channel(m) t1 = @async begin sleep(3) for \_ in 1:n put!(c, 0) slee…

---

## [GLIBCXX missing when compiling julia 1.6.2](https://discourse.julialang.org/t/glibcxx-missing-when-compiling-julia-1-6-2/65733)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 3\
**Last updated:** [August 4, 2021, 10:47am UTC](https://discourse.julialang.org/t/glibcxx-missing-when-compiling-julia-1-6-2/65733 "2021-08-04T10:47:39Z")

</div>

I have been compiling Julia without any problems over the last few years, and suddenly it is not working anymore. I just upgraded my fedora version so I assume it is connected to that, but I don’t really understand how. …

---

## [Least squares fitting that accounts for covariance matrix of all input parameters](https://discourse.julialang.org/t/least-squares-fitting-that-accounts-for-covariance-matrix-of-all-input-parameters/64775)

<div class="topic-metadata">

**Author:** [@nluetts](https://discourse.julialang.org/u/nluetts)\
**Replies:** 22\
**Last updated:** [August 4, 2021, 10:24am UTC](https://discourse.julialang.org/t/least-squares-fitting-that-accounts-for-covariance-matrix-of-all-input-parameters/64775 "2021-08-04T10:24:39Z")

</div>

Hi, I am thinking about writing a package that implements a generalized least squares fitting method or perhaps seek to contribute somewhere where it might fit. Before I write more than my prototype, I wanted to double …

---

## [How to show CuArray without copying from GPU to CPU?](https://discourse.julialang.org/t/how-to-show-cuarray-without-copying-from-gpu-to-cpu/65798)

<div class="topic-metadata">

**Author:** [@wulalagiao](https://discourse.julialang.org/u/wulalagiao)\
**Replies:** 0\
**Last updated:** [August 4, 2021, 9:36am UTC](https://discourse.julialang.org/t/how-to-show-cuarray-without-copying-from-gpu-to-cpu/65798 "2021-08-04T09:36:57Z")

</div>

I wanna display a CuArray(actually an image) to see how it changes during the computation, and I cannot figure out a method to do it.

---

## [Function arguments with multiple names](https://discourse.julialang.org/t/function-arguments-with-multiple-names/65787)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [August 4, 2021, 9:30am UTC](https://discourse.julialang.org/t/function-arguments-with-multiple-names/65787 "2021-08-04T09:30:12Z")

</div>

I’d like to use a function with multiple data sources that have slightly different parameter names. Is there something like function f(; end\_date {alternates: endDate, eDate, EndDt }, start\_date="1Jan2020" ) wher…

---

## [How to define an array whose elements are manually defined type?](https://discourse.julialang.org/t/how-to-define-an-array-whose-elements-are-manually-defined-type/65776)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 6\
**Last updated:** [August 4, 2021, 9:19am UTC](https://discourse.julialang.org/t/how-to-define-an-array-whose-elements-are-manually-defined-type/65776 "2021-08-04T09:19:50Z")

</div>

I have a manually defined type, or called struct in Julia, mutable struct Mean\_covar mu::Array{Float64,2} sigma::Array{Float64,2} w::Float64 end Now I want to define an const array but its content can chan…

---

## [Piping operator \<| not documented?](https://discourse.julialang.org/t/piping-operator-not-documented/65666)

<div class="topic-metadata">

**Author:** [@hobbymarks](https://discourse.julialang.org/u/hobbymarks)\
**Replies:** 5\
**Last updated:** [August 4, 2021, 8:21am UTC](https://discourse.julialang.org/t/piping-operator-not-documented/65666 "2021-08-04T08:21:38Z")

</div>

I am using Julia 1.6.1 and in help mode can not find \<| documentation but can find .\<| documentation and also can find \<| in .\<| documentaion. The details as following: ➜ julia \_ \_ \_ ()\_ | Documentation: h…

---

## [\[ANN\] TestEnv.jl: Activate your test enviroment, so you can use your test dependencies](https://discourse.julialang.org/t/ann-testenv-jl-activate-your-test-enviroment-so-you-can-use-your-test-dependencies/65739)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 7\
**Last updated:** [August 4, 2021, 7:29am UTC](https://discourse.julialang.org/t/ann-testenv-jl-activate-your-test-enviroment-so-you-can-use-your-test-dependencies/65739 "2021-08-04T07:29:57Z")

</div>

Often when debugging a failing test I want run a snipped of code in the REPL from my tests. But often that snippet uses something (like ChainRulesTestUtil) which is not a main dependency of my package, just a test depen…

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

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