# Latest

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

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

**Page:** 1050

---

## [Tracking JIT compiled objects](https://discourse.julialang.org/t/tracking-jit-compiled-objects/80553)

<div class="topic-metadata">

**Author:** [@felipenoris](https://discourse.julialang.org/u/felipenoris)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 6:35pm UTC](https://discourse.julialang.org/t/tracking-jit-compiled-objects/80553 "2022-05-05T18:35:22Z")

</div>

Hi! I’m getting a lot of memory consumption on my Julia sessions after running some heavy workloads. My best bet is that I’m JIT compiling too many functions and maybe I need to use nospecialize somewhere. What’s the b…

---

## [Minimising top-level project latency](https://discourse.julialang.org/t/minimising-top-level-project-latency/80546)

<div class="topic-metadata">

**Author:** [@danielsoutar](https://discourse.julialang.org/u/danielsoutar)\
**Replies:** 3\
**Last updated:** [May 5, 2022, 5:25pm UTC](https://discourse.julialang.org/t/minimising-top-level-project-latency/80546 "2022-05-05T17:25:03Z")

</div>

If I want to use a third-party package with minimal latency overhead, I can do so by having it precompiled. However, I am in the top-level project in a codebase that implements a complex pipeline and get this error when i…

---

## [Generating plots from the ALGORITHMS FOR OPTIMIZATION book by Kochenderfer et al](https://discourse.julialang.org/t/generating-plots-from-the-algorithms-for-optimization-book-by-kochenderfer-et-al/80552)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 5:06pm UTC](https://discourse.julialang.org/t/generating-plots-from-the-algorithms-for-optimization-book-by-kochenderfer-et-al/80552 "2022-05-05T17:06:26Z")

</div>

I was reading through the Algorithms for Optimization book by Kochenderfer and Wheeler. The books is replete with excellent julia code for running optimization algorithms. One challenge I have with the book is that they …

---

## [Instances for type](https://discourse.julialang.org/t/instances-for-type/80549)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 5:01pm UTC](https://discourse.julialang.org/t/instances-for-type/80549 "2022-05-05T17:01:48Z")

</div>

How to import Base: ! when I get no method matching !??

---

## [Julia not 220 times faster than C++](https://discourse.julialang.org/t/julia-not-220-times-faster-than-c/80512)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [May 5, 2022, 4:11pm UTC](https://discourse.julialang.org/t/julia-not-220-times-faster-than-c/80512 "2022-05-05T16:11:22Z")

</div>

I have a small piece of code that I actually use in my simulation, and just compared the performance between C++ and Julia. One function call needs about 7ns with Julia and 1550 ns with C++ and Eigen3. Why is C++ so slo…

---

## [Julia Constraint Graph and SAT Solver](https://discourse.julialang.org/t/julia-constraint-graph-and-sat-solver/80550)

<div class="topic-metadata">

**Author:** [@patra9](https://discourse.julialang.org/u/patra9)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 3:57pm UTC](https://discourse.julialang.org/t/julia-constraint-graph-and-sat-solver/80550 "2022-05-05T15:57:21Z")

</div>

Hello everyone. I am quite new to Julia, but I have a python background. I need help with modeling a Constraint Graph. I Read articles on defining the CNF from, but I do not understand how to define it from the question.…

---

## [Smoothing tracks with a Kalman filter](https://discourse.julialang.org/t/smoothing-tracks-with-a-kalman-filter/24209)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 35\
**Last updated:** [May 5, 2022, 3:54pm UTC](https://discourse.julialang.org/t/smoothing-tracks-with-a-kalman-filter/24209 "2022-05-05T15:54:23Z")

</div>

Hi all, I have videos of dung beetles rolling balls of dung: The pixel coordinates of the beeltes’ locations (x,y per time) have been extracted from these videos. Using the calibrations of these videos, the pixel coo…

---

## [Agents Based Modeling (using Agents.jl)](https://discourse.julialang.org/t/agents-based-modeling-using-agents-jl/30486)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 7\
**Last updated:** [May 5, 2022, 3:09pm UTC](https://discourse.julialang.org/t/agents-based-modeling-using-agents-jl/30486 "2022-05-05T15:09:19Z")

</div>

I am trying to use Agents.jl package to model my system. I use the following code using Agents using LightGraphs using Distributions mutable struct MyAgent{T\<:Integer,Y\<:AbstractFloat} \<: AbstractAgent id::T ; …

---

## [Dynamically Create and Destroy Modules (to avoid memory leaks in program synthesis)](https://discourse.julialang.org/t/dynamically-create-and-destroy-modules-to-avoid-memory-leaks-in-program-synthesis/39729)

<div class="topic-metadata">

**Author:** [@zennatavares](https://discourse.julialang.org/u/zennatavares)\
**Replies:** 6\
**Last updated:** [May 5, 2022, 2:52pm UTC](https://discourse.julialang.org/t/dynamically-create-and-destroy-modules-to-avoid-memory-leaks-in-program-synthesis/39729 "2022-05-05T14:52:17Z")

</div>

I’m trying to do some program synthesis in Julia. This means generating a lot of programs (Julia Exprs) evaluating them, and scoring them. These Expressions can create new types, structs, functions, etc. The most reas…

---

## [Error when adding vectors](https://discourse.julialang.org/t/error-when-adding-vectors/80541)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 8\
**Last updated:** [May 5, 2022, 2:21pm UTC](https://discourse.julialang.org/t/error-when-adding-vectors/80541 "2022-05-05T14:21:25Z")

</div>

Hello, I am new here and I would like to know why I can’t add these vectors: mutable struct Mystruct a::Int b::SVector{3, Int64} c::Int end v1=\[Mystruct(1,(-2,-2,2),1)\] v2=\[Mystruct(2,(2,2,2),1)\] v3 = v1 …

---

## [LoadError: ArgumentError: Converting an instance of ReverseDiff.TrackedReal{Float64, Float64, Nothing} to Float64 is not defined. Please use \`ReverseDiff.value\` instead](https://discourse.julialang.org/t/loaderror-argumenterror-converting-an-instance-of-reversediff-trackedreal-float64-float64-nothing-to-float64-is-not-defined-please-use-reversediff-value-instead/80544)

<div class="topic-metadata">

**Author:** [@beryl](https://discourse.julialang.org/u/beryl)\
**Replies:** 0\
**Last updated:** [May 5, 2022, 2:02pm UTC](https://discourse.julialang.org/t/loaderror-argumenterror-converting-an-instance-of-reversediff-trackedreal-float64-float64-nothing-to-float64-is-not-defined-please-use-reversediff-value-instead/80544 "2022-05-05T14:02:16Z")

</div>

Hi, I’d like to take a gradient of a simple function using ReverseDiff, however I stumbled upon an error which I haven’t been able figure out, the code which throws the error is using ReverseDiff function f\_V(R, a, b,…

---

## [Color Range: pick color in range base on values in a vector](https://discourse.julialang.org/t/color-range-pick-color-in-range-base-on-values-in-a-vector/80533)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 5\
**Last updated:** [May 5, 2022, 1:57pm UTC](https://discourse.julialang.org/t/color-range-pick-color-in-range-base-on-values-in-a-vector/80533 "2022-05-05T13:57:40Z")

</div>

I want to show the wealth of 6 people by showing a brighter yellow color if the person is closer to the wealthiest in the group, and deeper red if the person is closer to the poorest in the group. I know the following w…

---

## [\[ANN\] Game2048Core.jl](https://discourse.julialang.org/t/ann-game2048core-jl/77472)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 11:13pm UTC](https://discourse.julialang.org/t/ann-game2048core-jl/77472 "2022-03-31T23:13:19Z")

</div>

I am pleased to announce the arrival of, Game2048Core.jl, a high(ish) performance 2048 game in pure Julia. Yes, that game from many years ago. There are potentially a lot more performance enhancements that can be made b…

---

## [What is happening? Why these simple codes slow down Julia 30 times?](https://discourse.julialang.org/t/what-is-happening-why-these-simple-codes-slow-down-julia-30-times/80529)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 1:41pm UTC](https://discourse.julialang.org/t/what-is-happening-why-these-simple-codes-slow-down-julia-30-times/80529 "2022-05-05T13:41:34Z")

</div>

mm(i::Int)=(a::Int,b::Int)-\>a\*b #test1 @time begin gg=mm(10) for i=1:1000\_0000 gg(10,10) end end # 0.091843 seconds #test2 @time begin for i=1:1000\_0000 mm(10)(10,10) end end # 0.…

---

## [Symmetrically permute a matrix](https://discourse.julialang.org/t/symmetrically-permute-a-matrix/80537)

<div class="topic-metadata">

**Author:** [@psanan](https://discourse.julialang.org/u/psanan)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 11:39am UTC](https://discourse.julialang.org/t/symmetrically-permute-a-matrix/80537 "2022-05-05T11:39:38Z")

</div>

I’d like to symmetrically permute a matrix. For example, I want to transform \\left\[ \\begin{array}{ccc} 1 & 2 & 3 \\\\ 4 & 5 & 6 \\\\ 7 & 8 & 9\\end{array}\\right\] by rearranging the rows and columns according to the permuat…

---

## [Capturing the output of \`@time\` as a String](https://discourse.julialang.org/t/capturing-the-output-of-time-as-a-string/80524)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 11:26am UTC](https://discourse.julialang.org/t/capturing-the-output-of-time-as-a-string/80524 "2022-05-05T11:26:29Z")

</div>

I would like to print the output of a @time in a production environment. To avoid cluttering up the logs, I try to keep a bit of discipline with the logging so everything should use a log level. Now my question is, how c…

---

## [Renewable generation constraint](https://discourse.julialang.org/t/renewable-generation-constraint/80526)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 11:20am UTC](https://discourse.julialang.org/t/renewable-generation-constraint/80526 "2022-05-05T11:20:20Z")

</div>

Hello all, I have posted an earlier question on coding renewable generation constraints with availability factors. I am still stuck with the problem. I have reverted back to bare basics, but i still receive keyErrors. A…

---

## [Comparison of IntervalArithmetic.jl and Measurements.jl](https://discourse.julialang.org/t/comparison-of-intervalarithmetic-jl-and-measurements-jl/80474)

<div class="topic-metadata">

**Author:** [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Replies:** 11\
**Last updated:** [May 5, 2022, 9:53am UTC](https://discourse.julialang.org/t/comparison-of-intervalarithmetic-jl-and-measurements-jl/80474 "2022-05-05T09:53:29Z")

</div>

I was just discussing with colleagues some of the classical theoretical oddities of interval arithmetic, in particular the fact that, for an interval X = \[a,b\], we have X-X \\neq 0 (we have instead only the inclusion 0 \\i…

---

## [CUDA.jl bimodal SpMM performance](https://discourse.julialang.org/t/cuda-jl-bimodal-spmm-performance/80499)

<div class="topic-metadata">

**Author:** [@miles.lubin](https://discourse.julialang.org/u/miles.lubin)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 9:50am UTC](https://discourse.julialang.org/t/cuda-jl-bimodal-spmm-performance/80499 "2022-05-05T09:50:08Z")

</div>

New to CUDA.jl here, and I’m running a few benchmarks to understand CUDA’s performance on sparse matrices. I observed that SpMM (sparse matrix times dense matrix) seems to have a bimodal histogram when benchmarked: usin…

---

## [Custom simplifying of ModelingToolkit ODESystem equations](https://discourse.julialang.org/t/custom-simplifying-of-modelingtoolkit-odesystem-equations/80531)

<div class="topic-metadata">

**Author:** [@jedforrest](https://discourse.julialang.org/u/jedforrest)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 9:40am UTC](https://discourse.julialang.org/t/custom-simplifying-of-modelingtoolkit-odesystem-equations/80531 "2022-05-05T09:40:16Z")

</div>

When converting my ODESystem into an ODEProblem to be solved, I find that the full equations are not simplified enough, leading to numerical errors. In particular, one part of the equations looks like this: Differential…

---

## [Capturing functions defined in global scope](https://discourse.julialang.org/t/capturing-functions-defined-in-global-scope/80400)

<div class="topic-metadata">

**Author:** [@jbu](https://discourse.julialang.org/u/jbu)\
**Replies:** 9\
**Last updated:** [May 5, 2022, 9:24am UTC](https://discourse.julialang.org/t/capturing-functions-defined-in-global-scope/80400 "2022-05-05T09:24:17Z")

</div>

The Performance Tips discuss the drawbacks of capturing global variables inside of functions. Are there any performance penalties for capturing functions inside of other functions? For example, function predict(x) #…

---

## [Is there no declarative / functional solution for "between" problems?](https://discourse.julialang.org/t/is-there-no-declarative-functional-solution-for-between-problems/80528)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 9:11am UTC](https://discourse.julialang.org/t/is-there-no-declarative-functional-solution-for-between-problems/80528 "2022-05-05T09:11:56Z")

</div>

I was wondering what a more declarative approach is to the simple problem space of doing something between the elements of some iterator. I feel like that is a task that constantly comes up but can’t be solved with just m…

---

## [Setting the size of circle in network graph](https://discourse.julialang.org/t/setting-the-size-of-circle-in-network-graph/80480)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 8:03am UTC](https://discourse.julialang.org/t/setting-the-size-of-circle-in-network-graph/80480 "2022-05-05T08:03:49Z")

</div>

I have the following code, which produces a circular network. However, I would like to make the circle larger to make the network less compressed. How is that done in the package “GraphRecipes”: graphplot(m, …

---

## [Which function is the inverse of the ellipsis?](https://discourse.julialang.org/t/which-function-is-the-inverse-of-the-ellipsis/80459)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 3\
**Last updated:** [May 5, 2022, 7:26am UTC](https://discourse.julialang.org/t/which-function-is-the-inverse-of-the-ellipsis/80459 "2022-05-05T07:26:33Z")

</div>

The ellipsis transforms a vector into a list of function arguments: (+)(\[1,2\]...) # 3 Is there a function foo that performs the inverse operation: foo3(x, y, z) = \[x, y, z\] # for the special case of three arguments f…

---

## [Julia Win10 - REPL and OhMyREPL - neat trick for nice copy/past - works in VsCode, WT, etc](https://discourse.julialang.org/t/julia-win10-repl-and-ohmyrepl-neat-trick-for-nice-copy-past-works-in-vscode-wt-etc/67662)

<div class="topic-metadata">

**Author:** [@ylvain](https://discourse.julialang.org/u/ylvain)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 6:45am UTC](https://discourse.julialang.org/t/julia-win10-repl-and-ohmyrepl-neat-trick-for-nice-copy-past-works-in-vscode-wt-etc/67662 "2022-05-05T06:45:21Z")

</div>

First all credit goes to @ MarcMush for the idea in this thread (Apr 25). I only quasi-repost because there’s an added step for making it works with VsCode and because I stumbled on it after having be bogged down by the…

---

## [\[ANN\] SPDX.jl: Reading and writing SPDX files](https://discourse.julialang.org/t/ann-spdx-jl-reading-and-writing-spdx-files/80523)

<div class="topic-metadata">

**Author:** [@SamuraiAku](https://discourse.julialang.org/u/SamuraiAku)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 5:44am UTC](https://discourse.julialang.org/t/ann-spdx-jl-reading-and-writing-spdx-files/80523 "2022-05-05T05:44:11Z")

</div>

SPDX.jl A package for reading and writing SPDX files in Julia. Software Package Data eXchange (SPDX) is an open standard for communicating software bill of material information, including provenance, license, security, …

---

## [Help with range plot with VegaLite.jl](https://discourse.julialang.org/t/help-with-range-plot-with-vegalite-jl/80462)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [May 4, 2022, 8:20am UTC](https://discourse.julialang.org/t/help-with-range-plot-with-vegalite-jl/80462 "2022-05-04T08:20:24Z")

</div>

I’m having trouble creating a range plot with VegaLite.jl (similar to this How to create a range plot - Datawrapper Academy, but with the ranges orientated vertically). I just need a simple line connecting ul to ll for e…

---

## [Postdoctoral Appointee in Scientific Machine Learning (Sandial National Labs)](https://discourse.julialang.org/t/postdoctoral-appointee-in-scientific-machine-learning-sandial-national-labs/80520)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [May 5, 2022, 3:29am UTC](https://discourse.julialang.org/t/postdoctoral-appointee-in-scientific-machine-learning-sandial-national-labs/80520 "2022-05-05T03:29:51Z")

</div>

Posting for a friend. WHAT YOUR JOB WILL BE LIKE: We are seeking a postdoctoral candidate interested in developing and applying novel machine learning methodologies for the purpose of scientific discovery of emergent e…

---

## [Does anyone run Singularity images across many Nodes?](https://discourse.julialang.org/t/does-anyone-run-singularity-images-across-many-nodes/60470)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 2\
**Last updated:** [May 4, 2022, 10:07pm UTC](https://discourse.julialang.org/t/does-anyone-run-singularity-images-across-many-nodes/60470 "2022-05-04T22:07:04Z")

</div>

As I point out in here, I wish to connect ClusterManagers.jl using Singularity images, but as @kescobo says, the problem seems to be Singularity or my Cluster configuration. Does anyone already have experience running a…

---

## [\`collect\` gives different result than \`for\` loop](https://discourse.julialang.org/t/collect-gives-different-result-than-for-loop/80509)

<div class="topic-metadata">

**Author:** [@MillironX](https://discourse.julialang.org/u/MillironX)\
**Replies:** 3\
**Last updated:** [May 4, 2022, 9:29pm UTC](https://discourse.julialang.org/t/collect-gives-different-result-than-for-loop/80509 "2022-05-04T21:29:29Z")

</div>

I’ve somehow created an iterator function where calling collect on the Alignment struct returns a 5-element vector, while iterating produces only three elements. Context: I’m working on a patch for BioAlignments (https:…

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

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