# Latest

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

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

**Page:** 1108

---

## [How to append elements to a CuArray or delete some entries from it in GPU kernel function](https://discourse.julialang.org/t/how-to-append-elements-to-a-cuarray-or-delete-some-entries-from-it-in-gpu-kernel-function/77180)

<div class="topic-metadata">

**Author:** [@Mari](https://discourse.julialang.org/u/Mari)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 10:26am UTC](https://discourse.julialang.org/t/how-to-append-elements-to-a-cuarray-or-delete-some-entries-from-it-in-gpu-kernel-function/77180 "2022-03-02T10:26:49Z")

</div>

Hi everyone, I am looking for a way to be able to efficiently append or delete some entries of a CuArray in the kernels being run on GPU . Also I guess that “append” and “delete” must be perfumed atomically. I am rather…

---

## [Predict not defined](https://discourse.julialang.org/t/predict-not-defined/77276)

<div class="topic-metadata">

**Author:** [@zlq178](https://discourse.julialang.org/u/zlq178)\
**Replies:** 3\
**Last updated:** [March 2, 2022, 8:48am UTC](https://discourse.julialang.org/t/predict-not-defined/77276 "2022-03-02T08:48:24Z")

</div>

I run the following example in Common MLJ Workflows · MLJ (alan-turing-institute.github.io) using MLJ,DataFrames crabs = load\_crabs() |\> DataFrames.DataFrame schema(crabs) y, X = unpack(crabs, ==(:sp), !in(\[:index, :sex…

---

## [AoT / JIT and runtime constant folding](https://discourse.julialang.org/t/aot-jit-and-runtime-constant-folding/77226)

<div class="topic-metadata">

**Author:** [@yarnton](https://discourse.julialang.org/u/yarnton)\
**Replies:** 4\
**Last updated:** [March 2, 2022, 8:23am UTC](https://discourse.julialang.org/t/aot-jit-and-runtime-constant-folding/77226 "2022-03-02T08:23:49Z")

</div>

I have no understanding at all of Julia’s internals, and I was wondering how much constant folding the current compiler is able to do at runtime? Basically, I am facing a case which I believe is pretty common and I was …

---

## [Recommendations for using GPU on old hardware](https://discourse.julialang.org/t/recommendations-for-using-gpu-on-old-hardware/77257)

<div class="topic-metadata">

**Author:** [@quailman1031](https://discourse.julialang.org/u/quailman1031)\
**Replies:** 3\
**Last updated:** [March 2, 2022, 8:12am UTC](https://discourse.julialang.org/t/recommendations-for-using-gpu-on-old-hardware/77257 "2022-03-02T08:12:32Z")

</div>

Is there a summary somewhere of what packages or package versions support CUDA capability levels? I have a Fermi-architecture card (GeForce GT 550M) which is compute capable 2.1 and CUDA driver 9.1 (latest available). I…

---

## [Is it possible to use x² to mean taking square x^2](https://discourse.julialang.org/t/is-it-possible-to-use-x-to-mean-taking-square-x-2/76137)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 13\
**Last updated:** [March 2, 2022, 7:58am UTC](https://discourse.julialang.org/t/is-it-possible-to-use-x-to-mean-taking-square-x-2/76137 "2022-03-02T07:58:19Z")

</div>

Say, x^2 can be written as x², tanspose(M) can be written as Mᵀ, and so on?

---

## [Not able to read a csv file](https://discourse.julialang.org/t/not-able-to-read-a-csv-file/76683)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 19\
**Last updated:** [March 2, 2022, 7:57am UTC](https://discourse.julialang.org/t/not-able-to-read-a-csv-file/76683 "2022-03-02T07:57:15Z")

</div>

earllier i have used CSV.read function very frequnetly. but now it is taking very long time to read CSV file, and finally not giving any result even after 10 minutes . This is the code im using and , which was uccesfull…

---

## [Move a registered package to a subfolder of another package](https://discourse.julialang.org/t/move-a-registered-package-to-a-subfolder-of-another-package/77272)

<div class="topic-metadata">

**Author:** [@Norman](https://discourse.julialang.org/u/Norman)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 4:44am UTC](https://discourse.julialang.org/t/move-a-registered-package-to-a-subfolder-of-another-package/77272 "2022-03-02T04:44:33Z")

</div>

Suppose there is a package A registered on General that need to be moved to a subfolder lib inside package B. If I understood correctly, after the merge, one should be able to find all the older versions after git clone …

---

## [Community members currently working on writing Bioconductor packages in Julia?](https://discourse.julialang.org/t/community-members-currently-working-on-writing-bioconductor-packages-in-julia/75993)

<div class="topic-metadata">

**Author:** [@BioinfoBuggaBoo](https://discourse.julialang.org/u/BioinfoBuggaBoo)\
**Replies:** 4\
**Last updated:** [March 2, 2022, 2:12am UTC](https://discourse.julialang.org/t/community-members-currently-working-on-writing-bioconductor-packages-in-julia/75993 "2022-03-02T02:12:19Z")

</div>

Hi all, Not sure if this is the right section sorry: I’m looking to get involved with people who may be actively working on writing equivalent packages from Bioconductor in Julia. From my own limited experience R havin…

---

## [Overload \`\[\]\` operator for custom type](https://discourse.julialang.org/t/overload-operator-for-custom-type/77266)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.julialang.org/u/kerim)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 1:41am UTC](https://discourse.julialang.org/t/overload-operator-for-custom-type/77266 "2022-03-02T01:41:19Z")

</div>

Hi, I’m wondering is it possible to overload \[\] operator for my struct: struct MyStruct x::Array{Float32,1} y::Array{Float32,1} end For example I would like when calling my\_var\[i\] (myvar has type MyStruct) to…

---

## [Dataframe population can't figure out why one approach works and the other does not](https://discourse.julialang.org/t/dataframe-population-cant-figure-out-why-one-approach-works-and-the-other-does-not/77253)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 8\
**Last updated:** [March 1, 2022, 11:32pm UTC](https://discourse.julialang.org/t/dataframe-population-cant-figure-out-why-one-approach-works-and-the-other-does-not/77253 "2022-03-01T23:32:13Z")

</div>

Hi all julia noob here. I’m trying to get to grips with changing some functionality in my code based on some excellent guidance from wonderful members of discourse. I have the code “working” but one approach SHOULD work…

---

## [How to plot more ticks in AlgebraOfGraphics or Makie?](https://discourse.julialang.org/t/how-to-plot-more-ticks-in-algebraofgraphics-or-makie/77261)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 10:40pm UTC](https://discourse.julialang.org/t/how-to-plot-more-ticks-in-algebraofgraphics-or-makie/77261 "2022-03-01T22:40:19Z")

</div>

I have this code to plot a time-series: using AlgebraOfGraphics data( (; x=1:100, y=randn(100)) ) \* mapping(:x, :y) \* visual(Lines) |\> draw It produces this plot: Question: how to add more ticks to x and/or y …

---

## [Putting background image to Makie plot](https://discourse.julialang.org/t/putting-background-image-to-makie-plot/77260)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 10:07pm UTC](https://discourse.julialang.org/t/putting-background-image-to-makie-plot/77260 "2022-03-01T22:07:49Z")

</div>

I am trying to place a PNG image as a background of a Makie plot. The goal is to compare a curve plotted by lines!() with some curves in the image. However I’m having a hard time finding an example. Is this possible?

---

## [\[ANN\] HorseML.jl v0.4.0](https://discourse.julialang.org/t/ann-horseml-jl-v0-4-0/77181)

<div class="topic-metadata">

**Author:** [@QGMW22](https://discourse.julialang.org/u/QGMW22)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 10:01pm UTC](https://discourse.julialang.org/t/ann-horseml-jl-v0-4-0/77181 "2022-03-01T22:01:08Z")

</div>

Announcing HorseML v0.4.0. Clustering Models and data builder has been added. This is a Clustering result: Please see the docs for details.

---

## [How to sample data without using external packages?](https://discourse.julialang.org/t/how-to-sample-data-without-using-external-packages/77240)

<div class="topic-metadata">

**Author:** [@Dharik\_Arsath](https://discourse.julialang.org/u/Dharik_Arsath)\
**Replies:** 12\
**Last updated:** [March 1, 2022, 9:05pm UTC](https://discourse.julialang.org/t/how-to-sample-data-without-using-external-packages/77240 "2022-03-01T21:05:41Z")

</div>

I am trying to sample data from population within loop but that produces way too much allocations and making my algorithms lot slower. I need a way to sample data with no more than 1 allocation. How should I proceed??? I…

---

## [Determinant of CUDA matrix?](https://discourse.julialang.org/t/determinant-of-cuda-matrix/77245)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 8\
**Last updated:** [March 1, 2022, 8:38pm UTC](https://discourse.julialang.org/t/determinant-of-cuda-matrix/77245 "2022-03-01T20:38:36Z")

</div>

Hello, I have so far been able to use CUDA without having to dig into the actual package api (besides cu(m)) just thanks to multiple dispatch. Today I need to compute the determinant of a matrix and I would like my code…

---

## [How to manually add references in Literate -\> Documenter](https://discourse.julialang.org/t/how-to-manually-add-references-in-literate-documenter/77223)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [March 1, 2022, 8:31pm UTC](https://discourse.julialang.org/t/how-to-manually-add-references-in-literate-documenter/77223 "2022-03-01T20:31:53Z")

</div>

I am using Literate → Documenter to write a tutorial, not to document a module. How do I manually add an anchor on a file and create a reference on a different file (e.g. “See the section on \[AUTOLINK\]Missing Values\[/A…

---

## [Problem with inline math for Literate-generated notebook](https://discourse.julialang.org/t/problem-with-inline-math-for-literate-generated-notebook/60132)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 8:25pm UTC](https://discourse.julialang.org/t/problem-with-inline-math-for-literate-generated-notebook/60132 "2022-03-01T20:25:30Z")

</div>

I’m using Literate and Documenter to develop documentation for a new package. Everything is going smoothly as far as the generated HTML docs go. The problem is that the inline math isn’t displayed as math in the genera…

---

## [Libc.FILE for stdout](https://discourse.julialang.org/t/libc-file-for-stdout/22482)

<div class="topic-metadata">

**Author:** [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 7:57pm UTC](https://discourse.julialang.org/t/libc-file-for-stdout/22482 "2022-03-01T19:57:04Z")

</div>

I need to ccall a function that expects a C FILE \*. To have the function write to a file on disk, I figured out that I can get an appropriate FILE \* using foo = open("foo.txt", "w") Libc.FILE(foo) This works fine, but…

---

## [Juno vs VS Code vs Sublime Text with Julia 1.7](https://discourse.julialang.org/t/juno-vs-vs-code-vs-sublime-text-with-julia-1-7/77249)

<div class="topic-metadata">

**Author:** [@Dustin\_Hess](https://discourse.julialang.org/u/Dustin_Hess)\
**Replies:** 6\
**Last updated:** [March 1, 2022, 7:43pm UTC](https://discourse.julialang.org/t/juno-vs-vs-code-vs-sublime-text-with-julia-1-7/77249 "2022-03-01T19:43:08Z")

</div>

I have been using 1.7 without any trouble. However, Juno doesn’t seem to support it yet I get a “Couldn’t resolve version error.” I keep wanting to switch to VS code but the fuzzy file finding in Juno is deal breaker for…

---

## [How do you like Julia 1.7?](https://discourse.julialang.org/t/how-do-you-like-julia-1-7/70405)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 9\
**Last updated:** [March 1, 2022, 7:01pm UTC](https://discourse.julialang.org/t/how-do-you-like-julia-1-7/70405 "2022-03-01T19:01:21Z")

</div>

I’m using Julia 1.6 right now and am wondering if I should upgrade to Julia 1.7. Any advice is appreciated. BTW, how do I upgrade to 1.7? If I have to delete my current Julia 1.6 folder before installing Julia 1.7, woul…

---

## [\[ANN\] ValSplit.jl: Compile away dynamic dispatch on Val-typed arguments](https://discourse.julialang.org/t/ann-valsplit-jl-compile-away-dynamic-dispatch-on-val-typed-arguments/77096)

<div class="topic-metadata">

**Author:** [@Xuan](https://discourse.julialang.org/u/Xuan)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 6:48pm UTC](https://discourse.julialang.org/t/ann-valsplit-jl-compile-away-dynamic-dispatch-on-val-typed-arguments/77096 "2022-03-01T18:48:33Z")

</div>

Ever wanted to use methods with Val-typed arguments, but avoid dynamic dispatch? Here’s a little package I worked on over the past week that allows you to do just that! ValSplit.jl provides the @valsplit macro, which co…

---

## [A neat Julia/SLURM trick](https://discourse.julialang.org/t/a-neat-julia-slurm-trick/61123)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 12\
**Last updated:** [March 1, 2022, 6:27pm UTC](https://discourse.julialang.org/t/a-neat-julia-slurm-trick/61123 "2022-03-01T18:27:24Z")

</div>

This took some figuring out and I haven’t seen it mentioned for Julia, so I figured I’d share. Hope its helpful to someone! If you often submit Julia scripts on a SLURM cluster and hate having to have a separate SLURM s…

---

## [\[ANN\] ViscousFlow.jl v0.5.1](https://discourse.julialang.org/t/ann-viscousflow-jl-v0-5-1/77250)

<div class="topic-metadata">

**Author:** [@jdeldre](https://discourse.julialang.org/u/jdeldre)\
**Replies:** 0\
**Last updated:** [March 1, 2022, 5:41pm UTC](https://discourse.julialang.org/t/ann-viscousflow-jl-v0-5-1/77250 "2022-03-01T17:41:07Z")

</div>

Announcing the release of version 0.5.1 of ViscousFlow.jl, a set of tools for computing and analyzing 2-d (for now) viscous incompressible flows with arbitrary body shapes. The package relies on the method of immersed la…

---

## [Inconsistent StackOverflowError with recursive parametric dynamic types](https://discourse.julialang.org/t/inconsistent-stackoverflowerror-with-recursive-parametric-dynamic-types/77210)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 7\
**Last updated:** [March 1, 2022, 5:30pm UTC](https://discourse.julialang.org/t/inconsistent-stackoverflowerror-with-recursive-parametric-dynamic-types/77210 "2022-03-01T17:30:33Z")

</div>

I think I stumbled upon a bug in the Julia, but I am not sure what kind of issue is this. The code is the following: using Graphs abstract type MyAbstract end struct Composite{T \<: MyAbstract,R \<: MyAbstract} \<: MyAb…

---

## [How to broadcast over only certain function arguments?](https://discourse.julialang.org/t/how-to-broadcast-over-only-certain-function-arguments/19274)

<div class="topic-metadata">

**Author:** [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Replies:** 15\
**Last updated:** [March 1, 2022, 5:13pm UTC](https://discourse.julialang.org/t/how-to-broadcast-over-only-certain-function-arguments/19274 "2022-03-01T17:13:42Z")

</div>

I have a function that takes fixed input arrays and variable scalars to produce a scalar return value. I would like to use the broadcast capability of Julia to turn the variable scalars into arrays, and have it return a…

---

## [Two postdoc positions in agent-based modelling at Oxford (4.5 years)](https://discourse.julialang.org/t/two-postdoc-positions-in-agent-based-modelling-at-oxford-4-5-years/77246)

<div class="topic-metadata">

**Author:** [@arnauqb](https://discourse.julialang.org/u/arnauqb)\
**Replies:** 0\
**Last updated:** [March 1, 2022, 2:56pm UTC](https://discourse.julialang.org/t/two-postdoc-positions-in-agent-based-modelling-at-oxford-4-5-years/77246 "2022-03-01T14:56:30Z")

</div>

Hi all, There are two open postdoc positions of 4.5 years each in the Department of Computer Science at Oxford. The successful candidate will work with Professor Wooldridge and Professors Ani Calinescu and Doyne Farmer …

---

## [Matrix Exponential of GPU matrix](https://discourse.julialang.org/t/matrix-exponential-of-gpu-matrix/77228)

<div class="topic-metadata">

**Author:** [@Michael\_Birk](https://discourse.julialang.org/u/Michael_Birk)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 3:13pm UTC](https://discourse.julialang.org/t/matrix-exponential-of-gpu-matrix/77228 "2022-03-01T15:13:21Z")

</div>

I am trying to calculate the matrix exponent of a matrix stored on the GPU (via CUDA), but I get the error: ERROR: ArgumentError: cannot take the CPU address of a CuArray{Float32, 2, CUDA. Mem.DeviceBuffer} Minimal …

---

## [Installing Julia Packages on a cluster](https://discourse.julialang.org/t/installing-julia-packages-on-a-cluster/43549)

<div class="topic-metadata">

**Author:** [@diepreye\_ayabina](https://discourse.julialang.org/u/diepreye_ayabina)\
**Replies:** 5\
**Last updated:** [March 1, 2022, 3:12pm UTC](https://discourse.julialang.org/t/installing-julia-packages-on-a-cluster/43549 "2022-03-01T15:12:29Z")

</div>

Hi, I’ve just started using Julia on my cluster account. Julia has to be recently installed by the admin and there isn’t much support from them with regards to usage. I can submit and run simple jobs, however when I try…

---

## [Iterators.Stateful is not an iterator?](https://discourse.julialang.org/t/iterators-stateful-is-not-an-iterator/53080)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 8\
**Last updated:** [March 1, 2022, 2:24pm UTC](https://discourse.julialang.org/t/iterators-stateful-is-not-an-iterator/53080 "2022-03-01T14:24:52Z")

</div>

I’m trying to understand iterators better because I’m trying to decide whether I should, for my specific application, define iterate for my type or define a constructor of Iterators.Stateful for my type. And I seem to ha…

---

## [Allocations when overwriting array elements in-place](https://discourse.julialang.org/t/allocations-when-overwriting-array-elements-in-place/77215)

<div class="topic-metadata">

**Author:** [@misa](https://discourse.julialang.org/u/misa)\
**Replies:** 5\
**Last updated:** [March 1, 2022, 1:07pm UTC](https://discourse.julialang.org/t/allocations-when-overwriting-array-elements-in-place/77215 "2022-03-01T13:07:04Z")

</div>

I have a relatively large matrix, where I want to set all values below a certain threshold to zero: @time A = rand(1000,1000,1000) @time bool = A .\< 0.5 @time A\[bool\] .= 0.0 5.653554 seconds (2 allocations: 7.451 GiB, …

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

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