3 ms·
Hello, I'm that guy who voluntarily writes a mixture of Python and Haskell in his day job. For me, it's about recognizing the strengths in both languages. You
by rprospero 11y ago
Hello, I'm that guy who voluntarily writes a mixture of Python and Haskell in his day job.
For me, it's about recognizing the strengths in both languages. You mentioned Python having "one or two cool libraries", but that's quite an understatement if you're doing any sort of numerical work. NumPy and SciPy are incredibly powerful, fast, and consistent. While hMatrix and Accelerate are both wonderful packages and have made some great progress, they don't have nearly the community support that Numpy does.
On the reverse side, when I'm dealing with any sort of interactive system (e.g. Web Scraper or Motor Controller), I immediately reach for Haskell, since it makes those kinds of applications so much easier.
For me it's mostly about just finding the right tool for the job. And trying to avoid any job where the right tool is Fortran.
- exDM69 11y ago> On the reverse side, when I'm dealing with any sort of interactive system (e.g. Web Scraper or Motor Controller), I immediately reach for Haskell, since it makes those kinds of applications so much easier. I find this a bit surprising... can you tell a bit more about these projects? I tend to do the opposite, I reach for Python when I need interactive stuff or need to interface with the "real world" more (network connections, etc). And I use Haskell when I have projects that have well defined inputs and outputs.