# Latest

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

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

**Page:** 256

---

## [Uninvoked logging with interpolated string screws performance](https://discourse.julialang.org/t/uninvoked-logging-with-interpolated-string-screws-performance/123806)

<div class="topic-metadata">

**Author:** [@dpinol](https://discourse.julialang.org/u/dpinol)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 11:51am UTC](https://discourse.julialang.org/t/uninvoked-logging-with-interpolated-string-screws-performance/123806 "2024-12-13T11:51:23Z")

</div>

I have a a hot loop function which merges 2 SparseVector of 1k items each. With @benchmark I can see that adding conditionWhichIsFalse && @warn lazy"msg $myIntVariable" after the loop, makes the function 3 times slow…

---

## [How to correctly detect closed TCP connection](https://discourse.julialang.org/t/how-to-correctly-detect-closed-tcp-connection/92287)

<div class="topic-metadata">

**Author:** [@plukes](https://discourse.julialang.org/u/plukes)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 10:06am UTC](https://discourse.julialang.org/t/how-to-correctly-detect-closed-tcp-connection/92287 "2024-12-13T10:06:47Z")

</div>

Hi, I have been trying to implement a simple TCP server that sends periodically data to a created connection. Based on the manual I can implement a minimal working example as follows: function write\_data(sock) whil…

---

## [PackageCompiler Segfault in Julia-1.11](https://discourse.julialang.org/t/packagecompiler-segfault-in-julia-1-11/123774)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 6\
**Last updated:** [December 13, 2024, 9:10am UTC](https://discourse.julialang.org/t/packagecompiler-segfault-in-julia-1-11/123774 "2024-12-13T09:10:02Z")

</div>

Hoping for some help because I’m not sure where to even start debugging this issue! I’m developing a scientific HPC code that I run using --check-bounds=no for performance, and often want to build a system image to save…

---

## [Install from source: no such instruction](https://discourse.julialang.org/t/install-from-source-no-such-instruction/123620)

<div class="topic-metadata">

**Author:** [@VictorEijkhout](https://discourse.julialang.org/u/VictorEijkhout)\
**Replies:** 15\
**Last updated:** [December 13, 2024, 8:37am UTC](https://discourse.julialang.org/t/install-from-source-no-such-instruction/123620 "2024-12-13T08:37:02Z")

</div>

I’m installing from source on an Intel Skylake. Installation ends/fails on: /usr/bin/install -c -m 644 /work2/00434/eijkhout/stampede3/julia/julia-git/deps/srccache/mpfr-4.2.1/AUTHORS /work2/00434/eijkhout/stampede3/j…

---

## [Percent written as x%](https://discourse.julialang.org/t/percent-written-as-x/123735)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 1:36am UTC](https://discourse.julialang.org/t/percent-written-as-x/123735 "2024-12-13T01:36:53Z")

</div>

macro %(x) Unitful.percent(.01x) end @% 12 #12 % Is there a function or macro that would allow 12% instead of @% 12

---

## [Export Markdown.parse?](https://discourse.julialang.org/t/export-markdown-parse/123638)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 5\
**Last updated:** [December 13, 2024, 1:07am UTC](https://discourse.julialang.org/t/export-markdown-parse/123638 "2024-12-13T01:07:59Z")

</div>

I’ve just discovered Markdown.parse, which allows to convert strings to Julia’s MarkDown type. I think this is a very useful functionality. Wouldn’t it make sense to export it or at least make it public? EDIT: Well, exp…

---

## [Julia position in the Debian Benchmark Game can be improved, and categorization of some Julia there is unfair](https://discourse.julialang.org/t/julia-position-in-the-debian-benchmark-game-can-be-improved-and-categorization-of-some-julia-there-is-unfair/122280)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 29\
**Last updated:** [December 12, 2024, 9:55pm UTC](https://discourse.julialang.org/t/julia-position-in-the-debian-benchmark-game-can-be-improved-and-categorization-of-some-julia-there-is-unfair/122280 "2024-12-12T21:55:46Z")

</div>

EDIT: I was looking at graph here thinking Julia might be missing: Measured : Which programming language is fastest? (Benchmarks Game) it’s actually still in other graph, and I still argue the categorization (for “naked …

---

## [Is union abstract type?](https://discourse.julialang.org/t/is-union-abstract-type/123782)

<div class="topic-metadata">

**Author:** [@garazha-ilya](https://discourse.julialang.org/u/garazha-ilya)\
**Replies:** 3\
**Last updated:** [December 12, 2024, 10:15pm UTC](https://discourse.julialang.org/t/is-union-abstract-type/123782 "2024-12-12T22:15:33Z")

</div>

Despite the fact that the documentation says that union is an abstract type, the isabstracttype() function returns false: IntOrString = Union{Int,AbstractString} isabstracttype(IntOrString) false

---

## [\[ANN\] DynamicSampling.jl](https://discourse.julialang.org/t/ann-dynamicsampling-jl/123718)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 5\
**Last updated:** [December 12, 2024, 9:37pm UTC](https://discourse.julialang.org/t/ann-dynamicsampling-jl/123718 "2024-12-12T21:37:44Z")

</div>

Hi all, I’d like to share with you DynamicSampling.jl, a package I built which implements samplers that can be used to sample from a dynamic discrete distribution supporting removal, addition and sampling of elements in…

---

## [Disable package extension](https://discourse.julialang.org/t/disable-package-extension/123779)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 8:07pm UTC](https://discourse.julialang.org/t/disable-package-extension/123779 "2024-12-12T20:07:30Z")

</div>

Hello, Is it possible to “disable” an extension of a package, marked with \[extension\] in the package Project.toml? My use case is the following: I have an environment with ModelingToolkit as dependency, and I want to …

---

## [Hiding internal methods from methods(f)?](https://discourse.julialang.org/t/hiding-internal-methods-from-methods-f/123783)

<div class="topic-metadata">

**Author:** [@jakobjpeters](https://discourse.julialang.org/u/jakobjpeters)\
**Replies:** 4\
**Last updated:** [December 12, 2024, 7:59pm UTC](https://discourse.julialang.org/t/hiding-internal-methods-from-methods-f/123783 "2024-12-12T19:59:32Z")

</div>

A pet peeve of mine is when methods(f) shows more methods than is part of the documented API. Any chance the internal methods can be moved around a bit to prevent this?

---

## [Circle comes out oval using Makie](https://discourse.julialang.org/t/circle-comes-out-oval-using-makie/123778)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:46pm UTC](https://discourse.julialang.org/t/circle-comes-out-oval-using-makie/123778 "2024-12-12T18:46:34Z")

</div>

Hi, I am trying to create circles using CairoMakie. But they turn out oval. What’s up? MWE: using CairoMakie using Makie.GeometryBasics const global inch::Float64 = 96 const global cm::Float64 = inch / 2.54 const glob…

---

## [Custom stuct and Jacobian: Issue with Zygote not understanding custom struct](https://discourse.julialang.org/t/custom-stuct-and-jacobian-issue-with-zygote-not-understanding-custom-struct/123781)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 6:35pm UTC](https://discourse.julialang.org/t/custom-stuct-and-jacobian-issue-with-zygote-not-understanding-custom-struct/123781 "2024-12-12T18:35:38Z")

</div>

The function with ‘normals’ input is fine but when it’s inside the struct, Zygote returns (nothing) # MWE struct MeshExample normals::AbstractMatrix other::Float64 end function radiation\_using\_struct(mesh::Mesh…

---

## [Package precompilation logs/profiling](https://discourse.julialang.org/t/package-precompilation-logs-profiling/123776)

<div class="topic-metadata">

**Author:** [@Mihai\_Costin](https://discourse.julialang.org/u/Mihai_Costin)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:08pm UTC](https://discourse.julialang.org/t/package-precompilation-logs-profiling/123776 "2024-12-12T18:08:46Z")

</div>

Hello! I have a julia package in a public github repo (GitHub - mihaicostin34/S2MPJ.jl) and when adding it through the REPL I get high precompilation times (just adding the precompTest branch takes 133 seconds). Is there…

---

## [Language server in emacs: can it work any better than in VS Code?](https://discourse.julialang.org/t/language-server-in-emacs-can-it-work-any-better-than-in-vs-code/123727)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:04pm UTC](https://discourse.julialang.org/t/language-server-in-emacs-can-it-work-any-better-than-in-vs-code/123727 "2024-12-12T18:04:59Z")

</div>

Is there any reason to expect the language server to work better in emacs? In other words, can it avoid the problem with the invisible source code? If I understand how it works, it seems to me that Emacs is exposed to t…

---

## [Polar heatmap for angles between 0 and 90°?](https://discourse.julialang.org/t/polar-heatmap-for-angles-between-0-and-90/123743)

<div class="topic-metadata">

**Author:** [@dutille](https://discourse.julialang.org/u/dutille)\
**Replies:** 4\
**Last updated:** [December 12, 2024, 5:33pm UTC](https://discourse.julialang.org/t/polar-heatmap-for-angles-between-0-and-90/123743 "2024-12-12T17:33:32Z")

</div>

Using Julia 1.11. In a perfect world I would expect the script below to deliver a heatmap in a quarter of disk. But I get a full disk. I tried to adjust the limits. since specifying ylim will adjust the range for the rad…

---

## [Memory Arena](https://discourse.julialang.org/t/memory-arena/123764)

<div class="topic-metadata">

**Author:** [@NimaPoshtiban](https://discourse.julialang.org/u/NimaPoshtiban)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 4:57pm UTC](https://discourse.julialang.org/t/memory-arena/123764 "2024-12-12T16:57:30Z")

</div>

Hello, dear members of the Julia Community. I want to manage heap space for external objects (e.g. C objects) by using an Arena How is it done in Julia? The simple definition of an Arena is “An arena is just a large,…

---

## [Packages not found](https://discourse.julialang.org/t/packages-not-found/123756)

<div class="topic-metadata">

**Author:** [@odipus](https://discourse.julialang.org/u/odipus)\
**Replies:** 3\
**Last updated:** [December 12, 2024, 4:56pm UTC](https://discourse.julialang.org/t/packages-not-found/123756 "2024-12-12T16:56:43Z")

</div>

I have created a docker image # Use the official Julia image FROM julia:1.9 ENV JULIA\_CPU\_TARGET="generic;sandybridge,-xsaveopt,clone\_all;haswell,-rdrnd,base(1)" # # Install Julia dependencies RUN julia -e "using Pkg; …

---

## [Fastest Julia implementation for a cyclic convolution of real vectors](https://discourse.julialang.org/t/fastest-julia-implementation-for-a-cyclic-convolution-of-real-vectors/123665)

<div class="topic-metadata">

**Author:** [@lukemin](https://discourse.julialang.org/u/lukemin)\
**Replies:** 17\
**Last updated:** [December 12, 2024, 4:44pm UTC](https://discourse.julialang.org/t/fastest-julia-implementation-for-a-cyclic-convolution-of-real-vectors/123665 "2024-12-12T16:44:03Z")

</div>

Hi, I am looking for the fastest way to implement the cyclic convolution of two real vectors. In other words, given some positive integer n \> 0 which is not necessarily power-of-two, I want to multiply two degree-(n-1) …

---

## [Subtyping \`NamedTuple\`s in \`NamedTuple\`s](https://discourse.julialang.org/t/subtyping-namedtuple-s-in-namedtuple-s/123747)

<div class="topic-metadata">

**Author:** [@benedikt](https://discourse.julialang.org/u/benedikt)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 3:12pm UTC](https://discourse.julialang.org/t/subtyping-namedtuple-s-in-namedtuple-s/123747 "2024-12-12T15:12:33Z")

</div>

I don’t understand the following behavior: julia\> typeof((a = (b = 1,),)) \<: NamedTuple{(:a,), Tuple{\<:NamedTuple}} false julia\> typeof((a = (b = 1,),)) \<: NamedTuple{(:a,), Tuple{NT}} where {NT \<: NamedTuple} true

---

## [ModelingToolkit, SciMLSensitivity: Computed parameter?](https://discourse.julialang.org/t/modelingtoolkit-scimlsensitivity-computed-parameter/123760)

<div class="topic-metadata">

**Author:** [@filip.cerny](https://discourse.julialang.org/u/filip.cerny)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 2:50pm UTC](https://discourse.julialang.org/t/modelingtoolkit-scimlsensitivity-computed-parameter/123760 "2024-12-12T14:50:00Z")

</div>

I am working on a model of a leaky bucket using ModelingToolkit.jl. I was experimenting with fitting parameters of the model based on randomized data using SciMLSensitivity.jl. In the attached example, I define my consta…

---

## [Not using PreallocationTools.jl correctly](https://discourse.julialang.org/t/not-using-preallocationtools-jl-correctly/123609)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 11\
**Last updated:** [December 12, 2024, 2:26pm UTC](https://discourse.julialang.org/t/not-using-preallocationtools-jl-correctly/123609 "2024-12-12T14:26:42Z")

</div>

I have run into the same problem that others have run into before me. Unfortunately, I can’t solve the problem despite the fact that the question has been asked in (slightly) different guises (e.g. link1, link2). The pr…

---

## [Slow search fixed points dynamicalsystems.jl](https://discourse.julialang.org/t/slow-search-fixed-points-dynamicalsystems-jl/123757)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 1:03pm UTC](https://discourse.julialang.org/t/slow-search-fixed-points-dynamicalsystems-jl/123757 "2024-12-12T13:03:04Z")

</div>

Hello, I am search for fixed points for my discrete system and the search is too long. I have already tried to increase the tol parameter and it does not have any result. I don’t understand what the problem is. More pre…

---

## [Improved allocation design, with 4-byte pointers, and sometimes 5-byte in effect](https://discourse.julialang.org/t/improved-allocation-design-with-4-byte-pointers-and-sometimes-5-byte-in-effect/123229)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 10\
**Last updated:** [December 12, 2024, 1:00pm UTC](https://discourse.julialang.org/t/improved-allocation-design-with-4-byte-pointers-and-sometimes-5-byte-in-effect/123229 "2024-12-12T13:00:50Z")

</div>

I want to make default allocations faster (and actually less needed too) than default allocations in C, C++, Rust, and more space-efficient, also the structs containing the Refs/pointers to the allocations (important for…

---

## [Speeding up elementwise Vector-SparseMatrixCSC multiplication broadcasting](https://discourse.julialang.org/t/speeding-up-elementwise-vector-sparsematrixcsc-multiplication-broadcasting/79437)

<div class="topic-metadata">

**Author:** [@bcsj](https://discourse.julialang.org/u/bcsj)\
**Replies:** 11\
**Last updated:** [December 12, 2024, 9:45am UTC](https://discourse.julialang.org/t/speeding-up-elementwise-vector-sparsematrixcsc-multiplication-broadcasting/79437 "2024-12-12T09:45:23Z")

</div>

I noticed today a bottleneck in my code which was causing significant performance loss. Given a vector b and a sparse matrix A, let b \\odot A be the elementwise multiplication of b on each column of A. An example in Ju…

---

## [Using IntervalArithmetic to find the number of intersections of algebraic curves](https://discourse.julialang.org/t/using-intervalarithmetic-to-find-the-number-of-intersections-of-algebraic-curves/123740)

<div class="topic-metadata">

**Author:** [@ij05](https://discourse.julialang.org/u/ij05)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 7:35am UTC](https://discourse.julialang.org/t/using-intervalarithmetic-to-find-the-number-of-intersections-of-algebraic-curves/123740 "2024-12-12T07:35:27Z")

</div>

I have two algebraic curves as the following \\begin{equation} 2x^2+4x-3-y=0\\quad(1) \\end{equation} x^2+y^2-a=0\\quad\\qquad(2) Equation (2) is parameterized in terms of a. I am interested to obtain the number of interse…

---

## [\[ANN\] StippleMakie.jl - easy integration of Makie plots into GenieFramework](https://discourse.julialang.org/t/ann-stipplemakie-jl-easy-integration-of-makie-plots-into-genieframework/123632)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:29am UTC](https://discourse.julialang.org/t/ann-stipplemakie-jl-easy-integration-of-makie-plots-into-genieframework/123632 "2024-12-12T06:29:31Z")

</div>

\[ANN\] StippleMakie Having started off at the hackathon of JuliaCon 2024 we’re happy that we can finally release the first version of StippleMakie. It brings together the best of two worlds - the completeness of the Geni…

---

## [Transfer Learning in Lux?](https://discourse.julialang.org/t/transfer-learning-in-lux/123731)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 2:44am UTC](https://discourse.julialang.org/t/transfer-learning-in-lux/123731 "2024-12-12T02:44:56Z")

</div>

Hi, I would like to transfer learn a regression model onto a classification task. This is my regression model: model = Chain( Conv((32, 16), 1 =\> 8), LayerNorm((129, 77, 8), relu, dims=(1, 2, 3)), Conv((32…

---

## [Handling nonlinear objective involving the inverse of a matrix](https://discourse.julialang.org/t/handling-nonlinear-objective-involving-the-inverse-of-a-matrix/123726)

<div class="topic-metadata">

**Author:** [@Cory\_Simon](https://discourse.julialang.org/u/Cory_Simon)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 8:55pm UTC](https://discourse.julialang.org/t/handling-nonlinear-objective-involving-the-inverse-of-a-matrix/123726 "2024-12-11T20:55:40Z")

</div>

so the output of: MOI.get(Ipopt.Optimizer(), MOI.ListOfSupportedNonlinearOperators()) includes inv, so I thought it should handle the inverse of a matrix. however, in my minimal example, it does not: n = 5 model =…

---

## [Write expressions in JuMP model based on condition](https://discourse.julialang.org/t/write-expressions-in-jump-model-based-on-condition/123696)

<div class="topic-metadata">

**Author:** [@mast-lfl](https://discourse.julialang.org/u/mast-lfl)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 8:37pm UTC](https://discourse.julialang.org/t/write-expressions-in-jump-model-based-on-condition/123696 "2024-12-11T20:37:42Z")

</div>

I want to add serval named expressions in a JuMP model that are conditional on the indices p (set P) and t (set T). X and I are the decision variable and set P consists of two subsets, P\_1, P\_2. I want the expressions to…

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

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