# Latest

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

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

**Page:** 296

---

## [Is the triple \`@inbounds @fastmath @simd\` necessary for absolute peak performance?](https://discourse.julialang.org/t/is-the-triple-inbounds-fastmath-simd-necessary-for-absolute-peak-performance/121499)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 7\
**Last updated:** [October 21, 2024, 3:45pm UTC](https://discourse.julialang.org/t/is-the-triple-inbounds-fastmath-simd-necessary-for-absolute-peak-performance/121499 "2024-10-21T15:45:58Z")

</div>

using BenchmarkTools using LoopVectorization function a1(x) y = zero(eltype(x)) for i in eachindex(x) y += x\[i\] end y end function a2(x) y = zero(eltype(x)) @simd for i in eachindex(x) …

---

## [Using EarlyStopping.jl](https://discourse.julialang.org/t/using-earlystopping-jl/121537)

<div class="topic-metadata">

**Author:** [@onedeeper](https://discourse.julialang.org/u/onedeeper)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 3:38pm UTC](https://discourse.julialang.org/t/using-earlystopping-jl/121537 "2024-10-21T15:38:52Z")

</div>

Hi all, I’m trying to use EarlyStopping.jl. If I understood the documentation, the following should work, though it doesn’t seem to: #add early stopping call back from EarlyStopping.jl function callback!(p,l,early\_sto…

---

## [Some thoughts on improving basic function documentation](https://discourse.julialang.org/t/some-thoughts-on-improving-basic-function-documentation/103546)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 51\
**Last updated:** [October 21, 2024, 2:08pm UTC](https://discourse.julialang.org/t/some-thoughts-on-improving-basic-function-documentation/103546 "2024-10-21T14:08:36Z")

</div>

In the recent giant thread on Julia popularity, and in the recent user/developer survey, the topic of documentation often comes up. Usually when people bring it up, they focus on things for brand new users – guides, blo…

---

## [Building an Empty Document](https://discourse.julialang.org/t/building-an-empty-document/110858)

<div class="topic-metadata">

**Author:** [@Heng\_Zhang](https://discourse.julialang.org/u/Heng_Zhang)\
**Replies:** 3\
**Last updated:** [October 21, 2024, 1:49pm UTC](https://discourse.julialang.org/t/building-an-empty-document/110858 "2024-10-21T13:49:53Z")

</div>

Following the guide here: Guide · Documenter.jl I can not run successfully. Could someone help to confirm the setting problems or Git issue? How to fix this issue? Also I ran below code, error popped out: using Docume…

---

## [Parametric Types with Union](https://discourse.julialang.org/t/parametric-types-with-union/121507)

<div class="topic-metadata">

**Author:** [@danrib07](https://discourse.julialang.org/u/danrib07)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 1:42pm UTC](https://discourse.julialang.org/t/parametric-types-with-union/121507 "2024-10-21T13:42:45Z")

</div>

I have the following snippet: abstract type AbstractReaction end abstract type AbstractSpecies end abstract type AbstractRateLaw end struct Species \<: AbstractSpecies name::Union{AbstractString,Symbol} end struct …

---

## [SyslabCC: Suzhou-Tongyuan's proprietary Julia AOT compiler is now available for free use (personal & educational license only)](https://discourse.julialang.org/t/syslabcc-suzhou-tongyuans-proprietary-julia-aot-compiler-is-now-available-for-free-use-personal-educational-license-only/114633)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 42\
**Last updated:** [October 21, 2024, 12:53pm UTC](https://discourse.julialang.org/t/syslabcc-suzhou-tongyuans-proprietary-julia-aot-compiler-is-now-available-for-free-use-personal-educational-license-only/114633 "2024-10-21T12:53:37Z")

</div>

UPDATE: see examples and ask questions at the official GH repo github.com/Suzhou-Tongyuan/JuliaCon2024-JuliaAOT. This is an unofficial announcement of the Julia AOT compiler (SyslabCC) created by Suzhou-Tongyuan, and I…

---

## [Saving only after discrete callback](https://discourse.julialang.org/t/saving-only-after-discrete-callback/120790)

<div class="topic-metadata">

**Author:** [@pulk\_jain](https://discourse.julialang.org/u/pulk_jain)\
**Replies:** 4\
**Last updated:** [October 21, 2024, 12:05pm UTC](https://discourse.julialang.org/t/saving-only-after-discrete-callback/120790 "2024-10-21T12:05:26Z")

</div>

Discrete callback is saving both before and after the callback even when save\_positions = (false,true). For example: function dynamics(u,p,t) du = \[2.0,3.0,1.0\] return du end prob = ODEProblem(dynamics, \[0.0,…

---

## [Scale images in documentation rendered by Documenter.jl (maybe CSS question)](https://discourse.julialang.org/t/scale-images-in-documentation-rendered-by-documenter-jl-maybe-css-question/121525)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 11:33am UTC](https://discourse.julialang.org/t/scale-images-in-documentation-rendered-by-documenter-jl-maybe-css-question/121525 "2024-10-21T11:33:32Z")

</div>

I have a bunch of images in the documentation of a package. These images are generated on the fly by the docs/make.jl as last values of @example blocks, and are rendered as SVG by a Base.show(out\_io::IO, ::MIME"image/svg…

---

## [Increase size of precompilation cache](https://discourse.julialang.org/t/increase-size-of-precompilation-cache/121444)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 8:02am UTC](https://discourse.julialang.org/t/increase-size-of-precompilation-cache/121444 "2024-10-18T08:02:01Z")

</div>

I’m running a number of Pluto notebooks with heavy dependencies. I noticed that opening a not-so-old notebook almost always involves precompilation, suggesting that the package manager has somehow deleted the precompiled…

---

## [How to display .jmd (Julia markdown) documentation from REPL?](https://discourse.julialang.org/t/how-to-display-jmd-julia-markdown-documentation-from-repl/121515)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 6\
**Last updated:** [October 21, 2024, 10:18am UTC](https://discourse.julialang.org/t/how-to-display-jmd-julia-markdown-documentation-from-repl/121515 "2024-10-21T10:18:43Z")

</div>

I’m interested in using Julia markdown to document the data in a .csv file used in a health care application. After writing a simple .jmd file, I tried to display it using the REPL’s help?\> mode, which replied that it co…

---

## [Sparse variable arrays and creation of ODESystem's](https://discourse.julialang.org/t/sparse-variable-arrays-and-creation-of-odesystems/121335)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 8:41am UTC](https://discourse.julialang.org/t/sparse-variable-arrays-and-creation-of-odesystems/121335 "2024-10-21T08:41:40Z")

</div>

Sketch of the problem: a dumb example I have a question about the ability of ‘enforcing’ sparsity of a specific variable array that is created with the @variables macro. When running experiments, I have noticed that cre…

---

## [How to implement custom assignment with \`:=\` ? (for tinkering/learning purposes)](https://discourse.julialang.org/t/how-to-implement-custom-assignment-with-for-tinkering-learning-purposes/121467)

<div class="topic-metadata">

**Author:** [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Replies:** 6\
**Last updated:** [October 21, 2024, 7:37am UTC](https://discourse.julialang.org/t/how-to-implement-custom-assignment-with-for-tinkering-learning-purposes/121467 "2024-10-21T07:37:35Z")

</div>

I stumbled across this post and realized I have no idea how I would actually implement := to mean something like “define/assign the variable if it is not already defined, otherwise throw an error”, so I’m looking for som…

---

## [Record animation to mp4 with WGLMakie](https://discourse.julialang.org/t/record-animation-to-mp4-with-wglmakie/121508)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 6:41am UTC](https://discourse.julialang.org/t/record-animation-to-mp4-with-wglmakie/121508 "2024-10-21T06:41:11Z")

</div>

I have a )I think) very simple problem, that I have tried to find a solution for for a long time today. I always run into the same error message no matter what. I am in a Pluto notebook and I am using WGLMakie for plots…

---

## [@autodocs create broken links for aliases](https://discourse.julialang.org/t/autodocs-create-broken-links-for-aliases/121522)

<div class="topic-metadata">

**Author:** [@marteaua](https://discourse.julialang.org/u/marteaua)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 6:17am UTC](https://discourse.julialang.org/t/autodocs-create-broken-links-for-aliases/121522 "2024-10-21T06:17:24Z")

</div>

Hi, I wonder what is the good practice for documenting aliases and using Documenter.@autodocs. Let say I export both outer and ⊗ such that const ⊗ = outer I don’t want to add a docstring to ⊗ because I want users to ge…

---

## [On using \`=\` vs \`:=\` for assignment](https://discourse.julialang.org/t/on-using-vs-for-assignment/110302)

<div class="topic-metadata">

**Author:** [@adienes](https://discourse.julialang.org/u/adienes)\
**Replies:** 75\
**Last updated:** [October 21, 2024, 5:35am UTC](https://discourse.julialang.org/t/on-using-vs-for-assignment/110302 "2024-10-21T05:35:49Z")

</div>

news to me

---

## [Autodiff using custom Structs](https://discourse.julialang.org/t/autodiff-using-custom-structs/121143)

<div class="topic-metadata">

**Author:** [@thealanjason](https://discourse.julialang.org/u/thealanjason)\
**Replies:** 1\
**Last updated:** [October 20, 2024, 11:30pm UTC](https://discourse.julialang.org/t/autodiff-using-custom-structs/121143 "2024-10-20T23:30:10Z")

</div>

Hello everyone, I want to be able to use Enzyme to differentiate a scalar-valued function with respect to only part of the fields of an arbitrary struct. As an example, in my MWE below, I would like to differentiate th…

---

## [How to get the gradient of a constraint of an optimization problem at a fixed point](https://discourse.julialang.org/t/how-to-get-the-gradient-of-a-constraint-of-an-optimization-problem-at-a-fixed-point/121249)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 6\
**Last updated:** [October 20, 2024, 8:22pm UTC](https://discourse.julialang.org/t/how-to-get-the-gradient-of-a-constraint-of-an-optimization-problem-at-a-fixed-point/121249 "2024-10-20T20:22:39Z")

</div>

Hi, I wonder how I can get the value of the gradient of a constraint at some fixed point using JuMP. For example, in the following optimization problem, how can I get the gradient of the constraint with name Temp with r…

---

## [Sieve of Eratosthenes iterator](https://discourse.julialang.org/t/sieve-of-eratosthenes-iterator/121512)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 1\
**Last updated:** [October 20, 2024, 7:56pm UTC](https://discourse.julialang.org/t/sieve-of-eratosthenes-iterator/121512 "2024-10-20T19:56:40Z")

</div>

I would like to create an Iterator for prime numbers (I know there is a package Primes). Based on Pythons code for the Sieve of Eratosthenes I coded a function sieve(). sieve(10) returns a vector of the first 10 primes. …

---

## [How to use GitHub pages with Pluto notebooks?](https://discourse.julialang.org/t/how-to-use-github-pages-with-pluto-notebooks/121482)

<div class="topic-metadata">

**Author:** [@selinguler94](https://discourse.julialang.org/u/selinguler94)\
**Replies:** 2\
**Last updated:** [October 20, 2024, 5:32am UTC](https://discourse.julialang.org/t/how-to-use-github-pages-with-pluto-notebooks/121482 "2024-10-20T05:32:14Z")

</div>

I want to create something similar to " https "://alvarmaciel.gitlab.io/pluto-static-export-template/My%20cool%20notebook.html . (not allowed to give links so I needed to modify a bit) I don’t know much about github pag…

---

## [Why does it matter where I place return in above code?](https://discourse.julialang.org/t/why-does-it-matter-where-i-place-return-in-above-code/121484)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 8\
**Last updated:** [October 20, 2024, 4:55pm UTC](https://discourse.julialang.org/t/why-does-it-matter-where-i-place-return-in-above-code/121484 "2024-10-20T16:55:36Z")

</div>

I’ve tried making a simple Greatest Common Denominator code but output differs depending on where I use return. First is the code that works as intendent. By using else statement, as far as I understand return runs only…

---

## [All the ways to do one-hot encoding](https://discourse.julialang.org/t/all-the-ways-to-do-one-hot-encoding/64807)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 30\
**Last updated:** [October 20, 2024, 4:24pm UTC](https://discourse.julialang.org/t/all-the-ways-to-do-one-hot-encoding/64807 "2024-10-20T16:24:16Z")

</div>

There are many ways to do one hot encoding in Julia. I want to list down some ways Method Comment Roll your own It’s not too hard Flux.onehot & Flux.onehotbatch pretty heavy to depend on Flux so normally avoid…

---

## [Where do backup files go when I ignore them by \*.jl.bak in .gitignore file?](https://discourse.julialang.org/t/where-do-backup-files-go-when-i-ignore-them-by-jl-bak-in-gitignore-file/121504)

<div class="topic-metadata">

**Author:** [@selinguler94](https://discourse.julialang.org/u/selinguler94)\
**Replies:** 3\
**Last updated:** [October 20, 2024, 2:46pm UTC](https://discourse.julialang.org/t/where-do-backup-files-go-when-i-ignore-them-by-jl-bak-in-gitignore-file/121504 "2024-10-20T14:46:33Z")

</div>

I want to keep the backup files because I am asked to keep the old versions of the updated code, but I also don’t want to host them in Github pages so I placed them in .gitignore. But where did they go? I created a move…

---

## [Why my paid version of Office 365 on Linux seems to miss some features?](https://discourse.julialang.org/t/why-my-paid-version-of-office-365-on-linux-seems-to-miss-some-features/121469)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [October 20, 2024, 2:03pm UTC](https://discourse.julialang.org/t/why-my-paid-version-of-office-365-on-linux-seems-to-miss-some-features/121469 "2024-10-20T14:03:34Z")

</div>

My editor for the second edition of my Julia book doesn’t work with Markdown sources (!!!) so I need to move everything to Office. I am on Linux and my univ has a subscription for Office 365, but when I need to do somet…

---

## [Diff between two Manifest.toml files](https://discourse.julialang.org/t/diff-between-two-manifest-toml-files/121503)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 0\
**Last updated:** [October 20, 2024, 2:01pm UTC](https://discourse.julialang.org/t/diff-between-two-manifest-toml-files/121503 "2024-10-20T14:01:16Z")

</div>

What’s a recommended way to compare and find all the differences between two Manifest.toml files ? I have used plain text diff (e.g. as implemented in vscode) and it seems to work fine. But I think the success of this a…

---

## [CatBoost community survey mentions Julia](https://discourse.julialang.org/t/catboost-community-survey-mentions-julia/121501)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [October 20, 2024, 12:14pm UTC](https://discourse.julialang.org/t/catboost-community-survey-mentions-julia/121501 "2024-10-20T12:14:52Z")

</div>

Survey link is here: Yandex Forms The Russian association is unfortunate, but science is borderless and apolitical.

---

## [What the parameter in PerturbedAdditive means](https://discourse.julialang.org/t/what-the-parameter-in-perturbedadditive-means/121446)

<div class="topic-metadata">

**Author:** [@Yaozhong\_Liu](https://discourse.julialang.org/u/Yaozhong_Liu)\
**Replies:** 6\
**Last updated:** [October 20, 2024, 11:53am UTC](https://discourse.julialang.org/t/what-the-parameter-in-perturbedadditive-means/121446 "2024-10-20T11:53:14Z")

</div>

Hi. There’s a function in InferOpt package named PerturbedAdditive. I’m curious about a parameter. co\_layer = PerturbedAdditive(knapsack\_maximizer; ε=10.0, nb\_samples=10) For codes above, what does “ε=10.0” mean? An…

---

## [Sum of squares programming](https://discourse.julialang.org/t/sum-of-squares-programming/121500)

<div class="topic-metadata">

**Author:** [@Banan\_alkafri](https://discourse.julialang.org/u/Banan_alkafri)\
**Replies:** 0\
**Last updated:** [October 20, 2024, 11:52am UTC](https://discourse.julialang.org/t/sum-of-squares-programming/121500 "2024-10-20T11:52:10Z")

</div>

I’m using Mosek and sum of squares tools but with matrices to solve an optimization problem with constraints. I’ve noticed that when I try to optimize for higher polynomial degrees like 25 or more, Mosek is taking a lot …

---

## [My pluto notebooks changes aren't recognized by git bash](https://discourse.julialang.org/t/my-pluto-notebooks-changes-arent-recognized-by-git-bash/121487)

<div class="topic-metadata">

**Author:** [@selinguler94](https://discourse.julialang.org/u/selinguler94)\
**Replies:** 2\
**Last updated:** [October 20, 2024, 11:03am UTC](https://discourse.julialang.org/t/my-pluto-notebooks-changes-arent-recognized-by-git-bash/121487 "2024-10-20T11:03:30Z")

</div>

I have a pluto notebook that I pushed to github, and now I open the notebook on pluto, edit it and save it (maybe not exactly save it because when I go to save notebook section and choose the directory and the same file …

---

## [How can I allocate a buffer contains different types of data (for MPI communication, for example)?](https://discourse.julialang.org/t/how-can-i-allocate-a-buffer-contains-different-types-of-data-for-mpi-communication-for-example/121478)

<div class="topic-metadata">

**Author:** [@Blumenkranz](https://discourse.julialang.org/u/Blumenkranz)\
**Replies:** 10\
**Last updated:** [October 20, 2024, 8:12am UTC](https://discourse.julialang.org/t/how-can-i-allocate-a-buffer-contains-different-types-of-data-for-mpi-communication-for-example/121478 "2024-10-20T08:12:23Z")

</div>

I need to communicate data of Vector{Int8} and Vector{Float64} using MPI.jl. How can I achieve this with a single communication?

---

## [Adding a parameter to macro call](https://discourse.julialang.org/t/adding-a-parameter-to-macro-call/121489)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [October 20, 2024, 6:17am UTC](https://discourse.julialang.org/t/adding-a-parameter-to-macro-call/121489 "2024-10-20T06:17:17Z")

</div>

In my package ShareAdd.jl a macro is defined in the form(s) @usingany Pkg1 @usingany Pkg1, Pkg2, Pkg3 Now, I’d like to add an optional flag to first update the corresponding packages before import. What is the (best) w…

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

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