# Latest

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

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

**Page:** 472

---

## [Converting/Reshaping a vector of ArrayPartition to an Array on the gpu](https://discourse.julialang.org/t/converting-reshaping-a-vector-of-arraypartition-to-an-array-on-the-gpu/110842)

<div class="topic-metadata">

**Author:** [@agelgazzar](https://discourse.julialang.org/u/agelgazzar)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 7:50pm UTC](https://discourse.julialang.org/t/converting-reshaping-a-vector-of-arraypartition-to-an-array-on-the-gpu/110842 "2024-02-28T19:50:30Z")

</div>

I have a vector ArrayPartition that looks like this: 5-element Vector{ArrayPartition{Float32, Tuple{CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}}}} I want to reshape this into …

---

## [ParallelDataTransfer.jl with local variables](https://discourse.julialang.org/t/paralleldatatransfer-jl-with-local-variables/110916)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 7:49pm UTC](https://discourse.julialang.org/t/paralleldatatransfer-jl-with-local-variables/110916 "2024-02-28T19:49:13Z")

</div>

I want to pass a variable to my workers inside a function (see minimum example below) but I get stuck on passobj. I assume this is because passobj is evaluated at the global scope where the variable is not defined? Is th…

---

## [List JuliaHub packages by downloads](https://discourse.julialang.org/t/list-juliahub-packages-by-downloads/107468)

<div class="topic-metadata">

