# Latest

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

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

**Page:** 263

---

## [How to achieve collision-free "hash codes" in one single Julia session?](https://discourse.julialang.org/t/how-to-achieve-collision-free-hash-codes-in-one-single-julia-session/123428)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 11:08pm UTC](https://discourse.julialang.org/t/how-to-achieve-collision-free-hash-codes-in-one-single-julia-session/123428 "2024-12-03T23:08:19Z")

</div>

I have many mixed composite-type instances that I need to compare their equality (by ===) when I don’t necessarily (want to) have access to them directly. I do not want to directly store a reference (like Ref or a struc…

---

## [Symbolics islinear issue](https://discourse.julialang.org/t/symbolics-islinear-issue/123423)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 10:30pm UTC](https://discourse.julialang.org/t/symbolics-islinear-issue/123423 "2024-12-03T22:30:10Z")

</div>

Why the equation below is triggering islinear assertion if the equation is linear? julia\> f = 2x -4 == 0 (-4 + 2x) == 0 julia\> symbolic\_linear\_solve(f, x) ERROR: AssertionError: islinear Stacktrace: \[1\] symbolic\_linea…

---

## [Julia test directory \`test\` or \`tests\`?](https://discourse.julialang.org/t/julia-test-directory-test-or-tests/123426)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 9:26pm UTC](https://discourse.julialang.org/t/julia-test-directory-test-or-tests/123426 "2024-12-03T21:26:52Z")

</div>

This documentation page suggests the correct name for unit test directory is test 5. Creating Packages · Pkg.jl On the other hand, this documentation page suggests the correct name is tests Unit Testing · The Julia …

---

## [Can you run (execute) a Julia package in a similar way in which one can execute a Python package or module?](https://discourse.julialang.org/t/can-you-run-execute-a-julia-package-in-a-similar-way-in-which-one-can-execute-a-python-package-or-module/123397)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 9\
**Last updated:** [December 3, 2024, 9:06pm UTC](https://discourse.julialang.org/t/can-you-run-execute-a-julia-package-in-a-similar-way-in-which-one-can-execute-a-python-package-or-module/123397 "2024-12-03T21:06:22Z")

</div>

Python has the ability to run a package or module using the -m flag. Does Julia have a similar mechanism? The way it works in python is as follows. You run python3 -m my\_package. my\_package is a package (a directory)…

---

## [Experiments with LoopVectorization and convolutions](https://discourse.julialang.org/t/experiments-with-loopvectorization-and-convolutions/123188)

<div class="topic-metadata">

**Author:** [@Marco\_Lombardi](https://discourse.julialang.org/u/Marco_Lombardi)\
**Replies:** 24\
**Last updated:** [December 3, 2024, 8:35pm UTC](https://discourse.julialang.org/t/experiments-with-loopvectorization-and-convolutions/123188 "2024-12-03T20:35:27Z")

</div>

I have been doing some experiments with the great LoopVectorization for convolution, and I must admit that in spite of my efforts to manually refactor my code, I have been unable to even approach the speed that this pack…

---

## [CairoMakie No Copy Button VSCode](https://discourse.julialang.org/t/cairomakie-no-copy-button-vscode/123391)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 5\
**Last updated:** [December 3, 2024, 7:24pm UTC](https://discourse.julialang.org/t/cairomakie-no-copy-button-vscode/123391 "2024-12-03T19:24:30Z")

</div>

Not new to Julia, but new to CairoMakie. Trying to switch my plots from PythonPlots. My old PythonPlots workflow generated an image in VSCode that had a little copy symbol on it, that would copy it to the clipboard. With…

---

## [Complex SDEs + Sparse operations + real Wiener noise](https://discourse.julialang.org/t/complex-sdes-sparse-operations-real-wiener-noise/123396)

<div class="topic-metadata">

**Author:** [@Aaron\_Villanueva](https://discourse.julialang.org/u/Aaron_Villanueva)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 6:30pm UTC](https://discourse.julialang.org/t/complex-sdes-sparse-operations-real-wiener-noise/123396 "2024-12-03T18:30:54Z")

</div>

I am trying to solve ComplexF64 Stochastic Differential Equations with m-dim real Wiener noise. The drift and diffusion functions must handle sparse operations to support large systems. I run into some troubles in maki…

---

## [Changing mass matrix in DAE with callbacks?](https://discourse.julialang.org/t/changing-mass-matrix-in-dae-with-callbacks/123403)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 6:29pm UTC](https://discourse.julialang.org/t/changing-mass-matrix-in-dae-with-callbacks/123403 "2024-12-03T18:29:48Z")

</div>

Is there an elegant and efficient way to modify the mass matrix of a DAE upon an event triggered by a ContinuousCallback? The problem I’m solving is a lumped model for flow in a system. A key parameter is the direction …

---

## [Wrapping kw-based Parameters.jl constructor, for deprecation](https://discourse.julialang.org/t/wrapping-kw-based-parameters-jl-constructor-for-deprecation/122909)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 6:21pm UTC](https://discourse.julialang.org/t/wrapping-kw-based-parameters-jl-constructor-for-deprecation/122909 "2024-12-03T18:21:14Z")

</div>

I have a config object like this: using Parameters @with\_kw mutable struct Config "Param 1" param1::Float64 # ... several other items ... "Whether to iterate randomly." use\_random::Bool = false en…

---

## [Error in trying to use Optimization.jl for LSTM training based on Lux.jl](https://discourse.julialang.org/t/error-in-trying-to-use-optimization-jl-for-lstm-training-based-on-lux-jl/123335)

<div class="topic-metadata">

**Author:** [@chooron](https://discourse.julialang.org/u/chooron)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 5:56pm UTC](https://discourse.julialang.org/t/error-in-trying-to-use-optimization-jl-for-lstm-training-based-on-lux-jl/123335 "2024-12-03T17:56:29Z")

</div>

Hello, I want to try using Optimization.jl to perform model optimization based on Lux.jl. Here’s my code. using Lux using Zygote using StableRNGs using ComponentArrays using Optimization using OptimizationOptimisers fu…

---

## [Time period conversion to seconds, for plotting](https://discourse.julialang.org/t/time-period-conversion-to-seconds-for-plotting/123422)

<div class="topic-metadata">

**Author:** [@merlin](https://discourse.julialang.org/u/merlin)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 5:07pm UTC](https://discourse.julialang.org/t/time-period-conversion-to-seconds-for-plotting/123422 "2024-12-03T17:07:07Z")

</div>

Meganecroposting here because of this problem I ran into while trying to format ticks on a logarithmic x-axis that represents time intervals. using Dates convert(Second, Week(100)) 60480000 seconds convert(Second, Mon…

---

## [Convert time interval to seconds?](https://discourse.julialang.org/t/convert-time-interval-to-seconds/3806)

<div class="topic-metadata">

**Author:** [@ndbecker](https://discourse.julialang.org/u/ndbecker)\
**Replies:** 3\
**Last updated:** [July 9, 2019, 7:42am UTC](https://discourse.julialang.org/t/convert-time-interval-to-seconds/3806 "2019-07-09T07:42:19Z")

</div>

T0 = now() T = now() - T0 typeof(T) Base.Dates.Millisecond If I want to convert to seconds, I can do convert(Float64, (now() - T0).value)/1000 Well, that’s ugly, and depends on knowing that the time period happens to …

---

## [Why string interning when strings are immutable?](https://discourse.julialang.org/t/why-string-interning-when-strings-are-immutable/123417)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 5:10pm UTC](https://discourse.julialang.org/t/why-string-interning-when-strings-are-immutable/123417 "2024-12-03T17:10:16Z")

</div>

Just read something which caught my attention when reading the metaprogramming documentation: Metaprogramming · The Julia Language Which states that one of the purposes of the : is to create an interned string. Appar…

---

## [We love sorting -- latest news in sorting](https://discourse.julialang.org/t/we-love-sorting-latest-news-in-sorting/100790)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 0\
**Last updated:** [June 24, 2023, 6:44pm UTC](https://discourse.julialang.org/t/we-love-sorting-latest-news-in-sorting/100790 "2023-06-24T18:44:37Z")

</div>

This post was inspired by this news article on Intel releasing version 2.0 of their SIMD sort code: Julia has something similar to this: which was presented at the 2019 JuliaCon. ChipSort, however, isn’t limited t…

---

## [Namespacing Symbols in \`ModelingToolkit.calculate\_jacobian\`](https://discourse.julialang.org/t/namespacing-symbols-in-modelingtoolkit-calculate-jacobian/123337)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 4:41pm UTC](https://discourse.julialang.org/t/namespacing-symbols-in-modelingtoolkit-calculate-jacobian/123337 "2024-12-03T16:41:07Z")

</div>

I (think I) need to retrieve the Jacobian of an ODESystem, but with namespaces for each symbol. For example, calling calculate\_jacobian on a system below produces a matrix with symbols without namespaces. using Astrodyn…

---

## [ADAM solver returns parameter values resulting in poor fit for my SDE model](https://discourse.julialang.org/t/adam-solver-returns-parameter-values-resulting-in-poor-fit-for-my-sde-model/122999)

<div class="topic-metadata">

**Author:** [@Luis\_Reig\_Quilis](https://discourse.julialang.org/u/Luis_Reig_Quilis)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 4:28pm UTC](https://discourse.julialang.org/t/adam-solver-returns-parameter-values-resulting-in-poor-fit-for-my-sde-model/122999 "2024-12-03T16:28:05Z")

</div>

Hi! I am a plant breeding master student that recently got into SDEs. I am investigating the seasonal change in biomass of some wheat genotypes from the day they are sowed until the day of harvest. I want to fit a SDE mo…

---

## [Mesh 3D Creation](https://discourse.julialang.org/t/mesh-3d-creation/123414)

<div class="topic-metadata">

**Author:** [@Kamran\_Ali](https://discourse.julialang.org/u/Kamran_Ali)\
**Replies:** 4\
**Last updated:** [December 3, 2024, 4:33pm UTC](https://discourse.julialang.org/t/mesh-3d-creation/123414 "2024-12-03T16:33:41Z")

</div>

I have created a 3D Quad mesh for my model, created vertices and faces for bottom layer, top layer vertices, now i have to make it 3D, so if i apply the loft command, corner faces are created in the diagonal, issue is t…

---

## [Vector of Vectors / Vector of Tuples](https://discourse.julialang.org/t/vector-of-vectors-vector-of-tuples/123368)

<div class="topic-metadata">

**Author:** [@hssn15](https://discourse.julialang.org/u/hssn15)\
**Replies:** 6\
**Last updated:** [December 3, 2024, 4:27pm UTC](https://discourse.julialang.org/t/vector-of-vectors-vector-of-tuples/123368 "2024-12-03T16:27:49Z")

</div>

I am making a simulator and need to store data in pre-allocated storages. But, I am a bit confused and worried about the performance. I have two ways to create storage element. First way: storage = \[ (x1, y…

---

## [Tolerance for numerical-rank computation](https://discourse.julialang.org/t/tolerance-for-numerical-rank-computation/123372)

<div class="topic-metadata">

**Author:** [@ajinkya-k](https://discourse.julialang.org/u/ajinkya-k)\
**Replies:** 9\
**Last updated:** [December 3, 2024, 4:21pm UTC](https://discourse.julialang.org/t/tolerance-for-numerical-rank-computation/123372 "2024-12-03T16:21:46Z")

</div>

Hi all! Sorry to revive this but what is the right tolerance to use when using pivoted cholesky to compute rank? I find that using sqrt(eps(Float64)) usually gives me the same rank as the default rank method for Matrices…

---

## [Changing EPSG values from .shp file](https://discourse.julialang.org/t/changing-epsg-values-from-shp-file/122978)

<div class="topic-metadata">

**Author:** [@ivyc](https://discourse.julialang.org/u/ivyc)\
**Replies:** 7\
**Last updated:** [December 3, 2024, 3:42pm UTC](https://discourse.julialang.org/t/changing-epsg-values-from-shp-file/122978 "2024-12-03T15:42:00Z")

</div>

I am trying to convert my .shp file from an EPSG value of 26917 to a EPSG value of 4326. These seems to be an issue with my .shp file not having the EPSG built in. I have tried changing the EPSG using the code below but …

---

## [Issue while using PackageCompiler -](https://discourse.julialang.org/t/issue-while-using-packagecompiler/123384)

<div class="topic-metadata">

**Author:** [@Sholai](https://discourse.julialang.org/u/Sholai)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 2:08pm UTC](https://discourse.julialang.org/t/issue-while-using-packagecompiler/123384 "2024-12-03T14:08:04Z")

</div>

Hi Guys, I am trying to use PackageCompiler to create sys image of certain packages, so that the compile time is saved everytime I enter the project. the creation and usage of .so is successful as long as I am using the…

---

## [Nonlinear differential equation struggling to solve](https://discourse.julialang.org/t/nonlinear-differential-equation-struggling-to-solve/123405)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 1:29pm UTC](https://discourse.julialang.org/t/nonlinear-differential-equation-struggling-to-solve/123405 "2024-12-03T13:29:59Z")

</div>

Hi Guys Please refer to the attached code. The code solves a set of coupled differential equations. The code seems to work well for certain input parameters, however sometimes the system seems to be very stiff and does …

---

## [ANN:CausalInference.jl - Causal Inference in Julia](https://discourse.julialang.org/t/ann-causalinference-jl-causal-inference-in-julia/6154)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 10\
**Last updated:** [December 3, 2024, 12:27pm UTC](https://discourse.julialang.org/t/ann-causalinference-jl-causal-inference-in-julia/6154 "2024-12-03T12:27:46Z")

</div>

CausalInference.jl → https://github.com/mschauer/CausalInference.jl A very vanilla (at the moment) Julia package for causal inference, graphical models and structure learning with the PC algorithm. The package contains …

---

## [Embedded julia catch exception](https://discourse.julialang.org/t/embedded-julia-catch-exception/123287)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 12:10pm UTC](https://discourse.julialang.org/t/embedded-julia-catch-exception/123287 "2024-12-03T12:10:16Z")

</div>

Hi. Im trying to use julia as user function extension. So i embed it into my qt application. But if there is an error in julia code everything will crash. Is it possible to catch julia exceptions from c++ or i could …

---

## [OpenCV function signatures](https://discourse.julialang.org/t/opencv-function-signatures/123145)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 12:10pm UTC](https://discourse.julialang.org/t/opencv-function-signatures/123145 "2024-12-03T12:10:02Z")

</div>

I’m trying to use the camera calibration functions in OpenCV.jl, but I can’t create arguments that would fit some of the functions’ signatures. For example one of OpenCV.calibrateCamera’s method signatures is: OpenCV.c…

---

## [Benchmark is moving target?](https://discourse.julialang.org/t/benchmark-is-moving-target/123376)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 10:06am UTC](https://discourse.julialang.org/t/benchmark-is-moving-target/123376 "2024-12-03T10:06:07Z")

</div>

I am doing Advent of Code again this year (not sure how long I’d stay haha) and tried to optimize a very simple function. Surprisingly, @btime is showing different number of allocations on 2nd run. Also, when I redefined…

---

## [Segmentation fault when using ccall to call a BLAS-like extension function from Intel MKL](https://discourse.julialang.org/t/segmentation-fault-when-using-ccall-to-call-a-blas-like-extension-function-from-intel-mkl/123377)

<div class="topic-metadata">

**Author:** [@NatSpring](https://discourse.julialang.org/u/NatSpring)\
**Replies:** 7\
**Last updated:** [December 3, 2024, 9:27am UTC](https://discourse.julialang.org/t/segmentation-fault-when-using-ccall-to-call-a-blas-like-extension-function-from-intel-mkl/123377 "2024-12-03T09:27:02Z")

</div>

I have written many Julia wrapper-functions that call routines from various parts of the Intel oneAPI library via the library’s .so file with ccall. This typically works without issue for BLAS routines, LAPACK routines a…

---

## [Pluto / PlutoSliderServer on Google Cloud Run](https://discourse.julialang.org/t/pluto-plutosliderserver-on-google-cloud-run/120731)

<div class="topic-metadata">

**Author:** [@JoseKling](https://discourse.julialang.org/u/JoseKling)\
**Replies:** 5\
**Last updated:** [December 3, 2024, 8:57am UTC](https://discourse.julialang.org/t/pluto-plutosliderserver-on-google-cloud-run/120731 "2024-12-03T08:57:23Z")

</div>

Hello all, I am trying to deploy some notebooks to Google Cloud Run. I set up PlutoSliderServer on a Docker container and locally everything works, but I can’t get it to work on Cloud Run. I got the server to start and …

---

## [Learning to write and rendering Julia-style Markdown](https://discourse.julialang.org/t/learning-to-write-and-rendering-julia-style-markdown/123243)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 8\
**Last updated:** [December 3, 2024, 6:54am UTC](https://discourse.julialang.org/t/learning-to-write-and-rendering-julia-style-markdown/123243 "2024-12-03T06:54:42Z")

</div>

Getting around to learning how to write documentation more sophisticated than ASCII docstrings, so I’m practicing Markdown. VS Code already previews/renders Markdown files with LaTeX equation support, so that’s cool. Thi…

---

## [Splitpath/joinpath for non-native paths?](https://discourse.julialang.org/t/splitpath-joinpath-for-non-native-paths/123336)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 9\
**Last updated:** [December 2, 2024, 11:44pm UTC](https://discourse.julialang.org/t/splitpath-joinpath-for-non-native-paths/123336 "2024-12-02T23:44:40Z")

</div>

This problem highlights a problem in Base.Filesystem. The natural way to do this conversion would be to use something along this line: joinpath( splitpath("a\\\\b\\\\c"; arch=Base.Arch.Windows); arch=Base.Arch.Linux )…

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

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