News for hackers. Stuff that matters.
Re:Matlab vs. Julia vs. Python by ggcdn on Wednesday July 03, 2019 @01:46PM (#20346651)
Matlab has its quirks, but I've never come across a better IDE for debugging 'scientific' code/scripts. Seeing current values by hovering over variables, the ability to pause and execute some 'testing' code, or overwrite things and carry on, being able to easily edit arrays/matrices in an excel-like table, having matrix arithmetic that doesn't look like shit when written as code... these are things that I find very useful. I use it in my field (structural engineering) for those reason alone, even if it might be slower, or more difficult to accomplish certain tasks.
Re:Matlab vs. Julia vs. Python by 0xd171 on Wednesday July 03, 2019 @02:24PM (#20347070)
I've used quite a bit of R and Python and I've never touched Matlab. Similarly to your comment - Python has nothing that comes even close to RStudio for working with data. Jupyter, Spyder, PyCharm, VSCode/Atom with data science extensions - none of them are as good.
Re:Matlab vs. Julia vs. Python by spinningslate on Wednesday July 03, 2019 @02:39PM (#20347251)
Agreed. R might not have the breadth of Python, and it's less conventional as a language (procedural, vector based).

It has some key strengths though:

1. RStudio IDE as you note. It's a really great, focused IDE for doing most of the things people do with R.

2. Shiny. Such a well conceived and constructed toolkit for building interactive apps

3. The package ecosystem: lots of really good quality, high performance packages

4. RStudio the company, who contribute a lot to the community - both open source (RStudio IDE, Shiny, tidyverse, ...) and commercial (RSConnect, Package Manager).

From a language design pov I like Julia over Python over R. But for number-heavy computing I prefer the R ecosystem overall.

Re:Matlab vs. Julia vs. Python by kgwgk on Wednesday July 03, 2019 @02:53PM (#20347416)
One of the packages created by RStudio is reticulate, which allows integration with python. They have also recently added some support for python to the IDE:

https://rstudio.github.io/reticulate/articles/rstudio_ide.ht...

Re:Matlab vs. Julia vs. Python by 0xd171 on Wednesday July 03, 2019 @03:02PM (#20347508)
On the other hand, base R has to maintain (some degree of?) compatibility with S. Which means that all the strange design choices and weird behaviour in base R have little hope of ever changing. No number of additional packages can fix this.
Re:Matlab vs. Julia vs. Python by tylermw on Wednesday July 03, 2019 @04:53PM (#20348676)
There is one nice thing about R core's focus on maintaining backwards compatibility, however: code from a decade ago (more often than not) will run without a hiccup on current versions of R.

Related tweets:

https://twitter.com/hrbrmstr/status/1124016682413039616

https://twitter.com/hrbrmstr/status/1122186751987073025

Re:Matlab vs. Julia vs. Python by overkalix on Thursday July 04, 2019 @05:09PM (#20357819)
What about Rodeo? From the looks of it, it's getting close. And honestly, at this point I continue to use R because of RStudio and the tidyverse, otherwise I would have ditched the language a long time ago.
Re:Matlab vs. Julia vs. Python by 0xd171 on Friday July 05, 2019 @06:33AM (#20361411)
> I continue to use R because of RStudio and the tidyverse

Tidyverse is massively overrated if you ask me. The good parts of it (dplyr and ggplot) are nice for interactive work. And that's about it - if you're deploying the code in an application, you're best off sticking to base R as much as possible.

Re:Matlab vs. Julia vs. Python by overkalix on Thursday July 04, 2019 @05:36PM (#20358007)
Disregard my previous comment. I looked into it and apparently Rodeo's company was acquired and the IDE became unsupported and is now a dumpster fire.

Also, it used electron.

So long live RStudio, I guess.

Re:Matlab vs. Julia vs. Python by eigenvalue on Wednesday July 03, 2019 @01:57PM (#20346783)
You should check out Spyder, included with the Anaconda Python distribution. It includes most of what makes MATLAB a productive IDE. In particular, you can inspect various types of variables (including Pandas tables in a nice grid view) and watch how the contents changes as the code executes.
Re:Matlab vs. Julia vs. Python by stinos on Wednesday July 03, 2019 @03:53PM (#20348077)
Spyder is good for inspecting, coming close to Matlab (for the rather simple stuff I use it for) but it's a lacking on the code editing/browsing/plugin front. VSCode on the other hand is pretty good for the latter, is still lacking what I look for in Spyder and Matlab (i.e. if I'm debugging something, I just want a REPL in which I can type with full syntax completion, enter multiline text etc). As a result I mostly use both at the same time.. Though I wouldn't be surprised if VSCode is going to get better at one point, on github there are already multiple issues dedicated to this with at least some activity of the team.
Re:Matlab vs. Julia vs. Python by viraj_shah on Wednesday July 03, 2019 @01:48PM (#20346674)
I definitely understand this point. Another alternative is Python (with numpy, scipy and matplotlib) using the Pycharm IDE. It has many of the features you're talking about.
Re:Matlab vs. Julia vs. Python by mlevental on Wednesday July 03, 2019 @03:26PM (#20347786)
pycharm now has exactly the layout of matlab

https://i.imgur.com/epByE8g.png