**Author:** [@awiersdorf](https://discourse.julialang.org/u/awiersdorf)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 7:26pm UTC](https://discourse.julialang.org/t/list-juliahub-packages-by-downloads/107468 "2024-02-28T19:26:37Z")

</div>

I’m doing a little digging to see how popular various Julia packages are. I’d like to use number of downloads as a metric. Is there any way to see what the most n popular packages by downloads are on JuliaHub? (I’m inter…

---

## [Stripping or replacing substrings into a vector of strings](https://discourse.julialang.org/t/stripping-or-replacing-substrings-into-a-vector-of-strings/110851)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 9\
**Last updated:** [February 28, 2024, 5:40pm UTC](https://discourse.julialang.org/t/stripping-or-replacing-substrings-into-a-vector-of-strings/110851 "2024-02-28T17:40:27Z")

</div>

Hi there, I have a dataframe df\_ln, whose names are: julia\> names(df\_ln) 11-element Vector{String}: "Aluno" "DRE" "Questionário: Teste 1 (T1) (Real)" "Questionário: Primeira Prova (P1) (Real)" "Questionário: Teste…

---

## [Meme by numeric literal coefficient precedence](https://discourse.julialang.org/t/meme-by-numeric-literal-coefficient-precedence/110891)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 4\
**Last updated:** [February 28, 2024, 4:35pm UTC](https://discourse.julialang.org/t/meme-by-numeric-literal-coefficient-precedence/110891 "2024-02-28T16:35:57Z")

</div>

julia\> 6÷2(1+2) 1 julia\> 6÷2\*(1+2) 9

---

## [Julia-repl VScode extension on HPC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 3\
**Last updated:** [February 28, 2024, 4:22pm UTC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898 "2024-02-28T16:22:57Z")

</div>

I’m working on a HPC with a master node and calculation nodes. Q. Is there a way to start Julia-repl on VScode at a non-master node of HPC? If I type shift+enter on test.jl file with VScode editor, it starts a julia-re…

---

## [Julia vs Pyccel: a Python-to-X transpiler for scientific high-performance computing](https://discourse.julialang.org/t/julia-vs-pyccel-a-python-to-x-transpiler-for-scientific-high-performance-computing/110904)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [February 28, 2024, 3:45pm UTC](https://discourse.julialang.org/t/julia-vs-pyccel-a-python-to-x-transpiler-for-scientific-high-performance-computing/110904 "2024-02-28T15:45:39Z")

</div>

I noticed Pyccel has a this still open discussion from long ago, recently added to: And while it may get that feature, or not, Python already has in a package: I don’t think Python will get inherently get better than…

---

## [Scalar function for reals and arrays: single function definition](https://discourse.julialang.org/t/scalar-function-for-reals-and-arrays-single-function-definition/110886)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 6\
**Last updated:** [February 28, 2024, 12:13pm UTC](https://discourse.julialang.org/t/scalar-function-for-reals-and-arrays-single-function-definition/110886 "2024-02-28T12:13:33Z")

</div>

I often find myself writing two methods for a simple scalar function. E.g. function gauss(x::Real; a=1.0, c=0.0, s=0.7) return a/s/(sqrt(2pi))\*exp(-((x-c)^2/(2\*s^2))) end function gauss(x::AbstractArray{\<:Real}; a=…

---

## [Parallel assembly of a finite element sparse matrix](https://discourse.julialang.org/t/parallel-assembly-of-a-finite-element-sparse-matrix/95947)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 34\
**Last updated:** [February 28, 2024, 5:04am UTC](https://discourse.julialang.org/t/parallel-assembly-of-a-finite-element-sparse-matrix/95947 "2024-02-28T05:04:02Z")

</div>

There was a thread recently (Behavior of threads) concerning a problem of interest to me: how to teach a serial finite element code to perform the assembly of a global sparse matrix in parallel (on shared memory computer…

---

## [A Julia DSL for language models](https://discourse.julialang.org/t/a-julia-dsl-for-language-models/110244)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 14\
**Last updated:** [February 28, 2024, 2:51pm UTC](https://discourse.julialang.org/t/a-julia-dsl-for-language-models/110244 "2024-02-28T14:51:57Z")

</div>

@svilupp and I were talking on the Slack about what a DSL might look like for generative models. I wanted to stick this on the forum for a more sticky conversational place, so I hope this can serve as kind of an evolving…

---

## [Writing ROOT Tree from Julia](https://discourse.julialang.org/t/writing-root-tree-from-julia/110902)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 0\
**Last updated:** [February 28, 2024, 2:27pm UTC](https://discourse.julialang.org/t/writing-root-tree-from-julia/110902 "2024-02-28T14:27:41Z")

</div>

Hello, At the JuliaHEP workshop of last November the need for ROOT Tree write support in Julia using a binding to ROOT libraries was identified. TTree writing from Julia is now possible ! The ROOT wrapper example ship…

---

## [TUM MSc Mathematics in Sci. and Eng. student looking for part-time opportunity](https://discourse.julialang.org/t/tum-msc-mathematics-in-sci-and-eng-student-looking-for-part-time-opportunity/107354)

<div class="topic-metadata">

**Author:** [@Maxesit](https://discourse.julialang.org/u/Maxesit)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 2:27pm UTC](https://discourse.julialang.org/t/tum-msc-mathematics-in-sci-and-eng-student-looking-for-part-time-opportunity/107354 "2024-02-28T14:27:02Z")

</div>

Greetings, I am a MSc Mathematics in Science and Engineering student at the Technical University of Munich. I am absolutely in love with mechanics, and optimization; especially when related to the automotive industry. …

---

## [Juliaup install script verify checksum](https://discourse.julialang.org/t/juliaup-install-script-verify-checksum/110899)

<div class="topic-metadata">

**Author:** [@Andy2K11](https://discourse.julialang.org/u/Andy2K11)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 2:22pm UTC](https://discourse.julialang.org/t/juliaup-install-script-verify-checksum/110899 "2024-02-28T14:22:56Z")

</div>

The installation instructions now recommend using: curl -fsSL https://install.julialang.org | sh There is a section in the docs that talks about download verifications which can be used like curl https://julialang.org…

---

## [Extracting coordinates from Shape File](https://discourse.julialang.org/t/extracting-coordinates-from-shape-file/67799)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 8\
**Last updated:** [February 28, 2024, 12:54pm UTC](https://discourse.julialang.org/t/extracting-coordinates-from-shape-file/67799 "2024-02-28T12:54:05Z")

</div>

Hi Community I tried to read in a Shape File with Austrian Boarders typing julia\> A=Shapefile.Table(Path\_Shapefile) Shapefile.Table{Union{Missing, Shapefile.Polygon}} with 1 rows and the following 16 columns: geometry…

---

## [Export GeoTable to common GIS format and CRS projection](https://discourse.julialang.org/t/export-geotable-to-common-gis-format-and-crs-projection/88408)

<div class="topic-metadata">

**Author:** [@ErickChacon](https://discourse.julialang.org/u/ErickChacon)\
**Replies:** 16\
**Last updated:** [February 28, 2024, 12:53pm UTC](https://discourse.julialang.org/t/export-geotable-to-common-gis-format-and-crs-projection/88408 "2024-02-28T12:53:30Z")

</div>

I love working with Meshes.jl and GeoTables.jl. I would like to be able to export a GeoTable object to a standard GIS format (e.g. shapfile, gpkg, so on) so my collaborators can handle the results of my analysis. What…

---

## [Accessing x, y values in a geopackage](https://discourse.julialang.org/t/accessing-x-y-values-in-a-geopackage/103196)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 18\
**Last updated:** [February 28, 2024, 12:50pm UTC](https://discourse.julialang.org/t/accessing-x-y-values-in-a-geopackage/103196 "2024-02-28T12:50:59Z")

</div>

Basic question: I can load a geopackage with: using GeoTables table = GeoTables.load("myfile.gpkg") Now how do I access the x, y values in the table?

---

## [Help me understand the \`unique\` semantic for a vector of mutable struct](https://discourse.julialang.org/t/help-me-understand-the-unique-semantic-for-a-vector-of-mutable-struct/110887)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 6\
**Last updated:** [February 28, 2024, 12:01pm UTC](https://discourse.julialang.org/t/help-me-understand-the-unique-semantic-for-a-vector-of-mutable-struct/110887 "2024-02-28T12:01:51Z")

</div>

The unique documentation mentions that it is based on the isequal function. Hence I cannot understand the result of the following MWE: Base.@kwdef mutable struct AStruct toto::String = "toto" tuti::Int …

---

## [Zygote with Tullio gives wrong gradients/pullbacks using CUDA](https://discourse.julialang.org/t/zygote-with-tullio-gives-wrong-gradients-pullbacks-using-cuda/110767)

<div class="topic-metadata">

**Author:** [@kcqpo](https://discourse.julialang.org/u/kcqpo)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 2:01pm UTC](https://discourse.julialang.org/t/zygote-with-tullio-gives-wrong-gradients-pullbacks-using-cuda/110767 "2024-02-26T14:01:55Z")

</div>

using Tullio, Zygote, CUDA, KernelAbstractions, OMEinsum # Show outer product of strings A = \["x", "y", "z", "w"\] res = Array{String}(undef, length(A), length(A)) for (i, r) in enumerate(A) for (j, c) in enumerate(A…

---

## [Trying to understand inferred effects](https://discourse.julialang.org/t/trying-to-understand-inferred-effects/110854)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [February 28, 2024, 10:02am UTC](https://discourse.julialang.org/t/trying-to-understand-inferred-effects/110854 "2024-02-28T10:02:05Z")

</div>

julia\> Base.infer\_effects(getindex, (UnitRange{Int}, Int)) (+c,+e,!n,+t,+s,+m,+u) julia\> Base.infer\_effects(getindex, (Base.OneTo{Int}, Int)) (!c,+e,!n,+t,+s,+m,+u) julia\> VERSION v"1.12.0-DEV.88" Firstly, why is the …

---

## [How to print out Latex document as pdf?](https://discourse.julialang.org/t/how-to-print-out-latex-document-as-pdf/110786)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 12\
**Last updated:** [February 28, 2024, 8:43am UTC](https://discourse.julialang.org/t/how-to-print-out-latex-document-as-pdf/110786 "2024-02-28T08:43:24Z")

</div>

I have this code and is working fine for my desired output as you can see below. using Latexify, ParameterizedFunctions, Weave f = @ode\_def positiveFeedback begin dx = v\*y^n/(k^n+y^n) - x dy = x/(k\_2+x) - y end…

---

## [Solving a differential equation in a for loop](https://discourse.julialang.org/t/solving-a-differential-equation-in-a-for-loop/110828)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 5\
**Last updated:** [February 28, 2024, 8:16am UTC](https://discourse.julialang.org/t/solving-a-differential-equation-in-a-for-loop/110828 "2024-02-28T08:16:51Z")

</div>

Hi Guys I have done this before on Matlab however for some reason I can’t get it to run on Julia. I am getting the below error, I think it has something to do with regard to the for loop. Can someone please assist? ERR…

---

## [OpenCL.jl v0.9](https://discourse.julialang.org/t/opencl-jl-v0-9/88437)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 7:58am UTC](https://discourse.julialang.org/t/opencl-jl-v0-9/88437 "2024-02-28T07:58:24Z")

</div>

Dear community, We are happy to revive the OpenCL.jl package for Julia v1.x. It now uses OpenCL\_jll to automatically install the OpenCL ICD loader on different (currently 14) platforms. Thank you to @giordano for all th…

---

## [Status of Julia wrappers of SYCL](https://discourse.julialang.org/t/status-of-julia-wrappers-of-sycl/110870)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 7:08am UTC](https://discourse.julialang.org/t/status-of-julia-wrappers-of-sycl/110870 "2024-02-28T07:08:10Z")

</div>

What do you know? Any bit of info will help. Ta!

---

## [\`Union\` constraints in abstract type declarations seem to break subtype relations](https://discourse.julialang.org/t/union-constraints-in-abstract-type-declarations-seem-to-break-subtype-relations/110322)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 5\
**Last updated:** [February 28, 2024, 5:01am UTC](https://discourse.julialang.org/t/union-constraints-in-abstract-type-declarations-seem-to-break-subtype-relations/110322 "2024-02-28T05:01:04Z")

</div>

I’m currently writing a package, CliffordNumbers.jl, that makes the following abstract type declaration: const BaseNumber = Union{Real,Complex} abstract type AbstractCliffordNumber{Q\<:QuadraticForm,T\<:BaseNumber} \<: Nu…

---

## [Assistance with optimization](https://discourse.julialang.org/t/assistance-with-optimization/110862)

<div class="topic-metadata">

**Author:** [@narnold0](https://discourse.julialang.org/u/narnold0)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:48pm UTC](https://discourse.julialang.org/t/assistance-with-optimization/110862 "2024-02-27T21:48:28Z")

</div>

Hi friends, I made a post about the problem of generating pairs of objects while also filtering them, and it seemed that parallel computing was the main suggestion, so I’m trying to learn CUDA for that, but I’ve run int…

---

## [Why can't it find that method?](https://discourse.julialang.org/t/why-cant-it-find-that-method/110860)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 2:47am UTC](https://discourse.julialang.org/t/why-cant-it-find-that-method/110860 "2024-02-28T02:47:08Z")

</div>

I normally post to Slack, but seems too long winded for that venue. I’m having some trouble that might be related to a macro I’ve defined, but as near as I can tell the macro expands as I expect. I’m hoping you can hel…

---

## [Using an \`Int\` as a \`Num\`](https://discourse.julialang.org/t/using-an-int-as-a-num/110866)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 4\
**Last updated:** [February 28, 2024, 1:32am UTC](https://discourse.julialang.org/t/using-an-int-as-a-num/110866 "2024-02-28T01:32:32Z")

</div>

I am using Symbolics.jl. I have a function function f(a::Num,b::Num)::Num, but in using it I want to use, sometimes - @variables x, z y = f(1,x) as well as @variables x, z y = f(z,x) but I get an error because 1 is …

---

## [Coloring regions defined with path in Luxor](https://discourse.julialang.org/t/coloring-regions-defined-with-path-in-luxor/110863)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 12:31am UTC](https://discourse.julialang.org/t/coloring-regions-defined-with-path-in-luxor/110863 "2024-02-28T00:31:33Z")

</div>

I am working on a new logo for the PeaceFounder project and giving Luxor a chance. So far, I have managed to get a frame in the way I want it to be (representing two interlinked elements in a rope): which is achieved…

---

## [Singular.jl: polynomial ring over a polynomial ring](https://discourse.julialang.org/t/singular-jl-polynomial-ring-over-a-polynomial-ring/110839)

<div class="topic-metadata">

**Author:** [@Andreas\_Poulsen](https://discourse.julialang.org/u/Andreas_Poulsen)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 11:50pm UTC](https://discourse.julialang.org/t/singular-jl-polynomial-ring-over-a-polynomial-ring/110839 "2024-02-27T23:50:43Z")

</div>

Hi I’m attempting to use a library in Julia (grobcov.lib), which expects an ideal of polynomials over a polynomial ring, for example QQ\["a", "b"\]\["x", "y"\]. My problem is how to construct such a ring in Singular. I’ve t…

---

## [Way to return multiple columns after applying combine-groupby transformation](https://discourse.julialang.org/t/way-to-return-multiple-columns-after-applying-combine-groupby-transformation/110806)

<div class="topic-metadata">

**Author:** [@JBH\_84](https://discourse.julialang.org/u/JBH_84)\
**Replies:** 15\
**Last updated:** [February 27, 2024, 9:27pm UTC](https://discourse.julialang.org/t/way-to-return-multiple-columns-after-applying-combine-groupby-transformation/110806 "2024-02-27T21:27:14Z")

</div>

I have the following df that i apply a transformation on. it only returns columns y and x however. is there a way to also return the corresponding values in columns a and b? df=DataFrame(y=\[1, 1, 2, 2\],x=\[3, 4, 5, 6\],a=…

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

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