Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're:

- working interactively (i.e. your code isn't part of a larger application)

- working with relatively small datasets that fit into memory

- don't need any deep learning libraries

then both R and Python can do a great job and choosing one over the other is simply a matter of preference. I might even lean slightly towards R because its data frames are a bit easier to use than pandas and RStudio's REPL is the best.

But if you need to deploy your code somewhere, or high performance, or the latest deep learning libraries, then Python absolutely crushes R. And it's not even close.



How are you defining 'high performance'? I think R's data.table is quicker on a number of metrics than comparable packages from Python.


while with high-performance you mean documented FFI and friends? this should be possible with R as well.

It also seems that the actual open-source ML-community (vs. Google: we want you to use our software to ensure you can't ever own your stuff) supports R just fine: https://mxnet.apache.org/api/r


Note that you can call Python from R, and vice versa too.


For the record, the last time I called python from R its memory usage ballooned to 10 times its normal size.


That's one of those things that make for a nice Medium article, but in practice work horribly or not at all.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: