# New to Julia

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

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

**Page:** 8

---

## [Is it possible to check if Variable is in YAXArray Dataset?](https://discourse.julialang.org/t/is-it-possible-to-check-if-variable-is-in-yaxarray-dataset/133378)

<div class="topic-metadata">

**Author:** [@Kamil\_Mroz](https://discourse.julialang.org/u/Kamil_Mroz)\
**Replies:** 1\
**Last updated:** [October 23, 2025, 1:37pm UTC](https://discourse.julialang.org/t/is-it-possible-to-check-if-variable-is-in-yaxarray-dataset/133378 "2025-10-23T13:37:52Z")

</div>

Hi, as in the title, is it possible to check if Variable is in YAXArray Dataset? currently I do: try ds = YAXArrays.Dataset(; ds.cubes..., b = function\_1.(ds\["a"\])) catch e …

---

## [Should I specify a concrete eltype for a container](https://discourse.julialang.org/t/should-i-specify-a-concrete-eltype-for-a-container/133351)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 8\
**Last updated:** [October 22, 2025, 10:47am UTC](https://discourse.julialang.org/t/should-i-specify-a-concrete-eltype-for-a-container/133351 "2025-10-22T10:47:45Z")

</div>

I’ve been writing a lot of julia code, legitimately. Yet still have an important question. Is my following intuition correct? Instead of writing v = Point2d\[\] push!(v, Point2d(1, 2)) push!(v, Point2d(3, 4)) , it’s be…

---

## [Save and load data for interactive analysis (why is JLD2 @load "deprecated"?)](https://discourse.julialang.org/t/save-and-load-data-for-interactive-analysis-why-is-jld2-load-deprecated/133352)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 2\
**Last updated:** [October 22, 2025, 9:17am UTC](https://discourse.julialang.org/t/save-and-load-data-for-interactive-analysis-why-is-jld2-load-deprecated/133352 "2025-10-22T09:17:51Z")

</div>

During interactive data analysis, I sometimes want to save some variables to disk, and then load them again later to continue. For what I want to do, this works perfectly (using JLD2): # Do first part of analysis jldsav…

---

## [Continuation from subcritical Hopf bifurcation](https://discourse.julialang.org/t/continuation-from-subcritical-hopf-bifurcation/133343)

<div class="topic-metadata">

**Author:** [@Calin](https://discourse.julialang.org/u/Calin)\
**Replies:** 0\
**Last updated:** [October 21, 2025, 6:40pm UTC](https://discourse.julialang.org/t/continuation-from-subcritical-hopf-bifurcation/133343 "2025-10-21T18:40:01Z")

</div>

Hello! I am new to Julia and planning to use it (particularly BifurcationKit.jl) as a scriptable alternative to XPPAUT, which I have been using successfully for several years to calculate bifurcation diagrams for nonli…

---

## [Blurry plots (in Jupyterlab and VSCode)](https://discourse.julialang.org/t/blurry-plots-in-jupyterlab-and-vscode/133132)

<div class="topic-metadata">

**Author:** [@xujc](https://discourse.julialang.org/u/xujc)\
**Replies:** 6\
**Last updated:** [October 21, 2025, 3:03pm UTC](https://discourse.julialang.org/t/blurry-plots-in-jupyterlab-and-vscode/133132 "2025-10-21T15:03:24Z")

</div>

I tried to plot in Julia with the following code: using Pkg; Pkg.activate(".") using Plots; plot(0:0.1:2π, sin, xlabel="Xlabel \[units\]", ylabel="Ylabel \[units\]") But the figure looks blurry, in either Jupyterlab …

---

## [CUDA in Julia 1.12 - problem with run time and instalation](https://discourse.julialang.org/t/cuda-in-julia-1-12-problem-with-run-time-and-instalation/133321)

<div class="topic-metadata">

**Author:** [@Lord\_Xaradar](https://discourse.julialang.org/u/Lord_Xaradar)\
**Replies:** 1\
**Last updated:** [October 21, 2025, 11:22am UTC](https://discourse.julialang.org/t/cuda-in-julia-1-12-problem-with-run-time-and-instalation/133321 "2025-10-21T11:22:42Z")

</div>

Yesterday i installad new version of Julia nad had to install packages once more and when i was instaling CUDA.jl i get warnings, when i call for CUDA in repl i get: ┌ Error: CUDA.jl could not find an appropriate CUDA r…

---

## [Julia install issue (foreign name)](https://discourse.julialang.org/t/julia-install-issue-foreign-name/114522)

<div class="topic-metadata">

**Author:** [@Sihyun\_Kim](https://discourse.julialang.org/u/Sihyun_Kim)\
**Replies:** 16\
**Last updated:** [October 20, 2025, 2:31pm UTC](https://discourse.julialang.org/t/julia-install-issue-foreign-name/114522 "2025-10-20T14:31:28Z")

</div>

I installed Julia, and am trying to execute it by typing julia in Windows PowerShell. Then, the terminal shows PS C:\\Users\\김시현\> julia ERROR: could not load library "C:\\Users\\김?�현\\.julia\\juliaup\\julia-1.10.3+0.x64.w64.mi…

---

## [What new() in inner costructor do?](https://discourse.julialang.org/t/what-new-in-inner-costructor-do/133251)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 5\
**Last updated:** [October 18, 2025, 9:38pm UTC](https://discourse.julialang.org/t/what-new-in-inner-costructor-do/133251 "2025-10-18T21:38:14Z")

</div>

What does new in general do in inner constructor? For example in this code in documentation how new know the work( here create instance if x\>y) it should do? Constructors · The Julia Language julia\> struct OrderedPair…

---

## [(Wallclock) Performance degraded when going from 1.11.6 to 1.12](https://discourse.julialang.org/t/wallclock-performance-degraded-when-going-from-1-11-6-to-1-12/133171)

<div class="topic-metadata">

**Author:** [@JJMerelo](https://discourse.julialang.org/u/JJMerelo)\
**Replies:** 4\
**Last updated:** [October 17, 2025, 10:52am UTC](https://discourse.julialang.org/t/wallclock-performance-degraded-when-going-from-1-11-6-to-1-12/133171 "2025-10-17T10:52:45Z")

</div>

I have been working with this repo, GitHub - cecimerelo/BraveNewAlgorithm.jl and running energy benchmarks, as well as performance benchmarks. After upgrading to 1.12, and as measured by an external CLI (pinpoint), the …

---

## [Write a constructor for these aliases?](https://discourse.julialang.org/t/write-a-constructor-for-these-aliases/133135)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 11\
**Last updated:** [October 15, 2025, 10:35am UTC](https://discourse.julialang.org/t/write-a-constructor-for-these-aliases/133135 "2025-10-15T10:35:06Z")

</div>

I am trying to write a generic constructor for a bunch of type aliases that all share a common structure: # Abstract type AbstractA with a bunch of different concrete subtypes: abstract type AbstractA end struct A1{T}…

---

## [Errors when upgrading from Julia 1.11.6 to Julia 1.12](https://discourse.julialang.org/t/errors-when-upgrading-from-julia-1-11-6-to-julia-1-12/133167)

<div class="topic-metadata">

**Author:** [@JJMerelo](https://discourse.julialang.org/u/JJMerelo)\
**Replies:** 9\
**Last updated:** [October 15, 2025, 10:05am UTC](https://discourse.julialang.org/t/errors-when-upgrading-from-julia-1-11-6-to-julia-1-12/133167 "2025-10-15T10:05:25Z")

</div>

After upgrading (via juliaup) to the newest version of Julia, I keep getting these errors/warnings: 🔧 Setting up BraveNewAlgorithm.jl dependencies... Activating project environment... Activating project at \`~/Code/jul…

---

## [Cloning the Data science Repo](https://discourse.julialang.org/t/cloning-the-data-science-repo/133109)

<div class="topic-metadata">

**Author:** [@victor\_eberechi](https://discourse.julialang.org/u/victor_eberechi)\
**Replies:** 4\
**Last updated:** [October 14, 2025, 8:29am UTC](https://discourse.julialang.org/t/cloning-the-data-science-repo/133109 "2025-10-14T08:29:57Z")

</div>

I got this error while trying to install the dependencies in the package file from the julia/Datascience repo Building SCS ──────→ C:\\Users\\Sky\\.julia\\scratchspaces\\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\\efc1cf417dffb455b…

---

## [TypeError in typeassert, expected](https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021)

<div class="topic-metadata">

**Author:** [@Tigerbyte](https://discourse.julialang.org/u/Tigerbyte)\
**Replies:** 21\
**Last updated:** [October 12, 2025, 9:19am UTC](https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021 "2025-10-12T09:19:49Z")

</div>

This is when I got 2 colons for types mixed up with what I thought might be a default of “1” for the middle value in StepRanges: julia\> for i in 1::4 println(i) end ERROR: TypeError: in typeassert,…

---

## [Expected 'end' message not the most helpful in throw function](https://discourse.julialang.org/t/expected-end-message-not-the-most-helpful-in-throw-function/133071)

<div class="topic-metadata">

**Author:** [@Tigerbyte](https://discourse.julialang.org/u/Tigerbyte)\
**Replies:** 14\
**Last updated:** [October 12, 2025, 4:58am UTC](https://discourse.julialang.org/t/expected-end-message-not-the-most-helpful-in-throw-function/133071 "2025-10-12T04:58:08Z")

</div>

If you forget that “throw” in Julia is a function (as I probably always will) expect to get this message, which I found to be misleading. How about Function "throw" needs a left parenthesis for j in 1:1 thr…

---

## [Can i propagate @invoke?](https://discourse.julialang.org/t/can-i-propagate-invoke/133074)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [October 11, 2025, 9:05pm UTC](https://discourse.julialang.org/t/can-i-propagate-invoke/133074 "2025-10-11T21:05:47Z")

</div>

Hey, I always thought that @invoke would not allow functions in the call stack to know the true argument’s type, but i just realised today that i am wrong: abstract type AbstractA end struct A \<: AbstractA x::Floa…

---

## [Inconsistent results from using #undef](https://discourse.julialang.org/t/inconsistent-results-from-using-undef/133033)

<div class="topic-metadata">

**Author:** [@Tigerbyte](https://discourse.julialang.org/u/Tigerbyte)\
**Replies:** 14\
**Last updated:** [October 11, 2025, 8:50pm UTC](https://discourse.julialang.org/t/inconsistent-results-from-using-undef/133033 "2025-10-11T20:50:05Z")

</div>

vktr = Vector{T}(undef,4) if T is Float64 or Int64 this fills in a number instead of undef if T is Complex, Symbol, String, etc, this makes a Vector of undef julia\> versioninfo() Julia Version 1.12.0 Commit b907bd060…

---

## [I want it all, and I want it now.... debugging Julia code](https://discourse.julialang.org/t/i-want-it-all-and-i-want-it-now-debugging-julia-code/133012)

<div class="topic-metadata">

**Author:** [@Tigerbyte](https://discourse.julialang.org/u/Tigerbyte)\
**Replies:** 17\
**Last updated:** [October 9, 2025, 9:30pm UTC](https://discourse.julialang.org/t/i-want-it-all-and-i-want-it-now-debugging-julia-code/133012 "2025-10-09T21:30:18Z")

</div>

I decided that I was actually fairly demanding in what I want from a language, and I think most others are also. What I want , anyway, is not only to be informed with a descriptive error message, but to be informed at a…

---

## [Need fast Array operation!](https://discourse.julialang.org/t/need-fast-array-operation/132964)

<div class="topic-metadata">

**Author:** [@avnsh9](https://discourse.julialang.org/u/avnsh9)\
**Replies:** 24\
**Last updated:** [October 9, 2025, 10:06am UTC](https://discourse.julialang.org/t/need-fast-array-operation/132964 "2025-10-09T10:06:55Z")

</div>

Hi all, I have shifted from python where I was using a bicubic interpolation in numpy. Code for that is below, import numpy as np kernel\_x = np.random.rand(100,4) kernel\_y = np.random.rand(100,4) ix0 = np.random.randint…

---

## [Function argument, binding, name, assignment, mutation](https://discourse.julialang.org/t/function-argument-binding-name-assignment-mutation/132916)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 39\
**Last updated:** [October 7, 2025, 9:46pm UTC](https://discourse.julialang.org/t/function-argument-binding-name-assignment-mutation/132916 "2025-10-07T21:46:53Z")

</div>

I reviewed the very first lesson people learned from doc Functions · The Julia Language julia\> function f(x, y) x\[1\] = 42 # mutates x y = 7 + y # new binding for y, no mutation ret…

---

## [Troubles using the Julia Debugger in VSCode](https://discourse.julialang.org/t/troubles-using-the-julia-debugger-in-vscode/132945)

<div class="topic-metadata">

**Author:** [@armin\_golesch](https://discourse.julialang.org/u/armin_golesch)\
**Replies:** 4\
**Last updated:** [October 7, 2025, 5:51pm UTC](https://discourse.julialang.org/t/troubles-using-the-julia-debugger-in-vscode/132945 "2025-10-07T17:51:26Z")

</div>

Hello all, I am new to the community and using Julia in general. I am facing some trouble using the debugger in VSCode. I am already running Julia in my custom environment and have a working script. However, I just cou…

---

## [Segmentation fault in multi thread code](https://discourse.julialang.org/t/segmentation-fault-in-multi-thread-code/132562)

<div class="topic-metadata">

**Author:** [@liwa24](https://discourse.julialang.org/u/liwa24)\
**Replies:** 4\
**Last updated:** [October 7, 2025, 2:53pm UTC](https://discourse.julialang.org/t/segmentation-fault-in-multi-thread-code/132562 "2025-10-07T14:53:23Z")

</div>

Hello, I would appreciate some advice on a multi thread code causing a segmentation fault with my workstation Dell Inc. Precision 7960 Tower (Intel® Xeon® w9-3495X × 112), running Ubuntu 24.04.2 LTS. Here you find a simp…

---

## [Getting PYSR to work for VS Code (windows)](https://discourse.julialang.org/t/getting-pysr-to-work-for-vs-code-windows/132935)

<div class="topic-metadata">

**Author:** [@ingasnor](https://discourse.julialang.org/u/ingasnor)\
**Replies:** 4\
**Last updated:** [October 7, 2025, 2:32pm UTC](https://discourse.julialang.org/t/getting-pysr-to-work-for-vs-code-windows/132935 "2025-10-07T14:32:40Z")

</div>

Hi, I am trying to get the PYSR-package to work on my computer. I have already downloaded Julia (version 10.4.3) but when trying to run my code, it never finishes and it just ends up precompiling forever. All the other …

---

## [Julia for computer science and quantum computing](https://discourse.julialang.org/t/julia-for-computer-science-and-quantum-computing/132914)

<div class="topic-metadata">

**Author:** [@Dominik\_Ballo](https://discourse.julialang.org/u/Dominik_Ballo)\
**Replies:** 4\
**Last updated:** [October 6, 2025, 9:52pm UTC](https://discourse.julialang.org/t/julia-for-computer-science-and-quantum-computing/132914 "2025-10-06T21:52:44Z")

</div>

Dear everyone! I am about to take OSSU Computer Science, and after that going to go further with quantum computing, my question is, when I have taken the juliaacademy introduction to Julia language for programmers cours…

---

## [Assigning to a view of an array](https://discourse.julialang.org/t/assigning-to-a-view-of-an-array/132869)

<div class="topic-metadata">

**Author:** [@DanimirD](https://discourse.julialang.org/u/DanimirD)\
**Replies:** 37\
**Last updated:** [October 6, 2025, 11:55am UTC](https://discourse.julialang.org/t/assigning-to-a-view-of-an-array/132869 "2025-10-06T11:55:24Z")

</div>

The purpose of creating a view from an array is to avoid a copy. However, a view cannot be assigned to. julia\> X = rand(3,3) 3×3 Matrix{Float64}: 0.135318 0.958828 0.0860895 0.715183 0.136236 0.542946 0.513489 0.9…

---

## [Is it defined behavior to modify \`iter\` while \`for\`-looping over it?](https://discourse.julialang.org/t/is-it-defined-behavior-to-modify-iter-while-for-looping-over-it/132477)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 32\
**Last updated:** [October 6, 2025, 11:15am UTC](https://discourse.julialang.org/t/is-it-defined-behavior-to-modify-iter-while-for-looping-over-it/132477 "2025-10-06T11:15:32Z")

</div>

Since the docstring of for is very concise, I cannot fathom one thing—as the title suggests. for i = iter # body end I have learned that i is local and different among passes. For example, iter = 1:3, then we have…

---

## [Error testing CUDA](https://discourse.julialang.org/t/error-testing-cuda/132887)

<div class="topic-metadata">

**Author:** [@dwHe123](https://discourse.julialang.org/u/dwHe123)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 12:13pm UTC](https://discourse.julialang.org/t/error-testing-cuda/132887 "2025-10-05T12:13:40Z")

</div>

Hello everyone I encountered a problem while testing CUDA.jl, and the same issue persists after some attempts to install different versions of CUDA.jl.I don’t know why this happen. I connect to a Linux server (Ubuntu …

---

## [Cannot understand the results from sizeof and @allocated](https://discourse.julialang.org/t/cannot-understand-the-results-from-sizeof-and-allocated/132872)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [October 5, 2025, 7:57am UTC](https://discourse.julialang.org/t/cannot-understand-the-results-from-sizeof-and-allocated/132872 "2025-10-05T07:57:18Z")

</div>

I know that an Int64 number requires 64 bits = 8 bytes. But what about a Int64\[2\]? And, why does a naive + requires 64 bytes? I thought 64 bits was enough, in an exaggerated sense. (I’m not from computer science.) jul…

---

## [Dataframe columns type is \`Any\` even though it's initialized with all \`Float64\`](https://discourse.julialang.org/t/dataframe-columns-type-is-any-even-though-its-initialized-with-all-float64/132870)

<div class="topic-metadata">

**Author:** [@Quantodeluz](https://discourse.julialang.org/u/Quantodeluz)\
**Replies:** 3\
**Last updated:** [October 4, 2025, 7:08am UTC](https://discourse.julialang.org/t/dataframe-columns-type-is-any-even-though-its-initialized-with-all-float64/132870 "2025-10-04T07:08:06Z")

</div>

I don’t have much more to add, I even rerun the code but initializing the columns with the type as a string, and still: The two columns before them are fine, but no matter what i do these have type Any, and that’s ma…

---

## [Converting Float to String with padding?](https://discourse.julialang.org/t/converting-float-to-string-with-padding/132865)

<div class="topic-metadata">

**Author:** [@Quantodeluz](https://discourse.julialang.org/u/Quantodeluz)\
**Replies:** 2\
**Last updated:** [October 3, 2025, 8:54pm UTC](https://discourse.julialang.org/t/converting-float-to-string-with-padding/132865 "2025-10-03T20:54:07Z")

</div>

Simple question here, how could I emulate the effect of string(Int, pad=n) with floats? Using string itself throws an error.

---

## [What to use for URL encoding?](https://discourse.julialang.org/t/what-to-use-for-url-encoding/25467)

<div class="topic-metadata">

**Author:** [@abeburnett](https://discourse.julialang.org/u/abeburnett)\
**Replies:** 4\
**Last updated:** [October 2, 2025, 6:11pm UTC](https://discourse.julialang.org/t/what-to-use-for-url-encoding/25467 "2025-10-02T18:11:18Z")

</div>

Hi there, I’m looking to correctly encode URLs. I’m coming from Python and R which have packages/libraries I’ve used to accomplish this, but I’m not seeing anything on Google. Can anyone please point me to a URL encodin…

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

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