# Latest

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

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

**Page:** 408

---

## [Type-inference and the dot operator](https://discourse.julialang.org/t/type-inference-and-the-dot-operator/114432)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 3\
**Last updated:** [May 18, 2024, 3:48pm UTC](https://discourse.julialang.org/t/type-inference-and-the-dot-operator/114432 "2024-05-18T15:48:34Z")

</div>

I had naively assumed the type-inference used only the types of the arguments to a function call then realized that in an important special case - the dot operator - it must be able to use the value of the second argumen…

---

## [Is there a quicker way to obtain normalized multivariate random normal draws?](https://discourse.julialang.org/t/is-there-a-quicker-way-to-obtain-normalized-multivariate-random-normal-draws/114411)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 15\
**Last updated:** [May 18, 2024, 3:33pm UTC](https://discourse.julialang.org/t/is-there-a-quicker-way-to-obtain-normalized-multivariate-random-normal-draws/114411 "2024-05-18T15:33:39Z")

</div>

I want to make n random draws from a Multivariate Normal distribution, then divide each element in each of the random draws by the norm of the random draw. Mathematically, I want to obtain \\mathbf{y}\_i=\\mathbf{x}\_i/||\\ma…

---

## ["Missing reference" warnings with Julia in VS Code?](https://discourse.julialang.org/t/missing-reference-warnings-with-julia-in-vs-code/31321)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 24\
**Last updated:** [May 18, 2024, 3:05pm UTC](https://discourse.julialang.org/t/missing-reference-warnings-with-julia-in-vs-code/31321 "2024-05-18T15:05:44Z")

</div>

Hello, I tried giving VS Code a shot (Atom is my go-to editor). I guess I got too motivated after reading the recent opinions on optimal IDE for Julia…I was wondering if anyone has encountered a “Missing Reference” erro…

---

## [JuliaCon Proceedings now open](https://discourse.julialang.org/t/juliacon-proceedings-now-open/112724)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 1\
**Last updated:** [May 18, 2024, 2:17pm UTC](https://discourse.julialang.org/t/juliacon-proceedings-now-open/112724 "2024-05-18T14:17:23Z")

</div>

The new Editorial Board of the Proceedings of the JuliaCon Conferences is excited to announce that submissions for contributions are open again. We are currently accepting submissions for work presented at JuliaCon 2023…

---

## [Structural\_simplify not working on tiered model](https://discourse.julialang.org/t/structural-simplify-not-working-on-tiered-model/114428)

<div class="topic-metadata">

**Author:** [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Replies:** 1\
**Last updated:** [May 18, 2024, 1:40pm UTC](https://discourse.julialang.org/t/structural-simplify-not-working-on-tiered-model/114428 "2024-05-18T13:40:31Z")

</div>

Hello, For contect: I am building a model using ModellingToolkit that has layers of connections as each component within the overall ODE will be built at runtime from symbolics equations etc. I have built this model wi…

---

## [Old Conda environment in Julia](https://discourse.julialang.org/t/old-conda-environment-in-julia/114429)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 1\
**Last updated:** [May 18, 2024, 12:51pm UTC](https://discourse.julialang.org/t/old-conda-environment-in-julia/114429 "2024-05-18T12:51:11Z")

</div>

It seems that I have an old Conda environment in Julia: /Users/sbac/.julia/conda/3/lib/python3.7. I am using now other Python environments with Python version 3.12. I can’t find the name of this environment. How can I (…

---

## [Autodiff for max-flow](https://discourse.julialang.org/t/autodiff-for-max-flow/114300)

<div class="topic-metadata">

**Author:** [@PaterPen](https://discourse.julialang.org/u/PaterPen)\
**Replies:** 14\
**Last updated:** [May 18, 2024, 10:56am UTC](https://discourse.julialang.org/t/autodiff-for-max-flow/114300 "2024-05-18T10:56:43Z")

</div>

Hi, I would like to use Enzyme.jl to get gradients for a max-flow result. Enzyme gives me an illegal type analysis error in this MWE: using Enzyme using Graphs, GraphsFlows # Graph from GraphsFlows.jl demo flow\_graph =…

---

## [\[ANN\] NamSor.jl: Julia wrappers for NamSor v2 API](https://discourse.julialang.org/t/ann-namsor-jl-julia-wrappers-for-namsor-v2-api/114424)

<div class="topic-metadata">

**Author:** [@NeroBlackstone](https://discourse.julialang.org/u/NeroBlackstone)\
**Replies:** 0\
**Last updated:** [May 18, 2024, 10:52am UTC](https://discourse.julialang.org/t/ann-namsor-jl-julia-wrappers-for-namsor-v2-api/114424 "2024-05-18T10:52:27Z")

</div>

Namsor is a name checker for gender, origin and ethnicity determination. This Julia package wrap the NamSor Web API. API key Please apply for your NamSor API key first. Then paste your api key at $HOME/.config/NAMSOR\_K…

---

## [Neuromorphic computing](https://discourse.julialang.org/t/neuromorphic-computing/114423)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [May 18, 2024, 10:41am UTC](https://discourse.julialang.org/t/neuromorphic-computing/114423 "2024-05-18T10:41:04Z")

</div>

Did anybody of you look into neuromorphic computing? Might be the next big thing, because it allows similar algorithms as machine learning, but with orders of magnitude lower energy consumption: https://www.intel.com/c…

---

## [JuMP: Solver independent callback doesnt work for SCIP](https://discourse.julialang.org/t/jump-solver-independent-callback-doesnt-work-for-scip/108490)

<div class="topic-metadata">

**Author:** [@sandyspiers](https://discourse.julialang.org/u/sandyspiers)\
**Replies:** 4\
**Last updated:** [May 18, 2024, 10:36am UTC](https://discourse.julialang.org/t/jump-solver-independent-callback-doesnt-work-for-scip/108490 "2024-05-18T10:36:32Z")

</div>

The docs state that JuMP’s solver-independent callback feature supports SCIP. However, if I replace the lazy constraint example (which uses GLPK) with SCIP, I get the following error julia\> using JuMP julia\> import SC…

---

## [Why does rand(Complex{Float64},N,N) always host a large eigenvalue?](https://discourse.julialang.org/t/why-does-rand-complex-float64-n-n-always-host-a-large-eigenvalue/114402)

<div class="topic-metadata">

**Author:** [@yosuga](https://discourse.julialang.org/u/yosuga)\
**Replies:** 5\
**Last updated:** [May 17, 2024, 5:17pm UTC](https://discourse.julialang.org/t/why-does-rand-complex-float64-n-n-always-host-a-large-eigenvalue/114402 "2024-05-17T17:17:36Z")

</div>

rand(Complex{Float64},N,N) has a single huge eigenvalue: 1000-element Vector{ComplexF64}: -12.783541578066096 + 0.3846555290226826im -12.640629292870221 + 0.3298358788214941im -12.532390460903775 - 0.46833512398154803im…

---

## [Why is global scope different?](https://discourse.julialang.org/t/why-is-global-scope-different/114398)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 11\
**Last updated:** [May 17, 2024, 10:46pm UTC](https://discourse.julialang.org/t/why-is-global-scope-different/114398 "2024-05-17T22:46:30Z")

</div>

I just read through the Scope of Variables manual page and added a summary to the top of it. The main thing I still don’t understand is why global scope needs to be treated so differently from local scopes. The rational…

---

## [Speeding up evaluation of small exponential-like series](https://discourse.julialang.org/t/speeding-up-evaluation-of-small-exponential-like-series/114314)

<div class="topic-metadata">

**Author:** [@isaacsas](https://discourse.julialang.org/u/isaacsas)\
**Replies:** 19\
**Last updated:** [May 17, 2024, 11:07pm UTC](https://discourse.julialang.org/t/speeding-up-evaluation-of-small-exponential-like-series/114314 "2024-05-17T23:07:08Z")

</div>

I have an application where the following function to evaluate an exponential-like series is called many times for different p vectors (the last two inputs are fixed), and takes a good portion of the running time. I was …

---

## [Displaying .tiff or .tif images in Julia through QML.jl](https://discourse.julialang.org/t/displaying-tiff-or-tif-images-in-julia-through-qml-jl/114394)

<div class="topic-metadata">

**Author:** [@Moeasy64](https://discourse.julialang.org/u/Moeasy64)\
**Replies:** 1\
**Last updated:** [May 17, 2024, 10:45pm UTC](https://discourse.julialang.org/t/displaying-tiff-or-tif-images-in-julia-through-qml-jl/114394 "2024-05-17T22:45:15Z")

</div>

Good morning, I am trying to display a .tiff image inside my qml application through qml.jl. I’ve seen there’s a way through third party bundles to display such image type. Anyway I can’t figure out how to do it with Jul…

---

## [Most compact way to create an array of a known container type with a different eltype?](https://discourse.julialang.org/t/most-compact-way-to-create-an-array-of-a-known-container-type-with-a-different-eltype/114215)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 6\
**Last updated:** [May 17, 2024, 10:49pm UTC](https://discourse.julialang.org/t/most-compact-way-to-create-an-array-of-a-known-container-type-with-a-different-eltype/114215 "2024-05-17T22:49:36Z")

</div>

For example, suppose that we have an array type such as Atype = Array{ComplexF64,3} and would like to create an array of the same container type (in this case Array) but with a different element type, say Int (so the tar…

---

## [When is it okay to use \`@assert\`?](https://discourse.julialang.org/t/when-is-it-okay-to-use-assert/114399)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 7\
**Last updated:** [May 17, 2024, 8:48pm UTC](https://discourse.julialang.org/t/when-is-it-okay-to-use-assert/114399 "2024-05-17T20:48:43Z")

</div>

I see @assert used frequently in the wild to check function inputs, and it looks a lot nicer than putting a bunch of if/throw statements at the top of every function. However, ModernJuliaWorkflows says: To test the ar…

---

## [Idea of time in Agents.jl modelling](https://discourse.julialang.org/t/idea-of-time-in-agents-jl-modelling/114240)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 12\
**Last updated:** [May 17, 2024, 7:38pm UTC](https://discourse.julialang.org/t/idea-of-time-in-agents-jl-modelling/114240 "2024-05-17T19:38:55Z")

</div>

Hello everyone, It may be very naive to ask but Im not sure I understand idea of time in Agents.jl modelling. In Agents modelling we usually use steps right? like for how many steps it should run. But lets say I want to…

---

## [2D examples of DistMesh.jl or other simple mesh generator?](https://discourse.julialang.org/t/2d-examples-of-distmesh-jl-or-other-simple-mesh-generator/114404)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 2\
**Last updated:** [May 17, 2024, 7:02pm UTC](https://discourse.julialang.org/t/2d-examples-of-distmesh-jl-or-other-simple-mesh-generator/114404 "2024-05-17T19:02:16Z")

</div>

Hi everyone. I am looking to generate some simple 2D meshes (triangles filling a big rectangle with some smaller square holes). I used for years the DistMesh for Matlab. Now I am trying to use the Julia port. There are …

---

## [Jupyter Magics Proposal/Feature Request](https://discourse.julialang.org/t/jupyter-magics-proposal-feature-request/114373)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 15\
**Last updated:** [May 17, 2024, 3:38pm UTC](https://discourse.julialang.org/t/jupyter-magics-proposal-feature-request/114373 "2024-05-17T15:38:00Z")

</div>

Background I am aware of IJulia’s decision on magics. From their docs: One difference from IPython is that the IJulia kernel does not use “magics”, which are special commands prefixed with % or %% to execute code in a …

---

## [Animation from grid data/files:](https://discourse.julialang.org/t/animation-from-grid-data-files/114277)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 12\
**Last updated:** [May 17, 2024, 3:53pm UTC](https://discourse.julialang.org/t/animation-from-grid-data-files/114277 "2024-05-17T15:53:52Z")

</div>

Making an animation with the GMT.jl package is not intuitive to me and I would love some guidance/direction on how to achieve my end goal. Luckily, though, using the GMT.jl package to plot a static grid is relatively st…

---

## [Renderloop updates in GLMakie.jl?](https://discourse.julialang.org/t/renderloop-updates-in-glmakie-jl/114397)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 0\
**Last updated:** [May 17, 2024, 1:48pm UTC](https://discourse.julialang.org/t/renderloop-updates-in-glmakie-jl/114397 "2024-05-17T13:48:56Z")

</div>

Context: I’m trying to recreate this demo Collide force | D3 by Observable in Makie.jl with GraphPlayground.jl (and do other demos from there too…) Issue: What’s are different ways of driving the update loop in GLMaki…

---

## [Division by zero runs without warning -\> complicates finding bugs](https://discourse.julialang.org/t/division-by-zero-runs-without-warning-complicates-finding-bugs/113441)

<div class="topic-metadata">

**Author:** [@lisapisa](https://discourse.julialang.org/u/lisapisa)\
**Replies:** 31\
**Last updated:** [May 17, 2024, 12:31pm UTC](https://discourse.julialang.org/t/division-by-zero-runs-without-warning-complicates-finding-bugs/113441 "2024-05-17T12:31:13Z")

</div>

Heyy :slight\_smile: Not sure if this is the right place to post this. Also not sure if this is a valid complaint, that’s why I’m posting here to get other peoples opinion. This post is coming from a place of frustatio…

---

## [Threads stop working when scaling computation](https://discourse.julialang.org/t/threads-stop-working-when-scaling-computation/114392)

<div class="topic-metadata">

**Author:** [@SpuriousEigenstate](https://discourse.julialang.org/u/SpuriousEigenstate)\
**Replies:** 0\
**Last updated:** [May 17, 2024, 12:06pm UTC](https://discourse.julialang.org/t/threads-stop-working-when-scaling-computation/114392 "2024-05-17T12:06:39Z")

</div>

I have been stumped by this for a while now, so I thought I’d put it up here. I developed a script that calculates some properties of a simulation “self-consistently”. I.e. the system is set up as a matrix, diagonalized…

---

## [Ask for better method to visualizing two-dimensional or three-dimensional areas](https://discourse.julialang.org/t/ask-for-better-method-to-visualizing-two-dimensional-or-three-dimensional-areas/114387)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 1\
**Last updated:** [May 17, 2024, 10:02am UTC](https://discourse.julialang.org/t/ask-for-better-method-to-visualizing-two-dimensional-or-three-dimensional-areas/114387 "2024-05-17T10:02:07Z")

</div>

What’s the most recommended way to visualize a two-dimensional or three-dimensional areas, e.g., f(x, y) \\leqslant c and f(x, y, z) \\leqslant c ? I’ve tried CairoMakie.contour but I’m not quite satisfied with it: using…

---

## [Cast/parse multiple variables at once](https://discourse.julialang.org/t/cast-parse-multiple-variables-at-once/114345)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 5\
**Last updated:** [May 17, 2024, 8:42am UTC](https://discourse.julialang.org/t/cast-parse-multiple-variables-at-once/114345 "2024-05-17T08:42:27Z")

</div>

Hi, Having to process dates read from files, I’m currently doing e.g.: date="20240516235400" yyyy, mm, dd, h, m, s = parse(Int32, date\[1:4\]), parse(Int32, date\[5:6\]), parse(Int32, date\[7:8\]), parse(Int32, date\[9:10\]), …

---

## [Distributed and SGE qsub](https://discourse.julialang.org/t/distributed-and-sge-qsub/114386)

<div class="topic-metadata">

**Author:** [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Replies:** 0\
**Last updated:** [May 17, 2024, 7:44am UTC](https://discourse.julialang.org/t/distributed-and-sge-qsub/114386 "2024-05-17T07:44:59Z")

</div>

Hi! How to qsub julia codes with Distributed package? I’m using Distributed package. And to run the code, I have used SGE qsub. I maybe understood ‘how to run MPI’ with qsub. MPI need an option ‘-pe N’, where N is numb…

---

## [Function call with quotes instead of parenthesis](https://discourse.julialang.org/t/function-call-with-quotes-instead-of-parenthesis/114382)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [May 17, 2024, 7:42am UTC](https://discourse.julialang.org/t/function-call-with-quotes-instead-of-parenthesis/114382 "2024-05-17T07:42:07Z")

</div>

Hello, I was looking at the LocalRegistry package when I noticed the following (unrelated I think to the actual LocalRegistry package). using Pkg pkg"registry add \<repository url\>" It looks like the quotes are used in…

---

## [Improper function nesting causes boxing/runtime dispatch?](https://discourse.julialang.org/t/improper-function-nesting-causes-boxing-runtime-dispatch/114307)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 3\
**Last updated:** [May 17, 2024, 7:00am UTC](https://discourse.julialang.org/t/improper-function-nesting-causes-boxing-runtime-dispatch/114307 "2024-05-17T07:00:01Z")

</div>

Note the code example below: struct Radix{N} Radix(n::Integer) = new{n}(); end # Nesting: testfunc! -\> \_add, \_addpositions function testfunc!(array, num, radix) \_add(a, b, ::Radix{2}) = a ⊻ b \_add(a, …

---

## [Enzyme.jl cannot differentiate through vector of distributions?](https://discourse.julialang.org/t/enzyme-jl-cannot-differentiate-through-vector-of-distributions/114338)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 2\
**Last updated:** [May 17, 2024, 6:55am UTC](https://discourse.julialang.org/t/enzyme-jl-cannot-differentiate-through-vector-of-distributions/114338 "2024-05-17T06:55:45Z")

</div>

I have a vector y which is a Vector{Float64}, but each y\[i\] is sampled from a different marginal distribution specified by vecdist\[i\]. I want the gradient of the loglikelihood function (scalar output), but I’m getting a…

---

## [Docstring for \`Method\`](https://discourse.julialang.org/t/docstring-for-method/92675)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 5\
**Last updated:** [May 17, 2024, 6:48am UTC](https://discourse.julialang.org/t/docstring-for-method/92675 "2024-05-17T06:48:28Z")

</div>

Hey everyone, I’m trying to do something that I thought would be easy but is actually rather tricky. I simply want to get the docstring of a Method. For example: """ my f """ f(x::Int) = 2x """ with strings """ f(x…

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

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