Hacker News new | ask | show | jobs
by acmecorps 2981 days ago
Does Swift have the libraries that Python/Matlab has? My wife is doing some kind of fMRI analysis/research for her PhD and she's using Matlab. I'm an iOS developer, so I'd love it if I can get her to use Swift!
4 comments

Not sure about Swift libraries, but you should definitely try Julia. It's incredibly easy to move from MATLAB to Julia.

https://julialang.org/

Most fMRI toolboxes are written in Matlab or Python unfortunately. You don't really want to go down the path of trying to rewrite (most of them) too.
If you mean the matlab toolboxes (eg, image processing toolbox), which are proprietary libraries that you pay like $1k per year to use, no.

Honestly, as someone who wrote matlab professionally for a couple years, the price is a joke, and the performance is jokier. The only reason that matlab still exists is that they use the same marketing tactics as drug dealers- it's free to universities, and super easy to use.

I know companies like e.g. Airbus which replaced Matlab with Python.