News for hackers. Stuff that matters.
Re:Why do programming languages suck at math? by laynetrain on Sunday June 25, 2017 @07:12PM (#14632762)
Thanks for the links. It all seems like excuses.
Re:Why do programming languages suck at math? by smt88 on Sunday June 25, 2017 @07:16PM (#14632782)
Yeah, you're right. Computer scientists are whiny little babies who can't sit down and work hard enough to overcome the laws of mathematics. What a bunch of losers, focusing on designing programming languages instead of defying natural laws.

And you know what, why haven't they invented human-level AI yet? Are they just that lazy?

Don't even get me started on chemists... too lazy and stupid to learn a simple method to turn iron into gold.

Re:Why do programming languages suck at math? by laynetrain on Sunday June 25, 2017 @07:35PM (#14632850)
And we can't even time travel or leave the galaxy yet (◔_◔). C'mon scientists.

https://www.google.com/#safe=off&q=2*3.18

Re:Why do programming languages suck at math? by cratermoon on Sunday June 25, 2017 @07:48PM (#14632908)
Re:Why do programming languages suck at math? by kazinator on Sunday June 25, 2017 @07:49PM (#14632910)
One person's "excuses" may be another's "set of rationalizations for a collection of engineering requirements that aren't ideal in every dimension".
Re:Why do programming languages suck at math? by Gibbon1 on Sunday June 25, 2017 @08:36PM (#14633093)
When I've brought this up it's pretty obvious that while their were historical reasons behind it, not it because of cargo cult ideas of how numeric variables should work.

In any higher level language the default numeric variable should be an algebraic decimal float, not a binary int or float. Doesn't mean ints and floats shouldn't exist, but they shouldn't be the default.

Meaning when a programmer writes

   number x = 2/3;
number should equal 2/3. Not an approximation of 2/3.