# Latest

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

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

**Page:** 663

---

## [Reproducing TF model with Flux- Slow?](https://discourse.julialang.org/t/reproducing-tf-model-with-flux-slow/100566)

<div class="topic-metadata">

**Author:** [@NAS](https://discourse.julialang.org/u/NAS)\
**Replies:** 2\
**Last updated:** [June 24, 2023, 3:42pm UTC](https://discourse.julialang.org/t/reproducing-tf-model-with-flux-slow/100566 "2023-06-24T15:42:39Z")

</div>

Hello everyone. I’m new to Flux and as an example to learn I’m just trying to reproduce an example TF model. So far it seems to be working but I have one major snag, the Flux training is orders of magnitude slower. For e…

---

## [I don't understand how include works in combination with modules](https://discourse.julialang.org/t/i-dont-understand-how-include-works-in-combination-with-modules/100755)

<div class="topic-metadata">

**Author:** [@nickk2002](https://discourse.julialang.org/u/nickk2002)\
**Replies:** 10\
**Last updated:** [June 24, 2023, 12:05pm UTC](https://discourse.julialang.org/t/i-dont-understand-how-include-works-in-combination-with-modules/100755 "2023-06-24T12:05:19Z")

</div>

Hello, I am new to julia and I struggling with understanding how modules work. As far as I know include just copy-pastes code into the current file. I have a PointModule that does has a struct and a distance function. …

---

## [What are the uses of some of the numerous "types" in Julia e.g., structs, modules?](https://discourse.julialang.org/t/what-are-the-uses-of-some-of-the-numerous-types-in-julia-e-g-structs-modules/100708)

<div class="topic-metadata">

**Author:** [@markjholmes](https://discourse.julialang.org/u/markjholmes)\
**Replies:** 13\
**Last updated:** [June 24, 2023, 11:30am UTC](https://discourse.julialang.org/t/what-are-the-uses-of-some-of-the-numerous-types-in-julia-e-g-structs-modules/100708 "2023-06-24T11:30:12Z")

</div>

As a non-computer-scientist, I don’t understand when I’d use e.g., struct or module (which seem to be fundamental in the essentials) beyond “properness” or if designing a package? I find that the examples presented are s…

---

## [Speeding up the multiplying, adding, subtracting of 3D matrices](https://discourse.julialang.org/t/speeding-up-the-multiplying-adding-subtracting-of-3d-matrices/100488)

<div class="topic-metadata">

**Author:** [@smac](https://discourse.julialang.org/u/smac)\
**Replies:** 16\
**Last updated:** [June 24, 2023, 11:03am UTC](https://discourse.julialang.org/t/speeding-up-the-multiplying-adding-subtracting-of-3d-matrices/100488 "2023-06-24T11:03:00Z")

</div>

I’ve been working on “translating” my 3d finite difference codes for (magneto)hydrodynamics, and am at the stage where for at least one set of parameters, the codes are giving similar results (damped propagating waves). …

---

## [ERROR: type Tuple has no field values](https://discourse.julialang.org/t/error-type-tuple-has-no-field-values/100775)

<div class="topic-metadata">

**Author:** [@Mingyuan1231](https://discourse.julialang.org/u/Mingyuan1231)\
**Replies:** 2\
**Last updated:** [June 24, 2023, 9:21am UTC](https://discourse.julialang.org/t/error-type-tuple-has-no-field-values/100775 "2023-06-24T09:21:04Z")

</div>

I’m trying to simulate a projection measurement of quantum system, here is the code involving error ‘’’ Calculate eigenvalues and eigenvectors eigen = eigs(X1.data) eigenvalues = eigen.values eigenvectors = eigen.vec…

---

## [How to do mapslices() in parallel for 3D arrays](https://discourse.julialang.org/t/how-to-do-mapslices-in-parallel-for-3d-arrays/100484)

<div class="topic-metadata">

**Author:** [@huiyuxie](https://discourse.julialang.org/u/huiyuxie)\
**Replies:** 2\
**Last updated:** [June 24, 2023, 7:00am UTC](https://discourse.julialang.org/t/how-to-do-mapslices-in-parallel-for-3d-arrays/100484 "2023-06-24T07:00:49Z")

</div>

Basically I am going to transform mapslices() using kernels. This function slices each layer from a 3D array and multiplies each layer by the same matrix, like below A = rand(4, 4, 3) B = rand(4, 4) C = similar(A) C = …

---

## [Allocations on accessing struct](https://discourse.julialang.org/t/allocations-on-accessing-struct/100621)

<div class="topic-metadata">

**Author:** [@natlampen](https://discourse.julialang.org/u/natlampen)\
**Replies:** 6\
**Last updated:** [June 24, 2023, 5:41am UTC](https://discourse.julialang.org/t/allocations-on-accessing-struct/100621 "2023-06-24T05:41:09Z")

</div>

Hi I was trying out a few different ways a model I am working one. The baseline is just 3xN array of floats to represent x,y,z coordinates of N points. Next I tried to create a Point-type to describe the point and use a…

---

## [\[YouTube/GitHub\] What is the FASTEST Computer Language? 45 Languages Tested](https://discourse.julialang.org/t/youtube-github-what-is-the-fastest-computer-language-45-languages-tested/64506)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 18\
**Last updated:** [June 24, 2023, 5:35am UTC](https://discourse.julialang.org/t/youtube-github-what-is-the-fastest-computer-language-45-languages-tested/64506 "2023-06-24T05:35:58Z")

</div>

A pretty cool project which includes Julia:

---

## [Optimization Challenges in matching simulated data](https://discourse.julialang.org/t/optimization-challenges-in-matching-simulated-data/100771)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 1\
**Last updated:** [June 24, 2023, 4:53am UTC](https://discourse.julialang.org/t/optimization-challenges-in-matching-simulated-data/100771 "2023-06-24T04:53:58Z")

</div>

I am trying to abstract some components of the Yields.jl package and having a hard time with a particular problem, which I’ve tried to distill down to a MWE. If it helps, the context is fitting a Nelson-Siegel-Svensson y…

---

## [Had to install OpenSpecFun by direct command after upgrade to Julia 1.9](https://discourse.julialang.org/t/had-to-install-openspecfun-by-direct-command-after-upgrade-to-julia-1-9/100765)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 2\
**Last updated:** [June 24, 2023, 1:52am UTC](https://discourse.julialang.org/t/had-to-install-openspecfun-by-direct-command-after-upgrade-to-julia-1-9/100765 "2023-06-24T01:52:40Z")

</div>

It took me a while to figure out that the error message meant OpenSpecFun isn’t current, and can’t be automatically installed; giving the commands to install it directly fixed the problem. A Google search returns multip…

---

## [LLM AI just for Julia? A proposal: Julia \*plus\* science LLM?](https://discourse.julialang.org/t/llm-ai-just-for-julia-a-proposal-julia-plus-science-llm/99468)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [June 24, 2023, 1:32am UTC](https://discourse.julialang.org/t/llm-ai-just-for-julia-a-proposal-julia-plus-science-llm/99468 "2023-06-24T01:32:33Z")

</div>

LLMs can now be trained (read this though as fine-tuned) in 30 min. by regular users (“Dolly, a large language model (LLM) trained for less than $30 to exhibit ChatGPT-like human interactivity (aka instruction-following)…

---

## [Why is my code very slow](https://discourse.julialang.org/t/why-is-my-code-very-slow/100577)

<div class="topic-metadata">

**Author:** [@dazhwu](https://discourse.julialang.org/u/dazhwu)\
**Replies:** 16\
**Last updated:** [June 23, 2023, 11:08pm UTC](https://discourse.julialang.org/t/why-is-my-code-very-slow/100577 "2023-06-23T23:08:12Z")

</div>

My code attached is long because I couldn’t figure out which part should be improved. I guess the bottleneck is function rls\_multi which implements a recursive OLS. Note that this function was translated from C++ (armadi…

---

## [Failure to build on AMD64](https://discourse.julialang.org/t/failure-to-build-on-amd64/100748)

<div class="topic-metadata">

**Author:** [@VictorEijkhout](https://discourse.julialang.org/u/VictorEijkhout)\
**Replies:** 11\
**Last updated:** [June 24, 2023, 12:04am UTC](https://discourse.julialang.org/t/failure-to-build-on-amd64/100748 "2023-06-24T00:04:55Z")

</div>

Trying to make on an amd64 platform gives, with both gcc & Intel compilers: error during bootstrap: LoadError(at "sysimg.jl" line 3: LoadError(at "Base.jl" line 297: LoadError(at "show.jl" line 56: LoadError(at "show.jl…

---

## [Objects of type LogTargetDensity are not callable](https://discourse.julialang.org/t/objects-of-type-logtargetdensity-are-not-callable/100761)

<div class="topic-metadata">

**Author:** [@instant0n](https://discourse.julialang.org/u/instant0n)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 9:24pm UTC](https://discourse.julialang.org/t/objects-of-type-logtargetdensity-are-not-callable/100761 "2023-06-23T21:24:39Z")

</div>

Hi, I’m trying to execute the following example for AdvancedHMC: using AdvancedHMC, ForwardDiff using LogDensityProblems using LinearAlgebra # Define the target distribution using the \`LogDensityProblem\` interface stru…

---

## [Optimise calculation with NxNxMxM matrix](https://discourse.julialang.org/t/optimise-calculation-with-nxnxmxm-matrix/100565)

<div class="topic-metadata">

**Author:** [@Stalz](https://discourse.julialang.org/u/Stalz)\
**Replies:** 17\
**Last updated:** [June 22, 2023, 2:33pm UTC](https://discourse.julialang.org/t/optimise-calculation-with-nxnxmxm-matrix/100565 "2023-06-22T14:33:13Z")

</div>

I have been working on a simulation in python where I try to solve the following integral: f(x,y) = \\iint A(x-\\xi', y-\\eta') g(\\xi',\\eta') h(x,\\xi',y,\\eta') \\,d\\xi' \\,d\\eta' With multiprocessing on a server I could g…

---

## [Using ChatGPT to solve a challenging geo-science problem](https://discourse.julialang.org/t/using-chatgpt-to-solve-a-challenging-geo-science-problem/99067)

<div class="topic-metadata">

**Author:** [@pukpr](https://discourse.julialang.org/u/pukpr)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 8:31pm UTC](https://discourse.julialang.org/t/using-chatgpt-to-solve-a-challenging-geo-science-problem/99067 "2023-06-23T20:31:28Z")

</div>

Blog post on using Julia and ChatGPT to solve a challenging geo-science problem. The post is almost completely a dialog between ChatGPT prompts and ChatGPT replies. I took the code it generated and ran and added in th…

---

## [Convex.jl gives solution but constraints are not satisfied](https://discourse.julialang.org/t/convex-jl-gives-solution-but-constraints-are-not-satisfied/100428)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 8\
**Last updated:** [June 23, 2023, 8:08pm UTC](https://discourse.julialang.org/t/convex-jl-gives-solution-but-constraints-are-not-satisfied/100428 "2023-06-23T20:08:50Z")

</div>

Hi, I’ve been using convex.jl for some of my problems but I feel stuck in one SDP implementation. When I run the following code, the solver says that it’s feasible and reaches an optimal point, however, when I check the…

---

## [Broadcast error in subtracting Matrix from Grads(...) object](https://discourse.julialang.org/t/broadcast-error-in-subtracting-matrix-from-grads-object/100757)

<div class="topic-metadata">

**Author:** [@Djamil\_Lakhdar-Hamin](https://discourse.julialang.org/u/Djamil_Lakhdar-Hamin)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 7:59pm UTC](https://discourse.julialang.org/t/broadcast-error-in-subtracting-matrix-from-grads-object/100757 "2023-06-23T19:59:25Z")

</div>

Hi there , I am new to ML in Julia and loving it thus far. I am trying to evaluate a rather complex expression which is average of a gradient and some other stuff as well. I need the value of the final expression to ret…

---

## [Eager finalization and smart pointers](https://discourse.julialang.org/t/eager-finalization-and-smart-pointers/92462)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 11\
**Last updated:** [June 23, 2023, 7:02pm UTC](https://discourse.julialang.org/t/eager-finalization-and-smart-pointers/92462 "2023-06-23T19:02:52Z")

</div>

Smart pointers are pointers that free themselves when they are no longer needed. In Julia, we usually use the garbage collector for this purpose. However, we sometimes work with memory that is not managed by the garbage …

---

## [Julia implementation for H-Matrices in GPU](https://discourse.julialang.org/t/julia-implementation-for-h-matrices-in-gpu/100297)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 5:04pm UTC](https://discourse.julialang.org/t/julia-implementation-for-h-matrices-in-gpu/100297 "2023-06-23T17:04:01Z")

</div>

I am looking into performing H-matrices operations in GPU and specifically looking if there are any wrapper or native implementations in Julia.

---

## [Can't get Julia to work in VS Code](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828)

<div class="topic-metadata">

**Author:** [@oo92](https://discourse.julialang.org/u/oo92)\
**Replies:** 18\
**Last updated:** [June 23, 2023, 4:28pm UTC](https://discourse.julialang.org/t/cant-get-julia-to-work-in-vs-code/57828 "2023-06-23T16:28:02Z")

</div>

Hi. I have been endlessly trying to get Julia to work with my VS Code. I removed VS Code from my computer multiple times. I removed the Julia extension multiple times. I downgraded from 1.5.4 to 1.0.5. This is still wha…

---

## [Trying to kill a task from outside the task, can't find a kill() method](https://discourse.julialang.org/t/trying-to-kill-a-task-from-outside-the-task-cant-find-a-kill-method/100746)

<div class="topic-metadata">

**Author:** [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 3:59pm UTC](https://discourse.julialang.org/t/trying-to-kill-a-task-from-outside-the-task-cant-find-a-kill-method/100746 "2023-06-23T15:59:09Z")

</div>

Hi, is there a way to kill a task from outside the task? I’m only guessing that this is a task thing and not a NATS thing, and there seems to be no kill() method, but if kill() only doesn’t work for NATS then I’ll re…

---

## [\[pre-ANN\] DifferentialInclusions.jl](https://discourse.julialang.org/t/pre-ann-differentialinclusions-jl/99604)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 3\
**Last updated:** [June 23, 2023, 3:46pm UTC](https://discourse.julialang.org/t/pre-ann-differentialinclusions-jl/99604 "2023-06-23T15:46:44Z")

</div>

This is a very very early announcement :slight\_smile: (please let me know if I’m doing bullshit :smiley: ) I’m working on a package for non-smooth dynamical systems, aka differential inclusions, aka dynamical compleme…

---

## [How to define a function whose type is variable?](https://discourse.julialang.org/t/how-to-define-a-function-whose-type-is-variable/100744)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 3:40pm UTC](https://discourse.julialang.org/t/how-to-define-a-function-whose-type-is-variable/100744 "2023-06-23T15:40:58Z")

</div>

I am currently working to implement new sparse matrix formats for faster matrix-vector products. I want to preserve some features of the current CSR implementation in Julia. In particular, I would like to define function…

---

## [Hosting Docs with Documenter.jl with Dependencies / GitHub Actions with Unregistered Packages](https://discourse.julialang.org/t/hosting-docs-with-documenter-jl-with-dependencies-github-actions-with-unregistered-packages/83364)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 9\
**Last updated:** [June 23, 2023, 3:31pm UTC](https://discourse.julialang.org/t/hosting-docs-with-documenter-jl-with-dependencies-github-actions-with-unregistered-packages/83364 "2023-06-23T15:31:24Z")

</div>

I’m struggling to get the documentation for my package hosted due to external dependencies, specifically ones that are also hosted on GitHub but not the general registry. I’ve added these extra deps to both the main pack…

---

## [Is there a way to plot dendrogram?](https://discourse.julialang.org/t/is-there-a-way-to-plot-dendrogram/2197)

<div class="topic-metadata">

**Author:** [@leejm516](https://discourse.julialang.org/u/leejm516)\
**Replies:** 8\
**Last updated:** [June 23, 2023, 3:27pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-plot-dendrogram/2197 "2023-06-23T15:27:42Z")

</div>

Hierarchical clustering is quite simple in Julia by using hclust() in the Clustering package, but plotting the result in Julia does not seem to be straightforward for me as in Python. (see SciPy Hierarchical Clustering…

---

## [Extra allocations performing dot product in ODE callback](https://discourse.julialang.org/t/extra-allocations-performing-dot-product-in-ode-callback/100683)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 3\
**Last updated:** [June 23, 2023, 3:10pm UTC](https://discourse.julialang.org/t/extra-allocations-performing-dot-product-in-ode-callback/100683 "2023-06-23T15:10:35Z")

</div>

Hello, I’m experiencing some extra memory allocations when calculating the dot product inside a ODE callback. Here I write a minimal example A = sprand(ComplexF64, 100, 100, 0.05) u0 = rand(ComplexF64, 100) y = rand(Co…

---

## [String7 type with read CSV?](https://discourse.julialang.org/t/string7-type-with-read-csv/100741)

<div class="topic-metadata">

**Author:** [@Axze-rgb](https://discourse.julialang.org/u/Axze-rgb)\
**Replies:** 8\
**Last updated:** [June 23, 2023, 3:02pm UTC](https://discourse.julialang.org/t/string7-type-with-read-csv/100741 "2023-06-23T15:02:48Z")

</div>

Hello, I am trying to import a single column file (very long more than 1 million lines). They are real number, so I thing float64 (numbers like 17, 139.4, 2345.87) Here is the code df=CSV.read(“QD.csv”, DataFrame; h…

---

## [Robotics Motion Planning Library](https://discourse.julialang.org/t/robotics-motion-planning-library/100714)

<div class="topic-metadata">

**Author:** [@acxz](https://discourse.julialang.org/u/acxz)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 3:02pm UTC](https://discourse.julialang.org/t/robotics-motion-planning-library/100714 "2023-06-23T15:02:27Z")

</div>

Hello all, I’m looking for an off the shelf library I can use for motion planning in robotics. Algorithms I’d like to see are RRT (and variants), PRM, A\*, D\*, etc. A quick search on Google and JuliaHub, popped up some …

---

## [Mutiple dispatch on Tuple or "scalar"?](https://discourse.julialang.org/t/mutiple-dispatch-on-tuple-or-scalar/100742)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [June 23, 2023, 2:58pm UTC](https://discourse.julialang.org/t/mutiple-dispatch-on-tuple-or-scalar/100742 "2023-06-23T14:58:17Z")

</div>

I want two versions of a function depending on whether the argument is a Tuple{T,T} or just T. I thought the more specific one wins, but in the code at the end of this post, the less specific x::T always wins over x::Tu…

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

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