josiah,

Stop staying you can't put R in prod. :rstat:

I made a blog post with my thoughts and reactions.

#rstats #rust #putRinprod

https://josiahparry.com/posts/2023-07-06-r-is-still-fast.html

yuvipanda,

@josiah TIL ABOUT VALVE AND THIS ALL SEEMS FUCKING AWESOME!

josiah,

@yuvipanda LFFGGGGGGG

PointyFluff,

@josiah

Wonderful!

Would you be interested in working for my submersible company in Everett?

Looking for a “pilot".

:blobcatgoogly:

josiah,

@PointyFluff WOooh! My first troll!

josiah,

@PointyFluff ur my reply guy :')

PointyFluff,

@josiah

It was just too easy.

Low hanging fruit, and such.

For the record I write systems code, in 1893 BASIC...SO, Literally anything would be an improvement.

(yes of course I am Rewriting it in #rust)

rmflight,
@rmflight@mastodon.social avatar

@josiah I mean, we had @jnolis writing about using R in prod at T-mobile 5 (!) years ago! And the context there implies that it's getting hit a bunch, if it's being used to classify customer responses.

https://opensource.t-mobile.com/blog/posts/r-tensorflow-api/

krzysztof_dyba,

@josiah could you test rjson::toJSON() too? It should run a bit faster than jsonify::to_json().

josiah,

@krzysztof_dyba I can check! I recall doing the comparison with geometries a few months back and jsonify edged out rjson in that case. There's also the license implication of GPL-2

mdsumner,

@josiah you just can't unbox json in prod

alans,

@josiah Beyond your deft troll handling, what I really like about this post is that you invite actual resolution of the issues — like, demand performant solutions! Open source encourages this and has room for many ways to solve problems! — rather than sneer about What True Devs Tolerate.

zippy1981,
@zippy1981@hachyderm.io avatar

@josiah I used RApache back in the day. If I ever need to use R again I'll try valve

jrosell,
@jrosell@mastodon.social avatar

@josiah I love to have static websites in production :)

defuneste,
@defuneste@fosstodon.org avatar

@josiah Your blog post is 🔥 our slack channel (and yes we have "R in prod" albeit not something with a huge traffic load). Two of our SWE know R and can translate it into :python: or some JS.

djnavarro,

@josiah this was helpful - thanks!

mo8it,
@mo8it@fosstodon.org avatar

@josiah At my university, no one uses R anymore in the scientific and numerical fields where it is supposed to shine. Of course, no one uses it in computer science too. Either Python or Julia.

I wouldn't put any of R, Python or Julia in production though. In my own opinion, they should only be used for interactive programming and scripting (about one file).

josiah,

@mo8it interesting. I think not putting Python or R into production is a bad take. Good R and good Python is fast and typically uses interfaces to fast things written in C++ or C or Rust or Fortran. It’s a bit elitist ngl

And the Julia thing is super niche :P but VERY fast!

mo8it,
@mo8it@fosstodon.org avatar

@josiah Why is it elitist? It might be strict, but elitist?

josiah,

@mo8it maybe elitist is the wrong word? But it implies that only low level languages like C/++ / Rust should be put into prod which is a yuge ask for most

orizuru,

@josiah How about maintainability?

Never met a developer who liked R, and to put things into production, you have to work with devs.
The new people coming into data science all know python. Even among older data scientists, you rarely find one that prefers R (unless they're a statistician working in academia).

Who is going to maintain that code after the person who wrote it leaves for another company?

josiah,

@orizuru Well when you start with a stance like that, that all people who program only know python thats a non-starter.

josiah,

@orizuru Its a lot like how I was hired and I have to help edit / maintain C# tests. Even with your presumed stance of the world, its a pretty normal thing.

orizuru,

@josiah
It's only a presumption if I never experienced it myself.

Maybe you work in a very specific field that loves R, but in most industries it's a dying language.

Happy to be convinced otherwise, if you provide data for it.

shibaprasad,

@josiah @orizuru Tbh, it is not a total presumption. I primarily work in #rstats and have faced the same issues.

The DevOps team told the same to one of my teammates. And the Plumber library had some authentication issues related to UMS2 IIRC.

We adapted databricks quickly and found a way to call the R scripts from a Python notebook.

Even on #Databricks, the support of R is so poor!

josiah,

@orizuru @shibaprasad it’s absolutely terrible. Idk how you were using plumber on databricks though?? I gave them a whole slew of things to improve for R users. But they don’t care. Their customer facing team knows pandas and that’s it it feels like

shibaprasad,

@josiah @orizuru Haha kinda had the same experience. We had a 3 hours long interaction with them, they were clueless for most of the R stuffs. And our team mostly uses R. For ML-OR-Analytics, everything.

When we attended a hands-on workshop, the presenter said "R lovers, sorry to say, it is time to move on. It used to be cool but not anymore." (paraphrased)

josiah,

@shibaprasad @orizuru nah. They’re wrong. They just don’t want to learn. It’s a defense mechanism for a bad platform. They’re stuck in 2011 with these notebooks.

jrosell,
@jrosell@mastodon.social avatar

@orizuru show them quarto, they will love R for generating static websites https://r4ds.hadley.nz/quarto-formats.html#websites-and-books

orizuru,

@jrosell quarto also supports python. So it's a hard sell.

The thing R has got going for it is the plots, they are pretty.
I'm sorry, but the rest just lags behind, from the syntax to the ecosystem (except very specific stats packages).

Just having array indexes starting at 1 will make a Dev's skin crawl.

milesmcbain,
@milesmcbain@fosstodon.org avatar

@orizuru @jrosell funny how many ideas that started in our dead language in just the last 5 years keep getting ported to these mainstream ones.

defuneste,
@defuneste@fosstodon.org avatar

@milesmcbain @orizuru @jrosell

Dev are fragile creature and they cant handle Julia or Fortan (yup index starting at 1 or "pick your number"). Anyway I am always amazed how everyone can have enough confidence to claim something is dead from punk, to relational database or more recently data science.

josiah,

@milesmcbain @orizuru @defuneste @jrosell yo, imagine where Python would be today had they not adopted data.frames via pandas from base R

orizuru,

@josiah @milesmcbain @defuneste @jrosell definitely, those are great, and so are the R plots.

But you were talking about production which, in most industry, you'd never see.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • provamag3
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines