# Latest

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

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

**Page:** 406

---

## [Help testing Julia tree-sitter mode in Emacs](https://discourse.julialang.org/t/help-testing-julia-tree-sitter-mode-in-emacs/92819)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 41\
**Last updated:** [May 21, 2024, 7:09pm UTC](https://discourse.julialang.org/t/help-testing-julia-tree-sitter-mode-in-emacs/92819 "2024-05-21T19:09:44Z")

</div>

Hi! I, together with @Elrod, @non-Jedi, and @Tamas\_Papp, are developing a new Julia major mode for Emacs powered by tree-sitter, using the already available Julia grammar here: GitHub - tree-sitter/tree-sitter-julia: Ju…

---

## [Alt-del to remove a word to the left in the REPL](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517)

<div class="topic-metadata">

**Author:** [@1m1](https://discourse.julialang.org/u/1m1)\
**Replies:** 7\
**Last updated:** [May 21, 2024, 5:12pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517 "2024-05-21T17:12:19Z")

</div>

the macOS terminal has this feature and it is very useful

---

## [Change of variables in ModelingToolkit.jl](https://discourse.julialang.org/t/change-of-variables-in-modelingtoolkit-jl/114354)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 10\
**Last updated:** [May 21, 2024, 4:51pm UTC](https://discourse.julialang.org/t/change-of-variables-in-modelingtoolkit-jl/114354 "2024-05-21T16:51:45Z")

</div>

Hi, I am trying to estimate the parameters of a simple RC network in ModelingToolkit.jl. The voltage over C can be defined by the following ODE: \\frac{dT\_i}{dt} = \\Phi\_h(t) + \\frac{T\_a(t) - T\_i(t)}{C\_i R\_{ia}} Est…

---

## [Registration merge blocked](https://discourse.julialang.org/t/registration-merge-blocked/114518)

<div class="topic-metadata">

**Author:** [@Jean\_Michel](https://discourse.julialang.org/u/Jean_Michel)\
**Replies:** 8\
**Last updated:** [May 21, 2024, 3:48pm UTC](https://discourse.julialang.org/t/registration-merge-blocked/114518 "2024-05-21T15:48:40Z")

</div>

While trying to register a new version of my package LaurentPolynomials, I got an unexpected message. After the usual Your new version pull request met all of the guidelines for auto-merging and is scheduled to be mer…

---

## [Should @objective be replaced by @NLobjective in JuMP documentation?](https://discourse.julialang.org/t/should-objective-be-replaced-by-nlobjective-in-jump-documentation/113500)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 3:45pm UTC](https://discourse.julialang.org/t/should-objective-be-replaced-by-nlobjective-in-jump-documentation/113500 "2024-05-21T15:45:49Z")

</div>

Hello, I’m currently reading the introductory section of the JuMP documentation and observed in the examples for the non-linear problems, that the macros @objective and @constraints are used. If I run these examples I g…

---

## [Conditional counting of array elements of mixed types](https://discourse.julialang.org/t/conditional-counting-of-array-elements-of-mixed-types/114516)

<div class="topic-metadata">

**Author:** [@ssrrii](https://discourse.julialang.org/u/ssrrii)\
**Replies:** 6\
**Last updated:** [May 21, 2024, 3:22pm UTC](https://discourse.julialang.org/t/conditional-counting-of-array-elements-of-mixed-types/114516 "2024-05-21T15:22:03Z")

</div>

I am analyzing arrays (vectors) that have a mix of strings and numbers. The strings are the same, namely “N.A.” (as a result from some test). The rest of the elements are numbers of which I would like to count how many …

---

## [Developing package CompatHelper: The requested URL returned error: 403](https://discourse.julialang.org/t/developing-package-compathelper-the-requested-url-returned-error-403/99881)

<div class="topic-metadata">

**Author:** [@KKesgin](https://discourse.julialang.org/u/KKesgin)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 2:43pm UTC](https://discourse.julialang.org/t/developing-package-compathelper-the-requested-url-returned-error-403/99881 "2024-05-21T14:43:15Z")

</div>

Hi All, I’m trying to add a package for the general registry for a research work I’m about to publish. I tried following the guidelines for developing packages but I’ve been having numerous issues. The main one I’m stuc…

---

## [Struct with property based on other properties](https://discourse.julialang.org/t/struct-with-property-based-on-other-properties/93181)

<div class="topic-metadata">

**Author:** [@Eveee](https://discourse.julialang.org/u/Eveee)\
**Replies:** 7\
**Last updated:** [May 21, 2024, 2:03pm UTC](https://discourse.julialang.org/t/struct-with-property-based-on-other-properties/93181 "2024-05-21T14:03:39Z")

</div>

Hi all, I am learning to use structs in Julia, specifically I have a set of integers that I would like to access throughout some calculations: struct MyNumbers a::Int64 b::Int64 c=a+b end However, the assignm…

---

## [Problem in integrating Agents.jl and DifferentialEquations.jl](https://discourse.julialang.org/t/problem-in-integrating-agents-jl-and-differentialequations-jl/114510)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [May 21, 2024, 1:59pm UTC](https://discourse.julialang.org/t/problem-in-integrating-agents-jl-and-differentialequations-jl/114510 "2024-05-21T13:59:55Z")

</div>

Hello, Everyone Im running this example from Agents.jl page – example. I’m getting Error as shown below. It will be really helpful if someone can help me out here as its extracted directly from website. I will expect it …

---

## [Passing a function over vectors as an argument to ccall](https://discourse.julialang.org/t/passing-a-function-over-vectors-as-an-argument-to-ccall/114487)

<div class="topic-metadata">

**Author:** [@brunompacheco](https://discourse.julialang.org/u/brunompacheco)\
**Replies:** 3\
**Last updated:** [May 21, 2024, 1:55pm UTC](https://discourse.julialang.org/t/passing-a-function-over-vectors-as-an-argument-to-ccall/114487 "2024-05-21T13:55:37Z")

</div>

I am not being able to properly pass a julia-defined function that takes vector and scalar values to C-defined functions. I have two functions in C EXPORT\_C double apply\_fun\_simple(double (\*fun)(double\*), double\* x) { …

---

## [Group attributes with JLD2](https://discourse.julialang.org/t/group-attributes-with-jld2/114302)

<div class="topic-metadata">

**Author:** [@bmxam](https://discourse.julialang.org/u/bmxam)\
**Replies:** 7\
**Last updated:** [May 21, 2024, 1:26pm UTC](https://discourse.julialang.org/t/group-attributes-with-jld2/114302 "2024-05-21T13:26:51Z")

</div>

I’m starting to use the JLD2.jl package to read an HDF5 file. I am bit confused about the way attributes of Group should be accessed. It seems to me that the parent node of the group is always needed to access the group …

---

## [Define the size of a String variable](https://discourse.julialang.org/t/define-the-size-of-a-string-variable/114474)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 10\
**Last updated:** [May 21, 2024, 12:58pm UTC](https://discourse.julialang.org/t/define-the-size-of-a-string-variable/114474 "2024-05-21T12:58:43Z")

</div>

Hi, I don’t know if it’s possible to pre-allocate a Vector{String} with a fixed number of elements, like: a=Array{String}(undef, 1, 4) but with a fixed length of the strings inside.

---

## [Half installed pakage](https://discourse.julialang.org/t/half-installed-pakage/114234)

<div class="topic-metadata">

**Author:** [@kkj](https://discourse.julialang.org/u/kkj)\
**Replies:** 6\
**Last updated:** [May 21, 2024, 11:56am UTC](https://discourse.julialang.org/t/half-installed-pakage/114234 "2024-05-21T11:56:13Z")

</div>

I was installing DynamicalSystems pakage and during installing due to light failure my system went down and when i rebooted my system again and in julia when i tried to type pkg\>add DynamicalSystems the following messag…

---

## [ERROR: Unsatisfiable requirements detected for package PlotsBase \[c52230a3\]:](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-plotsbase-c52230a3/114390)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 10\
**Last updated:** [May 21, 2024, 11:51am UTC](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-plotsbase-c52230a3/114390 "2024-05-21T11:51:08Z")

</div>

(@v1.7) pkg\> activate clean Activating new project at C:\\Users\\abc\\Desktop\\clean (clean) pkg\> add GitHub - JuliaPlots/Plots.jl: Powerful convenience for Julia visualizations and data analysis Updating git-repo https:/…

---

## [Types must be first defined then called in a module? Why?](https://discourse.julialang.org/t/types-must-be-first-defined-then-called-in-a-module-why/114497)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 7\
**Last updated:** [May 21, 2024, 11:40am UTC](https://discourse.julialang.org/t/types-must-be-first-defined-then-called-in-a-module-why/114497 "2024-05-21T11:40:10Z")

</div>

module MyModule function myfun(t::MyType) println(plusone(t.x)) end struct MyType x::Float64 end function plusone(x) x + 1 end end ERROR: UndefVarError: \`MyType\` not defined

---

## [Support of Rockchip RK3588S NPU](https://discourse.julialang.org/t/support-of-rockchip-rk3588s-npu/89868)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [May 21, 2024, 10:32am UTC](https://discourse.julialang.org/t/support-of-rockchip-rk3588s-npu/89868 "2024-05-21T10:32:20Z")

</div>

A new ARM CPU is available, that is at least three times a powerful as a Raspberry Pi 4. It also has a neural network processing unit, which is supported by Python. Will it also be supported by Julia? What would be neede…

---

## [Which format for my regions/scenario settings?](https://discourse.julialang.org/t/which-format-for-my-regions-scenario-settings/114498)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [May 21, 2024, 8:46am UTC](https://discourse.julialang.org/t/which-format-for-my-regions-scenario-settings/114498 "2024-05-21T08:46:07Z")

</div>

I need to develop a new model where I need to have separate model settings for the definition of the various regions and scenarios within regions… not really the data itself, but the definition of the various dimensions …

---

## ["New to Julia" category is an awkward, almost redundant category](https://discourse.julialang.org/t/new-to-julia-category-is-an-awkward-almost-redundant-category/114489)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 5\
**Last updated:** [May 21, 2024, 8:09am UTC](https://discourse.julialang.org/t/new-to-julia-category-is-an-awkward-almost-redundant-category/114489 "2024-05-21T08:09:33Z")

</div>

“New to Julia” means that you’re new to the Julia programming language. However, it doesn’t really tell you how hard the problems asked would be. Somebody who was an expert in Finite-element analysis, computational biol…

---

## [Error with JLD2 load function](https://discourse.julialang.org/t/error-with-jld2-load-function/114495)

<div class="topic-metadata">

**Author:** [@Kreetta\_Hamalainen](https://discourse.julialang.org/u/Kreetta_Hamalainen)\
**Replies:** 1\
**Last updated:** [May 21, 2024, 8:01am UTC](https://discourse.julialang.org/t/error-with-jld2-load-function/114495 "2024-05-21T08:01:29Z")

</div>

Hi all, New to Julia, and don’t quite know where to start with this error. Happens when trying to reload all parameters including ODE related parameters with JLD2 load() function. Fatal error: ERROR: LoadError: Method…

---

## [Find indices of boundary nodes](https://discourse.julialang.org/t/find-indices-of-boundary-nodes/114493)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 7:53am UTC](https://discourse.julialang.org/t/find-indices-of-boundary-nodes/114493 "2024-05-21T07:53:56Z")

</div>

Given the code foo(x,y) = x+y xvec = range(0,1,length=5) yvec = range(0,1,length=5) fvec = vec(foo.(xvec,yvec')) Q1: how to find indices on fvec that correspond to start/end point of xvec/yvec ? Q2: how to overwrite …

---

## [Vector Database in Julia: bad idea?](https://discourse.julialang.org/t/vector-database-in-julia-bad-idea/97371)

<div class="topic-metadata">

**Author:** [@gvdr](https://discourse.julialang.org/u/gvdr)\
**Replies:** 19\
**Last updated:** [May 21, 2024, 5:00am UTC](https://discourse.julialang.org/t/vector-database-in-julia-bad-idea/97371 "2024-05-21T05:00:40Z")

</div>

Floating an idea: has anybody tried to build a vector database (think Pinecone or Weaviate) in pure Julia? If not, is there a specific reason why it’s a bad idea?

---

## [Adding CUDA.jl dependency to juliacall python package](https://discourse.julialang.org/t/adding-cuda-jl-dependency-to-juliacall-python-package/114072)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 1\
**Last updated:** [May 20, 2024, 10:36pm UTC](https://discourse.julialang.org/t/adding-cuda-jl-dependency-to-juliacall-python-package/114072 "2024-05-20T22:36:25Z")

</div>

I am trying to create a wrapper python package for my Julia library, DistanceTransforms.jl, called PyDTs. This package utilizes rye as the package manager and intends to work with CUDA.jl and PyTorch. Therefore, I am try…

---

## [How to change default number of digits printed for PrettyPrint](https://discourse.julialang.org/t/how-to-change-default-number-of-digits-printed-for-prettyprint/114463)

<div class="topic-metadata">

**Author:** [@freedomjin](https://discourse.julialang.org/u/freedomjin)\
**Replies:** 2\
**Last updated:** [May 20, 2024, 10:02pm UTC](https://discourse.julialang.org/t/how-to-change-default-number-of-digits-printed-for-prettyprint/114463 "2024-05-20T22:02:11Z")

</div>

Hi, I found PrettyPrint.jl quite handy when printing complex data structures, however, for large nested structures, pprint attempts to show all Float values to maximum precision and often overflows entire screen. Is it…

---

## [Normalization before sensitivity analysis](https://discourse.julialang.org/t/normalization-before-sensitivity-analysis/114484)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 2\
**Last updated:** [May 20, 2024, 9:57pm UTC](https://discourse.julialang.org/t/normalization-before-sensitivity-analysis/114484 "2024-05-20T21:57:09Z")

</div>

Hello, I have a very general question: Is normalization necessary before global sensitivity analysis? Let’s say I have a differential equation that takes parameters x\_n. But parameters have widely different range of val…

---

## [\[ANN\] SpatialHashTables.jl](https://discourse.julialang.org/t/ann-spatialhashtables-jl/106553)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 8\
**Last updated:** [May 20, 2024, 7:11pm UTC](https://discourse.julialang.org/t/ann-spatialhashtables-jl/106553 "2024-05-20T19:11:22Z")

</div>

SpatialHashTables.jl (v0.2.0) This package implements a cell list method via spatial hash tables in Julia. The primary aim is to speed up computations of short-range interactions between particles in large particle syst…

---

## [Async hangs with continue](https://discourse.julialang.org/t/async-hangs-with-continue/114472)

<div class="topic-metadata">

**Author:** [@lstagner](https://discourse.julialang.org/u/lstagner)\
**Replies:** 5\
**Last updated:** [May 20, 2024, 5:32pm UTC](https://discourse.julialang.org/t/async-hangs-with-continue/114472 "2024-05-20T17:32:25Z")

</div>

I have a function that listens to a redis stream in a while loop but it hangs and doesnt release back to the REPL. I managed to create a MWE. function foo() i = 0 while true if i==0 continue …

---

## [Gurobi does not display log](https://discourse.julialang.org/t/gurobi-does-not-display-log/114442)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 7\
**Last updated:** [May 20, 2024, 5:20pm UTC](https://discourse.julialang.org/t/gurobi-does-not-display-log/114442 "2024-05-20T17:20:47Z")

</div>

I am using Convex.jl in conjuction with Gurobi in a Jupyter notebook to solve a convex programming problem. Everything works but Gurobi is not displaying its log to the console in “realtime”, but it displays everything a…

---

## [The Problem with Julia that makes me want to leave - First run Times](https://discourse.julialang.org/t/the-problem-with-julia-that-makes-me-want-to-leave-first-run-times/114316)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 52\
**Last updated:** [May 18, 2024, 6:05pm UTC](https://discourse.julialang.org/t/the-problem-with-julia-that-makes-me-want-to-leave-first-run-times/114316 "2024-05-18T18:05:01Z")

</div>

I started my programming journey in Python. A year ago, to create a real-time simulation, I came to know about Julia with its great speed. I used Julia for the first time and I remember the spark of joy I had while mess…

---

## [VSCode errors with user input readline()](https://discourse.julialang.org/t/vscode-errors-with-user-input-readline/75097)

<div class="topic-metadata">

**Author:** [@SebaSharma](https://discourse.julialang.org/u/SebaSharma)\
**Replies:** 5\
**Last updated:** [May 20, 2024, 2:40pm UTC](https://discourse.julialang.org/t/vscode-errors-with-user-input-readline/75097 "2024-05-20T14:40:22Z")

</div>

Hello, I hope you are all doing well I’ve really been enjoying Julia, and it’s been taking the place of Java in my focused language, but I’ve been having some problems with user inputs in VSCode (Vers. 1.63.2 on Windows…

---

## [JuMP: Squared Frobenius norm objective](https://discourse.julialang.org/t/jump-squared-frobenius-norm-objective/114400)

<div class="topic-metadata">

**Author:** [@smallpondtom](https://discourse.julialang.org/u/smallpondtom)\
**Replies:** 5\
**Last updated:** [May 20, 2024, 1:32pm UTC](https://discourse.julialang.org/t/jump-squared-frobenius-norm-objective/114400 "2024-05-20T13:32:32Z")

</div>

Hi. I can’t seem to find a definitive answer so I’m posting here for help. What is the standard and latest way in JuMP to construct an objective function for a Frobenius norm? Say I have a (fictional) minimization of …

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

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