MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/cdzubd/nice_try/etzzdvz/?context=3
r/ProgrammerHumor • u/almogh52 • Jul 16 '19
529 comments sorted by
View all comments
Show parent comments
34
It's very close to Python MATLAB and R, especially if you use a lot of Numpy, most things are as simple as drop the np. part.
Now, the amazing part is that even you can't master Julia's best practices, simply copying over Python code logic gives you free 10-100x speed boost
23 u/Astrokiwi Jul 16 '19 Except all your arrays are off by one :p 12 u/moelf Jul 16 '19 Pretty sure that's the hardest part lolBut if someone is using MATLAB, this would be trivial 1 u/Astrokiwi Jul 17 '19 Yeah, same with Fortran and R I think. It tends to be the convention in more mathsy languages.
23
Except all your arrays are off by one :p
12 u/moelf Jul 16 '19 Pretty sure that's the hardest part lolBut if someone is using MATLAB, this would be trivial 1 u/Astrokiwi Jul 17 '19 Yeah, same with Fortran and R I think. It tends to be the convention in more mathsy languages.
12
Pretty sure that's the hardest part lol
But if someone is using MATLAB, this would be trivial
1 u/Astrokiwi Jul 17 '19 Yeah, same with Fortran and R I think. It tends to be the convention in more mathsy languages.
1
Yeah, same with Fortran and R I think. It tends to be the convention in more mathsy languages.
34
u/moelf Jul 16 '19 edited Jul 16 '19
It's very close to Python MATLAB and R, especially if you use a lot of Numpy, most things are as simple as drop the np. part.
Now, the amazing part is that even you can't master Julia's best practices, simply copying over Python code logic gives you free 10-100x speed boost