# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=190

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

**Page:** 191

---

## [Using a local package](https://discourse.julialang.org/t/using-a-local-package/111387)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 7\
**Last updated:** [March 9, 2024, 5:19am UTC](https://discourse.julialang.org/t/using-a-local-package/111387 "2024-03-09T05:19:18Z")

</div>

I downloaded a package from github, so I have all the source codes. To run an example code, I have to install the package first using pkg as suggested by the author. However, that failed. Is it possible to run the code…

---

## [Issue using llvm](https://discourse.julialang.org/t/issue-using-llvm/111374)

<div class="topic-metadata">

**Author:** [@Daniel\_Scheinerman](https://discourse.julialang.org/u/Daniel_Scheinerman)\
**Replies:** 5\
**Last updated:** [March 9, 2024, 4:41am UTC](https://discourse.julialang.org/t/issue-using-llvm/111374 "2024-03-09T04:41:08Z")

</div>

I am trying to use the Intel intrinsic pmullw. Details likely don’t matter. It takes two 64 bit integers and returns a 64 bit integer. I tried calling it as follows: x=rand(Int64) y=rand(Int64) ccall("llvm.x86.pmullw",l…

---

## [Simulation random points on a circle](https://discourse.julialang.org/t/simulation-random-points-on-a-circle/111363)

<div class="topic-metadata">

**Author:** [@Francesco\_C](https://discourse.julialang.org/u/Francesco_C)\
**Replies:** 8\
**Last updated:** [March 8, 2024, 11:29pm UTC](https://discourse.julialang.org/t/simulation-random-points-on-a-circle/111363 "2024-03-08T23:29:09Z")

</div>

Hi, I am currently working on simulating random points on a circle based on a non-uniform distribution. Initially, I successfully generated these random points using a set of code lines. However, some of the simulated r…

---

## [\[Workgroup\] JuliaHealth Meeting (Americas/Europe/Africa) – February 29th, 2024](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-americas-europe-africa-february-29th-2024/110927)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 8:02pm UTC](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-americas-europe-africa-february-29th-2024/110927 "2024-03-08T20:02:30Z")

</div>

Hi folks :wave: Hope everyone is doing well! This is our new approach to using Zoom for these meetings – PLEASE NOTE THE ZOOM JOIN INFORMATION BELOW! Here’s this month’s agenda! Monthly Meeting Agenda: Announcements…

---

## [Tidier creating random columns](https://discourse.julialang.org/t/tidier-creating-random-columns/111220)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 5:32pm UTC](https://discourse.julialang.org/t/tidier-creating-random-columns/111220 "2024-03-08T17:32:06Z")

</div>

I’m trying to randomly split some data stratified by a reference vector. My idea was to group by each category in the reference column and then create a new random column using a Bernoulli random sample. using Tidier, D…

---

## [Random Revise warnings](https://discourse.julialang.org/t/random-revise-warnings/111311)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 6\
**Last updated:** [March 8, 2024, 4:22pm UTC](https://discourse.julialang.org/t/random-revise-warnings/111311 "2024-03-08T16:22:11Z")

</div>

Since I updated to 1.10.2 I now, at random (that I can tell), start to see these. Only me? ┌ Warning: C:\\workdir\\usr\\share\\julia\\stdlib\\v1.10\\SparseArrays\\src\\solvers\\LibSuiteSparse.jl no longer exists, deleted all meth…

---

## [Is adding a type parameter to a struct a breaking change?](https://discourse.julialang.org/t/is-adding-a-type-parameter-to-a-struct-a-breaking-change/111236)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 13\
**Last updated:** [March 8, 2024, 3:30pm UTC](https://discourse.julialang.org/t/is-adding-a-type-parameter-to-a-struct-a-breaking-change/111236 "2024-03-08T15:30:50Z")

</div>

If you have previously an exported type MyDateTime in a registered package: struct MyDateTime instant::Int64 end Would be adding a type parameter be a breaking change under the semantic versioning? struct MyDateTime…

---

## [\[CCALL/INTEROP\] Get a \`Ptr\` for the last (or arbitrary) element of an array](https://discourse.julialang.org/t/ccall-interop-get-a-ptr-for-the-last-or-arbitrary-element-of-an-array/111360)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 2\
**Last updated:** [March 8, 2024, 3:19pm UTC](https://discourse.julialang.org/t/ccall-interop-get-a-ptr-for-the-last-or-arbitrary-element-of-an-array/111360 "2024-03-08T15:19:56Z")

</div>

Sorry, I tried to find it myself in documentation but was not able to find a good answer. I want to wrap a C function that takes two pointers, one for the first element of an array, the other for the last element of the…

---

## [Channel doesn't close when bound task exits](https://discourse.julialang.org/t/channel-doesnt-close-when-bound-task-exits/111349)

<div class="topic-metadata">

**Author:** [@green.nsk](https://discourse.julialang.org/u/green.nsk)\
**Replies:** 5\
**Last updated:** [March 8, 2024, 2:59pm UTC](https://discourse.julialang.org/t/channel-doesnt-close-when-bound-task-exits/111349 "2024-03-08T14:59:20Z")

</div>

We have some code that was working fine until we migrated to julia-1.10 and now with Julia 1.10.2 it’s quite flaky. I’ve reduced the code to the example below, which I think shouldn’t violate the assertion, but it does. …

---

## [Is there a cluster manager for Google?](https://discourse.julialang.org/t/is-there-a-cluster-manager-for-google/111358)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 2:18pm UTC](https://discourse.julialang.org/t/is-there-a-cluster-manager-for-google/111358 "2024-03-08T14:18:51Z")

</div>

I haven’t used gcloud yet, hence sorry if this question does not make sense. We have AWSClusterManagers.jl for AWS and AzManagers.jl for Azure and K8sClusterManagers.jl for Kubernetes. Is there one for GCloud?

---

## [Who is using AWSClusterManagers.jl?](https://discourse.julialang.org/t/who-is-using-awsclustermanagers-jl/111357)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 2:16pm UTC](https://discourse.julialang.org/t/who-is-using-awsclustermanagers-jl/111357 "2024-03-08T14:16:18Z")

</div>

I am wondering whether AWSClusterManagers.jl is still used, as it hasn’t seen any updates since a couple of years.

---

## [Map-function with range syntax map(f❌kw, seq)](https://discourse.julialang.org/t/map-function-with-range-syntax-map-fkw-seq/111354)

<div class="topic-metadata">

**Author:** [@richard-hartmann](https://discourse.julialang.org/u/richard-hartmann)\
**Replies:** 6\
**Last updated:** [March 8, 2024, 1:30pm UTC](https://discourse.julialang.org/t/map-function-with-range-syntax-map-fkw-seq/111354 "2024-03-08T13:30:48Z")

</div>

Hey, I came across the following syntax. map(f:x:kw, ys) I would be very happy if someone could explain that line in detail to me. Or hint me to the appropriate page of the julia documentation. So far I was not able t…

---

## [Makie won't display during record after update](https://discourse.julialang.org/t/makie-wont-display-during-record-after-update/111341)

<div class="topic-metadata">

**Author:** [@lpv](https://discourse.julialang.org/u/lpv)\
**Replies:** 2\
**Last updated:** [March 8, 2024, 1:26pm UTC](https://discourse.julialang.org/t/makie-wont-display-during-record-after-update/111341 "2024-03-08T13:26:46Z")

</div>

Hello! Yesterday I’ve updated Julia from 1.6.4 to 1.10.2 on two computers, one on Windows 11 and the other on Ubunto 20.4. After updating, I am unable to monitor my plot during record on either. For example, in the code…

---

## [Changing Elements Problem in Combinations of Any Array](https://discourse.julialang.org/t/changing-elements-problem-in-combinations-of-any-array/111355)

<div class="topic-metadata">

**Author:** [@Umut\_Can\_Turhan](https://discourse.julialang.org/u/Umut_Can_Turhan)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 1:08pm UTC](https://discourse.julialang.org/t/changing-elements-problem-in-combinations-of-any-array/111355 "2024-03-08T13:08:55Z")

</div>

Assume that I’ve created an permutation array: sample = \[0,0\],\[1,0\],\[0,1\] Per\_arr = \[\[α,β\] for α in sample for β in sample\] # Output 9-element Vector{Vector{Vector{Int64}}}: \[\[0, 0\], \[0, 0\]\] \[\[0, 0\], \[1, 0\]\] \[\[0, 0\]…

---

## [How to find the path to the artifacts directory?](https://discourse.julialang.org/t/how-to-find-the-path-to-the-artifacts-directory/111316)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 12:48pm UTC](https://discourse.julialang.org/t/how-to-find-the-path-to-the-artifacts-directory/111316 "2024-03-08T12:48:03Z")

</div>

Searching seemed to lead to things like @artifact\_str but all this error (???). I need to programmatically get the full path of ~/.julia/artifacts but taking into account too that the JULIA\_DEPOT\_PATH may have been set…

---

## [\[WARNING\] juliawiki.com is AI generated phishing links and SEO spam, do not use it](https://discourse.julialang.org/t/warning-juliawiki-com-is-ai-generated-phishing-links-and-seo-spam-do-not-use-it/111327)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 12:37pm UTC](https://discourse.julialang.org/t/warning-juliawiki-com-is-ai-generated-phishing-links-and-seo-spam-do-not-use-it/111327 "2024-03-08T12:37:59Z")

</div>

In October 2023 a new website juliawiki.com was registered, since then it has had thousands of articles added which are clearly generated by AI, posted by bot accounts. If you look at the log of recently created articles…

---

## [Can some one tell me a package similar to cashocs in pytorch?](https://discourse.julialang.org/t/can-some-one-tell-me-a-package-similar-to-cashocs-in-pytorch/111340)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar](https://discourse.julialang.org/u/Praveen_Kumar)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 9:47am UTC](https://discourse.julialang.org/t/can-some-one-tell-me-a-package-similar-to-cashocs-in-pytorch/111340 "2024-03-08T09:47:51Z")

</div>

I found a pytorch package named cashocs for doing optimal control and shape optimization. cashocs: A Computational, Adjoint-Based Shape Optimization and Optimal Control Software. Is there any similar package in julia?

---

## [Calculating a large sum of positive and negative integers gives wrong answer](https://discourse.julialang.org/t/calculating-a-large-sum-of-positive-and-negative-integers-gives-wrong-answer/111334)

<div class="topic-metadata">

**Author:** [@SherlockSage](https://discourse.julialang.org/u/SherlockSage)\
**Replies:** 7\
**Last updated:** [March 8, 2024, 9:13am UTC](https://discourse.julialang.org/t/calculating-a-large-sum-of-positive-and-negative-integers-gives-wrong-answer/111334 "2024-03-08T09:13:29Z")

</div>

Hello! I am trying to solve a Project Euler problem (#193) to get the squarefree integers less than the large number 2^50. I normally wouldn’t just post the code here directly because of spoilers for the problem except I…

---

## [Eval a string with runtime defined functions](https://discourse.julialang.org/t/eval-a-string-with-runtime-defined-functions/111290)

<div class="topic-metadata">

**Author:** [@phyxmeow](https://discourse.julialang.org/u/phyxmeow)\
**Replies:** 14\
**Last updated:** [March 8, 2024, 7:30am UTC](https://discourse.julialang.org/t/eval-a-string-with-runtime-defined-functions/111290 "2024-03-08T07:30:50Z")

</div>

Hello, how to make this work? And if possible, work performantly. julia\> function foo(str, n) f(x) = x+n eval(Meta.parse(str)) end foo (generic function with 2 methods) julia\> foo("f(1)", 5…

---

## [Clear cache Julia REPL, plots](https://discourse.julialang.org/t/clear-cache-julia-repl-plots/111297)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 10:49pm UTC](https://discourse.julialang.org/t/clear-cache-julia-repl-plots/111297 "2024-03-07T22:49:19Z")

</div>

I noted that with GLMakie, Plots and PythonPlot, when I open julia repl and run include"name\_file.jl") to visualize a plot, axis stack one on top of the other. Some times this happens with legends too. Any way to clear …

---

## [Filling a StructArray in a type-stable manner](https://discourse.julialang.org/t/filling-a-structarray-in-a-type-stable-manner/111319)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 8:05pm UTC](https://discourse.julialang.org/t/filling-a-structarray-in-a-type-stable-manner/111319 "2024-03-07T20:05:11Z")

</div>

I am trying to create StructArray’s reading from a ROOT file with the UnROOT.jl package, which provides a NamedTuple interface, in a type-stable manner. The following code illustrates the problem: using StructArrays usi…

---

## [Typing Question](https://discourse.julialang.org/t/typing-question/111315)

<div class="topic-metadata">

**Author:** [@irslushy](https://discourse.julialang.org/u/irslushy)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 6:54pm UTC](https://discourse.julialang.org/t/typing-question/111315 "2024-03-07T18:54:17Z")

</div>

Hello! Why is it that Union{Missing, Float64} \<: Union{Any} yields true but Matrix{Union{Missing, Float64}} \<: Matrix{Union{Any}} yields false

---

## [Gamezero Draw Programmatically change colour rgb causes error](https://discourse.julialang.org/t/gamezero-draw-programmatically-change-colour-rgb-causes-error/111262)

<div class="topic-metadata">

**Author:** [@HAL9000](https://discourse.julialang.org/u/HAL9000)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 5:49pm UTC](https://discourse.julialang.org/t/gamezero-draw-programmatically-change-colour-rgb-causes-error/111262 "2024-03-07T17:49:54Z")

</div>

I am trying to control colour shade programmatically however when i try to create colorant string either by colorant’rgb((val),(val),$(val)‘) or Colorant’rgb(‘string(val)’,‘string(val)’,‘string(val)’)’’ The draw method…

---

## [How to print elements of a matrix in LaTeX formatting?](https://discourse.julialang.org/t/how-to-print-elements-of-a-matrix-in-latex-formatting/111309)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 4\
**Last updated:** [March 7, 2024, 5:02pm UTC](https://discourse.julialang.org/t/how-to-print-elements-of-a-matrix-in-latex-formatting/111309 "2024-03-07T17:02:07Z")

</div>

Given a matrix A = \[\[182740835762038560236502360265029360346025236045;; 2\]; \[328470287402983460892460286408129634;; 4\]\] I’d like to get LaTeX-formatted output, one element per line, e.g.: latexprint(A) A\_{1,1} = 18…

---

## [Erasing a line in the REPL](https://discourse.julialang.org/t/erasing-a-line-in-the-repl/111244)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [March 7, 2024, 4:45pm UTC](https://discourse.julialang.org/t/erasing-a-line-in-the-repl/111244 "2024-03-07T16:45:11Z")

</div>

Hi, is there a way to erase a line from the REPL ? I’m using ProgressMeter but I’d also like to occasionally print a line when an event occurs. I made the following MWE. Basically, I’d like the “I reached…” statement t…

---

## [Does activative a project now automatically install dependencies on Julia v1.10?](https://discourse.julialang.org/t/does-activative-a-project-now-automatically-install-dependencies-on-julia-v1-10/111299)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [March 7, 2024, 2:07pm UTC](https://discourse.julialang.org/t/does-activative-a-project-now-automatically-install-dependencies-on-julia-v1-10/111299 "2024-03-07T14:07:49Z")

</div>

I have been noticing this recently, which seems new to me.

---

## [Julia in Python, Float64 plots needed](https://discourse.julialang.org/t/julia-in-python-float64-plots-needed/111279)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 9:29am UTC](https://discourse.julialang.org/t/julia-in-python-float64-plots-needed/111279 "2024-03-07T09:29:37Z")

</div>

I need to create accurate plots and as said in thread GLMakie vs Plots, not enogh precision for axis limits, Makie is not eough, using Float32. Plots neither, as it explicitely says in the REPL that there may be inaccura…

---

## [Left associative operators with high precedence](https://discourse.julialang.org/t/left-associative-operators-with-high-precedence/110995)

<div class="topic-metadata">

**Author:** [@phyxmeow](https://discourse.julialang.org/u/phyxmeow)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 12:29pm UTC](https://discourse.julialang.org/t/left-associative-operators-with-high-precedence/110995 "2024-03-07T12:29:35Z")

</div>

I would like an operator that has higher precedence than :\*, but is left associative. I found there is no pre-defined symbol has these two properties at the same time. Since I’m working with strings coming from user inpu…

---

## [GLMakie vs Plots, not enogh precision for axis limits](https://discourse.julialang.org/t/glmakie-vs-plots-not-enogh-precision-for-axis-limits/111249)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 9:48am UTC](https://discourse.julialang.org/t/glmakie-vs-plots-not-enogh-precision-for-axis-limits/111249 "2024-03-07T09:48:13Z")

</div>

I have ugly data with an ugly code, but I just used scatter in both places. Plots gives this: And, as you can see, the oscillations are in the double order. GLMakie gives this: If you zoom manually all the data b…

---

## [Is there any plan to create a pybind11-like C++ binding framework for Julia?](https://discourse.julialang.org/t/is-there-any-plan-to-create-a-pybind11-like-c-binding-framework-for-julia/111268)

<div class="topic-metadata">

**Author:** [@Guanglin\_Du](https://discourse.julialang.org/u/Guanglin_Du)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 2:09am UTC](https://discourse.julialang.org/t/is-there-any-plan-to-create-a-pybind11-like-c-binding-framework-for-julia/111268 "2024-03-07T02:09:11Z")

</div>

Hi, there. I just love Julia so much. However, Fortran and C/C++ have been playing a crucial role in scientific computing for decades. Is any Julia guru planning to create a pybind11-like binding framework for Fortran or…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=189)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=191)
