# Latest

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

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

**Page:** 742

---

## [DifferentialEquations Package Kills Performance Everywhere when TruncatedStacktraces is used](https://discourse.julialang.org/t/differentialequations-package-kills-performance-everywhere-when-truncatedstacktraces-is-used/96417)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 41\
**Last updated:** [March 28, 2023, 11:52am UTC](https://discourse.julialang.org/t/differentialequations-package-kills-performance-everywhere-when-truncatedstacktraces-is-used/96417 "2023-03-28T11:52:38Z")

</div>

After loading the DifferentialEquations.jl package in the REPL, Julia seems to start performing very slowly, possibly only when text is output to the REPL, but in a way that makes the REPL extremely frustrating to use. S…

---

## [How can i improve the performance of the code?](https://discourse.julialang.org/t/how-can-i-improve-the-performance-of-the-code/96622)

<div class="topic-metadata">

**Author:** [@manu\_han](https://discourse.julialang.org/u/manu_han)\
**Replies:** 9\
**Last updated:** [March 28, 2023, 10:17am UTC](https://discourse.julialang.org/t/how-can-i-improve-the-performance-of-the-code/96622 "2023-03-28T10:17:51Z")

</div>

I’m a newbie of julia, and I want to improve the performance of the code included massive iteration and calculation. I Even I red the manual, but I have no ability to adapt all of the solutions… Here is simplified cod…

---

## [Middle(x,y) for DateTime, Char, and others](https://discourse.julialang.org/t/middle-x-y-for-datetime-char-and-others/96220)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 9:50am UTC](https://discourse.julialang.org/t/middle-x-y-for-datetime-char-and-others/96220 "2023-03-28T09:50:01Z")

</div>

Should these methods exist? middle(x, y) Compute the middle of two numbers x and y, which is equivalent in both value and type to computing their mean ((x + y) / 2). julia\> middle(now(), now()) ERROR: MethodErr…

---

## [Questions when installing ReservoirComputing](https://discourse.julialang.org/t/questions-when-installing-reservoircomputing/96229)

<div class="topic-metadata">

**Author:** [@lw\_zuo](https://discourse.julialang.org/u/lw_zuo)\
**Replies:** 4\
**Last updated:** [March 28, 2023, 7:35am UTC](https://discourse.julialang.org/t/questions-when-installing-reservoircomputing/96229 "2023-03-28T07:35:00Z")

</div>

(@v1.7) pkg\> add ReservoirComputing Updating registry at \`C:\\Users\\Seven\\.julia\\registries\\General.toml\` Resolving package versions... No Changes to \`C:\\Users\\Seven\\.julia\\environments\\v1.7\\Project.toml\` No Ch…

---

## [GPU sum closure throwing an error](https://discourse.julialang.org/t/gpu-sum-closure-throwing-an-error/96658)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 6:57am UTC](https://discourse.julialang.org/t/gpu-sum-closure-throwing-an-error/96658 "2023-03-28T06:57:36Z")

</div>

I’m trying to streamline some code using KernelAbstractions and it’s almost working perfectly. I’m getting hung up when I try to write a sum closure like this within the kernel using KernelAbstractions using CUDA u = CU…

---

## [ProfileView and Benchmark Disagree on Timing for Simple Matrix Multiplication](https://discourse.julialang.org/t/profileview-and-benchmark-disagree-on-timing-for-simple-matrix-multiplication/96069)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 13\
**Last updated:** [March 28, 2023, 3:28am UTC](https://discourse.julialang.org/t/profileview-and-benchmark-disagree-on-timing-for-simple-matrix-multiplication/96069 "2023-03-28T03:28:00Z")

</div>

I am trying to benchmark and improve the cost for matrix multiplication for a custom type I have implemented. But, in trying to do that, I have become confused about the profile and benchmarking results for a simple matr…

---

## [(relative) newbie, looking for suggestions](https://discourse.julialang.org/t/relative-newbie-looking-for-suggestions/96677)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 3:04am UTC](https://discourse.julialang.org/t/relative-newbie-looking-for-suggestions/96677 "2023-03-28T03:04:54Z")

</div>

“Pro” programmer since 1977, mostly with C and “Zim DBMS” (now defunct.) I want to play with neural networks now. Base hardware ultimate is Jetson Nano or Orin, for robot/drone tinkering and LIDAR image processing and …

---

## [How do I understand the documentation (for Distributions.jl)?](https://discourse.julialang.org/t/how-do-i-understand-the-documentation-for-distributions-jl/96605)

<div class="topic-metadata">

**Author:** [@mskoh52](https://discourse.julialang.org/u/mskoh52)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 11:37pm UTC](https://discourse.julialang.org/t/how-do-i-understand-the-documentation-for-distributions-jl/96605 "2023-03-27T23:37:29Z")

</div>

I’m trying to learn how to use Distributions.jl to specify probability distributions. I wanted to figure out how to create a multivariate normal distribution object (is “object” the right term?), so I looked at Multivari…

---

## [How does Julia Async Task Scheduler work?](https://discourse.julialang.org/t/how-does-julia-async-task-scheduler-work/96675)

<div class="topic-metadata">

**Author:** [@defect](https://discourse.julialang.org/u/defect)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 11:26pm UTC](https://discourse.julialang.org/t/how-does-julia-async-task-scheduler-work/96675 "2023-03-27T23:26:45Z")

</div>

I want to understand how the Julia task scheduler works. Like I get how the Python asyncio async mechanism works, but I find myself unable to find anything about that topic in julia. I know you don’t have to annotate th…

---

## [Zygote Warning within FluxOptTools - 'cannot track gradients'](https://discourse.julialang.org/t/zygote-warning-within-fluxopttools-cannot-track-gradients/96630)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 11:12pm UTC](https://discourse.julialang.org/t/zygote-warning-within-fluxopttools-cannot-track-gradients/96630 "2023-03-27T23:12:15Z")

</div>

I am using NNs created using Flux to parameterize a function which I want to approximate in an optimal control problem. I formulate the associated optimization problem and call Optim, which works thanks to FLuXOptTools. …

---

## [Parallel merge in Cilk+ vs Julia](https://discourse.julialang.org/t/parallel-merge-in-cilk-vs-julia/34903)

<div class="topic-metadata">

**Author:** [@eaubanel](https://discourse.julialang.org/u/eaubanel)\
**Replies:** 18\
**Last updated:** [March 27, 2023, 10:02pm UTC](https://discourse.julialang.org/t/parallel-merge-in-cilk-vs-julia/34903 "2023-03-27T22:02:55Z")

</div>

As my first Julia program, I had some fun debugging a Julia implementation of a parallel merge, which I had already developed in Cilk+. I thought I’d make my first post by pointing the following out to warn others develo…

---

## [Preferred way of using dependencies of a module](https://discourse.julialang.org/t/preferred-way-of-using-dependencies-of-a-module/96680)

<div class="topic-metadata">

**Author:** [@touste](https://discourse.julialang.org/u/touste)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 9:38pm UTC](https://discourse.julialang.org/t/preferred-way-of-using-dependencies-of-a-module/96680 "2023-03-27T21:38:35Z")

</div>

I wonder what is the difference between: \] add GLMakie # Note that this installs several dependencies, including GeometryBasics using GLMakie using GLMakie.GeometryBasics \] add GLMakie GeometryBasics using GLMa…

---

## [Parse vector from string](https://discourse.julialang.org/t/parse-vector-from-string/10728)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 24\
**Last updated:** [March 27, 2023, 9:24pm UTC](https://discourse.julialang.org/t/parse-vector-from-string/10728 "2023-03-27T21:24:00Z")

</div>

I can parse(Int, „123“) but I cannot find a simple way to parse(Vector{Int}, „\[1, 2, 3\]”). Is there a “canned” solution?

---

## [Modifying Flux source code for GPU](https://discourse.julialang.org/t/modifying-flux-source-code-for-gpu/96360)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 8:57pm UTC](https://discourse.julialang.org/t/modifying-flux-source-code-for-gpu/96360 "2023-03-27T20:57:54Z")

</div>

In Flux.jl, I wanted to modify the behavior of BatchNorm, so I changed the code here. The modified code was effective when it ran on CPU, but I realized that it was not effective on GPU. After some investigation, I fou…

---

## [Multiple-input operators with OperatorLearning.jl](https://discourse.julialang.org/t/multiple-input-operators-with-operatorlearning-jl/96678)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 8:38pm UTC](https://discourse.julialang.org/t/multiple-input-operators-with-operatorlearning-jl/96678 "2023-03-27T20:38:06Z")

</div>

Is it possible to define a multiple-input operators (\[2202.06137\] MIONet: Learning multiple-input operators via tensor product) to construct a network of the form (branch1, branch2, branch3…, trunk) using OperatorLearnin…

---

## [Is there an alternative for JUNO?](https://discourse.julialang.org/t/is-there-an-alternative-for-juno/96672)

<div class="topic-metadata">

**Author:** [@halov](https://discourse.julialang.org/u/halov)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 8:31pm UTC](https://discourse.julialang.org/t/is-there-an-alternative-for-juno/96672 "2023-03-27T20:31:04Z")

</div>

tody i want to download JUNO baesd on atom ide. But atom doesn’t seem to work anymore. so Is there an alternative for JUNO?

---

## [Filtering elements of a generator without collecting](https://discourse.julialang.org/t/filtering-elements-of-a-generator-without-collecting/96664)

<div class="topic-metadata">

**Author:** [@cgois](https://discourse.julialang.org/u/cgois)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 8:21pm UTC](https://discourse.julialang.org/t/filtering-elements-of-a-generator-without-collecting/96664 "2023-03-27T20:21:56Z")

</div>

Hi everyone, I am playing around with iterators and I have the following problem. Lets us say we want to compute using Random weights = shuffle(vcat(1:5, zeros(5))); mats = (randn(10, 10) for \_ in 1:10) # Or any genera…

---

## [\[ANN\] PyFormattedStrings.jl: Python-like formatted interpolation](https://discourse.julialang.org/t/ann-pyformattedstrings-jl-python-like-formatted-interpolation/29224)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 32\
**Last updated:** [March 27, 2023, 7:33pm UTC](https://discourse.julialang.org/t/ann-pyformattedstrings-jl-python-like-formatted-interpolation/29224 "2023-03-27T19:33:50Z")

</div>

Several months ago I asked here (Formatted string interpolation) about string interpolation with formatting options, and didn’t find any solutions. So I developed a small package for this, which uses Python f-string synt…

---

## [How to specify variable with different indexes/bounds in JuMP](https://discourse.julialang.org/t/how-to-specify-variable-with-different-indexes-bounds-in-jump/96651)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 7:29pm UTC](https://discourse.julialang.org/t/how-to-specify-variable-with-different-indexes-bounds-in-jump/96651 "2023-03-27T19:29:55Z")

</div>

Hello, I would like to declare in JuMP a variable s whose bounds depends form its index, with some indexes fixed. The problems is that if I declare it twice I get an error that the variable already attached to the model…

---

## [Using TaylorSeries.jl for functions with many variables (~1000)](https://discourse.julialang.org/t/using-taylorseries-jl-for-functions-with-many-variables-1000/96643)

<div class="topic-metadata">

**Author:** [@ejmeitz](https://discourse.julialang.org/u/ejmeitz)\
**Replies:** 20\
**Last updated:** [March 27, 2023, 6:02pm UTC](https://discourse.julialang.org/t/using-taylorseries-jl-for-functions-with-many-variables-1000/96643 "2023-03-27T18:02:55Z")

</div>

I have an application where I need all possible 3rd and 4th order derivatives of a function w.r.t. that function’s inputs. TaylorSeries.jl works brilliantly for this in my toy model; however, my actual use case requires …

---

## [Iterating over an Iterator with map, for loop and threads: Memory usage and performance](https://discourse.julialang.org/t/iterating-over-an-iterator-with-map-for-loop-and-threads-memory-usage-and-performance/96561)

<div class="topic-metadata">

**Author:** [@cgois](https://discourse.julialang.org/u/cgois)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 5:18pm UTC](https://discourse.julialang.org/t/iterating-over-an-iterator-with-map-for-loop-and-threads-memory-usage-and-performance/96561 "2023-03-27T17:18:38Z")

</div>

Warning: In this original benchmarks there was a problem with my usage of @btime, as pointed by @mikmoore. See the corrected benchmarks (which already solve question Q1) in a reply below. Hi everyone. I am playing arou…

---

## [GLM model from statistical rethinking video series](https://discourse.julialang.org/t/glm-model-from-statistical-rethinking-video-series/96666)

<div class="topic-metadata">

**Author:** [@arthings](https://discourse.julialang.org/u/arthings)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 4:59pm UTC](https://discourse.julialang.org/t/glm-model-from-statistical-rethinking-video-series/96666 "2023-03-27T16:59:45Z")

</div>

Hello, i have an issue with the Turing code related to this model in the Statistical Rethinking video series. This code is not in the book so i didn’t find the solution in the good ressourcesTuringModels.jl or SR2TuringP…

---

## [Split .txt file into several DataFrames](https://discourse.julialang.org/t/split-txt-file-into-several-dataframes/96526)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 4:10pm UTC](https://discourse.julialang.org/t/split-txt-file-into-several-dataframes/96526 "2023-03-27T16:10:02Z")

</div>

Hello :grin:, I would like to load a .txt file and split it inot several DataFrames . The file has the following general structure: #Name: #Id: #Dosename: #RoiName:brain #Roi volume #Unit: Gy 0.000 100.000 0.290 89.0 …

---

## [How do I find MAC address?](https://discourse.julialang.org/t/how-do-i-find-mac-address/96653)

<div class="topic-metadata">

**Author:** [@drruvw](https://discourse.julialang.org/u/drruvw)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 3:55pm UTC](https://discourse.julialang.org/t/how-do-i-find-mac-address/96653 "2023-03-27T15:55:54Z")

</div>

How do I get MAC address using Julia please?

---

## [Weird interaction between generated function and inlining](https://discourse.julialang.org/t/weird-interaction-between-generated-function-and-inlining/96459)

<div class="topic-metadata">

**Author:** [@mhinsch](https://discourse.julialang.org/u/mhinsch)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 3:50pm UTC](https://discourse.julialang.org/t/weird-interaction-between-generated-function-and-inlining/96459 "2023-03-27T15:50:11Z")

</div>

I am currently working on a way to memoise functions using fully typed containers (see this discussion for the general concept). I have a working implementation (sorry, still very barebone ATM), that seems to largely do …

---

## [Language: "tensor" vs "array"](https://discourse.julialang.org/t/language-tensor-vs-array/96590)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 7\
**Last updated:** [March 27, 2023, 3:12pm UTC](https://discourse.julialang.org/t/language-tensor-vs-array/96590 "2023-03-27T15:12:32Z")

</div>

When (in which situations) would you employ the word “tensor” and when instead you would stick to “array” to describe a generic n-dimensional “matrix”, for example to describe your API ?

---

## [Add data to a DataFrame](https://discourse.julialang.org/t/add-data-to-a-dataframe/96467)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 6\
**Last updated:** [March 27, 2023, 1:34pm UTC](https://discourse.julialang.org/t/add-data-to-a-dataframe/96467 "2023-03-27T13:34:58Z")

</div>

Dear All, Description of the problem: How can I add data to individual elements of a dataframe generated using a template? For example, based on the rowTemplate (see the example code) I create a Dataframe that I want to…

---

## [Converting Flux pretrained models saved in .bson to .h5](https://discourse.julialang.org/t/converting-flux-pretrained-models-saved-in-bson-to-h5/96549)

<div class="topic-metadata">

**Author:** [@gradureau](https://discourse.julialang.org/u/gradureau)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 3:14pm UTC](https://discourse.julialang.org/t/converting-flux-pretrained-models-saved-in-bson-to-h5/96549 "2023-03-24T15:14:27Z")

</div>

Hello everyone, I have seen on the Flux page that one can save Flux pretrained neural models in .bson files quite easily. Yet, I want to use these models in a fortran code and so far the most pertinent ways to do this …

---

## [Tips for workshop preparation](https://discourse.julialang.org/t/tips-for-workshop-preparation/96603)

<div class="topic-metadata">

**Author:** [@mastrof](https://discourse.julialang.org/u/mastrof)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 11:50am UTC](https://discourse.julialang.org/t/tips-for-workshop-preparation/96603 "2023-03-27T11:50:15Z")

</div>

Hey everyone, I am organizing a workshop on numerical simulations in biophysics for the research group I’m part of. Most of the people that will attend are biologists with limited coding experience (i.e. they know how to…

---

## [Module loading problem](https://discourse.julialang.org/t/module-loading-problem/96601)

<div class="topic-metadata">

**Author:** [@Sokar](https://discourse.julialang.org/u/Sokar)\
**Replies:** 8\
**Last updated:** [March 27, 2023, 11:30am UTC](https://discourse.julialang.org/t/module-loading-problem/96601 "2023-03-27T11:30:18Z")

</div>

Hello there I’m trying to understand how to use modules probably, but I’m finding the way they work and how they are loaded kinda messing. The following example yields would I expect on the first run, but every subseque…

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

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