News for hackers. Stuff that matters.
Re:Why Co–Star Uses Haskell by named-user on Friday November 05, 2021 @12:17PM (#29121364)
FastAPI is hard to contend with for anything marginally complex, without having to dig deep in its internals.

If you want performance, or to apply more rigorous (read: enterprisey) development practices, you really are better off looking elsewhere.

However, you can get a Data Science python developer to front their code behind an API with minimal ceremony.

Type safety does not exist in Python. Type hinting does not solve this problem, neither does Pydantic. These are bandaids for huge shortcomings of using the wrong tool for the job.

Re:Why Co–Star Uses Haskell by gmfawcett on Friday November 05, 2021 @12:26PM (#29121495)
Sure, but there's a continuum at play here. Haskell leaves some correctness on the table, right? -- you should be using Idris 2; or better yet, proving your API in Coq and extracting the code. From some perspectives, Haskell is the "worse" in "worse is better".

Personally I find python-is-wrong arguments to be a bit naive. "It's a crappy language that's only good enough to build prototypes..." -- like YouTube, for example? :) Ultimately, smart developers are smart, and can get work done with whatever tools they have at hand.

Re:Why Co–Star Uses Haskell by fiedzia on Friday November 05, 2021 @02:26PM (#29123009)
Take computer away from them and see how far they'll go.

Tools matter. However the community and ecosystem behind Python makes it extremely hard to beat at many games.

Re:Why Co–Star Uses Haskell by gmfawcett on Friday November 05, 2021 @02:36PM (#29123132)
LOL, I agree that YouTube would be hard to build if you only had a hammer and chisel. :P
Re:Why Co–Star Uses Haskell by mrtranscendence on Friday November 05, 2021 @05:25PM (#29124894)
Just continually saying Python is the wrong tool for the job doesn't cut it. I've gotten a lot of mileage out of type hints in Python and have caught my share of bugs statically, so I disagree with your contention that it's merely a "bandaid for huge shortcomings". It's a helpful tool that serves a purpose.

You could pick at every tool, every language. What's better than Python at (since you brought it up) data science? Julia? That's hardly any more type safe, if that's an issue for you. Haskell? Good luck getting non-CS types to buy in to the restrictions, and good luck porting everything you need. R? Slower than Python, even! I mean, I dunno, if you have something in mind that's better in every way than Python then I'd love to hear it.

Re:Why Co–Star Uses Haskell by Mikeb85 on Friday November 05, 2021 @07:38PM (#29125881)
R is way better than Python for most (all?) data science things. It's better at data munging, has more packages, it's array based so way more terse while being easy to reason about, has super easy C++ FFI, etc...

And no environment really beats RStudio.

Re:Why Co–Star Uses Haskell by mrtranscendence on Monday November 08, 2021 @03:48PM (#29154033)
I dispute at least some of that. R has more statistical packages, perhaps, but can't compete with Python in terms of sheer array of packages and developer mindshare in general. This is no different for data science, where major tools are either Python-only or are accessed in R only through Python (like Tensorflow).

R is also hardly more terse in my experience, though perhaps that depends on style; I'm a tidyverse fan but it's not particularly concise.

Finally ... RStudio. It's just okay. If you're willing to use a language-specific editor that may not get keybindings right (I hope you're not an emacs user), it works fine. I like the RMarkdown integration. I don't use it, though, and I don't feel like I'm missing that much.

BTW, you don't mention what actually does make R better than Python: lazy evaluation allowing something close to syntactical macros. You'll never get a magrittr or a dplyr in Python.