# Latest

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

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

**Page:** 292

---

## [Language Server is lagging sometimes](https://discourse.julialang.org/t/language-server-is-lagging-sometimes/121771)

<div class="topic-metadata">

**Author:** [@DatName](https://discourse.julialang.org/u/DatName)\
**Replies:** 0\
**Last updated:** [October 26, 2024, 3:37am UTC](https://discourse.julialang.org/t/language-server-is-lagging-sometimes/121771 "2024-10-26T03:37:24Z")

</div>

Hello everyone. I have this issue with julia vscode, when after some time after the start of the extension becomes very very slow and barely usable. For example, if I hit ctrl+enter on function definition, I get update…

---

## [In Binary Floating Point, you can multiply without multiplying](https://discourse.julialang.org/t/in-binary-floating-point-you-can-multiply-without-multiplying/121218)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 22\
**Last updated:** [October 25, 2024, 11:47pm UTC](https://discourse.julialang.org/t/in-binary-floating-point-you-can-multiply-without-multiplying/121218 "2024-10-25T23:47:14Z")

</div>

I discovered that In Binary Floating Point, you can multiply without multiplying.

---

## [DataFramesMeta: @rsubset or condition?](https://discourse.julialang.org/t/dataframesmeta-rsubset-or-condition/121763)

<div class="topic-metadata">

**Author:** [@alecStewart1](https://discourse.julialang.org/u/alecStewart1)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 10:39pm UTC](https://discourse.julialang.org/t/dataframesmeta-rsubset-or-condition/121763 "2024-10-25T22:39:08Z")

</div>

Say I have some dataframe where I want to select items by one condition or another that’s a combination. @rsubset df :x == 1 || :x == 2 :y == 3 With the data I’m working with, this returns matches of the 2nd clause and…

---

## [Simple optimizer?](https://discourse.julialang.org/t/simple-optimizer/121744)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [October 25, 2024, 9:54pm UTC](https://discourse.julialang.org/t/simple-optimizer/121744 "2024-10-25T21:54:48Z")

</div>

I have the following equation: res = c1 \* v\_app \* u\_s + c2/v\_app \* sin(psi) \* cos(beta) - psi\_dot and I want to determine the constants c1 and c2 based on measurements such that the the sum of res² over all measurement…

---

## [Language server - "Missing references" in files included in an examples folder](https://discourse.julialang.org/t/language-server-missing-references-in-files-included-in-an-examples-folder/121584)

<div class="topic-metadata">

**Author:** [@lieskjur](https://discourse.julialang.org/u/lieskjur)\
**Replies:** 11\
**Last updated:** [October 25, 2024, 7:39pm UTC](https://discourse.julialang.org/t/language-server-missing-references-in-files-included-in-an-examples-folder/121584 "2024-10-25T19:39:12Z")

</div>

Hi, I am developing a package to which I have added an example folder including some additional dependencies in a separate Project.toml file. The overall structure looks more or less like ├── examples │ ├── first\_exam…

---

## [Bug in copy!(z,view(x,2,:)')?](https://discourse.julialang.org/t/bug-in-copy-z-view-x-2/121753)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 7\
**Last updated:** [October 25, 2024, 6:51pm UTC](https://discourse.julialang.org/t/bug-in-copy-z-view-x-2/121753 "2024-10-25T18:51:32Z")

</div>

Hi, I am buffled by what copy!(z,view(x,1,:)') does. Seems off. Example: x = \[11 12;111 112\] #to read from y = \[ones(1,2)\*1,ones(1,2)\*2\] #2-vector of matrices, to be pushed to z = zeros(1,2) …

---

## [Reading responses to ANSI escape codes](https://discourse.julialang.org/t/reading-responses-to-ansi-escape-codes/44572)

<div class="topic-metadata">

**Author:** [@simonschoelly](https://discourse.julialang.org/u/simonschoelly)\
**Replies:** 7\
**Last updated:** [October 25, 2024, 6:32pm UTC](https://discourse.julialang.org/t/reading-responses-to-ansi-escape-codes/44572 "2024-10-25T18:32:10Z")

</div>

When writing an ANSI escape code to the console like this: julia\> print(stdout, "\\033\[14t"); One gets an answer back that is also written to the console. In this case we get ^\[\[4;1012;1419t which is the width and hei…

---

## [Small integer programming problem](https://discourse.julialang.org/t/small-integer-programming-problem/121647)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 27\
**Last updated:** [October 25, 2024, 5:49pm UTC](https://discourse.julialang.org/t/small-integer-programming-problem/121647 "2024-10-25T17:49:58Z")

</div>

I have a seemingly simple integer programming problem that I need a hard-coded algorithm for. Having this would help solve an issue in base Julia—interpreting floating point ranges fully correctly, if you can believe it.…

---

## [Different ways of declaring the same StepRangeLen are not equivalent](https://discourse.julialang.org/t/different-ways-of-declaring-the-same-steprangelen-are-not-equivalent/121750)

<div class="topic-metadata">

**Author:** [@Jacques\_Cornec](https://discourse.julialang.org/u/Jacques_Cornec)\
**Replies:** 5\
**Last updated:** [October 25, 2024, 4:58pm UTC](https://discourse.julialang.org/t/different-ways-of-declaring-the-same-steprangelen-are-not-equivalent/121750 "2024-10-25T16:58:48Z")

</div>

Hey everyone, This is my first post on here. I will do my best to follow the posted guidelines, but please let me know if I should change anything. I noticed something slightly odd about the range function. Here is a m…

---

## [Rule of thumb to estimate theoretical lower bound on benchmarks?](https://discourse.julialang.org/t/rule-of-thumb-to-estimate-theoretical-lower-bound-on-benchmarks/121509)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 4\
**Last updated:** [October 25, 2024, 4:41pm UTC](https://discourse.julialang.org/t/rule-of-thumb-to-estimate-theoretical-lower-bound-on-benchmarks/121509 "2024-10-25T16:41:32Z")

</div>

I have a somewhat complex inner loop (I can share if needed but I am looking for general rules here) that benchmarks at 200-800 ns with no allocations. A range makes sense, it depends on which conditionals are randomly u…

---

## [Bounds check performance](https://discourse.julialang.org/t/bounds-check-performance/121741)

<div class="topic-metadata">

**Author:** [@shatanzikou](https://discourse.julialang.org/u/shatanzikou)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 4:11pm UTC](https://discourse.julialang.org/t/bounds-check-performance/121741 "2024-10-25T16:11:40Z")

</div>

The SciML Style guide reads that in Julia after ver1.9, bounds check will reduce performance. But I didn’t see others recommended this, there is no performance reducing in my test. I want to know why it is not recommende…

---

## [What is the preferred way to use multiple files?](https://discourse.julialang.org/t/what-is-the-preferred-way-to-use-multiple-files/30687)

<div class="topic-metadata">

**Author:** [@EvgeniyMist](https://discourse.julialang.org/u/EvgeniyMist)\
**Replies:** 15\
**Last updated:** [October 25, 2024, 3:06pm UTC](https://discourse.julialang.org/t/what-is-the-preferred-way-to-use-multiple-files/30687 "2024-10-25T15:06:59Z")

</div>

I wanted to structure my code by dividing it into several files. But I ran into some problem. So, in its simplest form, I have 3 files: main.jl module main include("structs.jl") include("functions.jl") first\_point =…

---

## [Is there a way to force a wrong dispatch for test purposes?](https://discourse.julialang.org/t/is-there-a-way-to-force-a-wrong-dispatch-for-test-purposes/121743)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [October 25, 2024, 2:21pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-force-a-wrong-dispatch-for-test-purposes/121743 "2024-10-25T14:21:13Z")

</div>

Hi, Suppose I have two classes and a function as follows: abstract struct A end struct B\<:A end and then the function f(x::A) = true f(x::B) = true The function is supposed to return the same thing in both cases, th…

---

## [What does \`include\` do?](https://discourse.julialang.org/t/what-does-include-do/121699)

<div class="topic-metadata">

**Author:** [@anon91151494](https://discourse.julialang.org/u/anon91151494)\
**Replies:** 27\
**Last updated:** [October 25, 2024, 1:51pm UTC](https://discourse.julialang.org/t/what-does-include-do/121699 "2024-10-25T13:51:39Z")

</div>

There have been questions about this before, but so far none of them have provided an answer at the level of detail I have been looking for. My current understanding is that include is not a simple text substitution/rep…

---

## [Error using example for NeuralODE](https://discourse.julialang.org/t/error-using-example-for-neuralode/121697)

<div class="topic-metadata">

**Author:** [@agme2014](https://discourse.julialang.org/u/agme2014)\
**Replies:** 4\
**Last updated:** [October 25, 2024, 1:45pm UTC](https://discourse.julialang.org/t/error-using-example-for-neuralode/121697 "2024-10-25T13:45:53Z")

</div>

Getting an error in the last optimization step : result\_neuralode2 = Optimization.solve( optprob2, Optim.BFGS(; initial\_stepnorm = 0.01); callback, allow\_f\_increases = false) \*\*Error message : \*\* \*\*ERROR: Output …

---

## [Add unregistered package to CI](https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 8:28am UTC](https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720 "2024-10-25T08:28:29Z")

</div>

I would like to run CI with an unregistered package, or a package that is registered to an alternative registry via LocalRegistry.jl. To do something similar with Documenter.jl, I added something like this to the yml fil…

---

## [Problem with installing Julia/notebooks for a course](https://discourse.julialang.org/t/problem-with-installing-julia-notebooks-for-a-course/121540)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 10\
**Last updated:** [October 25, 2024, 6:53am UTC](https://discourse.julialang.org/t/problem-with-installing-julia-notebooks-for-a-course/121540 "2024-10-25T06:53:47Z")

</div>

Hi all, I have been using Julia for most of my course over the last 5 years. The students usually install VScode + Julia on their own machines and then the course mostly relies on notebooks. Habitually, things go smooth…

---

## [Makie control heatmaps of volumeslices](https://discourse.julialang.org/t/makie-control-heatmaps-of-volumeslices/121696)

<div class="topic-metadata">

**Author:** [@trasor](https://discourse.julialang.org/u/trasor)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 6:43am UTC](https://discourse.julialang.org/t/makie-control-heatmaps-of-volumeslices/121696 "2024-10-25T06:43:36Z")

</div>

Hello everyone. I try to use Makie to plot heatmap slices though a volume with their volumeslices functionality: volumeslices | Makie However, i am unable to control the positions or the numbers of the slices: using C…

---

## [\--project=. no longer works, and gives fatal error because of ENOENT. Why?](https://discourse.julialang.org/t/project-no-longer-works-and-gives-fatal-error-because-of-enoent-why/121704)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 6\
**Last updated:** [October 25, 2024, 12:18am UTC](https://discourse.julialang.org/t/project-no-longer-works-and-gives-fatal-error-because-of-enoent-why/121704 "2024-10-25T00:18:24Z")

</div>

$ ~/.julia/environments/v1.11/.CondaPkg/env/bin$ pwd /home/pharaldsson/.julia/environments/v1.11/.CondaPkg/env/bin there pwd works but not here: $ julia +1.11.1 julia\> pwd() ERROR: IOError: pwd(): no such file or dire…

---

## [What can I remove from /.julia?](https://discourse.julialang.org/t/what-can-i-remove-from-julia/121657)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 6\
**Last updated:** [October 24, 2024, 11:50pm UTC](https://discourse.julialang.org/t/what-can-i-remove-from-julia/121657 "2024-10-24T23:50:00Z")

</div>

I am trying to build a slim docker image to run an app. I’m using PackageCompiler.jl to build a sysimage (using filter\_stdlibs). I’d like to remove unnecessary files from the .julia file to slim even more. I feel pretty…

---

## [Calculating convex hulls through LP](https://discourse.julialang.org/t/calculating-convex-hulls-through-lp/121681)

<div class="topic-metadata">

**Author:** [@joaoqcouto](https://discourse.julialang.org/u/joaoqcouto)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 9:39pm UTC](https://discourse.julialang.org/t/calculating-convex-hulls-through-lp/121681 "2024-10-24T21:39:54Z")

</div>

Hello, I am currently working on a problem in which I need to calculate multiple convex hulls for large datasets, as the following image shows: Two things to note: I don’t need adjacency information, simply knowing…

---

## [Shortest Path from contour plot?](https://discourse.julialang.org/t/shortest-path-from-contour-plot/121719)

<div class="topic-metadata">

**Author:** [@sophibug](https://discourse.julialang.org/u/sophibug)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 9:33pm UTC](https://discourse.julialang.org/t/shortest-path-from-contour-plot/121719 "2024-10-24T21:33:21Z")

</div>

Putting this in general usage, because I’m applying it to chemistry, but shortest path is a frequent problem. I have a 2D potential energy surface of a molecule as two of its axes rotate, formatted for a contour plot. I…

---

## [Clear memory after using plot!(...)](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690)

<div class="topic-metadata">

**Author:** [@EatMyShorts](https://discourse.julialang.org/u/EatMyShorts)\
**Replies:** 23\
**Last updated:** [October 24, 2024, 8:18pm UTC](https://discourse.julialang.org/t/clear-memory-after-using-plot/121690 "2024-10-24T20:18:09Z")

</div>

Hello, is there a simple command for Julia to clear memory after using plot!(…) without having to constantly restart VS Code? Best regards …

---

## [Trying to merge redundant Discourse tags](https://discourse.julialang.org/t/trying-to-merge-redundant-discourse-tags/121427)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 4\
**Last updated:** [October 24, 2024, 7:13pm UTC](https://discourse.julialang.org/t/trying-to-merge-redundant-discourse-tags/121427 "2024-10-24T19:13:16Z")

</div>

There are currently at least three tags relating to the Language Server Protocol: https://discourse.julialang.org/tag/languageserver https://discourse.julialang.org/tag/lsp https://discourse.julialang.org/tag/language…

---

## [Replicating scipy.ndimate.gaussian\_filter keyword "order" to filter image with derivatives of Gaussian](https://discourse.julialang.org/t/replicating-scipy-ndimate-gaussian-filter-keyword-order-to-filter-image-with-derivatives-of-gaussian/121715)

<div class="topic-metadata">

**Author:** [@fsyhantis](https://discourse.julialang.org/u/fsyhantis)\
**Replies:** 0\
**Last updated:** [October 24, 2024, 6:22pm UTC](https://discourse.julialang.org/t/replicating-scipy-ndimate-gaussian-filter-keyword-order-to-filter-image-with-derivatives-of-gaussian/121715 "2024-10-24T18:22:29Z")

</div>

I am trying to convert a Python script to Julia, using the package Images. To compute the Gaussian filtered gradient of images, the python scipy use scipy.ndimage.gaussian\_filter(img, σ, order=(1,0)) and scipy.ndimage.ga…

---

## [\[ANN\] PairwiseMappingFormat.jl](https://discourse.julialang.org/t/ann-pairwisemappingformat-jl/121714)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 0\
**Last updated:** [October 24, 2024, 5:45pm UTC](https://discourse.julialang.org/t/ann-pairwisemappingformat-jl/121714 "2024-10-24T17:45:33Z")

</div>

The newest BioJulia package has just been merged to the General Registry: PairwiseMappingFormat.jl. This package provide a parser for PAF (Pairwise mApping Format) files, which are used by some aligners such as minimap2…

---

## [How to save output of REPL terminal in VS code](https://discourse.julialang.org/t/how-to-save-output-of-repl-terminal-in-vs-code/121709)

<div class="topic-metadata">

**Author:** [@agme2014](https://discourse.julialang.org/u/agme2014)\
**Replies:** 1\
**Last updated:** [October 24, 2024, 3:56pm UTC](https://discourse.julialang.org/t/how-to-save-output-of-repl-terminal-in-vs-code/121709 "2024-10-24T15:56:26Z")

</div>

Hi, I am working with the neuralODE examples and I see the loss values getting outputted in the REPL Terminal of VSCode. Is there any way to write all of the output into a file ? I checked the forum but could not find…

---

## [@profile slows down MPI?](https://discourse.julialang.org/t/profile-slows-down-mpi/121700)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 0\
**Last updated:** [October 24, 2024, 2:10pm UTC](https://discourse.julialang.org/t/profile-slows-down-mpi/121700 "2024-10-24T14:10:33Z")

</div>

Is anybody else having problems when trying to @profile an MPI program? I seem to find that when I add @profile my code slows down a lot, with a load of time being spent in MPI calls (a lot more than I would expect). I t…

---

## [CUDA Error : ArgumentError: Objects are on devices with different types: CPUDevice and CUDADevice](https://discourse.julialang.org/t/cuda-error-argumenterror-objects-are-on-devices-with-different-types-cpudevice-and-cudadevice/121651)

<div class="topic-metadata">

**Author:** [@agme2014](https://discourse.julialang.org/u/agme2014)\
**Replies:** 4\
**Last updated:** [October 23, 2024, 6:11pm UTC](https://discourse.julialang.org/t/cuda-error-argumenterror-objects-are-on-devices-with-different-types-cpudevice-and-cudadevice/121651 "2024-10-23T18:11:49Z")

</div>

Hi, I am trying to use CUDA to speed up my code. I am running into an error at the last step, where optimization is used for the iterations This is the message I am getting : ERROR: ArgumentError: Objects are on device…

---

## [Eigvals of symmetric matrix](https://discourse.julialang.org/t/eigvals-of-symmetric-matrix/121672)

<div class="topic-metadata">

**Author:** [@Daniel\_Scheinerman](https://discourse.julialang.org/u/Daniel_Scheinerman)\
**Replies:** 3\
**Last updated:** [October 24, 2024, 1:17pm UTC](https://discourse.julialang.org/t/eigvals-of-symmetric-matrix/121672 "2024-10-24T13:17:21Z")

</div>

Within numpy in python there is the function np.linalg.eigvalsh which computes the eigenvalues of a hermetian matrix. It speeds up the computation of the eigenvalues when the matrix is symmetric. I just did a quick test …

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

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