# Discussion on "Why I no longer recommend Julia" by Yuri Vishnevsky

**URL:** <https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151>\
**Category:** Community\
**Tags:** discussion\
**Created:** [May 16, 2022, 2:33pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151 "2022-05-16T14:33:38Z")\
**Posts on this page:** 19\
**Page:** 15

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [July 5, 2022, 11:56pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/319 "2022-07-05T23:56:49Z")

</div>

> [@bertschi](#):
>
> As an extreme example, we could even have named indices

Well, an `AbstractArray` axis is documented to be `AbstractUnitRange{T} where T<:Integer`, so that’ll need even more changes to `AbstractArray` code.

---

<div class="post-metadata">

**Author:** ![bertschi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bertschi/32/33462_2.png) [@bertschi](https://discourse.julialang.org/u/bertschi)\
**Post date:** [July 6, 2022, 5:55am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/320 "2022-07-06T05:55:57Z")

</div>

Right, this is not (currently) possible in Julia. I just wanted to show a contrived example of matrix multiplication. Yet, by the same logic you might give meaning to your example of multiplying a matrix with axes (0:3, 1:3) and (1:3, 2:3): The result should indeed by a matrix with axes (0:3, 2:3) as it would represent a linear map between spaces whos basis vectors are – for some reason – numbered from 0:3 and 2:3 respectively.

---

<div class="post-metadata">

**Author:** ![mschauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mschauer/32/13946_2.png) [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Post date:** [July 6, 2022, 8:25am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/321 "2022-07-06T08:25:31Z")

</div>

An example:

A neural network in Julia can easily be written in a way that one can add layers with complex weights instead of real weights. This might even be a good idea, at least people are doing research on it.

But there is no “interface/protocol solution” possible which protects you from _algorithmic_ failure: your training algorithm while valid for real weights might of course fail for complex weights (perhaps because complex activation function with bounded real part have necessarily singularities).

So: Either you disallow complex numbers, dual numbers, intervals or anything other than `<:AbstractFloat` for your inputs and weights – or you allow it, at the price of needing to answer the question of algorithmic correctness by understanding the algorithm and your inputs.

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [July 6, 2022, 3:06pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/322 "2022-07-06T15:06:16Z")

</div>

> [@Benny](#):
>
> So any thoughts on matrix multiplication? Say 4x3 matrix X has indices (0:3, 1:3) and 3x2 matrix Y has indices (1:3, 2:3), do you think it’ll make sense for the 4x2 matrix Z to have indices (0:3, 2:3)? I can’t really think of any meaning for it, but if it’s disallowed then `OffsetArray`s must contend with more than just dimension mismatches (the 1:3 axes do match).

Yes, that would be the correct approach. Just needs someone to implement it. Until then we throw an error for matrix multiplication that is not 1-offset.

---

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [July 6, 2022, 3:20pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/323 "2022-07-06T15:20:31Z")

</div>

> [@bertschi](#):
>
> this is not (currently) possible in Julia

Not with `*`, but with packages all is possible:

```julia
using Random, Tullio, OffsetArrays
X = rand!(zeros(0:3, 1:3)); 
Y = rand!(zeros(1:3, 2:3));

@tullio Z[i,k] := X[i,j] * Y[j,k] # 4×2 OffsetArray(::Matrix{Float64}, 0:3, 2:3)

all(Z[i,k] ≈ sum(X[i,j] * Y[j,k] for j in 1:3) for i in 0:3, k in 2:3) # true

```

> [@tim.holy](#):
>
> Just needs someone to implement it.

One approach is [#270](https://github.com/JuliaArrays/OffsetArrays.jl/pull/270). This tries to avoid the ambiguities of adding yet more methods to `*`, by catching offsets further down the the pipe.

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [July 6, 2022, 6:26pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/324 "2022-07-06T18:26:18Z")

</div>

> [@mcabbott](#):
>
> catching offsets further down the the pipe.

I tried reading the linked issue, but I’m not exactly sure what you meant by this. Is this referring to `OffsetArray`s being wrapped by any number of other types e.g. `reinterpret`ing an `OffsetArray`? At least when I clicked through more links I ran across the text “I’m not too sure how to approach arbitrarily nested `OffsetArrays` wrt dispatch” and it seemed close.

It was also pointed out to me recently that a full `OffsetArray` isn’t even necessary for offset indices, a view (`SubArray`) indexed with a `OffsetArrays.IdOffsetRange` will have offset indices. I’m very curious how the type promotion and forwarding of indices would work, e.g. multiplying (0:3, 1:3) `SubArray` and (1:3, 2:3) `ReinterpretArray{..., OffsetArray{...}, ...}` to some (1:3, 2:3) matrix.

Right now, the intricacies of 1-based input types are seemingly ignored and an output `Matrix` is made; see the below example. It would make sense to make an `OffsetMatrix` if the inputs were found to have offset indices, but allocating 1 of 2 output types depending on a runtime check would make the methods type-unstable.

```julia
julia> x = ones(5, 5); view(x, 1:3, 1:2) * reinterpret(Int, view(x, 1:2, 1:4))
3×4 Matrix{Float64}:
 9.21436e18 9.21436e18 9.21436e18 9.21436e18
 9.21436e18 9.21436e18 9.21436e18 9.21436e18
 9.21436e18 9.21436e18 9.21436e18 9.21436e18

```

---

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [July 6, 2022, 6:49pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/325 "2022-07-06T18:49:21Z")

</div>

To make `*` work, it’s sufficient that `mul!` is called with `C = similar(B, axes(A,1), axes(B,2))`, and dispatch on that, which is what the PR (and its companion) does. But perhaps better discussed there.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 7, 2022, 11:46am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/326 "2022-07-07T11:46:18Z")

</div>

Perhaps we should close this never ending thread of discussion? The thread started in May and we are already in July. Many replies here are no longer related to the original post and I think people can discuss specific topics in new threads moving forward?

---

<div class="post-metadata">

**Author:** ![pablosanjose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pablosanjose/32/7006_2.png) [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Post date:** [July 7, 2022, 1:11pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/327 "2022-07-07T13:11:38Z")

</div>

I fully agree with moving unrelated discussions to another thread, but I would suggest to keep this thread open. Closing threads about dissenting or challenging opinions about Julia could send a wrong message.

---

<div class="post-metadata">

**Author:** ![ImreSamu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imresamu/32/20677_2.png) [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Post date:** [July 7, 2022, 1:25pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/328 "2022-07-07T13:25:46Z")

</div>

> [@juliohm](#):
>
> Perhaps we should close this never ending thread of discussion?

There will be users in the future who want to write about their experiences with this topic.  
And if they can’t, Yuri will be right.  
Yuri: _“… but the net effect is that people’s legitimate experiences feel diminished or downplayed, and the deeper issues go unacknowledged and unaddressed.”_

So please do not close.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 7, 2022, 1:36pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/329 "2022-07-07T13:36:02Z")

</div>

> [@ImreSamu](#):
>
> There will be users in the future who want to write about their experiences with this topic.

Users are free to write whatever, it is not my proposal to stop that. It is just that many people have poor criteria when they decide to reply to a long thread like this. They are spamming tons of members of this forum with topics that are unrelated. We can always unfollow the thread, but that is not ideal. Anyways, that is what I will do now. If anyone wants to address any of my previous replies related to the original topic, please reach out directly over direct messages.

---

<div class="post-metadata">

**Author:** ![benz0li](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benz0li/32/37040_2.png) [@benz0li](https://discourse.julialang.org/u/benz0li)\
**Post date:** [August 29, 2022, 10:29am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/330 "2022-08-29T10:29:22Z")

</div>

I have been using [R](https://www.r-project.org) for the past 20 years.

From time to time I am absolutely flabbergasted about the kind of bugs popping up in core R packages {stats}: [[Rd] Bias in R’s random integers?](https://stat.ethz.ch/pipermail/r-devel/2018-September/076869.html) in September 2018 for example:

> […]
> 
> I find this discussion fascinating. I normally test random numbers in different languages every now and again using various methods. One simple check that I do is to use Michal Zalewski’s method when he studied Strange Attractors and Initial TCP/IP Sequence Numbers:
> 
> [Strange Attractors and TCP/IP Sequence Number Analysis - One Year Later](http://lcamtuf.coredump.cx/newtcp/)  
> [Strange attractors and tcp/ip sequence number analysis | Semantic Scholar](https://pdfs.semanticscholar.org/adb7/069984e3fa48505cd5081ec118ccb95529a3.pdf)
> 
> The technique works by mapping the dynamics of the generated numbers into a three-dimensional phase space. This is then plotted in a graph so that you can visually see if something odd is going on.
> 
> I used `runif(10000, min = 0, max = 65535)` to get a set of numbers. This is the resulting plot that was generated from R’s numbers using this technique:

 ![](https://global.discourse-cdn.com/julialang/original/3X/e/d/ed7eae4d3d2501848e12a81fafd789b4fccf0110.jpeg)

> And for comparison this was generated by collecting the same number of samples from the bash shell:

 ![](https://global.discourse-cdn.com/julialang/original/3X/8/7/87407a13c545e252d3fefccd7d637860fa061d18.jpeg)

> The net result is that it shows some banding in the R generated random numbers where bash has uniform random numbers with no discernible pattern.
> 
> Best Regards,  
> -Steve

These _fundamental bugs_ affect us all; in any programming language.

It took the R developers many years to reach a state that was considered mature.  
👉 It won’t be any different for Julia.

---

<div class="post-metadata">

**Author:** ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Post date:** [August 29, 2022, 5:58pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/331 "2022-08-29T17:58:30Z")

</div>

What do you get when you run it in Julia?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [August 30, 2022, 2:45am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/332 "2022-08-30T02:45:13Z")

</div>

What is the meaning of the coordinates in these plots?

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [August 30, 2022, 2:48am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/333 "2022-08-30T02:48:09Z")

</div>

> [@benz0li](#):
>
> It took the R developers many years to reach a state that was considered mature.  
> 👉 It won’t be any different for Julia.

I started using R in about 1998 or so at a company that largely used cshell and SAS. Even back then R was plenty mature enough to do the basics of data processing cleaning and making plots it’s biggest problem at the time was memory management but of course it benefited hugely from the fact that it was based on s and splus which first began to be developed in the 1960s or early 70s if I remember correctly.

Julia has I think taken a lot of heritage from common lisp and so it does benefit quite a bit from having had certain things figured out before they even started writing it but of course a lot of Julia was developed de Novo.

I think Julia would probably benefit a lot from some kind of core correctness type test suite in the basic numerical data processing and statistics fields perhaps specifically including intentionally a number of tricky numerically unstable type problems it could benefit users a lot to know that known correctness issues that can arise in scientific computing are continuously monitored to ensure quality answers examples include your random number generator graph. For example if before every major release there were some large test suite of problems that utilized data frames and stats base and glm and differential equations and calculations of means and variances of various data sets with known floating point issues having something like that could really help drive confidence in correct ness of Julia packages

Sorry if there are run-on sentences there I was using Google dictation on my phone

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [September 9, 2022, 11:58am UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/334 "2022-09-09T11:58:33Z")

</div>

After we can’t use Julia anymore, now Python can’t be used anymore. So I have to go back to R ☹

> **[Someone’s Been Messing With My Subnormals!](https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html)**
>
> TL;DR: After noticing an annoying warning, I went on an absurd yak shave, and discovered that because of a tiny handful of Python packages b...

TL;DR; from the article:

> _ **After noticing an annoying warning, I went on an absurd yak shave, and discovered that because of a tiny handful of Python packages built with an appealing-sounding but dangerous compiler option, more than 2,500 Python packages—some with more than a million downloads per month—could end up causing any program that uses them to compute incorrect numerical results.** _

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [September 9, 2022, 10:29pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/335 "2022-09-09T22:29:41Z")

</div>

That has _ **nothing** _ to do with the Python language, though. We [had to deal](https://github.com/JuliaCI/BaseBenchmarks.jl/issues/253) with a similar issue years ago, addressed by preventing packages built with BinaryBuilder from [using `-ffast-math` and Co](https://github.com/JuliaPackaging/BinaryBuilder.jl/pull/610). Also, Simon Byrne posted write-up about the same topic last year:  
[https://simonbyrne.github.io/notes/fastmath/](https://simonbyrne.github.io/notes/fastmath/)

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [September 9, 2022, 10:34pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/336 "2022-09-09T22:34:41Z")

</div>

I’m gonna go ahead and close this. Please feel free to start new topics for related discussions.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [September 9, 2022, 10:34pm UTC](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/337 "2022-09-09T22:34:47Z")

</div>

Closed on September 9, 2022, 10:34pm UTC



[Previous page](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151.md?page=14)
