# Latest

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

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

**Page:** 454

---

## [Julia Language Server fails to start reporting](https://discourse.julialang.org/t/julia-language-server-fails-to-start-reporting/111877)

<div class="topic-metadata">

**Author:** [@blex-max](https://discourse.julialang.org/u/blex-max)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 6:12pm UTC](https://discourse.julialang.org/t/julia-language-server-fails-to-start-reporting/111877 "2024-03-20T18:12:59Z")

</div>

Hello all, I’m using VS code 1.84.1 to use Julia 1.2.0 with the Julia language support v1.75.2 plugin for VS code. I am connecting to an Ubuntu 18.04 remote server from a Macbook M1 Pro on Sonoma 14.4 via SSH. The langu…

---

## [Convert a number to a byte array](https://discourse.julialang.org/t/convert-a-number-to-a-byte-array/111867)

<div class="topic-metadata">

**Author:** [@robert1](https://discourse.julialang.org/u/robert1)\
**Replies:** 20\
**Last updated:** [March 20, 2024, 5:53pm UTC](https://discourse.julialang.org/t/convert-a-number-to-a-byte-array/111867 "2024-03-20T17:53:15Z")

</div>

how to do it? I’ve been trying to find information for hours. and I don’t understand how to work with bytes ( I’m a C/C++ programmer). NOT WORKING! an example explaining the essence: a = 0x1234 b = Array{UInt8}(undef…

---

## [Problem with coc vim and julia server (MacOS)](https://discourse.julialang.org/t/problem-with-coc-vim-and-julia-server-macos/89512)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 5\
**Last updated:** [March 20, 2024, 4:38pm UTC](https://discourse.julialang.org/t/problem-with-coc-vim-and-julia-server-macos/89512 "2024-03-20T16:38:23Z")

</div>

I tried to add an autocompletion for vim but the language server crashed every time i open a julia file, this is the error i got when i open:CocInfo ## versions vim version: NVIM v0.7.0 node version: v18.11.0 coc.nvim …

---

## [Create animation from images previously created with Javis or Luxor?](https://discourse.julialang.org/t/create-animation-from-images-previously-created-with-javis-or-luxor/111708)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 3:49pm UTC](https://discourse.julialang.org/t/create-animation-from-images-previously-created-with-javis-or-luxor/111708 "2024-03-20T15:49:46Z")

</div>

Hello All, as far as I understand creating an animation with Javis (or Luxor) always starts from the “outside” with specifying the number of frames that shall constitute the resulting animation and then calling a drawin…

---

## [Can I use eachrow, eachcol, etc. to change array's values?](https://discourse.julialang.org/t/can-i-use-eachrow-eachcol-etc-to-change-arrays-values/111834)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 9\
**Last updated:** [March 20, 2024, 3:01pm UTC](https://discourse.julialang.org/t/can-i-use-eachrow-eachcol-etc-to-change-arrays-values/111834 "2024-03-20T15:01:00Z")

</div>

Can I use eachrow, eachcol, etc. to change array’s values? For example, x = rand(5, 5) for c in eachcol(x) for el in c if el \< maximum(x)/2 el = 0.0 end end end display(x) does noth…

---

## [Deprecate pyjulia in favor of (py)juliacall?](https://discourse.julialang.org/t/deprecate-pyjulia-in-favor-of-py-juliacall/111634)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 12\
**Last updated:** [March 20, 2024, 2:42pm UTC](https://discourse.julialang.org/t/deprecate-pyjulia-in-favor-of-py-juliacall/111634 "2024-03-20T14:42:33Z")

</div>

@MilesCranmer has put together a pull request to start directing folks to juliacall, the Python counter part of PythonCall.jl, from pyjulia. As we start down this road, I would like to start planning for the deprecati…

---

## [JuMP reduced\_cost questions](https://discourse.julialang.org/t/jump-reduced-cost-questions/111484)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 10\
**Last updated:** [March 20, 2024, 2:31pm UTC](https://discourse.julialang.org/t/jump-reduced-cost-questions/111484 "2024-03-20T14:31:20Z")

</div>

Hi, can anyone please help me with some questions on reduced\_cost in JuMP? Thank you! toym = Model(() -\> Gurobi.Optimizer(GRB\_ENV)) @variable(toym, 0 \<= toyx\[1:4\] \<= 1) @constraint(toym, toyx\[1\]+toyx\[2\] \<= 1) @constrain…

---

## [Performance of struct](https://discourse.julialang.org/t/performance-of-struct/111873)

<div class="topic-metadata">

**Author:** [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 1:17pm UTC](https://discourse.julialang.org/t/performance-of-struct/111873 "2024-03-20T13:17:57Z")

</div>

Hi! I read performance tip of struct in julia manual. https://docs.julialang.org/en/v1/manual/performance-tips/#Avoid-fields-with-abstract-type According to my understanding, performance can be increased by parameteri…

---

## [Animating a graph changing edge colors](https://discourse.julialang.org/t/animating-a-graph-changing-edge-colors/111782)

<div class="topic-metadata">

**Author:** [@qotsalo](https://discourse.julialang.org/u/qotsalo)\
**Replies:** 7\
**Last updated:** [March 20, 2024, 11:26am UTC](https://discourse.julialang.org/t/animating-a-graph-changing-edge-colors/111782 "2024-03-20T11:26:33Z")

</div>

Hi there, I want to animate some simple graphs with changing colors in their edges. I thought it would be simple but I am definitely not a Julia expert and I am a bit stuck. I tried animating just the color of a single…

---

## [Filterslices or selectslices](https://discourse.julialang.org/t/filterslices-or-selectslices/111746)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 11:06am UTC](https://discourse.julialang.org/t/filterslices-or-selectslices/111746 "2024-03-20T11:06:11Z")

</div>

Are there functions like filterslices or selectslices to do the below. X =\[ 1 1 1 1 1 missing 1 1 1 missing missing 1 1 1 1 missing \] i = maps…

---

## [Difference in microbenchmark result, Chairmarks.jl vs BenchmarkTools.jl](https://discourse.julialang.org/t/difference-in-microbenchmark-result-chairmarks-jl-vs-benchmarktools-jl/111656)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 8\
**Last updated:** [March 20, 2024, 11:03am UTC](https://discourse.julialang.org/t/difference-in-microbenchmark-result-chairmarks-jl-vs-benchmarktools-jl/111656 "2024-03-20T11:03:40Z")

</div>

Hi all. I am using BenchmarkTools.jl and Chairmarks.jl to compare the performance of the following (hopefully) mathematically equivalent expressions, to see if they are computationally equivalent. The results are as foll…

---

## [Iterating an action over fields of tuples with similar structure](https://discourse.julialang.org/t/iterating-an-action-over-fields-of-tuples-with-similar-structure/111806)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 10:56am UTC](https://discourse.julialang.org/t/iterating-an-action-over-fields-of-tuples-with-similar-structure/111806 "2024-03-20T10:56:41Z")

</div>

Dear all, I’m trying to find a way to repeat an operation over the fields of tuples, which have consistent size. For example, let’s consider the sum A = B + C, but applied to each field of a tuple. let size1 = (10…

---

## [Prototype Julia Launcher via Zig](https://discourse.julialang.org/t/prototype-julia-launcher-via-zig/111802)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 9\
**Last updated:** [March 20, 2024, 9:44am UTC](https://discourse.julialang.org/t/prototype-julia-launcher-via-zig/111802 "2024-03-20T09:44:10Z")

</div>

At times, I have just wanted a small executable to launch Julia with some particular command line options and a few initial commands. This task could easily be done by a shell script, but I did not want to depend on a p…

---

## [Determine whether column generation heuristic is optimal?](https://discourse.julialang.org/t/determine-whether-column-generation-heuristic-is-optimal/111857)

<div class="topic-metadata">

**Author:** [@Carl\_Baier](https://discourse.julialang.org/u/Carl_Baier)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 9:22am UTC](https://discourse.julialang.org/t/determine-whether-column-generation-heuristic-is-optimal/111857 "2024-03-20T09:22:51Z")

</div>

Hi, i am currently working on a machine scheduling problem formulated as MILP and trying to solve it with Column Generation. Since I do not use Branch-n-Price, but only Column Generation as heuristic, it can happen that …

---

## [The Nonlinear Dame: A Case for NonlinearSolve.jl](https://discourse.julialang.org/t/the-nonlinear-dame-a-case-for-nonlinearsolve-jl/111856)

<div class="topic-metadata">

**Author:** [@R.T.A.M](https://discourse.julialang.org/u/R.T.A.M)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 9:06am UTC](https://discourse.julialang.org/t/the-nonlinear-dame-a-case-for-nonlinearsolve-jl/111856 "2024-03-20T09:06:58Z")

</div>

Having just watched the GTC2024 keynote, I was wondering about how an AI would be able to explain julia packages in an engaging style, so I tried the Google Gemini Prompt: “Write a tutorial about NonlinearSolve.jl in th…

---

## [JSON3 to struct, how to improve deserialization performance?](https://discourse.julialang.org/t/json3-to-struct-how-to-improve-deserialization-performance/111667)

<div class="topic-metadata">

**Author:** [@Babiole](https://discourse.julialang.org/u/Babiole)\
**Replies:** 6\
**Last updated:** [March 20, 2024, 8:39am UTC](https://discourse.julialang.org/t/json3-to-struct-how-to-improve-deserialization-performance/111667 "2024-03-20T08:39:55Z")

</div>

Hi, I’m trying to create an application to distribute, this application is loading a JSON configuration file. Since I wanted a one to one binding between the application data and the JSON I’m using the JSON3 package. H…

---

## [CSC kills the prospect of multithreading. Shouldn't Julia use CSR?](https://discourse.julialang.org/t/csc-kills-the-prospect-of-multithreading-shouldnt-julia-use-csr/102491)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 47\
**Last updated:** [March 20, 2024, 7:37am UTC](https://discourse.julialang.org/t/csc-kills-the-prospect-of-multithreading-shouldnt-julia-use-csr/102491 "2024-03-20T07:37:55Z")

</div>

I recently did a rather extensive study of performance of matrix-vector (SpMV) products of sparse matrices with several different storage formats. Although I started benchmarking things in Julia, as usual, I eventually t…

---

## [HCubature convergence](https://discourse.julialang.org/t/hcubature-convergence/111840)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 3\
**Last updated:** [March 20, 2024, 7:22am UTC](https://discourse.julialang.org/t/hcubature-convergence/111840 "2024-03-20T07:22:29Z")

</div>

I do not understand why HCubature.jl v1.6.0 makes two different estimates of the error E (HCubature.jl/src/HCubature.jl at master · JuliaMath/HCubature.jl · GitHub) for the following two versions of the integrand: using…

---

## [Integer type promotion behavior](https://discourse.julialang.org/t/integer-type-promotion-behavior/111848)

<div class="topic-metadata">

**Author:** [@byun6jae](https://discourse.julialang.org/u/byun6jae)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 6:25am UTC](https://discourse.julialang.org/t/integer-type-promotion-behavior/111848 "2024-03-20T06:25:21Z")

</div>

I just started learning Julia. I know a bit of Python and R. I have a (probably) simple question about integer type promotion behavior of Julia. julia\> versioninfo() Julia Version 1.10.1 Commit 7790d6f064 (2024-02-13…

---

## [Constraint using a constant - Broadcast Syntax Error](https://discourse.julialang.org/t/constraint-using-a-constant-broadcast-syntax-error/111855)

<div class="topic-metadata">

**Author:** [@IgorESMelo](https://discourse.julialang.org/u/IgorESMelo)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 3:59am UTC](https://discourse.julialang.org/t/constraint-using-a-constant-broadcast-syntax-error/111855 "2024-03-20T03:59:24Z")

</div>

Hello everyone, I have some doubts about how to create constraints using a constant value. For example, let’s take the code below. using JuMP, Gurobi function solve() #Decision variables @variable(model, x\[…

---

## [Gurobi convex optimization](https://discourse.julialang.org/t/gurobi-convex-optimization/111850)

<div class="topic-metadata">

**Author:** [@tardis438](https://discourse.julialang.org/u/tardis438)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 2:35am UTC](https://discourse.julialang.org/t/gurobi-convex-optimization/111850 "2024-03-20T02:35:14Z")

</div>

I am using Gurobi and JuMP to solve a fairly simple convex optimization problem but I am a newbie and don’t know the right syntax. I want to solve (N is a fixed and known integer (eg 100)) \\min \\sum\_{i=1}^{N} (-log x\[i…

---

## [How to pass the domain of a variable to a function in a general manner?](https://discourse.julialang.org/t/how-to-pass-the-domain-of-a-variable-to-a-function-in-a-general-manner/111824)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 2:17am UTC](https://discourse.julialang.org/t/how-to-pass-the-domain-of-a-variable-to-a-function-in-a-general-manner/111824 "2024-03-20T02:17:19Z")

</div>

I plan to implement some certain algorithm that is designed for a class of some type of optimization problems with one of whose decision variables x required to be in the domain F\_x\\subseteq \\mathbb{R}\_+^n. I decide to …

---

## [Weird fluctuation in running time](https://discourse.julialang.org/t/weird-fluctuation-in-running-time/111818)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 1:00am UTC](https://discourse.julialang.org/t/weird-fluctuation-in-running-time/111818 "2024-03-20T01:00:08Z")

</div>

I’ve been observing a weird behaviour with a piece of code I’ve been working on. The running time, as returned by BenchmarkTools, will suddenly jump from around 60ms to over a minute. Once that happens, the running time …

---

## [Strings between fields in struct: Why a valid code](https://discourse.julialang.org/t/strings-between-fields-in-struct-why-a-valid-code/111846)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 11:05pm UTC](https://discourse.julialang.org/t/strings-between-fields-in-struct-why-a-valid-code/111846 "2024-03-19T23:05:30Z")

</div>

In the source of the package SimpleArgParse.jl, the definition of mutable struct ArgumentParser contains field definitions intersperses by strings like the following: struct Foo "x value" x::Int "x name" …

---

## [Losing bytes when reinterpreting](https://discourse.julialang.org/t/losing-bytes-when-reinterpreting/111842)

<div class="topic-metadata">

**Author:** [@ion](https://discourse.julialang.org/u/ion)\
**Replies:** 7\
**Last updated:** [March 19, 2024, 11:09pm UTC](https://discourse.julialang.org/t/losing-bytes-when-reinterpreting/111842 "2024-03-19T23:09:55Z")

</div>

Hi all, I am trying to get data over to C, and I went with a ccall that takes in a buffer from julia. The issue I am having is, the data at teh end of my struct is getting chopped off. @kwdef struct CntlOutput time\_…

---

## [Best-effort deserialize a \`.jls\` file](https://discourse.julialang.org/t/best-effort-deserialize-a-jls-file/111845)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 9:57pm UTC](https://discourse.julialang.org/t/best-effort-deserialize-a-jls-file/111845 "2024-03-19T21:57:44Z")

</div>

I am trying a workaround for precompiling code that is used via PythonCall.jl, involving serializing many method instances in one pass, and precompiling them in another, and serializing the MethodInstance values in betwe…

---

## [Java core developers aspire to make GPU programming in Java as easy as in Julia](https://discourse.julialang.org/t/java-core-developers-aspire-to-make-gpu-programming-in-java-as-easy-as-in-julia/111836)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 2\
**Last updated:** [March 19, 2024, 7:22pm UTC](https://discourse.julialang.org/t/java-core-developers-aspire-to-make-gpu-programming-in-java-as-easy-as-in-julia/111836 "2024-03-19T19:22:56Z")

</div>

GPU programming in Julia received a mention during the Java 22 release stream. Info about the Babylon project: https://openjdk.org/projects/babylon/ https://openjdk.org/projects/babylon/articles/auto-diff https://…

---

## [Using \`HomotopyContinuation.jl\` to find the roots of systems that include sin and cosine functions?](https://discourse.julialang.org/t/using-homotopycontinuation-jl-to-find-the-roots-of-systems-that-include-sin-and-cosine-functions/111799)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 4:32am UTC](https://discourse.julialang.org/t/using-homotopycontinuation-jl-to-find-the-roots-of-systems-that-include-sin-and-cosine-functions/111799 "2024-03-19T04:32:17Z")

</div>

I am new to Homotopy continuation methods, but I understand the basics. While HC was designed for finding the roots of systems of polynomial equations, I was wondering in the method can be used to find the roots of a sys…

---

## [IRCE appreciation and gripes (inductive range check elimination)](https://discourse.julialang.org/t/irce-appreciation-and-gripes-inductive-range-check-elimination/111822)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 3\
**Last updated:** [March 19, 2024, 4:54pm UTC](https://discourse.julialang.org/t/irce-appreciation-and-gripes-inductive-range-check-elimination/111822 "2024-03-19T16:54:47Z")

</div>

IRCE is an LLVM pass that aims to loop unswitch range checks. As such, its goal is to reduce the performance impact of bounds checks – especially missing @inbounds should no longer prevent vectorization. To give a simpl…

---

## [Axis label rotation in Makie LScene](https://discourse.julialang.org/t/axis-label-rotation-in-makie-lscene/111832)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 4:54pm UTC](https://discourse.julialang.org/t/axis-label-rotation-in-makie-lscene/111832 "2024-03-19T16:54:32Z")

</div>

Hi all, after a long journey in the Makie doc, Beautiful Makie website and Julia discourse, I decided to post my question. When playing with LScene, we can easily get the following visualization Code to reproduce the…

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

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