# Latest

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

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

**Page:** 507

---

## [NTuple{N}(v) silently truncates when length(v) \> N](https://discourse.julialang.org/t/ntuple-n-v-silently-truncates-when-length-v-n/108959)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 8\
**Last updated:** [January 18, 2024, 6:16pm UTC](https://discourse.julialang.org/t/ntuple-n-v-silently-truncates-when-length-v-n/108959 "2024-01-18T18:16:23Z")

</div>

MWE: julia\> NTuple{3}(zeros(4)) (0.0, 0.0, 0.0) I expected an error, am I missing something? (on Julia 1.10, master, 1.9, etc, this is not new)

---

## [How to control lighting in 3D plots for CairoMakie?](https://discourse.julialang.org/t/how-to-control-lighting-in-3d-plots-for-cairomakie/108981)

<div class="topic-metadata">

**Author:** [@JonasWickman](https://discourse.julialang.org/u/JonasWickman)\
**Replies:** 0\
**Last updated:** [January 18, 2024, 6:13pm UTC](https://discourse.julialang.org/t/how-to-control-lighting-in-3d-plots-for-cairomakie/108981 "2024-01-18T18:13:09Z")

</div>

I’m having some difficulty with the lighting options when saving a 3D figure using CairoMakie. In particular, none of the lighting options work (commented out in the code below), nor does the option invert\_normals = true …

---

## [Reading a few rows from a BIG CSV file](https://discourse.julialang.org/t/reading-a-few-rows-from-a-big-csv-file/68611)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 39\
**Last updated:** [January 18, 2024, 4:35pm UTC](https://discourse.julialang.org/t/reading-a-few-rows-from-a-big-csv-file/68611 "2024-01-18T16:35:17Z")

</div>

I’m reading a Census bureau CSV file that’s 2.2M rows long. I’d like to just read the first hundred rows to check my stuff works… df = Iterators.take(CSV.Rows("filename.csv"),100) |\> DataFrame Doesn’t terminate in any…

---

## [The Future We Simulate is the One We Create](https://discourse.julialang.org/t/the-future-we-simulate-is-the-one-we-create/108615)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 10\
**Last updated:** [January 18, 2024, 4:03pm UTC](https://discourse.julialang.org/t/the-future-we-simulate-is-the-one-we-create/108615 "2024-01-18T16:03:22Z")

</div>

“the smartest minds can and must create the best code that has ever been written to actually solve the grand challenge problems” Well - that is Julia then isn’t it? The Future We Simulate Is The One We Create - The Nex…

---

## [\[Workgroup\] JuliaHealth Asia/Oceania Meeting – January 20th, 2024](https://discourse.julialang.org/t/workgroup-juliahealth-asia-oceania-meeting-january-20th-2024/108929)

<div class="topic-metadata">

**Author:** [@Jay-sanjay](https://discourse.julialang.org/u/Jay-sanjay)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 8:28pm UTC](https://discourse.julialang.org/t/workgroup-juliahealth-asia-oceania-meeting-january-20th-2024/108929 "2024-01-17T20:28:20Z")

</div>

Hey Julia enthusiasts! :star2: Hold onto your hats because JuliaHealth is kicking off 2024 with a bang! :rocket: Get ready for the most thrilling JuliaHealth meet yet— a first of it’s kind a purely Asia/Oceania specific …

---

## [Different result of \`===\` between \`@runtest\` and REPL](https://discourse.julialang.org/t/different-result-of-between-runtest-and-repl/108924)

<div class="topic-metadata">

**Author:** [@bthorne93](https://discourse.julialang.org/u/bthorne93)\
**Replies:** 6\
**Last updated:** [January 18, 2024, 3:37pm UTC](https://discourse.julialang.org/t/different-result-of-between-runtest-and-repl/108924 "2024-01-18T15:37:21Z")

</div>

In an entirely clean package, the following unit test passes: using Test @testset begin function build\_matrix() A = zeros(2, 2) A\[1, 2\] = A\[2, 1\] = 1 return A end A = build\_mat…

---

## [Strange behavior of plot---plot successful only if it is the last line of the code](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [January 18, 2024, 3:17pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952 "2024-01-18T15:17:41Z")

</div>

I am using vscode in anaconda. The following code using Plots a = 3+4 plot(\[1,2,3\],\[2,4,8\]) can produce a figure. But this code cannot using Plots plot(\[1,2,3\],\[2,4,8\]) a = 3+4 It seems that the plot is displayed o…

---

## [Read vector from data file](https://discourse.julialang.org/t/read-vector-from-data-file/108945)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 8\
**Last updated:** [January 18, 2024, 2:39pm UTC](https://discourse.julialang.org/t/read-vector-from-data-file/108945 "2024-01-18T14:39:05Z")

</div>

Hi I’m currently trying to read a vector from a .dat file. the structure of the file is not complicated and I currently managed to read the rows/columns that I need by using the following code: using DelimitedFiles fun…

---

## [Weird spaces in VSCode REPL](https://discourse.julialang.org/t/weird-spaces-in-vscode-repl/108943)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [January 18, 2024, 2:38pm UTC](https://discourse.julialang.org/t/weird-spaces-in-vscode-repl/108943 "2024-01-18T14:38:19Z")

</div>

Sometimes my VSCode Julia REPL does this. No idea why it happens, I usually restart to make it stop. Any clues?

---

## [Status of immutable variable-size arrays?](https://discourse.julialang.org/t/status-of-immutable-variable-size-arrays/108942)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 7\
**Last updated:** [January 18, 2024, 2:21pm UTC](https://discourse.julialang.org/t/status-of-immutable-variable-size-arrays/108942 "2024-01-18T14:21:15Z")

</div>

Hello, which is the situation for arrays that are immutable but their size is known only at run time ? I see there is an old discussion here, and then some “experimental” PR that has been rebased several times (here and…

---

## [How to improve performances of this multiplication -\> sum](https://discourse.julialang.org/t/how-to-improve-performances-of-this-multiplication-sum/108955)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [January 18, 2024, 1:48pm UTC](https://discourse.julialang.org/t/how-to-improve-performances-of-this-multiplication-sum/108955 "2024-01-18T13:48:08Z")

</div>

I am trying hard to improve the performances of this function that just sum a serie of multiplications, but where all the data is given in terms of indices: This is my data: using BenchmarkTools, LoopVectorization x …

---

## [Save RuntimeGeneratedFunction or Expr to file for later use](https://discourse.julialang.org/t/save-runtimegeneratedfunction-or-expr-to-file-for-later-use/108775)

<div class="topic-metadata">

**Author:** [@ejmeitz](https://discourse.julialang.org/u/ejmeitz)\
**Replies:** 7\
**Last updated:** [January 18, 2024, 1:15pm UTC](https://discourse.julialang.org/t/save-runtimegeneratedfunction-or-expr-to-file-for-later-use/108775 "2024-01-18T13:15:51Z")

</div>

I am using a library to generate a rather expensive function which is returned as a RuntimeGeneratedFunction that I am also able to convert into an Expr. I would like to avoid having to re-generate this function and was …

---

## [How to understand filtering in topology optimization?](https://discourse.julialang.org/t/how-to-understand-filtering-in-topology-optimization/108905)

<div class="topic-metadata">

**Author:** [@ehgus](https://discourse.julialang.org/u/ehgus)\
**Replies:** 6\
**Last updated:** [January 18, 2024, 12:55pm UTC](https://discourse.julialang.org/t/how-to-understand-filtering-in-topology-optimization/108905 "2024-01-18T12:55:54Z")

</div>

Hello I’m trying to understand the role of filtering in the tutorial about topology optimization of gridap. It claims that filtering process will help to binarize the result. Well… I first imagine an optimization probl…

---

## [ALTRO: InexactError: trunc(UInt8, 279)](https://discourse.julialang.org/t/altro-inexacterror-trunc-uint8-279/108954)

<div class="topic-metadata">

**Author:** [@G11](https://discourse.julialang.org/u/G11)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 12:37pm UTC](https://discourse.julialang.org/t/altro-inexacterror-trunc-uint8-279/108954 "2024-01-18T12:37:13Z")

</div>

Hi, I am using the ALTRO package to do trajectory optimization. I get the following InexactError sometimes when I run the code. Sometimes it works fine and there is no error code. Has anybody faced this issue before? Wh…

---

## [GLMakie crashes when maximising window after saving high resolution .png](https://discourse.julialang.org/t/glmakie-crashes-when-maximising-window-after-saving-high-resolution-png/108949)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 12:11pm UTC](https://discourse.julialang.org/t/glmakie-crashes-when-maximising-window-after-saving-high-resolution-png/108949 "2024-01-18T12:11:59Z")

</div>

Quick aside: should I be putting stuff like this onto github instead of here? I’ve never really interacted with github more than my own repos. Step 1, make figure: begin f = Figure() ax = Axis3(f\[1, 1\], aspect = :data)…

---

## [The Jacobian for the equality constraints contains an invalid number (+ general help with matrices in JuMP)](https://discourse.julialang.org/t/the-jacobian-for-the-equality-constraints-contains-an-invalid-number-general-help-with-matrices-in-jump/107512)

<div class="topic-metadata">

**Author:** [@Jack21](https://discourse.julialang.org/u/Jack21)\
**Replies:** 4\
**Last updated:** [January 18, 2024, 11:30am UTC](https://discourse.julialang.org/t/the-jacobian-for-the-equality-constraints-contains-an-invalid-number-general-help-with-matrices-in-jump/107512 "2024-01-18T11:30:47Z")

</div>

Hello all! I am pretty new to Julia, and am trying to implement a matrix form model for the dynamics. This is what I have written so far: using JuMP #, MadNLP import Ipopt #Number of mesh point n = 10 #Simulation para…

---

## [How to do gradient clipping in Julia for large for loops](https://discourse.julialang.org/t/how-to-do-gradient-clipping-in-julia-for-large-for-loops/108402)

<div class="topic-metadata">

**Author:** [@Devetak](https://discourse.julialang.org/u/Devetak)\
**Replies:** 3\
**Last updated:** [January 18, 2024, 10:10am UTC](https://discourse.julialang.org/t/how-to-do-gradient-clipping-in-julia-for-large-for-loops/108402 "2024-01-18T10:10:53Z")

</div>

Hello. I have a function that has many for loops. For example: function f(x) res = 1.0 for i in 1:1000000 res = res \* x^2 end return res / x end of…

---

## [Problem installing Julia on Mac](https://discourse.julialang.org/t/problem-installing-julia-on-mac/108948)

<div class="topic-metadata">

**Author:** [@gryumova](https://discourse.julialang.org/u/gryumova)\
**Replies:** 10\
**Last updated:** [January 18, 2024, 10:41am UTC](https://discourse.julialang.org/t/problem-installing-julia-on-mac/108948 "2024-01-18T10:41:04Z")

</div>

Hi all. I was unable to install julia by running the following command curl -fsSL https://install.julialang.org | sh I tried it through JuliaUp, it didn’t help. I was advised to build the image myself using the followi…

---

## [An annoying setting of vscode](https://discourse.julialang.org/t/an-annoying-setting-of-vscode/108944)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 10:01am UTC](https://discourse.julialang.org/t/an-annoying-setting-of-vscode/108944 "2024-01-18T10:01:42Z")

</div>

I am using vscode. I find it very annoying that the cursor is automatically set in the editor panel. That is code! The cursor should be automatically set in the REPL panel.

---

## [Kernel Error while running code on GPU](https://discourse.julialang.org/t/kernel-error-while-running-code-on-gpu/108745)

<div class="topic-metadata">

**Author:** [@Pranav\_Vinod](https://discourse.julialang.org/u/Pranav_Vinod)\
**Replies:** 12\
**Last updated:** [January 18, 2024, 8:57am UTC](https://discourse.julialang.org/t/kernel-error-while-running-code-on-gpu/108745 "2024-01-18T08:57:10Z")

</div>

I have been trying to run the following code on a GPU: using OrdinaryDiffEq using DiffEqFlux using Random using CUDA using DiffEqFlux: gpu CUDA.allowscalar(true) function RelativisticOrbitModel(u, model\_params, t) …

---

## [Hi, I'm in need of some life advice](https://discourse.julialang.org/t/hi-im-in-need-of-some-life-advice/108850)

<div class="topic-metadata">

**Author:** [@awesomepossum](https://discourse.julialang.org/u/awesomepossum)\
**Replies:** 6\
**Last updated:** [January 18, 2024, 5:40am UTC](https://discourse.julialang.org/t/hi-im-in-need-of-some-life-advice/108850 "2024-01-18T05:40:46Z")

</div>

okay so I don’t have a job (I’m a minor) and I keep finding myself in need of some money. i like coding but i can’t get a job and i personally love foss and 100% support privacy oriented views; that’s also why i hate scu…

---

## [Hand written loop slower than bitVector broadcast](https://discourse.julialang.org/t/hand-written-loop-slower-than-bitvector-broadcast/108881)

<div class="topic-metadata">

**Author:** [@djholiver](https://discourse.julialang.org/u/djholiver)\
**Replies:** 15\
**Last updated:** [January 18, 2024, 2:56am UTC](https://discourse.julialang.org/t/hand-written-loop-slower-than-bitvector-broadcast/108881 "2024-01-18T02:56:42Z")

</div>

Hi, MWE below I have a use case for intersection of lists of sorted integer vectors with a vector of sorted integers i.e. intersect!(vec :: Vector{Int},vectorOfVectors::Vector{Vector{Int}}) because the vectorOfVecto…

---

## [Why are missing values not ignored by default?](https://discourse.julialang.org/t/why-are-missing-values-not-ignored-by-default/106756)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 329\
**Last updated:** [January 17, 2024, 5:34am UTC](https://discourse.julialang.org/t/why-are-missing-values-not-ignored-by-default/106756 "2024-01-17T05:34:06Z")

</div>

I love Julia. The only feature that I don’t like is the treatment of missing values. It really hinders your work when working with data analysis. Comparison operators like \> and ==, and aggregate functions like sum and …

---

## [Proposed alias for union types](https://discourse.julialang.org/t/proposed-alias-for-union-types/108205)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 144\
**Last updated:** [January 18, 2024, 1:29am UTC](https://discourse.julialang.org/t/proposed-alias-for-union-types/108205 "2024-01-18T01:29:12Z")

</div>

The | character is used in a few different languages as a concise way to specify type unions, like in TypeScript, Scala, PHP 8+, Python 3.10+, and (sort of) Haskell. I was curious to hear what people’s initial thoughts w…

---

## [Improving speed with iterative sums and functions within functions](https://discourse.julialang.org/t/improving-speed-with-iterative-sums-and-functions-within-functions/108927)

<div class="topic-metadata">

**Author:** [@clairevalva](https://discourse.julialang.org/u/clairevalva)\
**Replies:** 4\
**Last updated:** [January 17, 2024, 9:56pm UTC](https://discourse.julialang.org/t/improving-speed-with-iterative-sums-and-functions-within-functions/108927 "2024-01-17T21:56:44Z")

</div>

Hi all — I’m having some problems making this bit of code run at a reasonable speed. In essence, I have functions defined within functions, where the innermost function evaluates a sum. Then, I end up combining functions…

---

## [EnzymeCon 2024 is 3/25-3/27 (talk deadline 1/20)](https://discourse.julialang.org/t/enzymecon-2024-is-3-25-3-27-talk-deadline-1-20/108168)

<div class="topic-metadata">

**Author:** [@wsmoses](https://discourse.julialang.org/u/wsmoses)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 11:27pm UTC](https://discourse.julialang.org/t/enzymecon-2024-is-3-25-3-27-talk-deadline-1-20/108168 "2024-01-17T23:27:05Z")

</div>

EnzymeCon 2 will be Mar 25-27 at MIT. We’re accepting talk, tutorial, hackathon, etc submissions until 1/20. If you’re interested in AD, compilers, and more, please consider attending! Last year we had a bunch of talks o…

---

## [Enforcing Variable Allocation Priorities in JuMP Model](https://discourse.julialang.org/t/enforcing-variable-allocation-priorities-in-jump-model/108806)

<div class="topic-metadata">

**Author:** [@Lemma](https://discourse.julialang.org/u/Lemma)\
**Replies:** 7\
**Last updated:** [January 16, 2024, 10:20pm UTC](https://discourse.julialang.org/t/enforcing-variable-allocation-priorities-in-jump-model/108806 "2024-01-16T22:20:12Z")

</div>

Hello Everyone, I’m working on an optimization problem in Julia’s JuMP and need help with correctly prioritizing the allocation of certain variables in a constraint. My primary constraint is as follows: C \\cdot x + S \\…

---

## [ERROR: DomainError, Complex numbers?](https://discourse.julialang.org/t/error-domainerror-complex-numbers/108923)

<div class="topic-metadata">

**Author:** [@Gast](https://discourse.julialang.org/u/Gast)\
**Replies:** 5\
**Last updated:** [January 17, 2024, 10:35pm UTC](https://discourse.julialang.org/t/error-domainerror-complex-numbers/108923 "2024-01-17T22:35:49Z")

</div>

Hi all! I have a very simple expression similar to: a = b ^ c with b and c as positive floating point numbers. The expression above is part of nested functions (outer and inner functions) with each function defined w…

---

## [ERROR: X depends on Y, but no such entry exists in the manifest](https://discourse.julialang.org/t/error-x-depends-on-y-but-no-such-entry-exists-in-the-manifest/108920)

<div class="topic-metadata">

**Author:** [@AlexisRenchon](https://discourse.julialang.org/u/AlexisRenchon)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 5:05pm UTC](https://discourse.julialang.org/t/error-x-depends-on-y-but-no-such-entry-exists-in-the-manifest/108920 "2024-01-17T17:05:16Z")

</div>

Hi, I am working on a package , I can instantiate it with no problem on my local computer, and my colleagues have no problem to instantiate it on their computer too. However, we have a CI remote that error when trying …

---

## [\[ANN\] LLMTextAnalysis.jl - Unveil Text Insights with LLMs!](https://discourse.julialang.org/t/ann-llmtextanalysis-jl-unveil-text-insights-with-llms/108705)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 1\
**Last updated:** [January 17, 2024, 9:03pm UTC](https://discourse.julialang.org/t/ann-llmtextanalysis-jl-unveil-text-insights-with-llms/108705 "2024-01-17T21:03:03Z")

</div>

We’re excited to introduce LLMTextAnalysis.jl, a humble yet powerful addition to your text analysis toolkit. Not intended to compete with established tools like TextAnalysis.jl, this LLM-powered cousin complements your e…

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

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