# Latest

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

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

**Page:** 378

---

## [Using Integrator in EventQueueABM model](https://discourse.julialang.org/t/using-integrator-in-eventqueueabm-model/116249)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 9:14am UTC](https://discourse.julialang.org/t/using-integrator-in-eventqueueabm-model/116249 "2024-06-26T09:14:30Z")

</div>

Hello everyone, I want to include some differential equation based model to my agents model. I want to integrate both of them. so at some points in simulation time, agent model get feed some info from differential model…

---

## [Porting code from MatLab - performance tips](https://discourse.julialang.org/t/porting-code-from-matlab-performance-tips/116243)

<div class="topic-metadata">

**Author:** [@Qmot](https://discourse.julialang.org/u/Qmot)\
**Replies:** 18\
**Last updated:** [June 26, 2024, 9:12am UTC](https://discourse.julialang.org/t/porting-code-from-matlab-performance-tips/116243 "2024-06-26T09:12:43Z")

</div>

Hello, so I am an undergrad porting code from MatLab into Julia with the objective of improving performance, but so far performance has been disappointing: Julia: 58 seconds/instance, MatLab: 18 seconds/instance (thousan…

---

## [Vectorization of multivariate normal PDF](https://discourse.julialang.org/t/vectorization-of-multivariate-normal-pdf/116248)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [June 26, 2024, 7:57am UTC](https://discourse.julialang.org/t/vectorization-of-multivariate-normal-pdf/116248 "2024-06-26T07:57:54Z")

</div>

I would like to compute the PDF of a multivariate normal distribution of given parameters for a number of input points. (eg MvNorm for several vectors at once) This is for a particle filter, many such computations going …

---

## [Inconsistency in Allocs reported by track-allocs vs BenchmarkTools](https://discourse.julialang.org/t/inconsistency-in-allocs-reported-by-track-allocs-vs-benchmarktools/116166)

<div class="topic-metadata">

**Author:** [@Spuriosity1](https://discourse.julialang.org/u/Spuriosity1)\
**Replies:** 5\
**Last updated:** [June 26, 2024, 5:19am UTC](https://discourse.julialang.org/t/inconsistency-in-allocs-reported-by-track-allocs-vs-benchmarktools/116166 "2024-06-26T05:19:49Z")

</div>

I have tried to write a low-overhead function that adds a number of Lorentzian peaks to a grid of intensities. When run under @benchmark, it reports “0 allocations”, but when run within my program, I get a large number o…

---

## [Writing AD rules for Rotations.jl](https://discourse.julialang.org/t/writing-ad-rules-for-rotations-jl/116222)

<div class="topic-metadata">

**Author:** [@sonofwatt](https://discourse.julialang.org/u/sonofwatt)\
**Replies:** 1\
**Last updated:** [June 26, 2024, 5:14am UTC](https://discourse.julialang.org/t/writing-ad-rules-for-rotations-jl/116222 "2024-06-26T05:14:46Z")

</div>

I’m trying to create a coordinate transformation, via LinearAlgebra and Rotations.jl (Home · Rotations.jl), and can be optimized via Zygote.jl, or the like. I’m running into a problem because some of the functions in Ro…

---

## [How is the parameter p\_steps evaluated in Morris method?](https://discourse.julialang.org/t/how-is-the-parameter-p-steps-evaluated-in-morris-method/116124)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 3\
**Last updated:** [June 26, 2024, 5:03am UTC](https://discourse.julialang.org/t/how-is-the-parameter-p-steps-evaluated-in-morris-method/116124 "2024-06-26T05:03:24Z")

</div>

It is not clear from the tutorial how the p\_steps parameter is evaluated in Morris method. Usually, the parameters that are defined are the total number of trajectories and the number of trajectories with the highest spr…

---

## [Porting code from MatLab - performance improvement tricks](https://discourse.julialang.org/t/porting-code-from-matlab-performance-improvement-tricks/116241)

<div class="topic-metadata">

**Author:** [@Qmot](https://discourse.julialang.org/u/Qmot)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 3:28am UTC](https://discourse.julialang.org/t/porting-code-from-matlab-performance-improvement-tricks/116241 "2024-06-26T03:28:17Z")

</div>

(topic deleted by author)

---

## [\`ENV\["JULIA\_DEBUG"\] == "MyModule" && expensive\_debug\_method()\` good practice?](https://discourse.julialang.org/t/env-julia-debug-mymodule-expensive-debug-method-good-practice/116197)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 7\
**Last updated:** [June 25, 2024, 9:49pm UTC](https://discourse.julialang.org/t/env-julia-debug-mymodule-expensive-debug-method-good-practice/116197 "2024-06-25T21:49:09Z")

</div>

Will Julia compile away lines like ENV\["JULIA\_DEBUG"\] == "MyModule" && expensive\_debug\_method() when the environment variable is not set, or does the dictionary lookup happen at runtime? If the latter, is there a good …

---

## [2D interpolation of large data to calculate depth profiles](https://discourse.julialang.org/t/2d-interpolation-of-large-data-to-calculate-depth-profiles/116190)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 32\
**Last updated:** [June 25, 2024, 10:14pm UTC](https://discourse.julialang.org/t/2d-interpolation-of-large-data-to-calculate-depth-profiles/116190 "2024-06-25T22:14:11Z")

</div>

I am working with a dataset which is essentially a depth sample map: x and y coordinates on an irregular grid and the corresponding depth values. I need to calculate tons of depth profiles for different lines defined by …

---

## [Injecting known primal solution (JuMP + Gurobi)](https://discourse.julialang.org/t/injecting-known-primal-solution-jump-gurobi/116213)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 6:28pm UTC](https://discourse.julialang.org/t/injecting-known-primal-solution-jump-gurobi/116213 "2024-06-25T18:28:36Z")

</div>

Hi, Is there a way to provide a solver (specifically Gurobi) with a feasible primal solution to help it prune the tree ? The answer is probably somewhere in JuMP’s documentation but the keywords I used to search lead t…

---

## [Two y-axis - Issue with limits](https://discourse.julialang.org/t/two-y-axis-issue-with-limits/116205)

<div class="topic-metadata">

**Author:** [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 8:34pm UTC](https://discourse.julialang.org/t/two-y-axis-issue-with-limits/116205 "2024-06-25T20:34:30Z")

</div>

Hi :slight\_smile: I am using GLMakie and I would like to add a second yaxis. I have some troubles for defining the limits of both y-axis. The axis seem dependent (when I fix the limit of ax2, it changes the vizualisatio…

---

## [Mojo debugging: extending MLIR and LLDB](https://discourse.julialang.org/t/mojo-debugging-extending-mlir-and-lldb/116218)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 3\
**Last updated:** [June 25, 2024, 8:06pm UTC](https://discourse.julialang.org/t/mojo-debugging-extending-mlir-and-lldb/116218 "2024-06-25T20:06:46Z")

</div>

I wonder if some of these ideas would be useful for Julia.

---

## [How to display moving objects in Makie.jl](https://discourse.julialang.org/t/how-to-display-moving-objects-in-makie-jl/54282)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 14\
**Last updated:** [June 25, 2024, 7:36pm UTC](https://discourse.julialang.org/t/how-to-display-moving-objects-in-makie-jl/54282 "2024-06-25T19:36:43Z")

</div>

Hello, I am now able to display a 3D scene in the way I want it. But how can I display a moving system? My main loop looks like this: for i = 0:4 # calculate a vector of 3D coordinates X = range(0,…

---

## [Specifying analytical Jacobian in NonlinearProblem à la Optim.only\_fg!](https://discourse.julialang.org/t/specifying-analytical-jacobian-in-nonlinearproblem-a-la-optim-only-fg/115991)

<div class="topic-metadata">

**Author:** [@dieg0](https://discourse.julialang.org/u/dieg0)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 6:55pm UTC](https://discourse.julialang.org/t/specifying-analytical-jacobian-in-nonlinearproblem-a-la-optim-only-fg/115991 "2024-06-25T18:55:15Z")

</div>

When minimizing a costly function f(x) using Optim.jl and providing the gradient \\nabla f(x), one can use Optim.only\_fg! to compute the gradient and the function itself within the same function to avoid repeating computa…

---

## [Matrix power not memory optimal](https://discourse.julialang.org/t/matrix-power-not-memory-optimal/116201)

<div class="topic-metadata">

**Author:** [@jarl](https://discourse.julialang.org/u/jarl)\
**Replies:** 11\
**Last updated:** [June 25, 2024, 6:12pm UTC](https://discourse.julialang.org/t/matrix-power-not-memory-optimal/116201 "2024-06-25T18:12:32Z")

</div>

It seems that computing A^p with integer p for a dense matrix A with ^(A,p) is not memory allocation optimal: julia\> using BenchmarkTools, LinearAlgebra julia\> A=randn(256,256); A=A/norm(A); julia\> @btime A8=A^8; 813.…

---

## [How to skip type parameters in function signature](https://discourse.julialang.org/t/how-to-skip-type-parameters-in-function-signature/106300)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 8\
**Last updated:** [June 25, 2024, 1:55pm UTC](https://discourse.julialang.org/t/how-to-skip-type-parameters-in-function-signature/106300 "2024-06-25T13:55:41Z")

</div>

I have a type such as: struct Foo{A,B} a::A b::B end And a method for foo where I want to use the type parameter A. Then I can write: mymethod(x::Foo{A,B}) where {A,B} = ... But since I don’t need B, I could …

---

## [Capturing the types of the values, from the type of a Named Tuple](https://discourse.julialang.org/t/capturing-the-types-of-the-values-from-the-type-of-a-named-tuple/116199)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 6\
**Last updated:** [June 25, 2024, 1:49pm UTC](https://discourse.julialang.org/t/capturing-the-types-of-the-values-from-the-type-of-a-named-tuple/116199 "2024-06-25T13:49:35Z")

</div>

Hi, Given the type of a NamedTuple, I want to make operations on the types of the values (or fields) of the type, ultimately to compute a new type and allocate memory. Here is a little code function see(::Type{NT}) wh…

---

## [RCall: internet routines cannot be loaded -\> can't install R packages](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 1:29pm UTC](https://discourse.julialang.org/t/rcall-internet-routines-cannot-be-loaded-cant-install-r-packages/116202 "2024-06-25T13:29:27Z")

</div>

I have installer RCall making it point to my default R installation on Ubunu. If I open a R terminal and I install a R package I have no issues, but if I use RCall in Julia like: R\> install.packages('Rcpp', repos='http…

---

## [MotionPlanningOptimization.jl has been released](https://discourse.julialang.org/t/motionplanningoptimization-jl-has-been-released/116198)

<div class="topic-metadata">

**Author:** [@alexander-leong](https://discourse.julialang.org/u/alexander-leong)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 12:46pm UTC](https://discourse.julialang.org/t/motionplanningoptimization-jl-has-been-released/116198 "2024-06-25T12:46:22Z")

</div>

This package uses conic and mixed integer optimization methods to solve for a smooth trajectory given a start position, end position and set of safe regions defined by box constraints. It is hoped that this package compl…

---

## [Macros and piping](https://discourse.julialang.org/t/macros-and-piping/116130)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 14\
**Last updated:** [June 25, 2024, 11:58am UTC](https://discourse.julialang.org/t/macros-and-piping/116130 "2024-06-25T11:58:57Z")

</div>

How come these two examples don’t work. using Pipe, Chain macro test(x) x end @pipe 1 |\> @test(\_) #works @pipe 1 |\> @test \_ #works @pipe 1 |\> @test #doesn't work @chain 1 begin @test(\_) …

---

## [Is Sys.free\_memory() "reliable"?](https://discourse.julialang.org/t/is-sys-free-memory-reliable/116159)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [June 25, 2024, 11:58am UTC](https://discourse.julialang.org/t/is-sys-free-memory-reliable/116159 "2024-06-25T11:58:14Z")

</div>

I’m trying to add a custom error message for a package if the user inputs data such that the memory of the system will explode. For such, I use: if required\_memory \> 0.8 \* Sys.free\_memory() throw(.... appropriate er…

---

## [RCall cannot install R packages](https://discourse.julialang.org/t/rcall-cannot-install-r-packages/51624)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 4\
**Last updated:** [June 25, 2024, 11:57am UTC](https://discourse.julialang.org/t/rcall-cannot-install-r-packages/51624 "2024-06-25T11:57:32Z")

</div>

Hi I have an issue with RCall.jl Firstly, thank you for this package, I have found RCall really useful. Unfortunately, I cannot install R packages when I am in ‘R’ mode. I get the error: Warning in install.packages("…

---

## [Putting Date objects on xticks using Plots.jl](https://discourse.julialang.org/t/putting-date-objects-on-xticks-using-plots-jl/116171)

<div class="topic-metadata">

**Author:** [@aziz\_ben](https://discourse.julialang.org/u/aziz_ben)\
**Replies:** 2\
**Last updated:** [June 25, 2024, 11:42am UTC](https://discourse.julialang.org/t/putting-date-objects-on-xticks-using-plots-jl/116171 "2024-06-25T11:42:00Z")

</div>

Hi, I tried to make a plot using Plots with dates under the ticks of the x axis but I ran into a problem. The dates are displayed in the plot in this format: yyyy/mm/ddT00:00:00. Does anyone know how to get rid of this?…

---

## [Incremental Technical Analysis indicators](https://discourse.julialang.org/t/incremental-technical-analysis-indicators/107844)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 23\
**Last updated:** [June 25, 2024, 11:00am UTC](https://discourse.julialang.org/t/incremental-technical-analysis-indicators/107844 "2024-06-25T11:00:44Z")

</div>

Hi, Unlike existing libraries for technical analysis which typically have to work on the whole input vector in order to calculate new values of indicators I’m looking for a Julia library which implements technical analy…

---

## [Is there a direct way to get the string of the output of \`show\`?](https://discourse.julialang.org/t/is-there-a-direct-way-to-get-the-string-of-the-output-of-show/116188)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 8\
**Last updated:** [June 25, 2024, 9:23am UTC](https://discourse.julialang.org/t/is-there-a-direct-way-to-get-the-string-of-the-output-of-show/116188 "2024-06-25T09:23:55Z")

</div>

I need to write the following script: # typeof # 値の型を得る function print\_typeof(x) print("表現「") show(x) println("」の値の型は「", typeof(x), "」である。") end print\_typeof(true) print\_typeof(1) print\_typeof(1.0) print\_t…

---

## [StatsBase crosscor standard deviation does not have lags applied](https://discourse.julialang.org/t/statsbase-crosscor-standard-deviation-does-not-have-lags-applied/116182)

<div class="topic-metadata">

**Author:** [@BG-marine](https://discourse.julialang.org/u/BG-marine)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 5:47am UTC](https://discourse.julialang.org/t/statsbase-crosscor-standard-deviation-does-not-have-lags-applied/116182 "2024-06-25T05:47:57Z")

</div>

In StatsBase.crosscor!() why is the standard deviation for normalisation calculated before the lag is applied to the input vectors, rather than after? This doesn’t appear to follow a standard correlation formula. Cross…

---

## [SpaceVim and Julia?](https://discourse.julialang.org/t/spacevim-and-julia/108933)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 2:41am UTC](https://discourse.julialang.org/t/spacevim-and-julia/108933 "2024-06-25T02:41:04Z")

</div>

Does anyone have a setup they’re happy with for SpaceVim and Julia? It’s soooo close to just working out of the box (with the lang#julia layer enabled), but the REPL just doesn’t quite do it. E.g., it doesn’t seem to su…

---

## [Accessing Variable Values Dynamically in Julia](https://discourse.julialang.org/t/accessing-variable-values-dynamically-in-julia/116136)

<div class="topic-metadata">

**Author:** [@Jake\_W\_Liu](https://discourse.julialang.org/u/Jake_W_Liu)\
**Replies:** 13\
**Last updated:** [June 25, 2024, 1:38am UTC](https://discourse.julialang.org/t/accessing-variable-values-dynamically-in-julia/116136 "2024-06-25T01:38:45Z")

</div>

Hi! I’m not sure how to choose my title :sweat\_smile: For example, if I specify my output as a string value "a", which means I want to get the value of variable a inside the main function, then after passing this string…

---

## [Optimal way to broadcast over a container of funcs](https://discourse.julialang.org/t/optimal-way-to-broadcast-over-a-container-of-funcs/116156)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 11\
**Last updated:** [June 25, 2024, 1:01am UTC](https://discourse.julialang.org/t/optimal-way-to-broadcast-over-a-container-of-funcs/116156 "2024-06-25T01:01:26Z")

</div>

Hi there, I have a vector (more generally: a list) of functions the map a vector to a vector and also a matrix where each row is to be populated by each of the functions. See below an example: function test() f\_vec…

---

## [Slow cubature](https://discourse.julialang.org/t/slow-cubature/116120)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 21\
**Last updated:** [June 25, 2024, 12:46am UTC](https://discourse.julialang.org/t/slow-cubature/116120 "2024-06-25T00:46:35Z")

</div>

I’m trying the perform a numerical integration over 4-dimensions. Here is a self-contained example: import HCubature using StaticArrays: SMatrix using StaticArrays: SVector using LinearAlgebra: Symmetric using LinearAlg…

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

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