# Latest

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

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

**Page:** 265

---

## [HTTP.jl doesn't work](https://discourse.julialang.org/t/http-jl-doesnt-work/123293)

<div class="topic-metadata">

**Author:** [@razlichnosti111](https://discourse.julialang.org/u/razlichnosti111)\
**Replies:** 4\
**Last updated:** [December 1, 2024, 8:13am UTC](https://discourse.julialang.org/t/http-jl-doesnt-work/123293 "2024-12-01T08:13:38Z")

</div>

Hello. The HTTP.jl package does not work for me. I can’t figure out what the problem is. Failed to precompile HTTP \[cd3eb016-35fb-5094-929b-558a96fad6f3\] to “C:\\Users\\Дмитрий\\.julia\\compiled\\v1.11\\HTTP\\jl\_8BA4.tmp”. E…

---

## [Minimize f(x) with |x|=1](https://discourse.julialang.org/t/minimize-f-x-with-x-1/123307)

<div class="topic-metadata">

**Author:** [@Nichola](https://discourse.julialang.org/u/Nichola)\
**Replies:** 5\
**Last updated:** [December 1, 2024, 7:21am UTC](https://discourse.julialang.org/t/minimize-f-x-with-x-1/123307 "2024-12-01T07:21:05Z")

</div>

What is the simplest way to minimize f(x) with |x|=1 where x is a vector ? (I know the gradient of f) I’ve checked the example on Using Equality and Inequality Constraints · Optimization.jl but the solution calls AmplNL…

---

## [\`ReadOnlyMemoryError()\` with AllocCheck's \`@check\_allocs\`](https://discourse.julialang.org/t/readonlymemoryerror-with-allocchecks-check-allocs/123312)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 1\
**Last updated:** [December 1, 2024, 3:03am UTC](https://discourse.julialang.org/t/readonlymemoryerror-with-allocchecks-check-allocs/123312 "2024-12-01T03:03:47Z")

</div>

Wondering if anybody knows why I would get a ReadOnlyMemoryError() below. using AllocCheck struct S \_1::Int64 \_2::Int64 S() = new(1, 2) end @check\_allocs f() = S() f() ERROR: ReadOnlyMemoryError() Stacktrac…

---

## [Encountering usability issues with the REPL](https://discourse.julialang.org/t/encountering-usability-issues-with-the-repl/123301)

<div class="topic-metadata">

**Author:** [@Elias\_Al\_Alam](https://discourse.julialang.org/u/Elias_Al_Alam)\
**Replies:** 13\
**Last updated:** [December 1, 2024, 1:00am UTC](https://discourse.julialang.org/t/encountering-usability-issues-with-the-repl/123301 "2024-12-01T01:00:52Z")

</div>

So whenever i click run this REPL seems to be the default and it runs a bit a too slow and when i have something that requires input then it just gets stuck. On top of that the other way which is run “Run file in new …

---

## [JuliaRegistrator problem](https://discourse.julialang.org/t/juliaregistrator-problem/123306)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 2\
**Last updated:** [November 30, 2024, 11:50pm UTC](https://discourse.julialang.org/t/juliaregistrator-problem/123306 "2024-11-30T23:50:25Z")

</div>

It’s been about a year since I last updated a package version. Now I’m trying to update it again, on GitHub. I’ve commented “@JuliaRegistrator register” on a file in the commit in question, which was merged into main. Th…

---

## [Solving an SDP repeatedly where the matrix data changes in each repetition](https://discourse.julialang.org/t/solving-an-sdp-repeatedly-where-the-matrix-data-changes-in-each-repetition/123271)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 4\
**Last updated:** [November 30, 2024, 10:47pm UTC](https://discourse.julialang.org/t/solving-an-sdp-repeatedly-where-the-matrix-data-changes-in-each-repetition/123271 "2024-11-30T22:47:53Z")

</div>

Dear All, I am trying to solve the following semidefinite optimization problem in JuMP that I want to solve repeatedly: \\begin{align\*} p^{\\star}(\\alpha)=\\text{minimize}\_{X,y} &\\; \\mathbf{tr}CX+\\sum\_{i=1}^{n}c\_{i}y\_{i…

---

## [PackageCompiler.jl cannot create a sysimage with CUDA](https://discourse.julialang.org/t/packagecompiler-jl-cannot-create-a-sysimage-with-cuda/123019)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 3\
**Last updated:** [November 30, 2024, 10:46pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-cannot-create-a-sysimage-with-cuda/123019 "2024-11-30T22:46:03Z")

</div>

The compilation fails during linking BFloat16s.jl with g++. The full text of a minimal working example is available on GitHub Gist, and a truncated version is presented below: julia\> versioninfo() Julia Version 1.11.1 C…

---

## [Trying to clear a layout but getting stuck at nested GridLayouts](https://discourse.julialang.org/t/trying-to-clear-a-layout-but-getting-stuck-at-nested-gridlayouts/123269)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 4\
**Last updated:** [November 30, 2024, 7:37pm UTC](https://discourse.julialang.org/t/trying-to-clear-a-layout-but-getting-stuck-at-nested-gridlayouts/123269 "2024-11-30T19:37:09Z")

</div>

I’m trying to delete the layout altogether with the code, below, because I want to regenerate the content in response to input from the user. clear\_layout(fig.layout) successfully removes all the Axes, Labels, etc, but I…

---

## [Submit your wild idea for JuliaCon Global 2025 Mini CfP](https://discourse.julialang.org/t/submit-your-wild-idea-for-juliacon-global-2025-mini-cfp/123295)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 0\
**Last updated:** [November 30, 2024, 6:19pm UTC](https://discourse.julialang.org/t/submit-your-wild-idea-for-juliacon-global-2025-mini-cfp/123295 "2024-11-30T18:19:00Z")

</div>

The JuliaCon 2025 Minisymposium CfP closes in less than 36 hours! We are looking for as many ideas and proposals for Minisymposia as possible, we really want to be a conference of minisymposia from every field that uses …

---

## [Optimizing over 3d array: adjoint not defined for Array{Float64, 3}](https://discourse.julialang.org/t/optimizing-over-3d-array-adjoint-not-defined-for-array-float64-3/123235)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [November 30, 2024, 4:09pm UTC](https://discourse.julialang.org/t/optimizing-over-3d-array-adjoint-not-defined-for-array-float64-3/123235 "2024-11-30T16:09:09Z")

</div>

I’m trying to optimize over a 3d array. It seems like it doesn’t want to handle a 3d array, but I’m not sure why. Is there a solution for this? using Optimization, Optim, OptimizationOptimJL, Zygote, DifferentiationInte…

---

## [Using the Morris method of GlobalSensitivity.jl](https://discourse.julialang.org/t/using-the-morris-method-of-globalsensitivity-jl/123273)

<div class="topic-metadata">

**Author:** [@ij05](https://discourse.julialang.org/u/ij05)\
**Replies:** 2\
**Last updated:** [November 30, 2024, 3:00pm UTC](https://discourse.julialang.org/t/using-the-morris-method-of-globalsensitivity-jl/123273 "2024-11-30T15:00:13Z")

</div>

Hello everybody, I am trying to understand how to perform a basic screening test using the Morris method. I am consulting the example from the textbook: “Engineering design via Surrogate Modelling: A practical guide”. T…

---

## [Generate code from Symbolics.jl derivative](https://discourse.julialang.org/t/generate-code-from-symbolics-jl-derivative/123272)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 7\
**Last updated:** [November 30, 2024, 2:55pm UTC](https://discourse.julialang.org/t/generate-code-from-symbolics-jl-derivative/123272 "2024-11-30T14:55:03Z")

</div>

Following this example here, I am trying to generate Julia or MATLAB code from a derivative. using Symbolics @variables x a b c D = Differential(x) F = a\*x^3 + b\*x^2 + c\*x dFdx = expand\_derivatives(D(F)) Targetin…

---

## [Speed of Nested AD in Enzyme](https://discourse.julialang.org/t/speed-of-nested-ad-in-enzyme/123018)

<div class="topic-metadata">

**Author:** [@turiya](https://discourse.julialang.org/u/turiya)\
**Replies:** 8\
**Last updated:** [November 30, 2024, 11:26am UTC](https://discourse.julialang.org/t/speed-of-nested-ad-in-enzyme/123018 "2024-11-30T11:26:35Z")

</div>

I am trying to implement nested AD in Enzyme for application in PINNs. The following is a MWE. using Enzyme, Lux, Random, ComponentArrays, LinearAlgebra n = 100 x\_batch = randn(2, n) y\_batch = randn(2, n) model = Chain(…

---

## [Packages to write a blog post on “Optimizing an X matmul kernel” in Julia](https://discourse.julialang.org/t/packages-to-write-a-blog-post-on-optimizing-an-x-matmul-kernel-in-julia/123095)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 1\
**Last updated:** [November 30, 2024, 10:22am UTC](https://discourse.julialang.org/t/packages-to-write-a-blog-post-on-optimizing-an-x-matmul-kernel-in-julia/123095 "2024-11-30T10:22:12Z")

</div>

If I were to write a post similar to “Optimizing an X matmul kernel” like but in Julia, how should I start? Should I start by learning how to use KernelAbstractions.jl? P.S: I understand that a blog post like this, h…

---

## [Recursive functions](https://discourse.julialang.org/t/recursive-functions/123279)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 3\
**Last updated:** [November 30, 2024, 9:19am UTC](https://discourse.julialang.org/t/recursive-functions/123279 "2024-11-30T09:19:31Z")

</div>

Hello, Consider the following recursive function: function decToBin(n) if n \> 0 decToBin(n ÷ 2) print("$(n % 2)") end end For example, n=13. The n is greater than 0 and the line decToBin(n ÷ 2) …

---

## [StructArrays and ModellingToolkit](https://discourse.julialang.org/t/structarrays-and-modellingtoolkit/123253)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [November 30, 2024, 8:50am UTC](https://discourse.julialang.org/t/structarrays-and-modellingtoolkit/123253 "2024-11-30T08:50:50Z")

</div>

StructArrays 0.6.18 works fine with the newest version of ModelingToolkit, but StructArrays 0.6.20 works only with a very old version of MTK. I find this counter-intuitive. Any idea why this is the case?

---

## [Why can Julia spawn new processes but not new threads?](https://discourse.julialang.org/t/why-can-julia-spawn-new-processes-but-not-new-threads/123267)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 1\
**Last updated:** [November 30, 2024, 5:10am UTC](https://discourse.julialang.org/t/why-can-julia-spawn-new-processes-but-not-new-threads/123267 "2024-11-30T05:10:57Z")

</div>

With Distributed.jl, you can create new worker processes easily with addprocs (each of which can have multiple threads), but once a Julia process starts you can’t add more threads to that process; why?

---

## [How to respond to LLM posts by newcomers?](https://discourse.julialang.org/t/how-to-respond-to-llm-posts-by-newcomers/123249)

<div class="topic-metadata">

**Author:** [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Replies:** 6\
**Last updated:** [November 30, 2024, 12:55am UTC](https://discourse.julialang.org/t/how-to-respond-to-llm-posts-by-newcomers/123249 "2024-11-30T00:55:08Z")

</div>

Today I’ve seen a couple of posts from newcomers which very much read like they have been generated by an LLM (overconfident, generic, sometimes weird mistakes). Do we have any policy for how to respond to such posts? W…

---

## [In what case \`x===y\` and \`objectid(x) == objectid(y)\` are not interchangable?](https://discourse.julialang.org/t/in-what-case-x-y-and-objectid-x-objectid-y-are-not-interchangable/123265)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 11:42pm UTC](https://discourse.julialang.org/t/in-what-case-x-y-and-objectid-x-objectid-y-are-not-interchangable/123265 "2024-11-29T23:42:25Z")

</div>

I was reading the official documentation and found the following statement about objectid: If x === y then objectid(x) == objectid(y) , and usually when x !== y , objectid(x) != objectid(y) . It seems that there are …

---

## [Naming JuMP constraint in a loop](https://discourse.julialang.org/t/naming-jump-constraint-in-a-loop/123238)

<div class="topic-metadata">

**Author:** [@priantop](https://discourse.julialang.org/u/priantop)\
**Replies:** 5\
**Last updated:** [November 29, 2024, 11:00pm UTC](https://discourse.julialang.org/t/naming-jump-constraint-in-a-loop/123238 "2024-11-29T23:00:29Z")

</div>

Hi, Sorry for the rookie question I am trying to find a way to name constraints inside a loop I understand that it is common to define a constraint with the base name inside the @constraint below is the MWE using Ju…

---

## [Artifacts for dummies?](https://discourse.julialang.org/t/artifacts-for-dummies/123251)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 7\
**Last updated:** [November 29, 2024, 9:59pm UTC](https://discourse.julialang.org/t/artifacts-for-dummies/123251 "2024-11-29T21:59:08Z")

</div>

I tried yesterday to use Artifacts to store some testing data for a package, and failed miserably. First, I couldn’t find a clear indication on how to obtain the git-tree-sha1, or the sha256 that are required for the ex…

---

## [Make \`LinearSolve\` factorizations available in a standalone manner](https://discourse.julialang.org/t/make-linearsolve-factorizations-available-in-a-standalone-manner/123260)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 7:49pm UTC](https://discourse.julialang.org/t/make-linearsolve-factorizations-available-in-a-standalone-manner/123260 "2024-11-29T19:49:49Z")

</div>

This question was initially posted a few weeks back as an issue in LinearSolve.jl but got no attention there. By reposting it here I’m hoping to generate a bit of discussion about this. As far as I understand the purpos…

---

## [Change of return syntax for loss\_function in Optimization.jl](https://discourse.julialang.org/t/change-of-return-syntax-for-loss-function-in-optimization-jl/123224)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 8\
**Last updated:** [November 29, 2024, 7:48pm UTC](https://discourse.julialang.org/t/change-of-return-syntax-for-loss-function-in-optimization-jl/123224 "2024-11-29T19:48:19Z")

</div>

I’m using Optimization.jl to optimize conditions of ODE simulation to a given objective. Before the latest update (4.0.0), one could use this return syntax function loss\_adjoint(fullp, batch, time\_batch) pred = pre…

---

## [Zoomed inset using Makie?](https://discourse.julialang.org/t/zoomed-inset-using-makie/110717)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 6\
**Last updated:** [November 29, 2024, 7:07pm UTC](https://discourse.julialang.org/t/zoomed-inset-using-makie/110717 "2024-11-29T19:07:39Z")

</div>

Is it possible to achieve zooming in a portion of an (already drawn) axis and display it as another axis, or as an inset? Something like this in matplotlib:

---

## [Metal.jl weird behavior above 2^27](https://discourse.julialang.org/t/metal-jl-weird-behavior-above-2-27/123261)

<div class="topic-metadata">

**Author:** [@jvsaddic](https://discourse.julialang.org/u/jvsaddic)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 6:53pm UTC](https://discourse.julialang.org/t/metal-jl-weird-behavior-above-2-27/123261 "2024-11-29T18:53:51Z")

</div>

Hi! I am new to GPU programming, and I have been experimenting with Metal.jl As practice, I wrote this little program to estimate pi using the Monte Carlo method. using Metal using Random throw\_dart(a) = (2\*a - 1)^2 d…

---

## [Function depending on in-place or not in-place function handles](https://discourse.julialang.org/t/function-depending-on-in-place-or-not-in-place-function-handles/123236)

<div class="topic-metadata">

**Author:** [@danieleavitabile](https://discourse.julialang.org/u/danieleavitabile)\
**Replies:** 8\
**Last updated:** [November 29, 2024, 5:46pm UTC](https://discourse.julialang.org/t/function-depending-on-in-place-or-not-in-place-function-handles/123236 "2024-11-29T17:46:34Z")

</div>

I’m moving my first steps in programming with Julia and I have written a module whose structure is below: module my\_solver function solve(f,u0) # use f(u) and u0 to compute u\_final return u\_final end end in which…

---

## [Putting Manifest.toml in git](https://discourse.julialang.org/t/putting-manifest-toml-in-git/94144)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 15\
**Last updated:** [November 29, 2024, 5:43pm UTC](https://discourse.julialang.org/t/putting-manifest-toml-in-git/94144 "2024-11-29T17:43:21Z")

</div>

We have our manifest.toml in git. Every time we merge there is a conflict, typically on the project\_hash. I’m not sure which project\_hash is valid (from the HEAD or the current hash). What is the correct policy?

---

## [Apply inverse of BigFloat sparse Hermitian matrix](https://discourse.julialang.org/t/apply-inverse-of-bigfloat-sparse-hermitian-matrix/123189)

<div class="topic-metadata">

**Author:** [@EZ\_Money](https://discourse.julialang.org/u/EZ_Money)\
**Replies:** 2\
**Last updated:** [November 29, 2024, 3:07pm UTC](https://discourse.julialang.org/t/apply-inverse-of-bigfloat-sparse-hermitian-matrix/123189 "2024-11-29T15:07:41Z")

</div>

Hi! I’m trying to find the smallest singular vector of a sparse (16900x16900) Hermitian BigFloat matrix A. Is there a standard way to do this? My current idea is to use ArnoldiMethod.partialschur with a function that a…

---

## [Emptying a GridPosition in Makie](https://discourse.julialang.org/t/emptying-a-gridposition-in-makie/123248)

<div class="topic-metadata">

**Author:** [@paiconic](https://discourse.julialang.org/u/paiconic)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 2:46pm UTC](https://discourse.julialang.org/t/emptying-a-gridposition-in-makie/123248 "2024-11-29T14:46:00Z")

</div>

I want to create an interactive plot where I keep replotting new stuff (by replacing the old stuff) in my GridLayout. Is there an equivalent of empty!(g::GridPosition) like we have for empty!(ax::Axis)?

---

## [ERROR: UndefVarError: \`connect\` not defined in \`Main\`](https://discourse.julialang.org/t/error-undefvarerror-connect-not-defined-in-main/123244)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 1:45pm UTC](https://discourse.julialang.org/t/error-undefvarerror-connect-not-defined-in-main/123244 "2024-11-29T13:45:21Z")

</div>

Hi, I’m reproducing the Acausal Modeling for Nonlinear Control and Analysis # =========================================================== # Example from https://www.youtube.com/watch?v=l3odTEy69UU&t=2488s # ============…

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

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