# New to Julia

**URL:** https://discourse.julialang.org/c/first-steps/8.md?page=33

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

**Page:** 34

---

## [Recompilation triggered when re-running function from module](https://discourse.julialang.org/t/recompilation-triggered-when-re-running-function-from-module/120770)

<div class="topic-metadata">

**Author:** [@Rbthn](https://discourse.julialang.org/u/Rbthn)\
**Replies:** 5\
**Last updated:** [October 1, 2024, 1:36pm UTC](https://discourse.julialang.org/t/recompilation-triggered-when-re-running-function-from-module/120770 "2024-10-01T13:36:21Z")

</div>

Hello! I’m relatively new to Julia and have encountered some behavior I cannot explain. In a MWE, I have a function that takes an ODEProblem and algorithm and just calls DiffEq.solve() with these arguments. function my…

---

## [Simple Hybrid Automata](https://discourse.julialang.org/t/simple-hybrid-automata/120732)

<div class="topic-metadata">

**Author:** [@Muhammad\_Arsal](https://discourse.julialang.org/u/Muhammad_Arsal)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 5:23pm UTC](https://discourse.julialang.org/t/simple-hybrid-automata/120732 "2024-09-30T17:23:23Z")

</div>

I want to use jump and guard conditions for my hybrid automata. But it is not working. Can anyone help? using ReachabilityAnalysis, Symbolics # Define the variables: height (x), velocity (v), and time (t) @variables x …

---

## [Documentation for defining hybrid automata](https://discourse.julialang.org/t/documentation-for-defining-hybrid-automata/120719)

<div class="topic-metadata">

**Author:** [@Muhammad\_Arsal](https://discourse.julialang.org/u/Muhammad_Arsal)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 1:14pm UTC](https://discourse.julialang.org/t/documentation-for-defining-hybrid-automata/120719 "2024-09-30T13:14:30Z")

</div>

Hi, I am using reachabiltyanalysis.jl for my work. I want to know if there is any documentation for that. Like there are examples but I am struggling to interpret that. Is there any user manual. Please help me ASAP.

---

## [Finding all arrays of length L that add up to a certain number](https://discourse.julialang.org/t/finding-all-arrays-of-length-l-that-add-up-to-a-certain-number/119932)

<div class="topic-metadata">

**Author:** [@AbhayGupta115](https://discourse.julialang.org/u/AbhayGupta115)\
**Replies:** 11\
**Last updated:** [September 30, 2024, 1:09pm UTC](https://discourse.julialang.org/t/finding-all-arrays-of-length-l-that-add-up-to-a-certain-number/119932 "2024-09-30T13:09:54Z")

</div>

I want to create an array of tuples where each tuple is of length L and the sum of all elements come to a defined number. I do have a solution currently, but it is not scalable till what I need, I get thrown an OutOfMem…

---

## [Volumetric plot?](https://discourse.julialang.org/t/volumetric-plot/119942)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 6\
**Last updated:** [September 29, 2024, 1:27pm UTC](https://discourse.julialang.org/t/volumetric-plot/119942 "2024-09-29T13:27:20Z")

</div>

Hi, I am considering putting some simple volumetric plots in my package. A previous MATLAB version of this project had simple volumetric plots based on Gouraud-shaded 3d triangular meshes with transparency. However, I d…

---

## [Long division algorithm using julia code for school project](https://discourse.julialang.org/t/long-division-algorithm-using-julia-code-for-school-project/119402)

<div class="topic-metadata">

**Author:** [@Shiva\_raj](https://discourse.julialang.org/u/Shiva_raj)\
**Replies:** 6\
**Last updated:** [September 29, 2024, 4:53am UTC](https://discourse.julialang.org/t/long-division-algorithm-using-julia-code-for-school-project/119402 "2024-09-29T04:53:53Z")

</div>

Hi Team, as part of my school project work I am trying to write code for division which also display steps similar to show in image below , but I am not able to display it in a proper way, Need help and support. # Func…

---

## [Immutable types with mutable fields. What do I need to know?](https://discourse.julialang.org/t/immutable-types-with-mutable-fields-what-do-i-need-to-know/119977)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 11\
**Last updated:** [September 28, 2024, 3:01am UTC](https://discourse.julialang.org/t/immutable-types-with-mutable-fields-what-do-i-need-to-know/119977 "2024-09-28T03:01:17Z")

</div>

Say I have an immutable type with some mutable field like: struct S imm::Int64 mut::Base.RefValue{Int64} S(imm, mut) = new(imm, Ref(mut)) end I wanted to define broadcasting on it so it acts like a 0-dimens…

---

## [Optional positional arguments at the begining](https://discourse.julialang.org/t/optional-positional-arguments-at-the-begining/119925)

<div class="topic-metadata">

**Author:** [@Farouk](https://discourse.julialang.org/u/Farouk)\
**Replies:** 4\
**Last updated:** [September 27, 2024, 8:55am UTC](https://discourse.julialang.org/t/optional-positional-arguments-at-the-begining/119925 "2024-09-27T08:55:53Z")

</div>

Hello guys I am not a computer scientist and I am new to Julia, I am using Agents.jl for agent-based simulations. I found this function that adds agents and there are multiple signatures for it to exploit the multi dispa…

---

## [Agents.jl -- layered spaces?](https://discourse.julialang.org/t/agents-jl-layered-spaces/119933)

<div class="topic-metadata">

**Author:** [@pogikano](https://discourse.julialang.org/u/pogikano)\
**Replies:** 0\
**Last updated:** [September 27, 2024, 2:14am UTC](https://discourse.julialang.org/t/agents-jl-layered-spaces/119933 "2024-09-27T02:14:18Z")

</div>

Is it possible to layer various spaces in Agents.jl as can be done in Mason? For example, it is best to simulate herbivorous fish in continuous space, but they could be grazing on algae in a grid, which is the easiest wa…

---

## [Error: IOError: symlink: operation not permitted (EPERM)](https://discourse.julialang.org/t/error-ioerror-symlink-operation-not-permitted-eperm/119872)

<div class="topic-metadata">

**Author:** [@Jesper\_Keijser](https://discourse.julialang.org/u/Jesper_Keijser)\
**Replies:** 4\
**Last updated:** [September 26, 2024, 6:58am UTC](https://discourse.julialang.org/t/error-ioerror-symlink-operation-not-permitted-eperm/119872 "2024-09-26T06:58:23Z")

</div>

Hello, Pretty new to julia, have used it ever so often for school work the last few years, but not very familiar at all. When running the code below I get the error posted below. It is mainly the error stated in the tit…

---

## [How to interactively change attributes of plots in GLMakie?](https://discourse.julialang.org/t/how-to-interactively-change-attributes-of-plots-in-glmakie/119876)

<div class="topic-metadata">

**Author:** [@heinfleuren](https://discourse.julialang.org/u/heinfleuren)\
**Replies:** 6\
**Last updated:** [September 26, 2024, 5:53am UTC](https://discourse.julialang.org/t/how-to-interactively-change-attributes-of-plots-in-glmakie/119876 "2024-09-26T05:53:20Z")

</div>

I’m relatively new to Julia and I’m trying to design a logistics application with GLMakie. Depending on some interactions I want to change the colors and markers on a map. I used Observables but it doesn’t work… What am …

---

## [\[solved\] Add icon to the top bar](https://discourse.julialang.org/t/solved-add-icon-to-the-top-bar/119492)

<div class="topic-metadata">

**Author:** [@ReLoneR](https://discourse.julialang.org/u/ReLoneR)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 2:11pm UTC](https://discourse.julialang.org/t/solved-add-icon-to-the-top-bar/119492 "2024-09-25T14:11:56Z")

</div>

Hello, how to add an icon to the top bar of the browser? i have an app.jl, with an interface from ui.jl.html. For some reason if i put link to the icons in head tag in .jl.html - it doesnt work. Is there a way it suppose…

---

## [Custom show for a struct that contains matrix](https://discourse.julialang.org/t/custom-show-for-a-struct-that-contains-matrix/119816)

<div class="topic-metadata">

**Author:** [@azoviktor](https://discourse.julialang.org/u/azoviktor)\
**Replies:** 10\
**Last updated:** [September 25, 2024, 9:51am UTC](https://discourse.julialang.org/t/custom-show-for-a-struct-that-contains-matrix/119816 "2024-09-25T09:51:23Z")

</div>

Suppose I have a struct struct Box size::Int matrix::Matrix{ComplexF64} end and my aim is to implement a custom show method for a Box that will display its matrix in a nice rectangle form (not printing all the el…

---

## [POMDPs.jl action(mdp,initial\_state) doesnt return expected/correct action](https://discourse.julialang.org/t/pomdps-jl-action-mdp-initial-state-doesnt-return-expected-correct-action/119838)

<div class="topic-metadata">

**Author:** [@MindFullOfLettuce](https://discourse.julialang.org/u/MindFullOfLettuce)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 12:10am UTC](https://discourse.julialang.org/t/pomdps-jl-action-mdp-initial-state-doesnt-return-expected-correct-action/119838 "2024-09-25T00:10:04Z")

</div>

Hi, I’m doing: (s is initial state) sim = RolloutSimulator() r = simulate(sim, mdp, policy,s) but the selected actions during simulate aren’t correct and don’t go by the POMDPs.actions functions that I implemented …

---

## [Warning about variable conflict from module export?](https://discourse.julialang.org/t/warning-about-variable-conflict-from-module-export/119841)

<div class="topic-metadata">

**Author:** [@aaoo](https://discourse.julialang.org/u/aaoo)\
**Replies:** 2\
**Last updated:** [September 25, 2024, 2:42am UTC](https://discourse.julialang.org/t/warning-about-variable-conflict-from-module-export/119841 "2024-09-25T02:42:37Z")

</div>

This may not work in v"1.10", got a warning on name conflicts. julia\> module Foo x = 1 y = 2 for n in names(@\_\_MODULE\_\_; all=true) if Base.isidentifier(n) && n ∉ (…

---

## [Using GLFW with wayland](https://discourse.julialang.org/t/using-glfw-with-wayland/119826)

<div class="topic-metadata">

**Author:** [@rightleftspin](https://discourse.julialang.org/u/rightleftspin)\
**Replies:** 2\
**Last updated:** [September 24, 2024, 8:03pm UTC](https://discourse.julialang.org/t/using-glfw-with-wayland/119826 "2024-09-24T20:03:50Z")

</div>

I’ve been struggling with this for the past few days, hopefully this is the right place to put it. I have a simple piece of code using a library (Sunny) that depends on GLMakie. However, when I run this code, I just get …

---

## [Questions about a starting language, is Julia good (enough)](https://discourse.julialang.org/t/questions-about-a-starting-language-is-julia-good-enough/119731)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 7\
**Last updated:** [September 24, 2024, 5:29pm UTC](https://discourse.julialang.org/t/questions-about-a-starting-language-is-julia-good-enough/119731 "2024-09-24T17:29:41Z")

</div>

Hello, I am a beginner who wants to choose a suitable programming language. I searched on the internet and I know that there are many programming languages. To be honest, Python was praised everywhere and I don’t like t…

---

## [Filling pre-allocated arrays with minimal function allocations](https://discourse.julialang.org/t/filling-pre-allocated-arrays-with-minimal-function-allocations/119720)

<div class="topic-metadata">

**Author:** [@lkeeble](https://discourse.julialang.org/u/lkeeble)\
**Replies:** 3\
**Last updated:** [September 23, 2024, 6:50pm UTC](https://discourse.julialang.org/t/filling-pre-allocated-arrays-with-minimal-function-allocations/119720 "2024-09-23T18:50:58Z")

</div>

Hello. I am writing some in which I take a time series of some coordinates x, y, z and must transform them to another coordinate system via some set of functions X = X(x, y, z), Y = Y(x, y, z) and Z = Z(x, y, z). I would…

---

## [Overloading \`^\`](https://discourse.julialang.org/t/overloading/119723)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 2\
**Last updated:** [September 23, 2024, 2:49am UTC](https://discourse.julialang.org/t/overloading/119723 "2024-09-23T02:49:33Z")

</div>

struct S x end Base.:(^)(s::S, p) = S(s.x ^ p) S(1) ^ -2.0 S(1) ^ -2 # ERROR: MethodError: no method matching inv(::S) It looks like you can not completely define ^ for a type, without defining a multiplicative inverse i…

---

## [Converting transformer to predict time series code from Transformers = "~0.1.15" to Transformers = "~0.2.8"](https://discourse.julialang.org/t/converting-transformer-to-predict-time-series-code-from-transformers-0-1-15-to-transformers-0-2-8/119695)

<div class="topic-metadata">

**Author:** [@kondjenim](https://discourse.julialang.org/u/kondjenim)\
**Replies:** 0\
**Last updated:** [September 22, 2024, 11:33am UTC](https://discourse.julialang.org/t/converting-transformer-to-predict-time-series-code-from-transformers-0-1-15-to-transformers-0-2-8/119695 "2024-09-22T11:33:46Z")

</div>

Hi all, Anyone to help me in converting the Use transformer to predict time series code GitHub - iwasnothing/julia\_transformer\_ts: Time series prediction using transformer in Julia from Transformers = “~0.1.15” to Trans…

---

## [Embedded julia in multithread c++: examples and doc](https://discourse.julialang.org/t/embedded-julia-in-multithread-c-examples-and-doc/119011)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 4\
**Last updated:** [September 21, 2024, 2:18pm UTC](https://discourse.julialang.org/t/embedded-julia-in-multithread-c-examples-and-doc/119011 "2024-09-21T14:18:44Z")

</div>

Hi! Im searching for a scripting language which scripts could be run in different threads. No data share, only separate tasks. (with different math modules) Julia seems to be able to work this way, but i found non of …

---

## [\[Need help with\] GMT Eumap with lines and dots](https://discourse.julialang.org/t/need-help-with-gmt-eumap-with-lines-and-dots/119607)

<div class="topic-metadata">

**Author:** [@Elvander](https://discourse.julialang.org/u/Elvander)\
**Replies:** 2\
**Last updated:** [September 20, 2024, 3:30pm UTC](https://discourse.julialang.org/t/need-help-with-gmt-eumap-with-lines-and-dots/119607 "2024-09-20T15:30:10Z")

</div>

I would like to plot a series of lines and dots on the map of the EU ; I found out how to plot the EU map and plot either (one line) or a bunch of dots, but it is unclear to me how to do both ; I also would like to be ab…

---

## [Issue with installing JuliaUp on compute cluster](https://discourse.julialang.org/t/issue-with-installing-juliaup-on-compute-cluster/119566)

<div class="topic-metadata">

**Author:** [@pacargile](https://discourse.julialang.org/u/pacargile)\
**Replies:** 15\
**Last updated:** [September 19, 2024, 5:59pm UTC](https://discourse.julialang.org/t/issue-with-installing-juliaup-on-compute-cluster/119566 "2024-09-19T17:59:34Z")

</div>

I am new to installing Julia on systems, but recently I needed to install it on our compute cluster. I tried using the standard “curl” approach given on the Julia installation webpage. I get the following error, which I …

---

## [Tsit5 - What is it?](https://discourse.julialang.org/t/tsit5-what-is-it/88237)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 5\
**Last updated:** [September 19, 2024, 11:13am UTC](https://discourse.julialang.org/t/tsit5-what-is-it/88237 "2024-09-19T11:13:42Z")

</div>

I did some poking around – I think this is just a particular implementation of runga-kutta 4(5). Is this correct?

---

## [How do I code a simple linked list using DataStructures.jl](https://discourse.julialang.org/t/how-do-i-code-a-simple-linked-list-using-datastructures-jl/80929)

<div class="topic-metadata">

**Author:** [@ao222](https://discourse.julialang.org/u/ao222)\
**Replies:** 7\
**Last updated:** [October 23, 2022, 3:18pm UTC](https://discourse.julialang.org/t/how-do-i-code-a-simple-linked-list-using-datastructures-jl/80929 "2022-10-23T15:18:12Z")

</div>

Looking to code a linked list and add a cycle to the list so that I can implement the Floyd cycle detection algorithm. I found LinkedList from DataStructures.jl However I can’t figure out how to: create a list itera…

---

## [Failed while initializing AMDGPU.jl with LLVM 17 and ROCm 6.1 on Fedora 40](https://discourse.julialang.org/t/failed-while-initializing-amdgpu-jl-with-llvm-17-and-rocm-6-1-on-fedora-40/118341)

<div class="topic-metadata">

**Author:** [@jellyterra](https://discourse.julialang.org/u/jellyterra)\
**Replies:** 4\
**Last updated:** [September 18, 2024, 1:01pm UTC](https://discourse.julialang.org/t/failed-while-initializing-amdgpu-jl-with-llvm-17-and-rocm-6-1-on-fedora-40/118341 "2024-09-18T13:01:29Z")

</div>

The Radeon device has already been bind-mounted into /dev/dri in the container. Julia is installed via Julia Up, and AMDGPU.jl installed successfully with Pkg.jl . add AMDGPU Here is the journal below. \[root@42a30749…

---

## [Sumproduct function in Julia](https://discourse.julialang.org/t/sumproduct-function-in-julia/46053)

<div class="topic-metadata">

**Author:** [@alexlowth](https://discourse.julialang.org/u/alexlowth)\
**Replies:** 7\
**Last updated:** [September 4, 2020, 1:04pm UTC](https://discourse.julialang.org/t/sumproduct-function-in-julia/46053 "2020-09-04T13:04:10Z")

</div>

Hey guys, I am quite a beginner at using Julia and this is my first post, so apologies if there is an obvious answer! I would like to find out if there is an easy way to perform the sumproduct excel function in Julia. A…

---

## [Bounds Error for loop](https://discourse.julialang.org/t/bounds-error-for-loop/119503)

<div class="topic-metadata">

**Author:** [@Anika\_Tarannum](https://discourse.julialang.org/u/Anika_Tarannum)\
**Replies:** 2\
**Last updated:** [September 17, 2024, 3:13pm UTC](https://discourse.julialang.org/t/bounds-error-for-loop/119503 "2024-09-17T15:13:01Z")

</div>

I was trying to run the code but in this block I am getting bounds error for j in 1:5 @constraint(model, sum(costs\[i\]\[j\] \* x\[i\] for i in 1:14) \<= budgets\[j\]) end

---

## [How to add a package from github to test it](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 11\
**Last updated:** [September 17, 2024, 9:57am UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461 "2024-09-17T09:57:02Z")

</div>

Hello I wanna use and clone the following github project GitHub - svilupp/Julia-LLM-Leaderboard: Provides a platform for the Julia community to compare AI models' abilities in generating syntactically correct Julia code,…

---

## [Problem while using package](https://discourse.julialang.org/t/problem-while-using-package/119462)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [September 16, 2024, 1:53pm UTC](https://discourse.julialang.org/t/problem-while-using-package/119462 "2024-09-16T13:53:23Z")

</div>

I m getting this message when trying to use package. It started randomly everything was fine before. Can someone tell whats going on and how it can be solve? 48 dependencies successfully precompiled in 493 seconds. 3…

[Previous page](https://discourse.julialang.org/c/first-steps/8.md?page=32)

[Next page](https://discourse.julialang.org/c/first-steps/8.md?page=34)
