News for hackers. Stuff that matters.
Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Thursday June 20, 2019 @11:40PM (#20239700)
Julia is hands down much better than either of these languages. Don't waste your time.
Re:Another Book on Data Science – Learn R and Python in Para... by s_Hogg on Friday June 21, 2019 @12:52AM (#20239961)
So? This whole argument over which programming language is the best all seems a bit tools-first to me. I used to program in R and was a package owner, but switched to python because it had stuff I needed (TF before it ever got ported to R).

Nowadays I program in python because it has all I need. If something comes out in Julia that makes the cost of picking up another language worth it then I'll do it without a second thought. Until then, why bother? The don't waste your time argument can cut both ways, you know.

To clarify: I see no inherent reason to not program in Julia or any other language. But you work with whatever gets your job done efficiently and right now that's neither of those languages for a lot of people.

Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Friday June 21, 2019 @12:59AM (#20239981)
> This whole argument over which programming language is the best all seems a bit tools-first to me.

Not really, syntax and semantics are adjoints.

Re:Another Book on Data Science – Learn R and Python in Para... by s_Hogg on Friday June 21, 2019 @01:05AM (#20240005)
Exactly: you're talking about semantics.

In a great many cases, they aren't a first-order issue - which is where my objection to a blanket "don't waste your time" claim comes from.

Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Friday June 21, 2019 @01:09AM (#20240018)
What is there besides semantics?
Re:Another Book on Data Science – Learn R and Python in Para... by krapht on Friday June 21, 2019 @05:31AM (#20241084)
Uh, adoption by the community at large? The best program is the one you didn't have to write because a package existed for it already. Just because a language has a foreign function interface doesn't mean it's easy to interact with other libraries.

R, Python, Matlab, and C++ are the big dogs in scientific programming, and the inertia behind having a large community behind than will continue to drive adoption.

Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Friday June 21, 2019 @11:49AM (#20243559)
That's my point, Julia's interop is unparalleled. Like it legit takes one line to call a python library. You get back a result in native julia type.
Re:Another Book on Data Science – Learn R and Python in Para... by jhbadger on Thursday June 20, 2019 @11:52PM (#20239742)
It's a matter of ecosystem of packages. R has a huge number of packages for many fields. Python has fewer, but might work for particular use cases. I was excited for Julia, and played around with it since 0.2, but it really hasn't generated very many packages of note in my particular field (bioinformatics).
Re:Another Book on Data Science – Learn R and Python in Para... by Der_Einzige on Friday June 21, 2019 @08:06AM (#20241721)
Pretty sure that Python has a larger total ecosystem of packages than R.
Re:Another Book on Data Science – Learn R and Python in Para... by jhbadger on Saturday June 22, 2019 @08:15PM (#20252465)
I mean fewer (and less developed) in the context of data analysis and statistics where it is a competitor to R. Every time I consider using Python after getting frustrated with the more ugly features of R as a language, I take a look at what's available in Python, as from a language point of view it is a bit nicer (as is Julia). But then I see what I would have to reimplement myself if I switched, so I don't.
Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Thursday June 20, 2019 @11:56PM (#20239754)
julia has really good interop with both of python and R as well as cpp, matlab, mathematica and others.

Also it's not just about the numbers.

Re:Another Book on Data Science – Learn R and Python in Para... by randomvectors on Friday June 21, 2019 @01:41AM (#20240137)
So you're telling us not to waste our time with R or Python... but to constantly interop with R and Python?
Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Friday June 21, 2019 @01:46AM (#20240155)
I mean if there are packages that you need then be my guest. But like if you are starting a new project, julia is a more productive language.
Re:Another Book on Data Science – Learn R and Python in Para... by s_Hogg on Friday June 21, 2019 @09:21AM (#20242257)
> julia is a more productive language

Source for this, please?

Re:Another Book on Data Science – Learn R and Python in Para... by ddragon on Friday June 21, 2019 @09:50AM (#20242442)
It would really still depend on the support libraries around the task you want to write, if you really need more performance for the parts that those support libraries don't cover (and beyond what you get with PyPy or Numba) and which language you have more experience with.

If you're really going down to the FFI, it's hard to think it wouldn't be more productive, but that's not what a true beginner like the target of this book would do. Though it's quite nice to quickly extend some tool for your purpose without compromising anything or to understand how something works thanks to being written in high level code.

Syntax-wise, Julia's Common Lisp-like feature set gives the language a lot of power, but normal use will probably be just on par with Python in terms of productivity.

Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Friday June 21, 2019 @09:25AM (#20242284)
Re:Another Book on Data Science – Learn R and Python in Para... by ivirshup on Friday June 21, 2019 @08:46AM (#20242008)
I love Julia, but feel the interop story could use some work. If I want to have my python package depend on some Julia code, how easy is that? Last time I checked (a few months ago), it was pretty difficult.
Re:Another Book on Data Science – Learn R and Python in Para... by ChrisRackauckas on Friday June 21, 2019 @09:06AM (#20242160)
You can get it done with a little bit of user interaction: https://github.com/JuliaDiffEq/diffeqpy
Re:Another Book on Data Science – Learn R and Python in Para... by kensai on Friday June 21, 2019 @01:28AM (#20240099)
Julia is indeed coming hard to bridge and surpass these two languages. I really hope it succeeds since it is really very well designed.
Re:Another Book on Data Science – Learn R and Python in Para... by thomasfedb on Friday June 21, 2019 @12:13AM (#20239820)
What's a good resource for a R user looking to jump over to Julia?
Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Friday June 21, 2019 @12:19AM (#20239848)
Re:Another Book on Data Science – Learn R and Python in Para... by locoman88 on Friday June 21, 2019 @12:46AM (#20239940)
That's an opinion my friend, not a fact. If you want to be taken seriously, be sure to be careful in your assertions and always have hard data to back them up
Re:Another Book on Data Science – Learn R and Python in Para... by mruts on Thursday June 20, 2019 @11:54PM (#20239745)
I whole heartedly agree. Python is garbage for data science. If an industrial grade NN library was written for it, plus some quant libraries, I think most people would switch.

I work in finance doing data science-y things and have yet to meet anyone who doesn’t think that Python is a pile of garbage.

People used to make the easy to learn argument, but Julia is even easier. And more elegant, extensible, and faster.

Re:Another Book on Data Science – Learn R and Python in Para... by randomvectors on Friday June 21, 2019 @01:39AM (#20240135)
> If an industrial grade NN library was written for it

Can you give tell us which language and industrial grade NN library you're using?

Because from where I'm sitting I see that Python is the only language that gets first grade support for both Tensorflow and Pytorch. It's so ahead for working with NN that it's not even close.

Re:Another Book on Data Science – Learn R and Python in Para... by mruts on Friday June 21, 2019 @03:41PM (#20245705)
I was talking about Julia, not Python. Python obviously has industrial grade NN libraries.
Re:Another Book on Data Science – Learn R and Python in Para... by ianamartin on Friday June 21, 2019 @07:36AM (#20241567)
Whenever I see the “I’ve never met x” argument, I’m always looking out for the catch. Because it’s a bad argument to begin with. But the catch is almost always in a situation where x is everywhere, and you would have to have your head willfully stuck in a hole in the ground to not see it.

And this is no exception.

Re:Another Book on Data Science – Learn R and Python in Para... by huac on Friday June 21, 2019 @01:21AM (#20240068)
You, uh, don't like PyTorch and TensorFlow? I can't tell if this is sarcastic.
Re:Another Book on Data Science – Learn R and Python in Para... by pjmlp on Friday June 21, 2019 @01:50AM (#20240178)
They are written in C++.
Re:Another Book on Data Science – Learn R and Python in Para... by randomvectors on Friday June 21, 2019 @06:55AM (#20241384)
Not sure how that's relevant. Everything is written in something else.

Python itself is written in C. The Julia github repo shows Julia 68.2%, C 16.3%, C++ 10.4%, Scheme 3.2%. R is a mix of C, C++, R and some Fortran I think...

Re:Another Book on Data Science – Learn R and Python in Para... by pjmlp on Friday June 21, 2019 @07:18AM (#20241487)
It is relevant from the point of view of what a developer is able to achieve without being forced to drop down to a 2nd programming language, aka "2 language syndrome".

And how many Python libraries are just plain wrappers, not really written in Python.

I use TensorFlow from .NET ML and C++ API.

Re:Another Book on Data Science – Learn R and Python in Para... by huac on Friday June 21, 2019 @02:09AM (#20240248)
are you suggesting that data scientists use C++ for day to day work? those libraries have first-class wrappers in Python (there is R support, but not at the same level).
Re:Another Book on Data Science – Learn R and Python in Para... by pjmlp on Friday June 21, 2019 @02:29AM (#20240339)
Having worked at CERN, many do in fact use C++ for day to day work, hence why CINT and ROOT exist.

However my point was that with Julia, those libraries would have been written in Julia.

All the Python libraries that one throws around for these use cases are C, C++ and Fortran libraries, that happen to have Python wrappers.

Any programming language can have wrappers for them, there is nothing written in Python per se.

Re:Another Book on Data Science – Learn R and Python in Para... by mruts on Friday June 21, 2019 @03:42PM (#20245711)
I was talking about Julia, not Python. Python clearly has great NN libraries and great data science libraries.
Re:Another Book on Data Science – Learn R and Python in Para... by ackbar03 on Friday June 21, 2019 @07:42AM (#20241586)
I think he uses a calculator for that
Re:Another Book on Data Science – Learn R and Python in Para... by adamnemecek on Thursday June 20, 2019 @11:58PM (#20239759)
Plus a good package manager, insanely good interop, one good ide, etc etc.