[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
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 13
Thread images: 2
File: 1350611681869.jpg (137 KB, 401x487) Image search: [Google]
1350611681869.jpg
137 KB, 401x487
>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 (13 KB, 459x459) Image search: [Google]
image_0.jpg
13 KB, 459x459
>>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

banner
banner
[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.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.