JaroslavTulach at 20:36, 30 October 2009 - 2009-10-30 20:36:37

←Older revision Revision as of 20:36, 30 October 2009
Line 18: Line 18:
<div class='commentBlock'>
<div class='commentBlock'>
Why was the event display thread used for non-painting computation in the first place? It's Swing 101 to not have long delays on the EDT...it's covered in any book on Swing as well.
Why was the event display thread used for non-painting computation in the first place? It's Swing 101 to not have long delays on the EDT...it's covered in any book on Swing as well.
 +
 +
--Alan Stange 21:47, 23 October 2009 (CEST)
 +
 +
I really like this suggestion. For a while it made me feel retarded [[Swing]] programmer. But probably I am not. The difference is that we are not using plain [[MVC]], we are using it in [[DCI#Pitfalls_of_Unknown_Model|modular way]]!
 +
 +
--[[User:JaroslavTulach|JaroslavTulach]] 20:36, 30 October 2009 (UTC)
 +
I've used something like this on many occasions to chase down blocking code on the EDT:
I've used something like this on many occasions to chase down blocking code on the EDT:
http://elliotth.blogspot.com/2005/05/automatically-detecting-awt-event.html
http://elliotth.blogspot.com/2005/05/automatically-detecting-awt-event.html
-
 
Line 30: Line 36:
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)
 +
== David Rozenberg said ... ==
== David Rozenberg said ... ==

76.116.14.219: Comment provided by David Rozenberg - via ArticleComments extension - 2009-10-24 13:57:09

Comment provided by David Rozenberg - via ArticleComments extension

←Older revision Revision as of 13:57, 24 October 2009
Line 30: Line 30:
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)
 +
== David Rozenberg said ... ==
 +
 +
<div class='commentBlock'>
 +
It looks to me like the work around the problem that exists since AWT and later Swing were added to Java SDK. Simply, the original Java design did not account for any possibility of using guis for interacting with programs. So, maybe it is time to ask Sun Java evangelists to re-think the way how user interface fits into Java. Even though there are multiple statements that they follow the MVC pattern, it is obvious that the approach was bad from the very beginning - combining the controller and the view together was the bad decision.
 +
 +
--David Rozenberg 15:57, 24 October 2009 (CEST)
 +
</div>

JaroslavTulach at 05:49, 24 October 2009 - 2009-10-24 05:49:31

←Older revision Revision as of 05:49, 24 October 2009
Line 27: Line 27:
</div>
</div>
-
Right, this is the monitoring trick everyone is using. Our system starts profiling when EDT is blocked for more than 100ms. Later it decides whether to report this as a bug for our bug tracking system or not.
+
Right, this is the monitoring trick everyone is using. Our system starts profiling when EDT is blocked for more than 100ms. Later it decides whether to report this as a bug into our bug tracking system or not.
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)

JaroslavTulach at 21:49, 23 October 2009 - 2009-10-23 21:49:13

←Older revision Revision as of 21:49, 23 October 2009
Line 26: Line 26:
--Alan Stange 21:47, 23 October 2009 (CEST)
--Alan Stange 21:47, 23 October 2009 (CEST)
</div>
</div>
 +
 +
Right, this is the monitoring trick everyone is using. Our system starts profiling when EDT is blocked for more than 100ms. Later it decides whether to report this as a bug for our bug tracking system or not.
 +
 +
--[[User:JaroslavTulach|JaroslavTulach]] 21:49, 23 October 2009 (UTC)

216.223.242.105: Comment provided by Alan Stange - via ArticleComments extension - 2009-10-23 19:47:15

Comment provided by Alan Stange - via ArticleComments extension

←Older revision Revision as of 19:47, 23 October 2009
Line 14: Line 14:
--[[User:JaroslavTulach|JaroslavTulach]] 19:23, 23 October 2009 (UTC)
--[[User:JaroslavTulach|JaroslavTulach]] 19:23, 23 October 2009 (UTC)
 +
== Alan Stange said ... ==
 +
 +
<div class='commentBlock'>
 +
Why was the event display thread used for non-painting computation in the first place? It's Swing 101 to not have long delays on the EDT...it's covered in any book on Swing as well.
 +
 +
I've used something like this on many occasions to chase down blocking code on the EDT:
 +
http://elliotth.blogspot.com/2005/05/automatically-detecting-awt-event.html
 +
 +
 +
 +
--Alan Stange 21:47, 23 October 2009 (CEST)
 +
</div>

JaroslavTulach at 19:23, 23 October 2009 - 2009-10-23 19:23:44

←Older revision Revision as of 19:23, 23 October 2009
Line 10: Line 10:
--[http://borak-blog.blogspot.com/ tborak] 18:55, 23 October 2009 (CEST)
--[http://borak-blog.blogspot.com/ tborak] 18:55, 23 October 2009 (CEST)
</div>
</div>
 +
 +
Really huge problem everyone defending the [[rationalistic]] approach has is that one has to use [[rationalistic]] reasoning. Reason (especially of the most clever guys that don't want to get easily convinced) is really inventive in finding reasons why something cannot work. For example in the ''tborak'' case one could ask: Are you saying we will fix intermittent issues? Do you have any sign of these? No, then sorry. Yes? Are you sure they are not caused by any other mistake, are they really caused by wrong usage of EDT? Well, unless you are sure, we cannot undertake such large and risky project of rewriting everything for unmeasurable benefits (I am playing the devil's advocate here). It is really easy to find [[rationalistic]] reasons for keeping status quo...
 +
 +
--[[User:JaroslavTulach|JaroslavTulach]] 19:23, 23 October 2009 (UTC)

192.31.106.34: Comment provided by tborak - via ArticleComments extension - 2009-10-23 16:55:52

Comment provided by tborak - via ArticleComments extension

New page

<noinclude>Comments on [[RationalismVsEmpiricism]]
<comments />
----- __NOEDITSECTION__</noinclude>

== tborak said ... ==

<div class='commentBlock'>
I thought that performing UI operations off the EDT could involve more issues than just performance (yes, I'm defending the rationalistic approach). It seems that there is the chance that the Slowness Detector may not detect issues, but the re-painting of the UI may be incorrect (or worse). Even though the sweeping change may be a large undertaking, it seems that it would be the best approach to prevent bugs that would be intermittent/infrequent but still very annoying.

--[http://borak-blog.blogspot.com/ tborak] 18:55, 23 October 2009 (CEST)
</div>