# Latest

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

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

**Page:** 1071

---

## [Running commands over ssh](https://discourse.julialang.org/t/running-commands-over-ssh/27103)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 8\
**Last updated:** [April 12, 2022, 7:35am UTC](https://discourse.julialang.org/t/running-commands-over-ssh/27103 "2022-04-12T07:35:15Z")

</div>

I would like to run commands from julia over ssh. I know how to do this in an ad hoc way: Cmd(\`ssh user@remote 'ls'\`) However I wonder is there a way to use the full power of julia command running over ssh? That is I …

---

## [Word Cloud of Scientific Computing Languages](https://discourse.julialang.org/t/word-cloud-of-scientific-computing-languages/79319)

<div class="topic-metadata">

**Author:** [@nharr](https://discourse.julialang.org/u/nharr)\
**Replies:** 2\
**Last updated:** [April 12, 2022, 7:04am UTC](https://discourse.julialang.org/t/word-cloud-of-scientific-computing-languages/79319 "2022-04-12T07:04:47Z")

</div>

Hello community. I need some help. I believe I once watched a youtube video where @viralbshah showed a word cloud of common languages used for scientific computing. I’m specifically wanting to use such a word cloud in an…

---

## [Suggestions on model and solvers](https://discourse.julialang.org/t/suggestions-on-model-and-solvers/79345)

<div class="topic-metadata">

**Author:** [@Patrik\_Waldmann](https://discourse.julialang.org/u/Patrik_Waldmann)\
**Replies:** 3\
**Last updated:** [April 12, 2022, 4:47am UTC](https://discourse.julialang.org/t/suggestions-on-model-and-solvers/79345 "2022-04-12T04:47:36Z")

</div>

I would be happy for suggestions on how and where to implement the model for the data below (the plan is to extend to a much larger data set later so speed is of interest): #Toy data A = \[1.0000 0 0.5000 0.5000 0.4714 0…

---

## [Apply blockdiag function over an array of matrices](https://discourse.julialang.org/t/apply-blockdiag-function-over-an-array-of-matrices/79366)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 4:33am UTC](https://discourse.julialang.org/t/apply-blockdiag-function-over-an-array-of-matrices/79366 "2022-04-12T04:33:59Z")

</div>

I have an array of sparse matrices that I’d like to put into block-diagonal form. The syntax for the “blockdiag” function is like: blockdiag(A,B,C) where A, B and C are sparse matrices. My array is quite large so I can’…

---

## [Julia versus MATLAB](https://discourse.julialang.org/t/julia-versus-matlab/79360)

<div class="topic-metadata">

**Author:** [@kumarbalachandran](https://discourse.julialang.org/u/kumarbalachandran)\
**Replies:** 5\
**Last updated:** [April 12, 2022, 2:12am UTC](https://discourse.julialang.org/t/julia-versus-matlab/79360 "2022-04-12T02:12:56Z")

</div>

I am trying Julia 1.7.2 on an M1 MacBook Air for bench marking Eigen against MATLAB 2022a a=randn(100,100) tic, for x=1:100; eig(a); end; toc Elapsed time is 0.295766 seconds. whereas Julia v1.7.2 a=randn(Float64, (10…

---

## [Custom Flux.jl loss function with Interpolations.jl evaluation Error](https://discourse.julialang.org/t/custom-flux-jl-loss-function-with-interpolations-jl-evaluation-error/79305)

<div class="topic-metadata">

**Author:** [@StefanBerger](https://discourse.julialang.org/u/StefanBerger)\
**Replies:** 3\
**Last updated:** [April 12, 2022, 12:21am UTC](https://discourse.julialang.org/t/custom-flux-jl-loss-function-with-interpolations-jl-evaluation-error/79305 "2022-04-12T00:21:10Z")

</div>

Hello, I am trying to implement a model with a custom loss function in the Flux.jl package. I include the code for a simplified model, but the error stays the same. I have an interpolator which takes a scalar value and…

---

## [Intersection of two rotated rectangles?](https://discourse.julialang.org/t/intersection-of-two-rotated-rectangles/79312)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 6\
**Last updated:** [April 12, 2022, 12:20am UTC](https://discourse.julialang.org/t/intersection-of-two-rotated-rectangles/79312 "2022-04-12T00:20:26Z")

</div>

Is there a julia implemented version of deciding whether two rects intersect? rects are rotated about their top left corner, specified as \[x, y, width, height, angle\] so for example: \> collision(\[0,0,100,100,0\], \[40,4…

---

## [macOS: ARM vs Intel](https://discourse.julialang.org/t/macos-arm-vs-intel/79337)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [April 11, 2022, 11:12pm UTC](https://discourse.julialang.org/t/macos-arm-vs-intel/79337 "2022-04-11T23:12:49Z")

</div>

I recently obtained access to a newer Mac computer with ARM processor. Is there some ready to use benchmark I can execute to see if running native ARM Julia will be faster (and safe) vs running Julia x86 on ARM through R…

---

## [Pre-allocated eigen value decomposition](https://discourse.julialang.org/t/pre-allocated-eigen-value-decomposition/79358)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 10:07pm UTC](https://discourse.julialang.org/t/pre-allocated-eigen-value-decomposition/79358 "2022-04-11T22:07:07Z")

</div>

Is there a way to pre-allocate an array to hold the returned eigenvalues and vectors from eigen or eigen! ? Currently both functions return a factorization which does not seem to allow a pre-allocation. The following cod…

---

## [Setting nonlinear objectives with JuMP](https://discourse.julialang.org/t/setting-nonlinear-objectives-with-jump/79343)

<div class="topic-metadata">

**Author:** [@Hans\_W\_Borchers](https://discourse.julialang.org/u/Hans_W_Borchers)\
**Replies:** 4\
**Last updated:** [April 11, 2022, 7:59pm UTC](https://discourse.julialang.org/t/setting-nonlinear-objectives-with-jump/79343 "2022-04-11T19:59:18Z")

</div>

Dear All, one year ago I have written a small note on how to use Julia from R through the ‘JuliaCall’ package. I wanted to update this page and encountered some problems with Julia’s JuMP package. See Notes on JuliaCall…

---

## [Simple Flux LSTM for Time Series](https://discourse.julialang.org/t/simple-flux-lstm-for-time-series/35494)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 62\
**Last updated:** [April 11, 2022, 7:02pm UTC](https://discourse.julialang.org/t/simple-flux-lstm-for-time-series/35494 "2022-04-11T19:02:45Z")

</div>

Hi, I have been trying for a long time to get Flux working for a basic time series. I think if I can get a really simple example working, I would be able to go from there, but when I try to do the ‘obvious’ thing, it fa…

---

## [Julia is very slow compared to python/numpy. What am I doing wrong here?](https://discourse.julialang.org/t/julia-is-very-slow-compared-to-python-numpy-what-am-i-doing-wrong-here/78598)

<div class="topic-metadata">

**Author:** [@Vahid\_Hosseinzadeh](https://discourse.julialang.org/u/Vahid_Hosseinzadeh)\
**Replies:** 25\
**Last updated:** [April 11, 2022, 6:41pm UTC](https://discourse.julialang.org/t/julia-is-very-slow-compared-to-python-numpy-what-am-i-doing-wrong-here/78598 "2022-04-11T18:41:34Z")

</div>

Hi guys, I wrote a recursive function which construct a matrix in python using Qutip module: (I just used the tensor function and Pauli matrices definitions from Qutip) import numpy as np from qutip import \* def psit…

---

## [Formatting/converting Matrix{Char} into Vector{String}](https://discourse.julialang.org/t/formatting-converting-matrix-char-into-vector-string/79224)

<div class="topic-metadata">

**Author:** [@gltchr](https://discourse.julialang.org/u/gltchr)\
**Replies:** 8\
**Last updated:** [April 11, 2022, 6:20pm UTC](https://discourse.julialang.org/t/formatting-converting-matrix-char-into-vector-string/79224 "2022-04-11T18:20:00Z")

</div>

Hello, I am writing some simple wrappers around an old C library. I am new to Julia and absolutely new to C, so it might be something obvious. I have managed to get majority of functions working, but I am unsure about …

---

## [Compare 2 data sets - similar to SAS proc compare](https://discourse.julialang.org/t/compare-2-data-sets-similar-to-sas-proc-compare/79215)

<div class="topic-metadata">

**Author:** [@ab2z](https://discourse.julialang.org/u/ab2z)\
**Replies:** 4\
**Last updated:** [April 11, 2022, 6:02pm UTC](https://discourse.julialang.org/t/compare-2-data-sets-similar-to-sas-proc-compare/79215 "2022-04-11T18:02:38Z")

</div>

Question: what is the best command for comparing 2 datasets - something like proc compare in SAS ? I could not edit this Comparison 2 data sets , So I decide to open this new topic. I have the following example old=Da…

---

## [What’s stopping Julia from using Boolean values as Singleton types?](https://discourse.julialang.org/t/what-s-stopping-julia-from-using-boolean-values-as-singleton-types/78898)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 15\
**Last updated:** [April 11, 2022, 4:41pm UTC](https://discourse.julialang.org/t/what-s-stopping-julia-from-using-boolean-values-as-singleton-types/78898 "2022-04-11T16:41:29Z")

</div>

To keep type stability for functions with conditional arguments, folks often write branches like… if arg == Val{true} return A else return B end What would be the downside of making a special case for boolean v…

---

## [Safe Usage of UnsafeArrays](https://discourse.julialang.org/t/safe-usage-of-unsafearrays/79285)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 3:13pm UTC](https://discourse.julialang.org/t/safe-usage-of-unsafearrays/79285 "2022-04-11T15:13:28Z")

</div>

Is the following a “safe” usage of \`UnsafeArrays? struct SafeUnsafeArray{T, N} \<: AbstractArray{T, N} A::UnsafeArray{T, N} \_A::Vector{UInt8} end x = zeros(UInt8, 800) ptr = Base.unsafe\_convert(Ptr{Float64}, x) u …

---

## [🎈 Pluto Event #1: Plotting Barcamp](https://discourse.julialang.org/t/pluto-event-1-plotting-barcamp/78387)

<div class="topic-metadata">

**Author:** [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Replies:** 3\
**Last updated:** [April 11, 2022, 2:58pm UTC](https://discourse.julialang.org/t/pluto-event-1-plotting-barcamp/78387 "2022-04-11T14:58:20Z")

</div>

Pluto Event #1: Plotting Barcamp Last year, we organized PlutoCon 2021, and we loved seeing all the ways that people use Pluto! This year, we want to focus on this aspect, and we want to enable you, the community, to mee…

---

## [Discrepency related to using \`\`\`lyapunovspectrum\`\`\` from DynamicalSystems.jl package](https://discourse.julialang.org/t/discrepency-related-to-using-lyapunovspectrum-from-dynamicalsystems-jl-package/75453)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 9\
**Last updated:** [April 11, 2022, 2:53pm UTC](https://discourse.julialang.org/t/discrepency-related-to-using-lyapunovspectrum-from-dynamicalsystems-jl-package/75453 "2022-04-11T14:53:07Z")

</div>

Hi! I was trying out the lyapunovspectrum function in Julia, for a few standard dynamical systems like Rossler. I compared the results obtained by using lyapunovspectrum to the spectrum obtained by manually initiating a…

---

## [Alternatives to \`Base.hash\`?](https://discourse.julialang.org/t/alternatives-to-base-hash/79154)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 14\
**Last updated:** [April 11, 2022, 2:36pm UTC](https://discourse.julialang.org/t/alternatives-to-base-hash/79154 "2022-04-11T14:36:16Z")

</div>

Are there packages that implement alternatives to Base.hash? I am interested in a somewhat different set of tradeoffs than what Base.hash provides: Should be able to hash any object (like Base.hash) Should have a negli…

---

## [Calling Fortran subroutine from Julia passing array arguments](https://discourse.julialang.org/t/calling-fortran-subroutine-from-julia-passing-array-arguments/79340)

<div class="topic-metadata">

**Author:** [@Marie](https://discourse.julialang.org/u/Marie)\
**Replies:** 5\
**Last updated:** [April 11, 2022, 2:13pm UTC](https://discourse.julialang.org/t/calling-fortran-subroutine-from-julia-passing-array-arguments/79340 "2022-04-11T14:13:25Z")

</div>

Fortran subroutine looks like this: subroutine MatMult(a, b, m, n, k, answer) !DEC$ ATTRIBUTES DLLEXPORT :: MatMult !DEC$ ATTRIBUTES ALIAS: 'MatMult' :: MatMult !DEC$ ATTRIBUTES REFERENCE :: a …

---

## [\`@variables\` and \`@parameters\` macros not working on arrays](https://discourse.julialang.org/t/variables-and-parameters-macros-not-working-on-arrays/79252)

<div class="topic-metadata">

**Author:** [@markjholmes](https://discourse.julialang.org/u/markjholmes)\
**Replies:** 14\
**Last updated:** [April 11, 2022, 1:51pm UTC](https://discourse.julialang.org/t/variables-and-parameters-macros-not-working-on-arrays/79252 "2022-04-11T13:51:30Z")

</div>

I have Julia installed on two different computers and the code executes differently on each one despite having the same versions of VSCode, Julia, and installed packages (everything is the most recent release version). T…

---

## [Frustrating distributed task exception](https://discourse.julialang.org/t/frustrating-distributed-task-exception/68579)

<div class="topic-metadata">

**Author:** [@yiming\_zhang](https://discourse.julialang.org/u/yiming_zhang)\
**Replies:** 7\
**Last updated:** [April 11, 2022, 1:42pm UTC](https://discourse.julialang.org/t/frustrating-distributed-task-exception/68579 "2022-04-11T13:42:13Z")

</div>

Progress: 0%|▏ | ETA: 1:48:49Worker 41 terminated. Progress: 99%|████████████████████████████████████████▍| ETA: 0:00:01ERROR: LoadError: TaskFailedException Stacktrace: \[1\] w…

---

## [Access DataFrames index](https://discourse.julialang.org/t/access-dataframes-index/79342)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 1\
**Last updated:** [April 11, 2022, 12:22pm UTC](https://discourse.julialang.org/t/access-dataframes-index/79342 "2022-04-11T12:22:18Z")

</div>

I’m sure this a trivial task but I cannot find the answer. I have a Julia DataFrame and I’d like the index as an array, in pandas I can do: \>\>\> import pandas as pd \>\>\> df = pd.DataFrame(\[1,2,3,4,5\]) \>\>\> df.index RangeIn…

---

## [Request for review basic introductory pages on ML, Perceptron, Neural Networks](https://discourse.julialang.org/t/request-for-review-basic-introductory-pages-on-ml-perceptron-neural-networks/79341)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [April 11, 2022, 11:53am UTC](https://discourse.julialang.org/t/request-for-review-basic-introductory-pages-on-ml-perceptron-neural-networks/79341 "2022-04-11T11:53:24Z")

</div>

Hello, I have a couple of pages dealing with: General ML concepts and perceptron algorithm Neural network architectures These two small “pages” are targeted to non-cs / non-math students that know nothing of ML, with …

---

## [How to specifiy 1.8-beta in CI.yaml](https://discourse.julialang.org/t/how-to-specifiy-1-8-beta-in-ci-yaml/79339)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 11:43am UTC](https://discourse.julialang.org/t/how-to-specifiy-1-8-beta-in-ci-yaml/79339 "2022-04-11T11:43:00Z")

</div>

I have the following in my CI.yaml file: matrix: version: - '1.6' - '1' - 'nightly' os: - ubuntu-latest But how can I specify testing on 1.8-beta instead of ‘nightly’?

---

## [Iterators.flatmap optimization attempt](https://discourse.julialang.org/t/iterators-flatmap-optimization-attempt/79265)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 11:38am UTC](https://discourse.julialang.org/t/iterators-flatmap-optimization-attempt/79265 "2022-04-11T11:38:47Z")

</div>

Following the nice conversation at #44792 I’m trying to investigate the question of whether flatmap functions might offer performance benefits. I suspect that in general flatten(x) cannot do better than a flatmap(identit…

---

## [File extension for jupyter to discriminate between Python and Julia notebooks](https://discourse.julialang.org/t/file-extension-for-jupyter-to-discriminate-between-python-and-julia-notebooks/79115)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 8\
**Last updated:** [April 11, 2022, 11:10am UTC](https://discourse.julialang.org/t/file-extension-for-jupyter-to-discriminate-between-python-and-julia-notebooks/79115 "2022-04-11T11:10:59Z")

</div>

Hello all, sometimes I use Julia and Python notebooks in VS Code. I would like to have another extension like “notebook.ijl” to discriminate respect to the Python notebooks (.ipynb), and also respect to common “.jl” file…

---

## [Unexpected : isstructtype( Vector{Float64}) =\> true](https://discourse.julialang.org/t/unexpected-isstructtype-vector-float64-true/79283)

<div class="topic-metadata">

**Author:** [@reumle](https://discourse.julialang.org/u/reumle)\
**Replies:** 13\
**Last updated:** [April 11, 2022, 11:06am UTC](https://discourse.julialang.org/t/unexpected-isstructtype-vector-float64-true/79283 "2022-04-11T11:06:23Z")

</div>

According to the help, it should not happen… isstructtype(T) -\> Bool Determine whether type T was declared as a struct type (i.e. using the struct or mutable struct keyword). Is this a bug? Or am I misunderstanding so…

---

## [Error with user-defined rates in Catalyst.jl](https://discourse.julialang.org/t/error-with-user-defined-rates-in-catalyst-jl/79229)

<div class="topic-metadata">

**Author:** [@SiddhantDeshmukh](https://discourse.julialang.org/u/SiddhantDeshmukh)\
**Replies:** 4\
**Last updated:** [April 11, 2022, 10:19am UTC](https://discourse.julialang.org/t/error-with-user-defined-rates-in-catalyst-jl/79229 "2022-04-11T10:19:06Z")

</div>

Hello everyone, I’m fairly new to Julia and would like to use Catalyst.jl to solve ODE systems across a large simulation grid. To that end, I’ve been trying out some test problems, and have encountered an issue with dec…

---

## [How to solve failure to load CSV in Julia?](https://discourse.julialang.org/t/how-to-solve-failure-to-load-csv-in-julia/79335)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [April 11, 2022, 9:28am UTC](https://discourse.julialang.org/t/how-to-solve-failure-to-load-csv-in-julia/79335 "2022-04-11T09:28:25Z")

</div>

Hello, I wanted to load CSV in the environment but I got this error: julia\> using CSV \[ Info: Precompiling CSV \[336ed68f-0bac-5ca0-87d4-7b16caf5d00b\] ERROR: LoadError: MethodError: no method matching Parsers.Options(::M…

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

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