metaclass: (дзедline)
metaclass ([personal profile] metaclass) wrote2013-03-21 11:25 am
Entry tags:

java try parse integer

А почему в java нету готовых методов, которые бы позволяли парсить числа, не кидая исключений?
Т.е. возвращали бы true+число, либо false, типа как int.TryParse в дотнете.

[identity profile] stop-nonsense.livejournal.com 2013-03-21 09:11 am (UTC)(link)
http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?test=all&lang=java
Хватит уже поддерживать этот миф.

[identity profile] bydlorus.livejournal.com 2013-03-21 09:25 am (UTC)(link)
In modern machines, accessing RAM is really slow (compared to anything the CPU does), which means applications that use the caches as much as possible (which is easier when less memory is used) can be up to a hundred times faster than those that don't. And there are many ways in which Java uses more memory than C++.

Тесты, гоняющие цифры, не возбуждают.

[identity profile] stop-nonsense.livejournal.com 2013-03-21 10:09 am (UTC)(link)
С радостью посмотрю на более другие тесты. Линкуйте.