# Latest

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

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

**Page:** 495

---

## [Why does profiling suggest that integer comparison dominates broadcasted assignment?](https://discourse.julialang.org/t/why-does-profiling-suggest-that-integer-comparison-dominates-broadcasted-assignment/109606)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [February 3, 2024, 2:47am UTC](https://discourse.julialang.org/t/why-does-profiling-suggest-that-integer-comparison-dominates-broadcasted-assignment/109606 "2024-02-03T02:47:53Z")

</div>

julia\> a = rand(40000,4000); b = rand(40000,4000); julia\> Profile.clear() julia\> @bprofile $a\[1:end, 1:end\] .= $b BenchmarkTools.Trial: 9 samples with 1 evaluation. Range (min … max): 571.819 ms … 586.555 ms ┊ GC (m…

---

## [Should we make a Julia binding for Flecs?](https://discourse.julialang.org/t/should-we-make-a-julia-binding-for-flecs/109654)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [February 3, 2024, 12:59am UTC](https://discourse.julialang.org/t/should-we-make-a-julia-binding-for-flecs/109654 "2024-02-03T00:59:53Z")

</div>

While Julia has many ECS libraries such as Overseer it might be a good idea to leverage larger communities. Flecs is a fast, lightweight ECS written in c with many bindings. Would it be a good idea to add a Julia bindin…

---

## [Is there any documentation on "IntegralFunctions"](https://discourse.julialang.org/t/is-there-any-documentation-on-integralfunctions/108970)

<div class="topic-metadata">

**Author:** [@Laura](https://discourse.julialang.org/u/Laura)\
**Replies:** 8\
**Last updated:** [February 3, 2024, 12:36am UTC](https://discourse.julialang.org/t/is-there-any-documentation-on-integralfunctions/108970 "2024-02-03T00:36:50Z")

</div>

I have been trying to solve two integrals at the same time using the Integrals.jl Package. I am following the example in the documentation of Integrals.jl in the link below. My function that I am integrating is an in-…

---

## [Wanted to learn machine learning(ML) from scrach!](https://discourse.julialang.org/t/wanted-to-learn-machine-learning-ml-from-scrach/109550)

<div class="topic-metadata">

**Author:** [@npsasikumar](https://discourse.julialang.org/u/npsasikumar)\
**Replies:** 5\
**Last updated:** [February 2, 2024, 10:47pm UTC](https://discourse.julialang.org/t/wanted-to-learn-machine-learning-ml-from-scrach/109550 "2024-02-02T22:47:58Z")

</div>

I am a research scholar working with the mathematical part of nonlinear dynamics. And I wanted to implement ML in research to validate the outcomes. So please suggest the materials (books, blogs, YouTube links, or any) t…

---

## [Physics-informed training of a surrogate model involving finite element analysis](https://discourse.julialang.org/t/physics-informed-training-of-a-surrogate-model-involving-finite-element-analysis/103735)

<div class="topic-metadata">

**Author:** [@touste](https://discourse.julialang.org/u/touste)\
**Replies:** 4\
**Last updated:** [February 2, 2024, 10:29pm UTC](https://discourse.julialang.org/t/physics-informed-training-of-a-surrogate-model-involving-finite-element-analysis/103735 "2024-02-02T22:29:53Z")

</div>

Hi all, I’m looking at ways to accelerate mechanical simulations for endovascular applications. We published a paper recently where we present EndoBeams.jl, a finite element framework for beam elements in contact with a…

---

## [How to make \`plot!(...)\` without changing \`xlimit\` and \`ylimit\`](https://discourse.julialang.org/t/how-to-make-plot-without-changing-xlimit-and-ylimit/109647)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [February 2, 2024, 10:17pm UTC](https://discourse.julialang.org/t/how-to-make-plot-without-changing-xlimit-and-ylimit/109647 "2024-02-02T22:17:29Z")

</div>

I have created a plot using Plots.jl and the plot() command. How do I add another thing to the plot using plot!(), without changing the x and y limits? (I have an application where the first plot command sets good limit…

---

## [Automatically convert rows of a matrix to vectors](https://discourse.julialang.org/t/automatically-convert-rows-of-a-matrix-to-vectors/109643)

<div class="topic-metadata">

**Author:** [@AliceandBob](https://discourse.julialang.org/u/AliceandBob)\
**Replies:** 3\
**Last updated:** [February 2, 2024, 9:15pm UTC](https://discourse.julialang.org/t/automatically-convert-rows-of-a-matrix-to-vectors/109643 "2024-02-02T21:15:05Z")

</div>

I’ve been using Julia from v0.6 but today I found this! I am very shocked! Julia will automatically convert the rows of a matrix to vectors! I know how to circumvent this, but I don’t believe I am the only one who fee…

---

## [How can I make this DataFramesMeta operation work?](https://discourse.julialang.org/t/how-can-i-make-this-dataframesmeta-operation-work/109640)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [February 2, 2024, 8:19pm UTC](https://discourse.julialang.org/t/how-can-i-make-this-dataframesmeta-operation-work/109640 "2024-02-02T20:19:01Z")

</div>

I have a DataFrame that has a PWGTP column, and then 80 additional columns named PWGTP1…PWGTP80. I’m trying to do the following: total = @chain vt18 begin @rsubset( :AGEP in 21:64, :DIS == 1 ) @combine( :total …

---

## [MIP start and Heuristic callback](https://discourse.julialang.org/t/mip-start-and-heuristic-callback/109615)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 1\
**Last updated:** [February 2, 2024, 8:12pm UTC](https://discourse.julialang.org/t/mip-start-and-heuristic-callback/109615 "2024-02-02T20:12:15Z")

</div>

Hi, I would like to receive a message about constraint violation when using heuristic callback. When I warm start the model, if there is an infeasibility, I obtain user MIP start violates constraints constraint\_name by…

---

## [Unable to test or use HIP libraries on Windows 10](https://discourse.julialang.org/t/unable-to-test-or-use-hip-libraries-on-windows-10/109639)

<div class="topic-metadata">

**Author:** [@mp59](https://discourse.julialang.org/u/mp59)\
**Replies:** 4\
**Last updated:** [February 2, 2024, 7:52pm UTC](https://discourse.julialang.org/t/unable-to-test-or-use-hip-libraries-on-windows-10/109639 "2024-02-02T19:52:39Z")

</div>

Hello, I am relatively new to Julia and very new to GPU programming. Recently I decided to use AMDGPU.jl, however, it does not seem like Julia can AMD’s HIP libraries, even though it recognizes that they are there. Here…

---

## [Fast allocation of blocks in sparse matrix](https://discourse.julialang.org/t/fast-allocation-of-blocks-in-sparse-matrix/109561)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 7\
**Last updated:** [February 2, 2024, 6:34pm UTC](https://discourse.julialang.org/t/fast-allocation-of-blocks-in-sparse-matrix/109561 "2024-02-02T18:34:00Z")

</div>

When trying to generate a “super adjacency matrix”, that is an adjacency matrix where each of its entries is the identity matrix, I noticed a bottleneck when generating the sparse block-matrix. More specifically, I am t…

---

## [Strange solution with DifferentialEquations.jl](https://discourse.julialang.org/t/strange-solution-with-differentialequations-jl/109579)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 12\
**Last updated:** [February 2, 2024, 5:36pm UTC](https://discourse.julialang.org/t/strange-solution-with-differentialequations-jl/109579 "2024-02-02T17:36:47Z")

</div>

I have run into a weird problem with DifferentialEquations.jl. MWE: Pkg.add("Symbolics") Pkg.add("Plots") Pkg.add("DifferentialEquations") using Symbolics, Plots, DifferentialEquations function trial(dx, x, p, t) …

---

## [A question on the type system](https://discourse.julialang.org/t/a-question-on-the-type-system/109624)

<div class="topic-metadata">

**Author:** [@alemelis](https://discourse.julialang.org/u/alemelis)\
**Replies:** 2\
**Last updated:** [February 2, 2024, 4:44pm UTC](https://discourse.julialang.org/t/a-question-on-the-type-system/109624 "2024-02-02T16:44:34Z")

</div>

Hello! Say I have two nested(?) structures as mutable struct MyInnerStruct index :: Int64 vector :: Vector{Float64} boolean\_flag :: Bool a :: Float64 b :: Float64 c :: Float64 end struct MyOute…

---

## [@\_4::Union{Nothing, Tuple{Int64,Int64}} in simple iterator](https://discourse.julialang.org/t/4-union-nothing-tuple-int64-int64-in-simple-iterator/48698)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 7\
**Last updated:** [February 2, 2024, 3:50pm UTC](https://discourse.julialang.org/t/4-union-nothing-tuple-int64-int64-in-simple-iterator/48698 "2024-02-02T15:50:21Z")

</div>

What that @\_4::Union{Nothing, Tuple{Int64,Int64}} is indicating? Where is there any possible Tuple in this code? Is there anything important about this warning of type evaluation? When one runs @code\_warntype that line i…

---

## [BinaryBuilderBase.GitSource how to recurse submodules?](https://discourse.julialang.org/t/binarybuilderbase-gitsource-how-to-recurse-submodules/109626)

<div class="topic-metadata">

**Author:** [@PaulVirally](https://discourse.julialang.org/u/PaulVirally)\
**Replies:** 1\
**Last updated:** [February 2, 2024, 3:10pm UTC](https://discourse.julialang.org/t/binarybuilderbase-gitsource-how-to-recurse-submodules/109626 "2024-02-02T15:10:39Z")

</div>

In my build\_tarballs.jl, I have a GitSource that has submodules. Looking at the source code for BinaryBuilderBase.GitSource’s setup, there doesn’t seem to be a way currently to for the clone to pass --recurse-submodules.…

---

## [Converting GAMS to JuMP: Defining Sets](https://discourse.julialang.org/t/converting-gams-to-jump-defining-sets/108875)

<div class="topic-metadata">

**Author:** [@sati](https://discourse.julialang.org/u/sati)\
**Replies:** 8\
**Last updated:** [February 2, 2024, 2:14pm UTC](https://discourse.julialang.org/t/converting-gams-to-jump-defining-sets/108875 "2024-02-02T14:14:52Z")

</div>

Hi all, I want to convert GAMS script to JuMP, and I have problems dealing with the sets in GAMS. Here is the constraint in GAMS: eDemIR(d)… demIReal(d) + sum(l,line2dem(l,d)\*lineIReal(l)) =e= 0; l, d are sets in GAM…

---

## [WSL- install Julia using snap?](https://discourse.julialang.org/t/wsl-install-julia-using-snap/109619)

<div class="topic-metadata">

**Author:** [@benslinux](https://discourse.julialang.org/u/benslinux)\
**Replies:** 2\
**Last updated:** [February 2, 2024, 2:04pm UTC](https://discourse.julialang.org/t/wsl-install-julia-using-snap/109619 "2024-02-02T14:04:49Z")

</div>

Are there any issues with using snap to install Julia on WSL? It’s an easy install, but I remember last year there were some issues with 32 vs 64 bit, snap’s version being deprecated, etc… I believe these issues have bee…

---

## [Function to check if Channel is full](https://discourse.julialang.org/t/function-to-check-if-channel-is-full/44795)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 3\
**Last updated:** [February 2, 2024, 1:24pm UTC](https://discourse.julialang.org/t/function-to-check-if-channel-is-full/44795 "2024-02-02T13:24:59Z")

</div>

The function isready(ch) checks if Channel ch has any stored value. Is there a function to check if a Channel is full?

---

## [Run(\`start\`) doesn't work](https://discourse.julialang.org/t/run-start-doesnt-work/109552)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 4\
**Last updated:** [February 2, 2024, 12:01pm UTC](https://discourse.julialang.org/t/run-start-doesnt-work/109552 "2024-02-02T12:01:20Z")

</div>

I used my python program to open webpage automatically. import os os.system("start https://discourse.julialang.org/") But julia version can’t, even git commands are working. Any help? PS C:\\Users\\rmsms\> start https://…

---

## [Make previous plot from navigator the current plot](https://discourse.julialang.org/t/make-previous-plot-from-navigator-the-current-plot/109597)

<div class="topic-metadata">

**Author:** [@clempe](https://discourse.julialang.org/u/clempe)\
**Replies:** 2\
**Last updated:** [February 2, 2024, 11:40am UTC](https://discourse.julialang.org/t/make-previous-plot-from-navigator-the-current-plot/109597 "2024-02-02T11:40:27Z")

</div>

I apologize if that’s a bit of a silly question. sometimes I’d like to pick an old plot from the plot navigator and make adjustments to it, like change the legend etc. When just opening that old plot from the plot navig…

---

## [Any equivalent of ggplot for phylogeny tree layouts?](https://discourse.julialang.org/t/any-equivalent-of-ggplot-for-phylogeny-tree-layouts/109611)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [February 2, 2024, 10:56am UTC](https://discourse.julialang.org/t/any-equivalent-of-ggplot-for-phylogeny-tree-layouts/109611 "2024-02-02T10:56:27Z")

</div>

Hello, I am trying to plot a phylogeny tree with GraphMakie, I obtain decent results, but the branches can overlap and it looks not super great. I looked at NetworkLayout.jl, which provides layout algorithms for graphs,…

---

## [Inserting images in Documentation doesn't work](https://discourse.julialang.org/t/inserting-images-in-documentation-doesnt-work/109582)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 8\
**Last updated:** [February 2, 2024, 9:14am UTC](https://discourse.julialang.org/t/inserting-images-in-documentation-doesnt-work/109582 "2024-02-02T09:14:49Z")

</div>

I want to insert an image into my documentation markdown page in Julia. However, it does not respond to my HTML tag. \<img src="../../../src/assets/complex\_plot.png" width="300" align="right"/\>. Also, if you open this l…

---

## [How to put bounds on Nelder-Mead in Optim?](https://discourse.julialang.org/t/how-to-put-bounds-on-nelder-mead-in-optim/58183)

<div class="topic-metadata">

**Author:** [@zxjroger](https://discourse.julialang.org/u/zxjroger)\
**Replies:** 25\
**Last updated:** [February 2, 2024, 6:03am UTC](https://discourse.julialang.org/t/how-to-put-bounds-on-nelder-mead-in-optim/58183 "2024-02-02T06:03:29Z")

</div>

I am confused about how to put bounds on parameters using Nelder-Mead in the Optim.jl package. I somehow remember Nelder-Mead should not be used with Fminbox, so I wonder if the following code is correct? Also, I notice …

---

## [Explain generators](https://discourse.julialang.org/t/explain-generators/109573)

<div class="topic-metadata">

**Author:** [@Anders\_Holtsberg](https://discourse.julialang.org/u/Anders_Holtsberg)\
**Replies:** 11\
**Last updated:** [February 2, 2024, 5:03am UTC](https://discourse.julialang.org/t/explain-generators/109573 "2024-02-02T05:03:45Z")

</div>

I am trying to understand how to implement a simple generator so that I can traverse my graphs in different ways. It boils down to the example below. In Lua - which I come from - it works without any ado, but in Julia it…

---

## [Understanding \`Flux.Data.DataLoader\` when training an LSTM model](https://discourse.julialang.org/t/understanding-flux-data-dataloader-when-training-an-lstm-model/109581)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 1\
**Last updated:** [February 2, 2024, 3:34am UTC](https://discourse.julialang.org/t/understanding-flux-data-dataloader-when-training-an-lstm-model/109581 "2024-02-02T03:34:36Z")

</div>

Hello, folks For a while I have been playing with Flux.jl to learn how to put together ML models, train them, and use them for predictive tasks. At the moment, I am stuck with the training stage of an LSTM model. Probl…

---

## [Is it fine to download artifacts from Github for bisecting changes in Julia?](https://discourse.julialang.org/t/is-it-fine-to-download-artifacts-from-github-for-bisecting-changes-in-julia/109159)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 5\
**Last updated:** [February 2, 2024, 12:14am UTC](https://discourse.julialang.org/t/is-it-fine-to-download-artifacts-from-github-for-bisecting-changes-in-julia/109159 "2024-02-02T00:14:24Z")

</div>

Regarding bisecting changes in the Julia implementation (usually on the master branch), I feel like people usually build each commit locally while bisecting? Is there a good reason for doing that, instead of just downloa…

---

## [\[ANN\] MutableArgumentContracts.jl (experimental, not yet registered)](https://discourse.julialang.org/t/ann-mutableargumentcontracts-jl-experimental-not-yet-registered/109488)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 23\
**Last updated:** [February 1, 2024, 11:45pm UTC](https://discourse.julialang.org/t/ann-mutableargumentcontracts-jl-experimental-not-yet-registered/109488 "2024-02-01T23:45:52Z")

</div>

foo!(x, y, z) By convention, the ! suffix indicates the function is mutating one or more arguments. But which argument is being mutated? Just the first, as is convention? What if it’s more? For a while I had a thought …

---

## [Options for trimming precompile caches of third-party dependencies](https://discourse.julialang.org/t/options-for-trimming-precompile-caches-of-third-party-dependencies/109598)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 0\
**Last updated:** [February 1, 2024, 11:24pm UTC](https://discourse.julialang.org/t/options-for-trimming-precompile-caches-of-third-party-dependencies/109598 "2024-02-01T23:24:19Z")

</div>

I haven’t ran into a situation where it’d be significantly useful to load less from third-party packages, but is it at all possible to trim their precompile caches to only what my package needs without going as far as fo…

---

## [Double checking there is no multi-threaded dense x sparse matmul implementation](https://discourse.julialang.org/t/double-checking-there-is-no-multi-threaded-dense-x-sparse-matmul-implementation/106619)

<div class="topic-metadata">

**Author:** [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Replies:** 7\
**Last updated:** [February 1, 2024, 9:48pm UTC](https://discourse.julialang.org/t/double-checking-there-is-no-multi-threaded-dense-x-sparse-matmul-implementation/106619 "2024-02-01T21:48:15Z")

</div>

I am in need of having very efficient dense x sparse matmul code, but it seems there is no threaded implementation of this available (only sparse x dense). I therefore wrote my own version, which achieves about 3x speedu…

---

## [How does DifferentialEquations give a continuous curve for plotting?](https://discourse.julialang.org/t/how-does-differentialequations-give-a-continuous-curve-for-plotting/109588)

<div class="topic-metadata">

**Author:** [@MatheusJanczkowski](https://discourse.julialang.org/u/MatheusJanczkowski)\
**Replies:** 1\
**Last updated:** [February 1, 2024, 7:48pm UTC](https://discourse.julialang.org/t/how-does-differentialequations-give-a-continuous-curve-for-plotting/109588 "2024-02-01T19:48:03Z")

</div>

When I plot the solution given by some solver in DifferentialEquations, Tsit5 for instance, it gives a continuous curve (i.e., it has a lot of points). If I plot the points that the solver generated, however, they are ju…

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

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