# Latest

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

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

**Page:** 923

---

## [Postdoc in Learning Methods for Safe-against-Uncertainty Control](https://discourse.julialang.org/t/postdoc-in-learning-methods-for-safe-against-uncertainty-control/87379)

<div class="topic-metadata">

**Author:** [@ashefa](https://discourse.julialang.org/u/ashefa)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 4:36pm UTC](https://discourse.julialang.org/t/postdoc-in-learning-methods-for-safe-against-uncertainty-control/87379 "2022-09-16T16:36:16Z")

</div>

“coding skills in Julia” mentioned as the requirements.

---

## [Nice work on Julia 1.8/1.8.1 on MacOS ARM](https://discourse.julialang.org/t/nice-work-on-julia-1-8-1-8-1-on-macos-arm/87378)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 4:18pm UTC](https://discourse.julialang.org/t/nice-work-on-julia-1-8-1-8-1-on-macos-arm/87378 "2022-09-16T16:18:42Z")

</div>

This build is giving me no problems at all. I’d say the Julia native ARM version is around 30% faster than the Intel version running on Rosetta (Apple’s Intel emulation layer) based on very informal timings. I time sect…

---

## [Shouldn't 1.8.0 be faster than Julia 1.7?](https://discourse.julialang.org/t/shouldnt-1-8-0-be-faster-than-julia-1-7/82143)

<div class="topic-metadata">

**Author:** [@mindaslab](https://discourse.julialang.org/u/mindaslab)\
**Replies:** 30\
**Last updated:** [September 16, 2022, 3:01pm UTC](https://discourse.julialang.org/t/shouldnt-1-8-0-be-faster-than-julia-1-7/82143 "2022-09-16T15:01:12Z")

</div>

---

## [Equally sized grid cells in Makie](https://discourse.julialang.org/t/equally-sized-grid-cells-in-makie/87373)

<div class="topic-metadata">

**Author:** [@psterzinger](https://discourse.julialang.org/u/psterzinger)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 2:49pm UTC](https://discourse.julialang.org/t/equally-sized-grid-cells-in-makie/87373 "2022-09-16T14:49:25Z")

</div>

Hi, I am trying to place 5 plots in a grid with 3 rows and 4 columns so that the first plot spans cols 2:3 in row 1 the remaining plots span cols 1:2, 3:4 in rows 2,3 all plots are of the same size However, it seems …

---

## [How to mutate values of matrix which by mutating its sub-matrix?](https://discourse.julialang.org/t/how-to-mutate-values-of-matrix-which-by-mutating-its-sub-matrix/87325)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 9\
**Last updated:** [September 16, 2022, 2:36pm UTC](https://discourse.julialang.org/t/how-to-mutate-values-of-matrix-which-by-mutating-its-sub-matrix/87325 "2022-09-16T14:36:31Z")

</div>

In the below, I building matrix A which consists of for sub-matrices Y,A1,A2,A3.I want the mutation on A3 be applied automatically on A as well. How can I do that please? using BenchmarkTools, StaticArrays, LinearAlgeb…

---

## [How to set the color of the plot's title?](https://discourse.julialang.org/t/how-to-set-the-color-of-the-plots-title/87370)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 2:03pm UTC](https://discourse.julialang.org/t/how-to-set-the-color-of-the-plots-title/87370 "2022-09-16T14:03:50Z")

</div>

How do I set the color of the plot’s title, without affecting anything else? I would have thought plot\_titlefontcolor=:red would create a red font title, but it doesn’t appear to have an effect.

---

## [How to clear workspace variables？](https://discourse.julialang.org/t/how-to-clear-workspace-variables/44095)

<div class="topic-metadata">

**Author:** [@dty](https://discourse.julialang.org/u/dty)\
**Replies:** 15\
**Last updated:** [September 16, 2022, 1:07pm UTC](https://discourse.julialang.org/t/how-to-clear-workspace-variables/44095 "2022-09-16T13:07:18Z")

</div>

I’ve installed it revise.jl How can I use this bag? How can I clear the previous working variables after modifying the program to see the new variable values

---

## [Mesh generation](https://discourse.julialang.org/t/mesh-generation/82263)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 16\
**Last updated:** [September 16, 2022, 1:04pm UTC](https://discourse.julialang.org/t/mesh-generation/82263 "2022-09-16T13:04:01Z")

</div>

Dear all, I would like to know if there exists a generic mesh generator (2D/3D) that allows for: in 2D: the use either triangles or quadrangles controlling order of elements including regional attributes to elements r…

---

## [Threads.at-spawn: idle threads when printing](https://discourse.julialang.org/t/threads-at-spawn-idle-threads-when-printing/87363)

<div class="topic-metadata">

**Author:** [@rfourquet](https://discourse.julialang.org/u/rfourquet)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 12:31pm UTC](https://discourse.julialang.org/t/threads-at-spawn-idle-threads-when-printing/87363 "2022-09-16T12:31:13Z")

</div>

When running multiple tasks which do some printing using Threads.@spawn, threads can become idle, I would like help understanding the reason and am looking for workarounds. Here is an example, assuming Threads.nthreads()…

---

## [Book reviewer for "Applied Julia"](https://discourse.julialang.org/t/book-reviewer-for-applied-julia/69247)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 9\
**Last updated:** [September 16, 2022, 12:34pm UTC](https://discourse.julialang.org/t/book-reviewer-for-applied-julia/69247 "2022-09-16T12:34:12Z")

</div>

As I mentioned in my tweet, Lee Phillips is writing a book titled “Applied Julia” (working title): Many of you may know him as the author of various Julia related articles on Ars Technica and LWN - most recently the a…

---

## [Forbid Pkg to try and download artifact from outside world?](https://discourse.julialang.org/t/forbid-pkg-to-try-and-download-artifact-from-outside-world/87357)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 8:52am UTC](https://discourse.julialang.org/t/forbid-pkg-to-try-and-download-artifact-from-outside-world/87357 "2022-09-16T08:52:03Z")

</div>

I just managed to add an artifact to one of my packages, however while attempting that I had some address issues to my local storage. This resulted in Pkg errors during instantiate. The error prompted that Pkg tried to …

---

## [\`add\_artifact!\` fails because of a checksum test, while the tarball was made with \`Tar.jl\`](https://discourse.julialang.org/t/add-artifact-fails-because-of-a-checksum-test-while-the-tarball-was-made-with-tar-jl/87306)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 8:41am UTC](https://discourse.julialang.org/t/add-artifact-fails-because-of-a-checksum-test-while-the-tarball-was-made-with-tar-jl/87306 "2022-09-16T08:41:31Z")

</div>

Hello, I’m trying to add some binary artifacts to one of my packages. As I am on windows, I do not use BinaryBuilder as it does not seem supported at the moment for that OS. However, I tried using ArtifactUtils to ease …

---

## [Confusion about immutability (of named tuples)](https://discourse.julialang.org/t/confusion-about-immutability-of-named-tuples/87355)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 8:37am UTC](https://discourse.julialang.org/t/confusion-about-immutability-of-named-tuples/87355 "2022-09-16T08:37:28Z")

</div>

Consider the code below: a = 42 b = "Julia confuses me" namedTuple =(; a, b) println(namedTuple) println(ismutable(namedTuple)) # gives false c = pi/2 namedTuple = (;namedTuple..., c) # Why is this permitted... printl…

---

## [What am I missing in these codes?](https://discourse.julialang.org/t/what-am-i-missing-in-these-codes/87347)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 3\
**Last updated:** [September 16, 2022, 7:51am UTC](https://discourse.julialang.org/t/what-am-i-missing-in-these-codes/87347 "2022-09-16T07:51:15Z")

</div>

Code1: f1(x::Int)=println("1: $x") Int(x)=println("int: $x") f2(x::Int)=println("2: $x") f2 (generic function with 1 method) Code2: julia\> Int(x)=println("int: $x") Int (generic function with 1 method) julia\> f2(x::…

---

## [How to Convert this Code to For loop / Function?](https://discourse.julialang.org/t/how-to-convert-this-code-to-for-loop-function/87260)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 11\
**Last updated:** [September 16, 2022, 7:26am UTC](https://discourse.julialang.org/t/how-to-convert-this-code-to-for-loop-function/87260 "2022-09-16T07:26:57Z")

</div>

Hi all, I plot a series manually, then I thought I want to learn to use for loop / function. I don’t know which one is better. The series are famous: a\_{n} = \\frac{(-1)^{n}}{n} For n even it will be \\frac{1}{n} For n…

---

## [Rational pseudo-inverse matrix](https://discourse.julialang.org/t/rational-pseudo-inverse-matrix/43773)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 10\
**Last updated:** [September 16, 2022, 6:53am UTC](https://discourse.julialang.org/t/rational-pseudo-inverse-matrix/43773 "2022-09-16T06:53:56Z")

</div>

Given a generic non-square matrix A, one can compute the pseudo-inverse (aka Moore-Penrose inverse) via the LinearAlgebra.pinv function, or also from the LinearAlgebra.qr decomposition (pinv(A) = inv(qr(A).R) \* qr(A).Q')…

---

## [Φ(−600) = 6.546588 205807 692852 105927 713888 108782 119412 831853 177211 16943e − 78177](https://discourse.julialang.org/t/600-6-546588-205807-692852-105927-713888-108782-119412-831853-177211-16943e-78177/87309)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 3\
**Last updated:** [September 16, 2022, 5:50am UTC](https://discourse.julialang.org/t/600-6-546588-205807-692852-105927-713888-108782-119412-831853-177211-16943e-78177/87309 "2022-09-16T05:50:19Z")

</div>

The paper Approximations to the Normal Distribution Function and An Extended Table for the Mean Range of the Normal Variables by Kiani, M and Panaretos, J and Psarakis, S and Saleem, M (2008) reviews algorithms for compu…

---

## [Using Multiple Dispatch with Keyword Arguments](https://discourse.julialang.org/t/using-multiple-dispatch-with-keyword-arguments/87343)

<div class="topic-metadata">

**Author:** [@Snowy](https://discourse.julialang.org/u/Snowy)\
**Replies:** 4\
**Last updated:** [September 16, 2022, 5:36am UTC](https://discourse.julialang.org/t/using-multiple-dispatch-with-keyword-arguments/87343 "2022-09-16T05:36:32Z")

</div>

Hi all, Still a new Julia user here, but hoping to find some help. I’m building an application that will take in user-provided information and process it. There are a few required arguments from the user, and some optio…

---

## [Indexing Vectors of Structs](https://discourse.julialang.org/t/indexing-vectors-of-structs/87346)

<div class="topic-metadata">

**Author:** [@Name1](https://discourse.julialang.org/u/Name1)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 4:54am UTC](https://discourse.julialang.org/t/indexing-vectors-of-structs/87346 "2022-09-16T04:54:11Z")

</div>

Hi all, for ii in myStructArray ii.parameterOne = lowercase(ii.parameterOne) ii.parameterTwo = lowercase(ii.parameterTwo) print("On loop iteration " + ii) end I’m looping…

---

## [FLoops ThreadedEx scheduling](https://discourse.julialang.org/t/floops-threadedex-scheduling/86024)

<div class="topic-metadata">

**Author:** [@ignis](https://discourse.julialang.org/u/ignis)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 4:07am UTC](https://discourse.julialang.org/t/floops-threadedex-scheduling/86024 "2022-09-16T04:07:42Z")

</div>

I’ve been studying different types of loop scheduling in multithreading and I couldn’t really understand how the executor ThreadedEx in FLoops/FoldsThreads work. The docs say: this executor takes a divide-and-conquer …

---

## [What causes the delay when adding procs](https://discourse.julialang.org/t/what-causes-the-delay-when-adding-procs/87344)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 0\
**Last updated:** [September 16, 2022, 4:04am UTC](https://discourse.julialang.org/t/what-causes-the-delay-when-adding-procs/87344 "2022-09-16T04:04:36Z")

</div>

I am using ClusterManagers.jl and Distributed.jl to connect to a cluster. I’ve done this many times before and seem to understand how it all works, but something that eludes me is that when adding a large number of proce…

---

## [Question on Julia Blog Post regarding Performance](https://discourse.julialang.org/t/question-on-julia-blog-post-regarding-performance/87342)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 3:48am UTC](https://discourse.julialang.org/t/question-on-julia-blog-post-regarding-performance/87342 "2022-09-16T03:48:15Z")

</div>

I was searching around for Julia comparisons to C++ and found this write-up from 2019. I follow most of it but one point I was curious about is near the end where they implemented @simd, @fastmath, and @inbounds. I wou…

---

## [How to collect sin(t) or (sin(t)) ^2 coefficients in a expression](https://discourse.julialang.org/t/how-to-collect-sin-t-or-sin-t-2-coefficients-in-a-expression/87109)

<div class="topic-metadata">

**Author:** [@Starpower\_Power](https://discourse.julialang.org/u/Starpower_Power)\
**Replies:** 5\
**Last updated:** [September 16, 2022, 12:48am UTC](https://discourse.julialang.org/t/how-to-collect-sin-t-or-sin-t-2-coefficients-in-a-expression/87109 "2022-09-16T00:48:16Z")

</div>

using LinearAlgebra using SymPy @vars t x y m=\[cos(t) -sin(t) 0; sin(t) cos(t) 0; 0 0 1\]; a = inv(m)\*\[x;y;t\] b=a'\*a So, I want the coefficient of sin(t) or (sin(t))^2 in final expression b.

---

## [Jupyter notebook don't show the plots after loaded sysimaged PyPlot.jl package](https://discourse.julialang.org/t/jupyter-notebook-dont-show-the-plots-after-loaded-sysimaged-pyplot-jl-package/38219)

<div class="topic-metadata">

**Author:** [@Jieyi\_Xiong](https://discourse.julialang.org/u/Jieyi_Xiong)\
**Replies:** 2\
**Last updated:** [September 16, 2022, 12:25am UTC](https://discourse.julialang.org/t/jupyter-notebook-dont-show-the-plots-after-loaded-sysimaged-pyplot-jl-package/38219 "2022-09-16T00:25:40Z")

</div>

I’d like to boost the loading speed of PyPlot.jl in IJulia-Jupyter model. I created sysimage of this package as below: using PackageCompiler create\_sysimage(:PyPlot, sysimage\_path="/path/to/pyplot.so") and checked this…

---

## [Multivariate nonlinear constrained optimization using JuMP and ForwardDiff (Automatic Differentiation)](https://discourse.julialang.org/t/multivariate-nonlinear-constrained-optimization-using-jump-and-forwarddiff-automatic-differentiation/87338)

<div class="topic-metadata">

**Author:** [@dhathri](https://discourse.julialang.org/u/dhathri)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 9:52pm UTC](https://discourse.julialang.org/t/multivariate-nonlinear-constrained-optimization-using-jump-and-forwarddiff-automatic-differentiation/87338 "2022-09-15T21:52:17Z")

</div>

Hi, I am new to Julia and I am trying to understand how to use JuMP/ForwardDiff to transfer a collocation algorithm (nlp problem) written in MATLAB. I use fmincon in MATLAB with a nonlinear function that returns a vector…

---

## [Building a Transpiler from Python to Julia](https://discourse.julialang.org/t/building-a-transpiler-from-python-to-julia/86349)

<div class="topic-metadata">

**Author:** [@mig](https://discourse.julialang.org/u/mig)\
**Replies:** 19\
**Last updated:** [September 15, 2022, 9:41pm UTC](https://discourse.julialang.org/t/building-a-transpiler-from-python-to-julia/86349 "2022-09-15T21:41:46Z")

</div>

Greetings! This is my first-ever post on Julia’s discourse, so I hope it turns out ok! I have been developing a transpiler called PyJL for my Master Thesis over the last year, which translates Python source code to hum…

---

## [3 new Neural 3D Graphics Software Engineer positions at AMD](https://discourse.julialang.org/t/3-new-neural-3d-graphics-software-engineer-positions-at-amd/87288)

<div class="topic-metadata">

**Author:** [@claforte](https://discourse.julialang.org/u/claforte)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 9:17pm UTC](https://discourse.julialang.org/t/3-new-neural-3d-graphics-software-engineer-positions-at-amd/87288 "2022-09-15T21:17:55Z")

</div>

We use (and appreciate!) Julia in many of our research projects, and plan to open-source a lot of it soon. https://twitter.com/chrlaf/status/1570149341515612161?s=20&t=pOEjKRa6Vkk1KNoeRWlZwg

---

## [Plotting an image - why does a white border appear?](https://discourse.julialang.org/t/plotting-an-image-why-does-a-white-border-appear/87335)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 9:04pm UTC](https://discourse.julialang.org/t/plotting-an-image-why-does-a-white-border-appear/87335 "2022-09-15T21:04:51Z")

</div>

Using the following code, I plot and annotate an image. But I get a white and disproportionate border around my image. Why? And how can I ask plot not to show that border? using TestImages using Plots img = testimage("…

---

## [@async and SQLite.jl](https://discourse.julialang.org/t/async-and-sqlite-jl/87326)

<div class="topic-metadata">

**Author:** [@Rafael\_Brus](https://discourse.julialang.org/u/Rafael_Brus)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 9:02pm UTC](https://discourse.julialang.org/t/async-and-sqlite-jl/87326 "2022-09-15T21:02:07Z")

</div>

Is there any way to use @async with SQLite.jl? The execution of a task only starts after the other one finishes in my tests. function block\_sql(n::Int64, tam::Int64) local results = Channel(32); local steps = …

---

## [Rewriting a Matlab code From Matlab to Julia](https://discourse.julialang.org/t/rewriting-a-matlab-code-from-matlab-to-julia/87303)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 6\
**Last updated:** [September 15, 2022, 8:06pm UTC](https://discourse.julialang.org/t/rewriting-a-matlab-code-from-matlab-to-julia/87303 "2022-09-15T20:06:50Z")

</div>

Hi, I have written this code in Matlab which runs perfectly for me and gives me the plots I needed together with the solutions. I am working in Julia and want to rewrite my code from matlab to Julia but having challenges…

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

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