Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
It's a dynamically typed language which was never designed around type safety in the first place, what do you expect
-
@RememberMe yeah but i assume basic things like difference between uint8 and int8 should be in-built.
in int() should have extra arg for number of bytes
I tried to use ctype but then it’s conversion to string is pain
Only using python because my matlab license expired -
@hardfault Python's not great for that, though numpy, cython, and numba make it very explicit. You aren't usually supposed to care, an int is an int.
Use numpy, which has explicit types. -
@hardfault I am not very familiar with matlab to be abler to say if this would be good for you, but I have heard that GNU Octave is a decent choice. Have you tried it or have any opinions on it? I encountered on Andrew Ng's ML course.
-
Don't use python for that.
Use Julia, which is python-esque in that it is meant to be a "low-learning curve" language, but has better type support, especially if you're doing scientific computing!
Type conversion in python is made of dog shit and donkey poop
rant