4 ms·
This is exactly why I'm going to Julia. It either has these constructs in the language itself or is powerful enough to express them adequately. Numpy is a neces
by fishmaster 6y ago
This is exactly why I'm going to Julia. It either has these constructs in the language itself or is powerful enough to express them adequately. Numpy is a necessary crutch for Python.
- pc86 6y agoYou're going to Julia so that you can avoid typing "import numpy as np" at the beginning of a file? Or is there more to it?
- fishmaster 6y agoAlso so that I don't have to use things like "np.dot(A, B)" and similar annoyances.
- axi1 6y agoAs a sidenote, I don't write "import numpy as np" in jupyter notebooks (at least as long as I don't share them with others) for I have this line in my ipython startup file.
- dklend122 6y agoMathematical programming in Julia is just more natural and integrated with the language and type system. From dot broadcasting, to multiple dispatch, to parametric types (if you want ), multidimensional array comprehensions. No worrying about 4 different container types (list, np array, pytorch tensor, symbolic etc etc) Everything works with one array abstraction, including gpu and multi threaded
- fishmaster 6y agoThis is what I mean with it being more natural and elegant in Julia. Also, "@code_warntype" is incredibly useful for efficient code.