greptilian logo

IRC log for #friendlyjava, 2016-04-04

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
04:57 nanoz joined ##friendlyjava
07:36 mr_lou joined ##friendlyjava
07:37 pdurbin joined ##friendlyjava
12:19 CJ_ Thoughts on Math.random() vs Random.nextInt()?
13:32 nanoz joined ##friendlyjava
14:11 nanoz joined ##friendlyjava
14:17 nanoz] joined ##friendlyjava
14:36 sfisque joined ##friendlyjava
18:11 aditsu CJ_: my thoughts are: want integers -> use Random
18:12 aditsu Math.random() uses a Random anyway internally (and calls nextDouble())
18:12 bluezone joined ##friendlyjava
18:41 CJ_ Yes.  I discovered that in the interim. :)
18:46 CJ_ Right now I am trying to determine if there is a speed difference between IntStream.of(a).anyMatch(x -> x == 4); and doing it the old way.
20:13 sfisque joined ##friendlyjava
20:36 aditsu CJ_: I would assume the old way is generally faster, as it doesn't involve extra objects and method calls
20:36 aditsu but maybe the optimizer is really clever..
20:50 CJ_ Maybe.
23:06 jayemecee joined ##friendlyjava
23:06 jayemecee left ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode