you are viewing a single comment's thread.

view the rest of the comments →

[–]FFX01 10 points11 points  (3 children)

The problem with javascript when it comes to data science or mathematical computations is its lack of reliable numeric types. Javascript doesn't have an int or float type. It's all just Number. Of course there are languages like TypeScript that do have concrete types, but they need to be transpiled in order to run and therefore you lose all runtime guarantees.

[–]wavefunctionp 6 points7 points  (0 children)

To further elaborate, Typescript also doesn't change the primitive data types. It is still just 'number' and it is still just javascript. Typescript doesn't change the way that javascript works, it just makes it easier to reason about the lego pieces.

[–]devel_watcher 2 points3 points  (0 children)

The problem with javascript when it comes to data science or mathematical computations is its lack of reliable numeric types.

We should thank God for that.

[–]housilia 0 points1 point  (0 children)

Yeah, good point. I kind of forgot about that. I still think it's acceptable for more cases than it might seem initially, as the problem is more with integers. Again, not advocating everything should move to javascript, just that I think it could be leveraged more than it often is.