[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

language has more than 1 type for numbers


Thread replies: 13
Thread images: 2

File: 1350611681869.jpg (137KB, 401x487px) Image search: [Google] [Yandex] [Bing]
1350611681869.jpg
137KB, 401x487px
>language has more than 1 type for numbers
>>
do u know anything about computer architecture? there are two "types" hardwired into most processors
>>
k y s t b h f a m
>>
>>54987333
Computers should automatically detect pure floats/integers/big numbers optimize accordingly
>>
>>54987369
why?
>>
File: image_0.jpg (13KB, 459x459px) Image search: [Google] [Yandex] [Bing]
image_0.jpg
13KB, 459x459px
>>54987369
Not always possible, senpai
>>
>>54987415
Because he is a lazy fuck who wants to write everything on NodeJS and that it will be supported by hardware.
>>
>>54987463
Name one instance where it isn't
>>
>>54987482
Real time embedded systems or simulations in which signals/variables will vary from use to use or even microsecond to microsecond.
>>
>>54987501
I don't see how having one type for numbers impacts this.
>>
>>54987517
Because in situations such as this, it may be ambiguous to the compiler/interpreter which form of number representation is most efficient, and which sacrifices in precision are acceptable.
>>
>>54987517
because you don't know much about computers or aren't thinking about the consequences of what you're saying or are trolling. what >>54987501 means is that there are applications in which you care a lot about the speed and don't have the time to consider lesser programmers
>>
>>54987244
wait until you compare 2 floats you thought were equal but they aren't due to rounding errors
Thread replies: 13
Thread images: 2
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK