News for hackers. Stuff that matters.
Re:Maker of RStudio launches new R and Python IDE by 0cf8612b2e1e on Thursday June 27, 2024 @09:09PM (#40816869)
I think the R people see the writing on the wall. Python has sucked all the air out of the room, and it is becoming increasingly difficult for them to target the R space exclusively.

If you had no legacy or compliance requirements, are you going to start a new data project in SAS, R, or Python? Where are you going to find the most talent?

Re:Maker of RStudio launches new R and Python IDE by dongobread on Thursday June 27, 2024 @10:47PM (#40817272)
I'm not sure what would lead to you believe this. I've worked in the data science/ML space for over a decade now and I see the majority of pure analytics projects started in R, including at big tech companies I've worked at recently.

Of course, ML projects and other things that need to result in production-grade models are almost always done in Python. This is currently the most visible form of "data project" due to all the ML/AI hype, but it is far from the only data work going on.

Re:Maker of RStudio launches new R and Python IDE by aydyn on Thursday June 27, 2024 @11:52PM (#40817533)
Youre wrong. Python is outpacing R in usage. Every metric you can find proves it. R also has fundamental issues and lacks serious development.
Re:Maker of RStudio launches new R and Python IDE by stoperaticless on Friday June 28, 2024 @12:31AM (#40817736)
s/serious/hyped
Re:Maker of RStudio launches new R and Python IDE by aydyn on Friday June 28, 2024 @01:35AM (#40818039)
No. R fundamentally has not really improved in the past ~10 years. Do you know much about how R works?

Also try:

gsub('serious', 'hyped', x)

Re:Maker of RStudio launches new R and Python IDE by lottin on Friday June 28, 2024 @07:36PM (#40826503)
Maybe because it already does what it intends to do reasonably well? I mean, what do you think needs to be improved?
Re:Maker of RStudio launches new R and Python IDE by aydyn on Saturday June 29, 2024 @01:50AM (#40828160)
If youre unironically asserting that R already does everything well enough Im not going to take you seriously.
Re:Maker of RStudio launches new R and Python IDE by lottin on Saturday June 29, 2024 @03:32AM (#40828515)
I'm asking what needs to be improved, in your opinion.

That's a normal follow-up question that you should be able to answer. Otherwise, why are you even commenting?

Re:Maker of RStudio launches new R and Python IDE by aydyn on Saturday June 29, 2024 @02:04PM (#40832398)
No you arent, youre clearly asking in a rhetorical way. Re-read your post.

Any criticism brought up you'd dismiss. Heres one: lack of native 64 bit integers.

Re:Maker of RStudio launches new R and Python IDE by lottin on Sunday June 30, 2024 @11:08AM (#40837582)
No, I was just asking out of curiosity. You're overthinking too much.
Re:Maker of RStudio launches new R and Python IDE by aydyn on Sunday June 30, 2024 @11:22PM (#40842257)
No, you were clearly asserting that R already does everything needed. Stop trying to gaslight.
Re:Maker of RStudio launches new R and Python IDE by lottin on Monday July 01, 2024 @12:21AM (#40842513)
You're crazy.
Re:Maker of RStudio launches new R and Python IDE by dang on Monday July 01, 2024 @08:37PM (#40852414)
Please don't cross into personal attack or name-calling, and please especially avoid this sort of tit-for-tat spat with another user. It's way against the site guidelines and makes for boring reading.

I know it's not always easy to extricate oneself but it's helpful to remember that the only way to 'win' is to stop.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Re:Maker of RStudio launches new R and Python IDE by dang on Monday July 01, 2024 @08:37PM (#40852413)
Please don't cross into personal attack or name-calling, and please especially avoid this sort of tit-for-tat spat with another user. It's way against the site guidelines and makes for boring reading.

I know it's not always easy to extricate oneself but it's helpful to remember that the only way to 'win' is to stop.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Re:Maker of RStudio launches new R and Python IDE by skotobaza on Saturday June 29, 2024 @06:18AM (#40829156)
Yet you haven't provided any substantial points against it and assume that others will take you seriously...
Re:Maker of RStudio launches new R and Python IDE by smcin on Monday July 01, 2024 @07:41AM (#40844803)
Here are 14 years of HN discussions/criticisms of R: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

"Does what it intends to do reasonably well" is going to be widely subjective, depending on whether the user's use-case is statistical/life-sciences vs more general purpose coding and relying on many packages; prototyping/experimentation vs production code; whether the user uses base-R, or tidyverse/data.table, etc.

Here are two of those many posts:

* An opinionated view of the Tidyverse “dialect” of the R language (July 5, 2019) https://news.ycombinator.com/item?id=20362626

* The R programming language: The good, the bad, and the ugly (epatters.org, 2018) https://news.ycombinator.com/item?id=35571659 -> https://www.epatters.org/post/r-lang/

Re:Maker of RStudio launches new R and Python IDE by openrisk on Friday June 28, 2024 @01:41AM (#40818060)
The issue is that even if you peel the hype (which is a fact), python is still far larger.

If you check e.g. the journal of open source software (which does not have much ML/AI bias), most of the papers are python, with an occasional R and julia submission.

Re:Maker of RStudio launches new R and Python IDE by vixen99 on Friday June 28, 2024 @08:48AM (#40820113)
Not to dispute because I have no idea so I'll assume you're correct. But how many metrics did you find and how were they obtained? And how would you know they are representative of all R users?
Re:Maker of RStudio launches new R and Python IDE by 0cf8612b2e1e on Friday June 28, 2024 @11:13AM (#40821450)
For whatever it is worth, the TIOBE index lists Python as #1, R at #21.

Python is the first language many people are exposed to today. It has a library and tooling for every use case.

https://www.tiobe.com/tiobe-index/

Re:Maker of RStudio launches new R and Python IDE by kuhewa on Friday June 28, 2024 @09:35PM (#40827203)
R has a pretty particular use case though, Python use for statistical programming/data analysis would be an apples to apples comparison. People doing a coding 101 course in Python don't really count against the R user base.
Re:Maker of RStudio launches new R and Python IDE by aydyn on Saturday June 29, 2024 @01:51AM (#40828166)
No one is disputing that R has usage in niche arenas.
Re:Maker of RStudio launches new R and Python IDE by boringg on Friday June 28, 2024 @06:21AM (#40819256)
Im curious about the people who use R in big tech companies that you've worked at. Were the R users the people who had just come out of school and still working using their academic dev environment before weening off?

I always found that was the group who used R - kind of a use what you are used to until it gets out of step with the remaining workflow.

I also would say that the amount of R I see is far less than python.

Re:Maker of RStudio launches new R and Python IDE by disgruntledphd2 on Friday June 28, 2024 @06:52AM (#40819402)
So, (speaking as someone who started with R and now predominantly writes Python), I think there's a bunch of things going on here.

1. R is 100% better for analytics work and statistical modelling. There's just no contest.

2. Python is much, much better for data getting (APIs/scraping etc) and dealing with non table-like data. Again, there's basically no contest here.

3. Software engineers hate R (in most cases), which means that it's easier to hand over work for production in Python.

This leads to a situation where it looks like most of the prod-level work is being done in Python, but if you look under the covers you'll discover that most prototyping/analysis/exploration is done in R and then ported to Python if it works.

Like, Python is a great language for lots of things, but it's pretty terrible for exploratory DS work (pandas is like the worst features of base R and base Python mashed together in an unholy hybrid).

There's also the fact that all the NN stuff is predominantly Python, so lots of companies believe that they need Python people, which reinforces the stereotype.

And finally, while I love R, Python has more guardrails, and it's harder to make an unmaintainable mess with it (relative to R). Particularly when people use all the various lazy evaluation packages that the tidyverse has used over the past decade (I once maintained a codebase that used all of these in different places, it was not a fun experience).

Re:Maker of RStudio launches new R and Python IDE by greentxt on Friday June 28, 2024 @12:25PM (#40822218)
One of the better comments in this thread, I would only qualify that different levels of ability mediate much of the "how hard is it to make an unmaintainable mess" dimension. Dplyr/tidy code can be pasta, as can pandas, and there is really a whole new level of that given llm generated nonesense edited/tweaked by novices masquerading as seniors.

Apropos this idea of a vs code competitor, I wish they would spend more effort on existing products. I find quarto frustratingly buggy and meanwhile see no reason to move my workflow from vscode to this new thing. Ymmv

Re:Maker of RStudio launches new R and Python IDE by disgruntledphd2 on Saturday June 29, 2024 @05:39AM (#40828995)
> I would only qualify that different levels of ability mediate much of the "how hard is it to make an unmaintainable mess" dimension

Oh definitely, but at least Python's stdlib is relatively consistent, which helps packages be a little more so.

My favourite example is t.test, which is not a t method for the test class, unlike summary.lm which is.

And there's like 4 different styles of function naming in base & stats alone.

Python has problems (for gods sake, why isn't len a method?) but it's a little more consistent.

I used to think that R was responsible for a lot more of the mess than I now do, having seen the same kind of DS code (and I am a DS) written in both Python and R.

And it would be sweet if R had a pytest equivalent, if I never have to write self.assertEqual again, it'll be too soon.

Re:Maker of RStudio launches new R and Python IDE by esalman on Thursday June 27, 2024 @10:17PM (#40817154)
I have an impression that most SotA algorithms in many fields that are not deep learning are made available first as R (or even Matlab) package. Obviously they do get ported to python once they receive enough traction.
Re:Maker of RStudio launches new R and Python IDE by greenpresident on Friday June 28, 2024 @06:30AM (#40819296)
This has been my impression in social science academia: a lot of ready to run methods are released as R packages.
Re:Maker of RStudio launches new R and Python IDE by kyawzazaw on Thursday June 27, 2024 @10:26PM (#40817187)
the problem is life sciences and statisticans are not going to learn Python though. and that's the talent
Re:Maker of RStudio launches new R and Python IDE by asdff on Friday June 28, 2024 @12:47AM (#40817815)
On the ground however, they learn both. Or I should say if you find someone who is exclusive to one or the other language (which happens), they aren't much of a programmer to begin with. There is a whole food chain essentially in life sciences in academia with computer knowledge. There are those who write the tooling, who are perhaps so abstracted they don't know the underlying biology and vet their tooling based on simulated data and a comparison with existing tooling, toiling in their own castles on tooling that might not ever see a real dataset. There are those who use the tooling to create novel pipelines to analyze data and draw conclusions based on their own or their collaborators literature research or life science perspectives, they might not care if the finding is truly novel or if its merely proving an existing gumption with a tool that hasn't yet been applied to an existing dataset. Then there are also those who run the pipelines created by others within their research group, sometimes others who have long left that given research group, with brittle hardcoded paths and other "DO NOT TOUCH" segments in a massive single 2500 line file that gurgitates some plots from a standard sort of csv file as input.
Re:Maker of RStudio launches new R and Python IDE by _Wintermute on Friday June 28, 2024 @03:06AM (#40818403)
They are though. I work in computational biology, I would say the majority of work I see now is in python.
Re:Maker of RStudio launches new R and Python IDE by kyawzazaw on Friday June 28, 2024 @04:25PM (#40824902)
that's a much much smaller subset than the vast users of R in academic/research
Re:Maker of RStudio launches new R and Python IDE by dnawlp on Friday June 28, 2024 @03:35AM (#40818533)
Students I spoke to were forced to use SAS. They looked at me as if I was from Mars for suggesting alternatives.

For a "big data" project, people will probably use Python (though Google apparently retreats from it except in machine learning).

Why could you not use R and C++ or Java though? For example, Arrow has bindings for both, so the argument that Python is needed to shovel/scrape/steal data becomes less and less valid.