greptilian logo

IRC log for #virtualJUG, 2015-03-11

virtualjug.com

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

All times shown according to UTC.

Time S Nick Message
07:22 mmatloka` joined #virtualJUG
07:26 _ollie joined #virtualJUG
07:52 slaskawi joined #virtualJUG
08:15 _ollie joined #virtualJUG
08:19 pfrobinson joined #virtualJUG
08:28 TheShade joined #virtualJUG
08:54 TheShade joined #virtualJUG
08:54 TheShade So, how does it work for speakers? Am I supposed to use Hangouts?
09:00 Bevin joined #virtualJUG
09:52 vladko joined #virtualJUG
10:22 pfrobinson joined #virtualJUG
10:34 shade__ joined #virtualJUG
10:47 Bevin joined #virtualJUG
12:15 isopov joined #virtualJUG
14:04 pfrobinson_ joined #virtualJUG
14:43 pfrobinson_ joined #virtualJUG
14:49 Bevin joined #virtualJUG
14:55 ivansopov joined #virtualJUG
14:56 ivansopov left #virtualJUG
15:10 Bevin joined #virtualJUG
15:20 algon joined #virtualJUG
15:25 TheShade joined #virtualJUG
15:26 TheShade Starting in 90 minutes...
15:35 dexjen joined #virtualJUG
15:37 edburns joined #virtualJUG
15:55 fmey joined #virtualJUG
15:58 neven joined #virtualJUG
15:59 nevenc left #virtualJUG
15:59 pressafc joined #virtualJUG
16:01 alxs joined #virtualJUG
16:05 Kaye joined #virtualJUG
16:07 yob joined #virtualJUG
16:07 Bevin joined #virtualJUG
16:09 alxs joined #virtualJUG
16:17 isopov joined #virtualJUG
16:18 shade__ joined #virtualJUG
16:18 dexjen joined #virtualJUG
16:24 slavik2 joined #virtualJUG
16:28 OSt joined #virtualJUG
16:29 OStrekalovsky joined #virtualJUG
16:29 gvsmirnov joined #virtualJUG
16:31 Fuud joined #virtualJUG
16:32 alxs joined #virtualJUG
16:38 slavik2 joined #virtualJUG
16:39 pm771 joined #virtualJUG
16:39 byteblender joined #virtualJUG
16:39 Tushar joined #virtualJUG
16:39 Tushar Hello all !!!
16:40 hax0r1337 joined #virtualJUG
16:41 romeokienzler joined #virtualJUG
16:41 TheShade Hi
16:41 hax0r1337 hell0, is thi$ the virtual b33r party?
16:41 TheShade Everyone is ready? :)
16:41 beobal joined #virtualJUG
16:42 Kedar joined #virtualJUG
16:42 shelajev joined #virtualJUG
16:44 Kedar joined #virtualJUG
16:46 shelajev hello people
16:46 Son joined #virtualJUG
16:47 tdias joined #virtualJUG
16:47 swanson_ joined #virtualJUG
16:47 OStrekalovsky hi
16:48 Jerith666 joined #virtualJUG
16:48 eswanson joined #virtualJUG
16:49 _DaveB_ joined #virtualJUG
16:49 sparko joined #virtualJUG
16:49 gvsmirnov Cheers!
16:49 fuubar joined #virtualJUG
16:49 sparko21 joined #virtualJUG
16:50 radcortez joined #virtualJUG
16:50 Didier joined #virtualJUG
16:50 sparko left #virtualJUG
16:50 sparko joined #virtualJUG
16:51 tdias joined #virtualJUG
16:51 MikeT joined #virtualJUG
16:51 cjwebb_ joined #virtualJUG
16:51 HarmeetSingh joined #virtualJUG
16:51 tori3852 joined #virtualJUG
16:51 madorb joined #virtualJUG
16:52 Ado joined #virtualJUG
16:52 tellisnz joined #virtualJUG
16:52 Adil joined #virtualJUG
16:52 tdias joined #virtualJUG
16:53 Aggelos joined #virtualJUG
16:53 thanks joined #virtualJUG
16:53 kostiu joined #virtualJUG
16:53 Mayol joined #virtualJUG
16:54 Kedar hello shelajev, hello everyone!
16:54 Swietopel joined #virtualJUG
16:54 SimonSays joined #virtualJUG
16:55 Slash joined #virtualJUG
16:55 ml10 joined #virtualJUG
16:55 alxs joined #virtualJUG
16:55 ml10 joined #virtualJUG
16:56 namanshah joined #virtualJUG
16:56 Kedar Does anyone know if we are following http://shipilev.net/talks/narnia-2555-jmm-pragmatics-en.pdf ?
16:56 nickolay joined #virtualJUG
16:56 vk joined #virtualJUG
16:56 gaponov joined #virtualJUG
16:57 houblon joined #virtualJUG
16:57 joshuaw joined #virtualJUG
16:57 stevex joined #virtualJUG
16:57 TheShade Kedar, yes, we do. However, don't look there, SPOILERS!
16:57 Kedar oh, i see, np, thanks TheShade.
16:58 Mattia joined #virtualJUG
16:59 HarmeetSingh hello @simon and all @vjug members
16:59 ado_ joined #virtualJUG
17:00 Narada joined #virtualJUG
17:00 neven joined #virtualJUG
17:01 blackfin joined #virtualJUG
17:01 mduigou joined #virtualJUG
17:01 Narada looking forward to this
17:01 cwmur joined #virtualJUG
17:01 quux00 joined #virtualJUG
17:01 harishb310 joined #virtualJUG
17:01 TheShade hey mduigou :)
17:01 pm771 Are we there yet?
17:01 mingju joined #virtualJUG
17:01 Narada no
17:01 HarmeetSingh when the session start ?
17:01 TheShade about now
17:01 Narada soon
17:01 pressafc_ joined #virtualJUG
17:01 namanshah Hopefully in a few
17:01 Son_Of_Cole joined #virtualJUG
17:02 t8 joined #virtualJUG
17:02 Narada gc pauses right now
17:02 boulder-co joined #virtualJUG
17:02 Nithin joined #virtualJUG
17:02 amp joined #virtualJUG
17:02 allanc joined #virtualJUG
17:02 carljokl joined #virtualJUG
17:02 rfvizarra joined #virtualJUG
17:02 mduigou TheShade good luck
17:02 TheShade thanks!
17:02 incredibleholg joined #virtualJUG
17:02 traveltainment joined #virtualJUG
17:03 romeokienzler I still see "Starting soon...", is this ok?
17:03 Fedor joined #virtualJUG
17:03 Julien joined #virtualJUG
17:03 romeokienzler Ahh...it seems to start :)
17:03 Deepak joined #virtualJUG
17:03 pm771 Just started
17:03 matteogales joined #virtualJUG
17:03 romeokienzler thanks
17:03 quux00 joined #virtualJUG
17:03 vladimirsitnikov joined #virtualJUG
17:03 Obi joined #virtualJUG
17:03 cvega joined #virtualJUG
17:03 HarmeetSingh hello alesksey
17:03 OStrekalovsky too match robo-voice
17:04 TheShade hi
17:04 romeokienzler I'm on 3G in Switzerland in a train, works very nice
17:05 shalabh joined #virtualJUG
17:05 mohan joined #virtualJUG
17:05 fv joined #virtualJUG
17:05 Narada what about intellij?
17:05 ravipetlur joined #virtualJUG
17:06 Aggelos joined #virtualJUG
17:06 namanshah hi
17:06 vloo joined #virtualJUG
17:06 KrisSoko joined #virtualJUG
17:06 Paks_ joined #virtualJUG
17:06 TheShade take note that there is a 30 sec lag for Youtube live
17:06 Fedor joined #virtualJUG
17:07 Narada we are stuck on java6; cannot go to latest :)
17:07 Kedar Why does Eclipse need restart? Doesn't it use JRebel itself? :)
17:07 gravadlax joined #virtualJUG
17:08 pm771 How save it this optimizer?
17:08 Bala joined #virtualJUG
17:08 pm771 SAFE
17:08 namanshah after all its osgi based, so why do we really need a restart
17:08 HarmeetSingh its great simon
17:08 sjmaple it effectively just changes your eclipse.ini file with suggested values from all over the interwebs
17:08 Kedar yes!
17:08 Narada video is switching to super low res sometimes
17:08 namanshah hm..
17:09 sjmaple it's always best to back up though :)
17:09 HarmeetSingh ;)
17:09 romeokienzler yes
17:09 sjmaple as with anything
17:10 ecabrerar joined #virtualJUG
17:10 Aggelos joined #virtualJUG
17:10 beansf joined #virtualJUG
17:10 Al1en313 joined #virtualJUG
17:10 incredibleholg Is there a chance to get the slides afterwards?
17:10 electroma joined #virtualJUG
17:10 sjmaple http://zeroturnaround.com/free/optimizer-for-eclipse if you want to give it a go - and please give us feedback so we can improve
17:11 HarmeetSingh ok
17:11 Arun joined #virtualJUG
17:11 sjmaple incredibleholg:  I'll get them on slideshare at the end
17:11 arzu joined #virtualJUG
17:11 Arun Slides are Oracle copyright?
17:11 benm sjmaple: one quick feedback - doesn't seem to work properly with Spring Tool Suite
17:11 Al1en313 nope
17:11 Al1en313 here is his blog
17:11 Al1en313 http://shipilev.net/blog/2014/jmm-pragmatics/
17:11 Narada is there a pdf? video is blurring sometimes
17:12 sjmaple Arun: oh, maybe - I'll discuss with him after
17:12 Arun sjmaple: that's what the footer says at least ;)
17:12 namanshah al1en thanks for the link
17:12 sjmaple benm: thanks - so far we've done most of our testing on vanilla eclipse, so will be looking into variants after
17:12 smarks joined #virtualJUG
17:12 PhillipJ joined #virtualJUG
17:12 quux00 left #virtualJUG
17:12 sjmaple Arun: I don't want to copy them I just want a link to them :)
17:13 benm sjmaple - fair enough :-)
17:13 incredibleholg awesome, cheers @sjmaple
17:13 crew4ok joined #virtualJUG
17:13 sjmaple but yeh, STS, JBoss Tool Suite, RAD myEclipse... there are so many :)
17:14 beansf joined #virtualJUG
17:14 HarmeetSingh i think all eclipse based tools support this optimizer ?
17:14 mduigou also relevant even in single threaded is pointer aliasing
17:15 sjmaple questions for Aleksey are as usual asked through IRC - please put them in here :)
17:15 namanshah i guess they will soon
17:15 sjmaple HarmeetSingh: not yet - sometimes they play with the config, which is annoying
17:15 harishb310_ joined #virtualJUG
17:15 sjmaple some might just work though
17:15 Jerith666 Is that C example's result defined in Java?
17:16 smarks @Jerith666 I think so. Java specifies strict left-to-right evaluation order.
17:16 karshan_ joined #virtualJUG
17:16 romeokienzler you can just run a Monte Carlo Jerith666: Simulation in this :)
17:17 Jayan joined #virtualJUG
17:17 sudkak joined #virtualJUG
17:17 Narada lol bring me my slippers
17:18 irpod2 joined #virtualJUG
17:18 MikeK joined #virtualJUG
17:19 void joined #virtualJUG
17:19 adodon joined #virtualJUG
17:19 smarks @Jerith666 See JLS 15.7 for gory details. http://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.7
17:19 damianl joined #virtualJUG
17:20 smarks There are examples there but not exactly the one that Aleksey showed.
17:20 Jerith666 @smarks thanks!
17:20 nickolay Every time I listen to Shipilev, every time I understand that I'm too stupid to keep up his thoughts during the speech. I still hope to catch up with him sometime:-)
17:20 mselender joined #virtualJUG
17:22 FaisalFeroz joined #virtualJUG
17:25 Tushar 0 or -1
17:25 neverov joined #virtualJUG
17:27 FaisalFeroz joined #virtualJUG
17:28 joshuaw I think I need a primer on the Java Memory Model just to understand him
17:28 rfvizarra What is a value type?
17:28 Fuud struct
17:28 harishb310_ so what could be the implementation for volatile long on say 32 bit machines which cannot really read 64bit at once.. I'm thinking locking is too heavy...
17:28 rfvizarra ah, ok. Thanks!
17:29 Fuud in x86 32 we have some extensions that can operate 64bit at once
17:29 namanshah left #virtualJUG
17:30 harishb310_ in case we don't have? how would the JVM try to achieve it? or it is at java level?
17:31 Fuud MMX is in CPU since Pentium 2
17:31 joshuaw left #virtualJUG
17:31 sparko joined #virtualJUG
17:32 wkg118 joined #virtualJUG
17:32 HarmeetSingh when the value is initialized to variable and override the value, in this case, in memory model the actual memory is override or just create new value, and on retrieve fetch the latest one. ?
17:33 harishb310_ yes thanks, Fuud.. I was just trying to imagine how you would do it with out hardware support
17:33 pm771 Is it still on?
17:33 Tushar no
17:34 pm771 Why? Planned break?
17:34 smarks I'm still getting audio, and they're on slide 24.
17:34 smarks "Word tearing: Fairy tale"
17:34 crew4ok that's correct, i guess
17:34 abelyaev joined #virtualJUG
17:34 pm771 I do not have audio
17:34 crew4ok Alexey is talking about word tearing currently
17:35 irpod2 left #virtualJUG
17:35 pm771 joined #virtualJUG
17:36 sjmaple better now pm771?
17:36 pm771 Reload took care of it. Got video and audio back.
17:36 sjmaple (y)
17:36 sjmaple oh crap, this isn't skype! haha
17:37 HarmeetSingh this memory model is really painfull
17:37 smarks sjmaple:  :-P
17:37 HarmeetSingh :P
17:37 smarks (I get emoticons for those)
17:40 Narada can print true true or false false but nothing else?
17:40 vladimirsitnikov long[] words, not integer
17:40 Swietopel joined #virtualJUG
17:41 smarks "A BitSet is not safe for multithreaded use without external synchronization." - BitSet javadoc
17:41 shelajev It might print false false if thread joining is broken :D
17:41 shelajev http://zeroturnaround.com/rebellabs/concurrency-torture-testing-your-code-within-the-java-memory-model/
17:42 neven why not (F,F) ?
17:42 Narada why can't it print false false; thread 3 can run first?
17:42 shelajev there's join on threads 1 and 2
17:42 benm the general assumption was that thread 3 runs following "completion" of 1 & 2
17:42 harishb310_ Thread.join prohibits it
17:42 neven ah yes ... we wait on T1 and T2 threads
17:42 neven (I missed the join part)
17:43 shelajev the link above is the blogpost that Aleksey mentioned
17:43 Narada ah yes
17:43 isopov BTW, I have constructed an example of tearing on EnumSet (my favorite not frequently used class in standard library) - http://pastebin.com/4UbQbH1r - I get about 5-10 "Boo!" on every run.
17:43 smarks @shelajev It's at least as much a torture test of one's brain as one's code! :-P
17:44 Ashwin joined #virtualJUG
17:54 Narada can anyone see my messages; just want to make sure irc is working
17:55 neven @Narada: yes we see exactly one messasge "can anyone ..."
17:55 Narada thanks
17:58 shelajev do you have any questions? :) it's getting non-trivial here
18:00 vladimirsitnikov what is the po of "try {  return x=2; } finally { return x=1; }" ?
18:00 shelajev good question
18:02 Fuud po: x=2 -> x=1
18:03 sudkak joined #virtualJUG
18:05 besolov joined #virtualJUG
18:06 Jerith666 Is this fair to say: "typically it's easy to come up with one  valid excecution.  The reason programmers are often surprised by concurrency issues is that there are other, less intuitive executions that are also valid."
18:07 gvsmirnov Not quite true that it's typically to come up with just one valid execution
18:08 TheShade Jerith666, true
18:09 Jerith666 ... the easy one being the sequantially consistent one, I guess
18:10 vladimirsitnikov hint: total order
18:16 bbb joined #virtualJUG
18:16 alex-s joined #virtualJUG
18:17 alex-s left #virtualJUG
18:18 Guest4957 if i use more volatiles will there any performance issues?
18:19 vladimirsitnikov sure
18:21 Kedar Isn't this the example that fueled the JMM in java  5?
18:21 Guest4957 i think 1,0 is allowed
18:21 Kedar JMM revisit, I mean
18:23 smarks Kedar: yes, this is all Java 5 stuff so far.
18:24 smarks For background on the JMM update, see JEP 188: http://openjdk.java.net/jeps/188
18:24 Kedar Thanks smarks
18:25 sjmaple guessing s = stuart here? :)
18:25 neverov` joined #virtualJUG
18:25 neverov` left #virtualJUG
18:25 smarks sjmaple Yep, Hi Simon!
18:25 sanjoyd joined #virtualJUG
18:25 sjmaple hey, welcome back! :)
18:26 smarks Thanks, unfortunately vJUG is often at a time that conflicts with meetings for me, but not today.
18:31 kiwii joined #virtualJUG
18:40 Kedar NO
18:40 shelajev this is probably a great time to ask questions!
18:41 Narada what time will talk end?
18:41 TheShade I think it will take another 40 minutes
18:41 TheShade sorry for overrun
18:42 Narada ah ... ok np
18:42 Nithin is the cost of memory barriers same across all hardware platforms?
18:43 Fuud w/o synchonized on get(), hotspot will eliminate synchronized instruction on set (if only one thread invokes set), isn't it?
18:43 adil joined #virtualJUG
18:43 TheShade it cannot know the only thread is calling set()
18:44 TheShade Nithin, no, it varies wildly
18:45 Fuud Biased locking?
18:45 pm771 Is racing === unpredictable result by definition?
18:46 smarks TheShade: do we tell them about benign data races?
18:46 smarks Well I'll see if I can explain it in one sentence.
18:48 smarks It's possible to write programs that have data races, but which are set up in such a way that regardless of the result of the race, the same result occurs. These are called "benign data races" because there is indeed a data race, but since the outcome is entirely predictable, there is no possibility of it being incorrect.
18:51 slaskawi joined #virtualJUG
18:51 slaskawi joined #virtualJUG
18:55 Jerith666 joined #virtualJUG
18:56 Kedar what does <nothing> mean?
18:57 crew4ok it means the thread never ends in this particular example
18:57 Kedar ah, it never *observes* ready becoming true
18:58 crew4ok yep
18:58 wkg118 joined #virtualJUG
19:13 vladimirsitnikov http://www.slideshare.net/VladimirSitnikv/final-field-semantics
19:14 Al1en313 does it freeze only final values or all values of object?
19:14 Al1en313 sorry, i meant fields
19:14 vladimirsitnikov it is the field that is frozen
19:15 vladimirsitnikov just final fields
19:15 smarks joined #virtualJUG
19:20 vladimirsitnikov Regarding OoTA: "JMM allows reads to see writes that occur _later_ in the execution order (Table 17.4.5-A)". How does that align with "LoadStore option for JMM9"?
19:21 daincredibleholg joined #virtualJUG
19:21 incredibleholg joined #virtualJUG
19:25 ado_ joined #virtualJUG
19:25 smarks He means "recipe"
19:25 Bevin joined #virtualJUG
19:31 divanov joined #virtualJUG
19:36 Al1en313 left #virtualJUG
19:38 TheShade want examples?
19:39 TheShade I mean, jcstress tests?
19:41 mduigou joined #virtualJUG
19:41 smarks Always fun listening to TheShade!
19:41 mduigou Great talk Aleksey!
19:41 MikeK left #virtualJUG
19:42 ado_ left #virtualJUG
19:42 mduigou Yep, as you said, you've only tried to understand it 18 times. A dozen more than most people!
19:42 smarks Slides and commentary that Aleksey mentioned are here:
19:42 smarks http://shipilev.net/blog/2014/jmm-pragmatics/
19:42 TheShade Phew
19:43 TheShade So, I actually do have a few jsctress samples
19:43 TheShade We can do a private hangout, I think, if anybody wants
19:43 TheShade ?
19:43 smarks Lunchtime for me, CUL
19:44 gravadlax joined #virtualJUG
19:57 qwerty joined #virtualJUG
19:57 qwerty left #virtualJUG
19:59 incredibleholg joined #virtualJUG
19:59 daincredibleholg joined #virtualJUG
20:04 MikeT joined #virtualJUG
20:07 smarks joined #virtualJUG
20:09 feyner joined #virtualJUG
20:20 wkg118 joined #virtualJUG
20:26 mselender joined #virtualJUG
20:31 Bevin joined #virtualJUG
20:47 Bala joined #virtualJUG
21:06 smarks joined #virtualJUG
21:17 costlow joined #virtualJUG
21:33 mmatloka joined #virtualJUG
21:58 Narada joined #virtualJUG
23:03 Kedar joined #virtualJUG
23:28 Bevin joined #virtualJUG
23:30 dexjen joined #virtualJUG
23:34 smarks left #virtualJUG

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

virtualjug.com