# Latest

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

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

**Page:** 986

---

## [Analog of \`diff\` operator for adjacent sum](https://discourse.julialang.org/t/analog-of-diff-operator-for-adjacent-sum/84025)

<div class="topic-metadata">

**Author:** [@v715](https://discourse.julialang.org/u/v715)\
**Replies:** 9\
**Last updated:** [July 11, 2022, 1:34pm UTC](https://discourse.julialang.org/t/analog-of-diff-operator-for-adjacent-sum/84025 "2022-07-11T13:34:51Z")

</div>

I want to return the sum of adjacent elements in an array, ie, a function sumadj that produces julia\> a = \[2, 3, 4\] julia\> sumadj(a) 2-element Vector{Int64}: 5 7 diff computes the difference between adjacent pairs o…

---

## [Hypernetworks using Flux.destructure?](https://discourse.julialang.org/t/hypernetworks-using-flux-destructure/77211)

<div class="topic-metadata">

**Author:** [@afishy](https://discourse.julialang.org/u/afishy)\
**Replies:** 10\
**Last updated:** [July 11, 2022, 2:28pm UTC](https://discourse.julialang.org/t/hypernetworks-using-flux-destructure/77211 "2022-07-11T14:28:11Z")

</div>

Flux.destructure provides a nice interface for creating hypernetworks, but I seem to be having trouble with it: it seems to calculate the wrong number of parameters for the dimensions and can’t take the gradient if the h…

---

## [Found Bug in Flux](https://discourse.julialang.org/t/found-bug-in-flux/83483)

<div class="topic-metadata">

**Author:** [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Replies:** 13\
**Last updated:** [July 11, 2022, 2:25pm UTC](https://discourse.julialang.org/t/found-bug-in-flux/83483 "2022-07-11T14:25:29Z")

</div>

My Flux model chain works perfectly when given an input or when calculating the loss of my training data. However, when I try to calculate the gradient my model chain undergoes unexpected behaviour. My input data is a 3…

---

## [For loop having too many allocation](https://discourse.julialang.org/t/for-loop-having-too-many-allocation/84030)

<div class="topic-metadata">

**Author:** [@jpt](https://discourse.julialang.org/u/jpt)\
**Replies:** 19\
**Last updated:** [July 11, 2022, 2:20pm UTC](https://discourse.julialang.org/t/for-loop-having-too-many-allocation/84030 "2022-07-11T14:20:36Z")

</div>

I am pretty much new to julia, and I am writing a code to train a neural network. I have loaded in my training dataset, but I find that the learning process takes too long time. When I timed my loss function, it takes 6 …

---

## [Error: Point2f and Point3f not defined](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920)

<div class="topic-metadata">

**Author:** [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Replies:** 5\
**Last updated:** [July 11, 2022, 2:16pm UTC](https://discourse.julialang.org/t/error-point2f-and-point3f-not-defined/83920 "2022-07-11T14:16:39Z")

</div>

Hi, I’m trying to use a code that I found in the community. But I cannot run because a error: return (Point3f.(xyzos), Float32.(weights)) ERROR: UndefVarError: Point3f not defined How I can solve one? Mu Julia Version…

---

## [How record a chart animation function](https://discourse.julialang.org/t/how-record-a-chart-animation-function/83958)

<div class="topic-metadata">

**Author:** [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Replies:** 7\
**Last updated:** [July 11, 2022, 2:15pm UTC](https://discourse.julialang.org/t/how-record-a-chart-animation-function/83958 "2022-07-11T14:15:29Z")

</div>

Hi, I’m a new user in Julia (but, I have large experience with R and Python). Well, I’m create a function that create a figure (a grid of charts) bellow. The idea is the parameter i is the number of points or simulation…

---

## [CUDA.jl unsupported call to an unknown function, unsupported dynamic function invocation](https://discourse.julialang.org/t/cuda-jl-unsupported-call-to-an-unknown-function-unsupported-dynamic-function-invocation/83997)

<div class="topic-metadata">

**Author:** [@kongdd](https://discourse.julialang.org/u/kongdd)\
**Replies:** 3\
**Last updated:** [July 11, 2022, 1:31pm UTC](https://discourse.julialang.org/t/cuda-jl-unsupported-call-to-an-unknown-function-unsupported-dynamic-function-invocation/83997 "2022-07-11T13:31:04Z")

</div>

I am trying to translate the following function into the GPU version. But faced with the following error: unsupported call to an unknown function Reason: unsupported dynamic function invocation (call to libcuda) begin …

---

## [\[Parser\] Allow comma between struct fields and at the end of exported object list](https://discourse.julialang.org/t/parser-allow-comma-between-struct-fields-and-at-the-end-of-exported-object-list/84049)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 1:26pm UTC](https://discourse.julialang.org/t/parser-allow-comma-between-struct-fields-and-at-the-end-of-exported-object-list/84049 "2022-07-11T13:26:52Z")

</div>

I have a cup of minor issues that bother me from time to time. The first one is that it is currently an error to have a comma between struct fields, e.g. this is an error: struct Foo a::Int64, b::Int64 end The…

---

## [Summing an element of tuple](https://discourse.julialang.org/t/summing-an-element-of-tuple/84020)

<div class="topic-metadata">

**Author:** [@Salvatore\_Candita](https://discourse.julialang.org/u/Salvatore_Candita)\
**Replies:** 7\
**Last updated:** [July 11, 2022, 12:08pm UTC](https://discourse.julialang.org/t/summing-an-element-of-tuple/84020 "2022-07-11T12:08:42Z")

</div>

Hi everyone, I’m struggling with the following operation: I have an array of Tuple{Int,String) in which I have to increase by 1 the first element of the tuple but it seems doesn’t work in a while cycle; here the solutio…

---

## [Mixed Subplots Modification for PlotlyJS](https://discourse.julialang.org/t/mixed-subplots-modification-for-plotlyjs/84013)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 11:46am UTC](https://discourse.julialang.org/t/mixed-subplots-modification-for-plotlyjs/84013 "2022-07-11T11:46:56Z")

</div>

Hi all, the source is from this site: https://plotly.com/julia/mixed-subplots/ I try to learn and change the csv to become the location of Central Bank for some countries and the reserves of each. I want to modify th…

---

## [Dataframes transform!](https://discourse.julialang.org/t/dataframes-transform/84041)

<div class="topic-metadata">

**Author:** [@jerry\_ji](https://discourse.julialang.org/u/jerry_ji)\
**Replies:** 8\
**Last updated:** [July 11, 2022, 11:28am UTC](https://discourse.julialang.org/t/dataframes-transform/84041 "2022-07-11T11:28:40Z")

</div>

Hello! What is right way to transform an dataframe in place with a function which return multiple columns? I want to write it like transform!(df, :A=\>(x-\>f(x))=\>\[:B,:C\]) but it doesnt work.

---

## [Equivalent of C# enum?](https://discourse.julialang.org/t/equivalent-of-c-enum/83717)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 6\
**Last updated:** [July 11, 2022, 10:51am UTC](https://discourse.julialang.org/t/equivalent-of-c-enum/83717 "2022-07-11T10:51:46Z")

</div>

Does Julia have the equivalent of C# public enum AorB { A = 1, B = 2 } AorB x = AorB.B A variable that can take a fixed set of possib…

---

## [Two questions on package development](https://discourse.julialang.org/t/two-questions-on-package-development/83864)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 6\
**Last updated:** [July 11, 2022, 9:28am UTC](https://discourse.julialang.org/t/two-questions-on-package-development/83864 "2022-07-11T09:28:56Z")

</div>

Hello, I’m facing two uncomfortable issues when developing a package: How to install it? Currently I install it from Github with Pkg.add(url = ......). That does not look serious. Once it is installed, I have a pr…

---

## [Plotting with GR broken](https://discourse.julialang.org/t/plotting-with-gr-broken/84036)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [July 11, 2022, 9:14am UTC](https://discourse.julialang.org/t/plotting-with-gr-broken/84036 "2022-07-11T09:14:41Z")

</div>

Hi all, I was trying this code (yesterday it was fine): using Plots, LaTeXStrings gr() f(x) = (x^3 - 1) / (x-1) plot( f, 0, 6, legend=false, framestyle=:origin, yticks=(-3:3, \["$i" for i in 0:6\]) ) b…

---

## [\[ANN\] DLMReader 0.4.5 with one Big Enhancement](https://discourse.julialang.org/t/ann-dlmreader-0-4-5-with-one-big-enhancement/83729)

<div class="topic-metadata">

**Author:** [@sl-solution](https://discourse.julialang.org/u/sl-solution)\
**Replies:** 3\
**Last updated:** [July 11, 2022, 8:43am UTC](https://discourse.julialang.org/t/ann-dlmreader-0-4-5-with-one-big-enhancement/83729 "2022-07-11T08:43:22Z")

</div>

I am excited to announce that DLMReader version 0.4.5 has been released. The new release includes several performance enhancements and bug fixes. For instance, reading multiple observations per line and type detecting ar…

---

## [Tutorial and best practices for distributed processing with Julia on a cluster](https://discourse.julialang.org/t/tutorial-and-best-practices-for-distributed-processing-with-julia-on-a-cluster/83878)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 8:21am UTC](https://discourse.julialang.org/t/tutorial-and-best-practices-for-distributed-processing-with-julia-on-a-cluster/83878 "2022-07-11T08:21:43Z")

</div>

Can anyone provide a tutorial and best practices for running distributed computations on a cluster? In particular using Folds.

---

## [GPU sparse matrix-vector product with DoubleFloats.jl](https://discourse.julialang.org/t/gpu-sparse-matrix-vector-product-with-doublefloats-jl/84008)

<div class="topic-metadata">

**Author:** [@geoffroyleconte](https://discourse.julialang.org/u/geoffroyleconte)\
**Replies:** 3\
**Last updated:** [July 11, 2022, 7:43am UTC](https://discourse.julialang.org/t/gpu-sparse-matrix-vector-product-with-doublefloats-jl/84008 "2022-07-11T07:43:00Z")

</div>

Hi, Is it possible to use mul! with a CUDA sparse array and CuVectors using DoubleFloats.jl? The following code leads to scalar indexing: using CUDA, SparseArrays, LinearAlgebra, DoubleFloats CUDA.allowscalar(false) T…

---

## [Juno/Atom Github error](https://discourse.julialang.org/t/juno-atom-github-error/36660)

<div class="topic-metadata">

**Author:** [@gmm35](https://discourse.julialang.org/u/gmm35)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 6:53am UTC](https://discourse.julialang.org/t/juno-atom-github-error/36660 "2022-07-11T06:53:48Z")

</div>

I am getting the following error trying to clone an existing Github repository: “clone is not available in Present state” I can clone/open it to Visual Studio code and web and desktop Github interface. In fact in the G…

---

## [OpenBLAS threads repeatedly call gettimeofday() at the end of a loop](https://discourse.julialang.org/t/openblas-threads-repeatedly-call-gettimeofday-at-the-end-of-a-loop/84027)

<div class="topic-metadata">

**Author:** [@maxwindiff](https://discourse.julialang.org/u/maxwindiff)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 12:52am UTC](https://discourse.julialang.org/t/openblas-threads-repeatedly-call-gettimeofday-at-the-end-of-a-loop/84027 "2022-07-11T00:52:52Z")

</div>

When doing some profiling, I noticed that OpenBLAS threads would make a lot of calls to gettimeofday(), usually at the end of a loop. It happens on both Julia 1.7 and 1.8-rc1. In some of my programs this can add up to 10…

---

## [About .julia directory (conda is around 2 GB)](https://discourse.julialang.org/t/about-julia-directory-conda-is-around-2-gb/84026)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [July 10, 2022, 11:44pm UTC](https://discourse.julialang.org/t/about-julia-directory-conda-is-around-2-gb/84026 "2022-07-10T23:44:06Z")

</div>

Hi all, this is important, I was surprised when I checked that .julia has 3 GB of size and conda is the biggest one, if I delete conda will it be okay? If I want packages installed here, can I move the packages folder …

---

## [Enumerate function](https://discourse.julialang.org/t/enumerate-function/84007)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 4\
**Last updated:** [July 10, 2022, 11:34pm UTC](https://discourse.julialang.org/t/enumerate-function/84007 "2022-07-10T23:34:17Z")

</div>

Hi, I’m new to Julia. I’m given a function for (jd, depth) in enumerate(\[depth\_a, depth\_b\]) id, re = , for (k, v) in an push!(id, k) r = run(v, depth) push!(re, r) end end In this code, depth\_a and depth\_b ar…

---

## [Plot Map in Julia](https://discourse.julialang.org/t/plot-map-in-julia/84019)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 9\
**Last updated:** [July 10, 2022, 11:08pm UTC](https://discourse.julialang.org/t/plot-map-in-julia/84019 "2022-07-10T23:08:41Z")

</div>

Hi all, I want to know is it possible to plot map with color for different country by using Julia. like this: Each color could represent certain cluster/grouping. I see mapbox is expensive, we need to have credit c…

---

## [Weave.jl just hanging... was working earlier today](https://discourse.julialang.org/t/weave-jl-just-hanging-was-working-earlier-today/83975)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 1\
**Last updated:** [July 10, 2022, 10:04pm UTC](https://discourse.julialang.org/t/weave-jl-just-hanging-was-working-earlier-today/83975 "2022-07-10T22:04:45Z")

</div>

Earlier today weave was happily making output .html files. Now it just hangs at the end of each chunk and waits until i Ctrl-c it goes to the next chunk and hangs there… It actually runs to completion if I include\_weave…

---

## [ROCm-Device-Libs BinaryBuilder](https://discourse.julialang.org/t/rocm-device-libs-binarybuilder/83962)

<div class="topic-metadata">

**Author:** [@pxl-th](https://discourse.julialang.org/u/pxl-th)\
**Replies:** 5\
**Last updated:** [July 10, 2022, 6:27pm UTC](https://discourse.julialang.org/t/rocm-device-libs-binarybuilder/83962 "2022-07-10T18:27:45Z")

</div>

I’m having trouble building ROCm-Device-Libraries using BinaryBuilder with ROCmLLVM. I’m trying to follow build recipe from the rocm-arch repository. There they use ROCmLLVM to build it. But when specifying it in the B…

---

## [GpABC package: abc-example fail](https://discourse.julialang.org/t/gpabc-package-abc-example-fail/82708)

<div class="topic-metadata">

**Author:** [@EvaJ\_MathModel](https://discourse.julialang.org/u/EvaJ_MathModel)\
**Replies:** 1\
**Last updated:** [July 10, 2022, 5:42pm UTC](https://discourse.julialang.org/t/gpabc-package-abc-example-fail/82708 "2022-07-10T17:42:42Z")

</div>

I wanted to try Julia GpABC package. There are some examples on GitHub: GpABC.jl/abc-example.ipynb at master · tanhevg/GpABC.jl · GitHub I used the In\[1\] and In\[2\] from the above and then tried to run simulator function…

---

## [Understanding Gen.jl overhead](https://discourse.julialang.org/t/understanding-gen-jl-overhead/76761)

<div class="topic-metadata">

**Author:** [@ptotolo](https://discourse.julialang.org/u/ptotolo)\
**Replies:** 2\
**Last updated:** [July 10, 2022, 2:37pm UTC](https://discourse.julialang.org/t/understanding-gen-jl-overhead/76761 "2022-07-10T14:37:00Z")

</div>

I’ve been playing around with Gen.jl for a couple of weeks and one of the things I did was compare its performance to a hand-coded model in order to measure the overhead of the underlying trace data structure, the dynami…

---

## [Integral matrices with integral inverses using Sherman-Morrison formula - with Julia code](https://discourse.julialang.org/t/integral-matrices-with-integral-inverses-using-sherman-morrison-formula-with-julia-code/83989)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 4\
**Last updated:** [July 10, 2022, 2:21pm UTC](https://discourse.julialang.org/t/integral-matrices-with-integral-inverses-using-sherman-morrison-formula-with-julia-code/83989 "2022-07-10T14:21:56Z")

</div>

This blog post is on how to make a square matrix with integer entries so that its inverse contains only integer entries. This kind of matrices might be useful for demonstrating Gaussian-Jordan elimination for solving a l…

---

## [Precompile errors with \`pkg\> update\` or \`pkg\> add\` for some packages](https://discourse.julialang.org/t/precompile-errors-with-pkg-update-or-pkg-add-for-some-packages/83917)

<div class="topic-metadata">

**Author:** [@forestacorn](https://discourse.julialang.org/u/forestacorn)\
**Replies:** 4\
**Last updated:** [July 10, 2022, 1:43pm UTC](https://discourse.julialang.org/t/precompile-errors-with-pkg-update-or-pkg-add-for-some-packages/83917 "2022-07-10T13:43:53Z")

</div>

In the package manager I was getting some precompilation errors when trying to update Julia. So I have removed all the offending packages, which included Pluto and tried to add Pluto again with the following result: (@…

---

## [Can we still say that Julia's indexing is one-based?](https://discourse.julialang.org/t/can-we-still-say-that-julias-indexing-is-one-based/84009)

<div class="topic-metadata">

**Author:** [@peterkovesi](https://discourse.julialang.org/u/peterkovesi)\
**Replies:** 8\
**Last updated:** [July 10, 2022, 12:58pm UTC](https://discourse.julialang.org/t/can-we-still-say-that-julias-indexing-is-one-based/84009 "2022-07-10T12:58:17Z")

</div>

I was looking at the Julia Developer Survey 2022 and noted that one-based indexing was a feature of the language that you could choose to like or dislike. In the light of recent discussions here, here, and here and th…

---

## [Questions about the values of @variables in Catalyst/ModelingToolkit](https://discourse.julialang.org/t/questions-about-the-values-of-variables-in-catalyst-modelingtoolkit/83976)

<div class="topic-metadata">

**Author:** [@Wenzhe\_Ma](https://discourse.julialang.org/u/Wenzhe_Ma)\
**Replies:** 7\
**Last updated:** [July 10, 2022, 12:11pm UTC](https://discourse.julialang.org/t/questions-about-the-values-of-variables-in-catalyst-modelingtoolkit/83976 "2022-07-10T12:11:36Z")

</div>

Hello, I have a few seemingly simple questions but just can’t figure out the answer myself. I am using Catalyst to define my model. My first question is how do I find the default values I defined for the variables? for …

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

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