6 ms·
I was one of those who disagreed with that, but then I was forced to learn several new languages for work. Now I agree with it wholeheartedly. my favs: -cloj
by fnord77 5y ago
I was one of those who disagreed with that, but then I was forced to learn several new languages for work. Now I agree with it wholeheartedly.
my favs:
-clojure for processing deeply nested data
-rust for general stuff
-java for concurrency support and general stuff
-c for easy pointer manipulation and "tricks"
-sql
-bash for scripting (I'm that weirdo who would rather make a huge shell script rather than using python)
I still need to find something good for arrays/ matrices. MATLAB was kinda fun I can't see it being used in production in anger too easily
- belter 5y agoCareful with Bash... https://mywiki.wooledge.org/BashPitfalls https://mywiki.wooledge.org/BashPitfalls
- voakbasda 5y agoI write huge scripts with bash. I know many of the pitfalls referenced on that list (and more), but this a great resource for teaching others. Thanks for sharing it!
- barrkel 5y agoThe biggest advantage of bash over scripts is parallelism. It's not bad at job control, and if you write your scripts so they communicate well with streams, you can scale them up with a little bit of bash, xargs -P, parallel, etc.
- whynaut 5y ago> I still need to find something good for arrays/ matrices R?
- trutannus 5y agoMATLAB, if you can get a license would likely be better. Name literally means "matrix lab". Has excellent matrix manipulation features.
- blacktriangle 5y agoAnd Octave(https://www.gnu.org/software/octave/index https://www.gnu.org/software/octave/index) if you can't get a license. I actually had one hectic weekend porting our whole departments MATLAB code over to Octave due to a hardware failure of our licensing server and some stonewalling from Mathworks, Octave is pretty close to fully MATLAB compatible.
- trutannus 5y agoWorth a mention, but it's not comparable in terms of feature set and execution time, sadly. I'd love someone to come along and make a MATLAB (Modern Fortran) knockoff that kills MATLAB.
- hpb42 5y agoFor arrays/matrices I'm falling back to Fortran. It has builtin support to matrix/vector multiplication (and other operations of course). There's no need to install other libraries, or to deal with virtualenvs, or package managers. Fortran is not that sold creepy thing from the 70s anymore, Fortran90 (and later) is pretty elegant IMO.
- tobmlt 5y agoCheers to that! Fortran introduced me to “:” syntax, back before I’d ever heard of numpy. (Or expression templates for that (somewhat tangential) matter)
- Raro 5y agoPython's NumPy library deliberately emulates much of the functionality of Matlab's core (similarly, fundamental plotting with matplotlib follow similar design cues). As a lapsed long-time Matlab user, I think they're just as fun to use. There is also Octave, an open-source Matlab alternative, but when I last used it (admittedly quite a while ago) it had limited support for toolboxes (e.g. signal processing). I imagine it has only improved since.
- galangalalgol 5y agoFor elegant matrix syntax I like julia or fortran better, if I need a lack of a license or more speed. Octave is good too, but it is much slower than Matlab. Numpy is in a weird spot. Its still slower than Matlab, but its everywhere, but all the versions and environments are different so you need containers to be portable.
- SiliconMage 5y agoAPL is awesome for matrices. https://en.wikipedia.org/wiki/APL_(programming_language) https://en.wikipedia.org/wiki/APL_(programming_language)