# Latest

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

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

**Page:** 300

---

## [@time reporting lock conflicts - what are these?](https://discourse.julialang.org/t/time-reporting-lock-conflicts-what-are-these/121300)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 5\
**Last updated:** [October 16, 2024, 7:29am UTC](https://discourse.julialang.org/t/time-reporting-lock-conflicts-what-are-these/121300 "2024-10-16T07:29:22Z")

</div>

When I use @time to time a particular function that reads and write from/to several large files, the output shows (for example): 0.403770 seconds (6.20 k allocations: 233.059 MiB, 8.12% gc time, 4 lock conflicts I’ve n…

---

## [Some introductory Julia codes for HPC!](https://discourse.julialang.org/t/some-introductory-julia-codes-for-hpc/121361)

<div class="topic-metadata">

**Author:** [@hunKing](https://discourse.julialang.org/u/hunKing)\
**Replies:** 0\
**Last updated:** [October 16, 2024, 6:45am UTC](https://discourse.julialang.org/t/some-introductory-julia-codes-for-hpc/121361 "2024-10-16T06:45:14Z")

</div>

Hey folks, I wrote a few codes to serve as a jump start to learning how to use Julia with SLURM managed clusters. I uploaded them to this repository: https://github.com/AtilaSaraiva/Julia-HPC-intro-codes I’ve got a fe…

---

## [Write a String with parallel HDF5](https://discourse.julialang.org/t/write-a-string-with-parallel-hdf5/121025)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 6:09am UTC](https://discourse.julialang.org/t/write-a-string-with-parallel-hdf5/121025 "2024-10-16T06:09:21Z")

</div>

Does anyone know the ‘correct’ way to write a scalar variable (especially a String) using parallel HDF5? I think I have a way of doing it, but it’s so ugly I’m hoping there’s a better way! The problem: suppose I have a …

---

## [Bounderror during interpolation](https://discourse.julialang.org/t/bounderror-during-interpolation/121340)

<div class="topic-metadata">

**Author:** [@Goodness](https://discourse.julialang.org/u/Goodness)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 5:33am UTC](https://discourse.julialang.org/t/bounderror-during-interpolation/121340 "2024-10-16T05:33:14Z")

</div>

Hello I want to run a simulation that requires iteration and interpolation, but I have been encountering this error, and the simulation will end after some iteration. { “name”: “BoundsError”, “message”: “BoundsError:…

---

## [RemoteChannels and workload queue architecture](https://discourse.julialang.org/t/remotechannels-and-workload-queue-architecture/18056)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 4:44am UTC](https://discourse.julialang.org/t/remotechannels-and-workload-queue-architecture/18056 "2024-10-16T04:44:20Z")

</div>

Hi, I need to implement the following architecture: my master worker receives some requests (via HTTP interface) validates the requests, makes some convertations and puts requests into a queue. Request from the queue is …

---

## [How to solving SOCP and SDP by AmplNLWriter with these two solvers GUROBI 11.0.3 and Lindoapi 15?](https://discourse.julialang.org/t/how-to-solving-socp-and-sdp-by-amplnlwriter-with-these-two-solvers-gurobi-11-0-3-and-lindoapi-15/121322)

<div class="topic-metadata">

**Author:** [@wjulia](https://discourse.julialang.org/u/wjulia)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 2:58am UTC](https://discourse.julialang.org/t/how-to-solving-socp-and-sdp-by-amplnlwriter-with-these-two-solvers-gurobi-11-0-3-and-lindoapi-15/121322 "2024-10-16T02:58:28Z")

</div>

hello, everyone, what is wrong with the following code of using JuMP using AmplNLWriter using LinearAlgebra using SCS using MathOptInterface # import MathOptInterface as MOI model = Model(() -\> AmplNLWriter.Optimizer…

---

## [Agents.jl -- how to return the pos of an agent in Continuous space](https://discourse.julialang.org/t/agents-jl-how-to-return-the-pos-of-an-agent-in-continuous-space/121305)

<div class="topic-metadata">

**Author:** [@pogikano](https://discourse.julialang.org/u/pogikano)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 1:15am UTC](https://discourse.julialang.org/t/agents-jl-how-to-return-the-pos-of-an-agent-in-continuous-space/121305 "2024-10-16T01:15:38Z")

</div>

I want to implement various custom agent moves. I need to obtain the x and y positions of an agent, and then update them. For example, this does not work: ‘’’ function agent\_step!(fish, model) xAdd = rand( -1:1 ) yAd…

---

## [Question about Nonlinear expressions in jump](https://discourse.julialang.org/t/question-about-nonlinear-expressions-in-jump/121353)

<div class="topic-metadata">

**Author:** [@lukebhan](https://discourse.julialang.org/u/lukebhan)\
**Replies:** 5\
**Last updated:** [October 15, 2024, 11:17pm UTC](https://discourse.julialang.org/t/question-about-nonlinear-expressions-in-jump/121353 "2024-10-15T23:17:21Z")

</div>

Hi, I am trying to use Jump (v 1.23.2) with Julia (1.11.0) with nonlinear constraints where I essential invert a constructed matrix depending on the variable x. Namely, something like m = Model(optimizer\_with\_attribute…

---

## [Help with Julia installation](https://discourse.julialang.org/t/help-with-julia-installation/121336)

<div class="topic-metadata">

**Author:** [@tamarapino](https://discourse.julialang.org/u/tamarapino)\
**Replies:** 7\
**Last updated:** [October 15, 2024, 10:57pm UTC](https://discourse.julialang.org/t/help-with-julia-installation/121336 "2024-10-15T22:57:37Z")

</div>

Hi everyone, I hope you’re doing well, I’m new to Julia and I’m having problems using Julia. I have a 2022 MacBook Air that works with an M2 chip, I have installed an uninstalled Julia many times. I understand that due …

---

## [PythonCall spends a lot of time showing stuff for JAX](https://discourse.julialang.org/t/pythoncall-spends-a-lot-of-time-showing-stuff-for-jax/121346)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 8:59pm UTC](https://discourse.julialang.org/t/pythoncall-spends-a-lot-of-time-showing-stuff-for-jax/121346 "2024-10-15T20:59:43Z")

</div>

Hi everyone, especially @cjdoris! I’m trying to call JAX from Julia and I find that PythonCall.jl has a lot of overhead in a simple conversion case due to… printing? Has anyone run into the same issue? Setup code: usi…

---

## [\[NEW\] UniversalDiffEq.jl: Simple front-end for State-Space Universal Dynamical Equations](https://discourse.julialang.org/t/new-universaldiffeq-jl-simple-front-end-for-state-space-universal-dynamical-equations/121350)

<div class="topic-metadata">

**Author:** [@jarroyoe](https://discourse.julialang.org/u/jarroyoe)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 8:50pm UTC](https://discourse.julialang.org/t/new-universaldiffeq-jl-simple-front-end-for-state-space-universal-dynamical-equations/121350 "2024-10-15T20:50:22Z")

</div>

Hello everyone, I’m happy to announce our package UniversalDiffeq.jl, recently published in the Julia registry and hosted on a Github repo. UniversalDiffEq.jl presents a simple to use front-end for the recently develop…

---

## [Generating a new project from empty directory](https://discourse.julialang.org/t/generating-a-new-project-from-empty-directory/121349)

<div class="topic-metadata">

**Author:** [@danrib07](https://discourse.julialang.org/u/danrib07)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 8:25pm UTC](https://discourse.julialang.org/t/generating-a-new-project-from-empty-directory/121349 "2024-10-15T20:25:55Z")

</div>

I’ve cloned an empty repository Test2 from Github. I want to create a Julia package within this folder. After cloning the repository in the following directory C:\\Users\\someuser\\Test2, after accessing it via cd command, …

---

## [Seeing dependent packages on GitHub](https://discourse.julialang.org/t/seeing-dependent-packages-on-github/121347)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 1\
**Last updated:** [October 15, 2024, 7:18pm UTC](https://discourse.julialang.org/t/seeing-dependent-packages-on-github/121347 "2024-10-15T19:18:36Z")

</div>

I just learned that GitHub can automatically parse dependents of a repo for some languages, and display them on the landing page in a neat little “Used by” tab: Does anyone know how to lobby for Julia support there? I…

---

## [Using readlines with large text files](https://discourse.julialang.org/t/using-readlines-with-large-text-files/121341)

<div class="topic-metadata">

**Author:** [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 6:37pm UTC](https://discourse.julialang.org/t/using-readlines-with-large-text-files/121341 "2024-10-15T18:37:37Z")

</div>

I’m trying to read a genome string file into Julia using readlines() and getting some very strange results. The genome file consists of a gunzipped text file with a descriptive first line followed by a large number of st…

---

## [Serializing REPL state for distributed computing](https://discourse.julialang.org/t/serializing-repl-state-for-distributed-computing/121345)

<div class="topic-metadata">

**Author:** [@jgarvin](https://discourse.julialang.org/u/jgarvin)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 6:15pm UTC](https://discourse.julialang.org/t/serializing-repl-state-for-distributed-computing/121345 "2024-10-15T18:15:40Z")

</div>

One of the limitations of using python for distributed computing is how well REPL state can be propagated across a cluster. If you define a bunch of functions in the REPL that call each other that you then want to execut…

---

## [Cryptic error messages, no idea what to do](https://discourse.julialang.org/t/cryptic-error-messages-no-idea-what-to-do/121264)

<div class="topic-metadata">

**Author:** [@tb877](https://discourse.julialang.org/u/tb877)\
**Replies:** 25\
**Last updated:** [October 15, 2024, 5:05pm UTC](https://discourse.julialang.org/t/cryptic-error-messages-no-idea-what-to-do/121264 "2024-10-15T17:05:15Z")

</div>

Hi, I’ve been developing a Julia module to be used on multiple machines. Recently, I noticed the module wouldn’t compile on one of the machines (my macbook, actually). It still runs fine on my HPC cluster. Been a while …

---

## [Define equality for struct by checking all fields](https://discourse.julialang.org/t/define-equality-for-struct-by-checking-all-fields/121325)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 4\
**Last updated:** [October 15, 2024, 3:47pm UTC](https://discourse.julialang.org/t/define-equality-for-struct-by-checking-all-fields/121325 "2024-10-15T15:47:45Z")

</div>

I find myself in the position of defining various structs of the form struct Foo{T, U} bar::T bar2::U end where I want to define Foo(a,b) == Foo(c,d) iff a == c and b == d. I can do this manually: Base.:(==)(op1::Fo…

---

## [Proving that copyto! is allocation-free on a view, using AllocCheck](https://discourse.julialang.org/t/proving-that-copyto-is-allocation-free-on-a-view-using-alloccheck/121318)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 7\
**Last updated:** [October 15, 2024, 3:21pm UTC](https://discourse.julialang.org/t/proving-that-copyto-is-allocation-free-on-a-view-using-alloccheck/121318 "2024-10-15T15:21:11Z")

</div>

Hi there, I wanted to add allocation checks to the DifferentiationInterface.jl test suite, but the code for my in-place jacobian! involves copying a vector into a matrix column. Unfortunately, AllocCheck.jl cannot guara…

---

## [\`juliaup\` for for Mac and Linux](https://discourse.julialang.org/t/juliaup-for-for-mac-and-linux/66721)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 28\
**Last updated:** [October 15, 2024, 2:36pm UTC](https://discourse.julialang.org/t/juliaup-for-for-mac-and-linux/66721 "2024-10-15T14:36:28Z")

</div>

From what I can tell, @davidanthoff recently rewrote juliaup in rust, which was to make it available on Mac and Linux (Thank you, the manager is fantastic). Is there any information as to when?

---

## [How to set the axis padding precisely in Makie.jl?](https://discourse.julialang.org/t/how-to-set-the-axis-padding-precisely-in-makie-jl/121310)

<div class="topic-metadata">

**Author:** [@Lee123](https://discourse.julialang.org/u/Lee123)\
**Replies:** 4\
**Last updated:** [October 15, 2024, 11:43am UTC](https://discourse.julialang.org/t/how-to-set-the-axis-padding-precisely-in-makie-jl/121310 "2024-10-15T11:43:31Z")

</div>

I want to set the padding between axis and figure margin precisely, for example, all padding are 1cm as following I have try to set figure\_padding, halign, valign, but they doesn’t work cm = 28.3465 x = range(-pi,pi…

---

## [Evolving a DynamicalSystem until it is close to an attractor](https://discourse.julialang.org/t/evolving-a-dynamicalsystem-until-it-is-close-to-an-attractor/121294)

<div class="topic-metadata">

**Author:** [@andreasmorr](https://discourse.julialang.org/u/andreasmorr)\
**Replies:** 2\
**Last updated:** [October 15, 2024, 11:16am UTC](https://discourse.julialang.org/t/evolving-a-dynamicalsystem-until-it-is-close-to-an-attractor/121294 "2024-10-15T11:16:34Z")

</div>

Hello! I’ve been working with DynamicalSystems.jl and Attractors.jl and I’m wondering if there exists the following functionality: I would like to obtain a trajectory of a given DynamicalSystem and initial condition, wh…

---

## [Memory allocations when performing operation on Tuple of structs](https://discourse.julialang.org/t/memory-allocations-when-performing-operation-on-tuple-of-structs/121276)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 9\
**Last updated:** [October 15, 2024, 10:18am UTC](https://discourse.julialang.org/t/memory-allocations-when-performing-operation-on-tuple-of-structs/121276 "2024-10-15T10:18:31Z")

</div>

Hello, I’m facing a memory allocation problem on an apparently simple case. I have the following struct struct MyStruct{T1\<:AbstractMatrix, T2} data::T1 other::T2 end where data is a matrix and other is someth…

---

## [ERROR: Unsatisfiable requirements detected for package TrajOptPlots](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-trajoptplots/121321)

<div class="topic-metadata">

**Author:** [@jay\_Gao](https://discourse.julialang.org/u/jay_Gao)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 9:52am UTC](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-trajoptplots/121321 "2024-10-15T09:52:18Z")

</div>

when I add TrajOptPlots , I got an error message: (TrajectoryOptimization-examples) pkg\> add TrajOptPlots Updating registry at \`C:\\Users\\xxx\\.julia\\registries\\General\` Updating git-repo \`https://github.com/Julia…

---

## [I use Solver of AmplNLWriter with some errors](https://discourse.julialang.org/t/i-use-solver-of-amplnlwriter-with-some-errors/119585)

<div class="topic-metadata">

**Author:** [@wjulia](https://discourse.julialang.org/u/wjulia)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 9:52am UTC](https://discourse.julialang.org/t/i-use-solver-of-amplnlwriter-with-some-errors/119585 "2024-10-15T09:52:10Z")

</div>

The following is my code : using JuMP, AmplNLWriter m = Model(() -\> AmplNLWriter.Optimizer("Your\_Path\\\\lindoapi\\\\bin\\\\win64\\\\runlindo.exe")) @variable(m, -2 \<= x1 \<= 2,Int) @variable(m, -2 \<= x2 \<= 2) @constraint(m,…

---

## [Julia issue: ERROR: StyledStrings, Julia Language Support](https://discourse.julialang.org/t/julia-issue-error-styledstrings-julia-language-support/121316)

<div class="topic-metadata">

**Author:** [@EatMyShorts](https://discourse.julialang.org/u/EatMyShorts)\
**Replies:** 4\
**Last updated:** [October 15, 2024, 8:25am UTC](https://discourse.julialang.org/t/julia-issue-error-styledstrings-julia-language-support/121316 "2024-10-15T08:25:16Z")

</div>

Hello, I installed some packages (e.g. SciML) and I am getting the following error: Precompiling VSCodeServer... Info Given VSCodeServer was explicitly requested, output will be shown live ERROR: LoadError: ArgumentEr…

---

## [Near positive definite (NearPD) of a symmetric matrix in Julia](https://discourse.julialang.org/t/near-positive-definite-nearpd-of-a-symmetric-matrix-in-julia/45793)

<div class="topic-metadata">

**Author:** [@Kokora](https://discourse.julialang.org/u/Kokora)\
**Replies:** 9\
**Last updated:** [October 15, 2024, 7:57am UTC](https://discourse.julialang.org/t/near-positive-definite-nearpd-of-a-symmetric-matrix-in-julia/45793 "2024-10-15T07:57:21Z")

</div>

Hi all, Is there a package in Julia which can be used to find a near positive definite matrix to a symmetric matrix? In R there is a function nearPD that I can use or the function LaplacesDemon::as.positive.definite. T…

---

## [Issues with Rationals in Symbolics.jl](https://discourse.julialang.org/t/issues-with-rationals-in-symbolics-jl/105657)

<div class="topic-metadata">

**Author:** [@bombadil224](https://discourse.julialang.org/u/bombadil224)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 11:55pm UTC](https://discourse.julialang.org/t/issues-with-rationals-in-symbolics-jl/105657 "2024-10-14T23:55:32Z")

</div>

Lately I have been playing with the idea of writing a simple symbolic integrator based on the book by Bronstein “Symbolic Integration 1”, and have been more or less writing it from the ground up. So I have been writing t…

---

## [A wrapper of two functions takes longer time to execute](https://discourse.julialang.org/t/a-wrapper-of-two-functions-takes-longer-time-to-execute/121270)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 4\
**Last updated:** [October 15, 2024, 2:25am UTC](https://discourse.julialang.org/t/a-wrapper-of-two-functions-takes-longer-time-to-execute/121270 "2024-10-15T02:25:42Z")

</div>

I’m debugging a complex program within infiltrator, and this is the log: infil\> @inline function my\_set!(ψ\_sm, ψ, atomic) sm = atomic.sub\_mesh np = sm.np\_local @inbounds @simd for i\_p = …

---

## [Decimals.jl: Maintenance needed](https://discourse.julialang.org/t/decimals-jl-maintenance-needed/121246)

<div class="topic-metadata">

**Author:** [@barucden](https://discourse.julialang.org/u/barucden)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 10:12pm UTC](https://discourse.julialang.org/t/decimals-jl-maintenance-needed/121246 "2024-10-14T22:12:57Z")

</div>

JuliaMath/Decimals.jl could use some maintenance (Should this library be deprecated? · Issue #61 · JuliaMath/Decimals.jl · GitHub and other issues like Decimal not usable as Dict key: no hash method defined · Issue #35 ·…

---

## [Problem installing Gridap.jl Tutorials](https://discourse.julialang.org/t/problem-installing-gridap-jl-tutorials/121306)

<div class="topic-metadata">

**Author:** [@uri](https://discourse.julialang.org/u/uri)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 9:07pm UTC](https://discourse.julialang.org/t/problem-installing-gridap-jl-tutorials/121306 "2024-10-14T21:07:57Z")

</div>

I followed all the steps to install the Gridap.jl Tutorials, but when I try to instantiate the project it didin’t precompile 11 dependencies: (Tutorials) pkg\> instantiate Precompiling project… ✗ Algoim ✗ Conda ✗ Min…

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

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