[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread Reinier Zwitserloot
Why does java not guarantee gc()? Why does java not do a lot of things? Because it would severely cramp the optimizer. Adding your proposed rule across the board would probably put a serious dent in the optimization work the hotspot compiler can do to your code. Same reason why finalizers aren'

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread Reinier Zwitserloot
You write an _obvious_ trolling post, with a link to your own blog no less, and yet you got 3 idiots to stop into your steaming pile? Wow. I'm impressed. NB: Idiots - recognize this hopeless behaviour for what it is, please. A look at the title would have sufficed. On Nov 1, 5:24 pm, Noctiluque

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Christian Catchpole
You can embed OpenGL panels from LWJGL or JOGL... I've done this. Works nice. You can even embed Swing panels if you want. http://www.eclipse.org/swt/opengl/ On Nov 3, 4:43 am, Fabrizio Giudici wrote: > Kevin Wright wrote: > > So: > > AWT = Abstract Windows Toolkit - Wrapper over native compo

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread Noctiluque
w.r.t. linq, or something like it in Scala see my (13th) comment that starts: @Tommy in http://quoiquilensoit.blogspot.com/2009/11/scala-almost-as-good-as-c-net4.html On Nov 2, 11:13 pm, Noctiluque wrote: > w.r.t. linq, or something like it in Scala see my (13th) comment that > starts: @Tommy >

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread Noctiluque
w.r.t. linq, or something like it in Scala see my (13th) comment that starts: @Tommy (I only have time for LINQ to Objects, LINQ to SQL is a nice to have once you have the first, but I guess it depends on your day job) On Nov 2, 10:17 pm, Mohamed Bana wrote: > In my honest opinion, LINQ is the

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread Mohamed Bana
In my honest opinion, LINQ is the best thing about .NET. Can anything even compete with it? In particular, I'm thinking about LINQ2SQL. I've seen for-comprehensions in other languages, but it's not the same as the SQL-like syntax in C#. On Mon, Nov 2, 2009 at 10:14 PM, Casper Bang wrote: > >

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread Casper Bang
Scala can't do LINQ either, since there's no support of expression trees. A thing I'd also love to see in Fan - not necessarily access to the AST, but an AST. /Casper On Nov 2, 9:39 pm, "phil.swen...@gmail.com" wrote: > I'd probably be a scala convert if it had a dynamic option like Fan > offer

[The Java Posse] Java Conferences in China?

2009-11-02 Thread James Ward
Hi, Does anyone here know of some good Java conferences in China? I've done some searching but couldn't find much. Thanks! -James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post t

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread phil.swen...@gmail.com
I'd probably be a scala convert if it had a dynamic option like Fan offers. I love Active Record. And scala can't do it. > Lately with the realization that while static is > preferable, dynamic is beneficial at times. It's less of an extremist > attitude, which is why you now find .NET linked w

[The Java Posse] Re: Organizational Charts

2009-11-02 Thread James Ward
If you are going to be running in the browser you could check out some of the Flex Org Chart Components in Tour de Flex: http://www.adobe.com/devnet/flex/tourdeflex/web/#sampleId=14500;illustIndex=0;docIndex=0 http://www.adobe.com/devnet/flex/tourdeflex/web/#sampleId=14743;illustIndex=0;docIndex=

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Fabrizio Giudici
Kevin Wright wrote: > So: > AWT = Abstract Windows Toolkit - Wrapper over native components > supplied with java from conception > Swing = Layer over AWT - Much more power in exchange for more complexity. > SWT = Standard Windows Toolkit - IBM supplied kit as used by eclipse, > builds on lessons

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Kevin Wright
So: AWT = Abstract Windows Toolkit - Wrapper over native components supplied with java from conception Swing = Layer over AWT - Much more power in exchange for more complexity. SWT = Standard Windows Toolkit - IBM supplied kit as used by eclipse, builds on lessons learned from both AWT and Swing.

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Fabrizio Giudici
Mario Camou wrote: > Oh, and another thing. The current crop of Flex apps has demonstrated > that having a native L&F isn't really necessary for many kinds of > apps, so it's probably better to go with something that looks good > vs. some half-assed emulation of native widgets (i.e., Nimbus is

[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread Stuart McCulloch
2009/11/3 Stuart McCulloch > 2009/11/2 Brent > >> >> But why does the JVM have to know my intent... It knows that I >> started a thread and it knows that it has some priority. So why can't >> it just stick all of the threads that were started for a particular >> priority on a queue and then it

[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread Stuart McCulloch
2009/11/2 Brent > > But why does the JVM have to know my intent... It knows that I > started a thread and it knows that it has some priority. So why can't > it just stick all of the threads that were started for a particular > priority on a queue and then iterate through that queue. It might b

[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread kirk
Brent wrote: > But why does the JVM have to know my intent... It knows that I > started a thread and it knows that it has some priority. So why can't > it just stick all of the threads that were started for a particular > priority on a queue and then iterate through that queue. It might be > ea

[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread Brent
But why does the JVM have to know my intent... It knows that I started a thread and it knows that it has some priority. So why can't it just stick all of the threads that were started for a particular priority on a queue and then iterate through that queue. It might be easier said then done, bu

[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread Phil
I think you're missing the point. The JVM can't know your intent when you started your threads and cannot know that the right thing to do is to 'level' resource usage across your threads. If you need your threads to receive a more equal share of resources then this needs to be expressed in your de

[The Java Posse] Re: Java thread scheduling bug

2009-11-02 Thread Brent
How does that look ok to you? Threads 0 and 1 only executed 23 times while the other threads executed 45/46 times. How can that ever be a good thing? I know what the SUN bug said, but I disagree that it's not a flaw. At the very least, they should have provided a JVM argument that allowed you

[The Java Posse] Re: Scala almost as good as C# .NET4

2009-11-02 Thread Casper Bang
I agree, the problem is that while C# provides an evolutionary approach, Scala does not. I fear a lot of developers are lost between corporate legacy Java and state-of-the art Scala. There's are some alternatives gaining growth, like Fan, but without corporate backing these all seem like quite a b

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Joshua Marinacci
Webstart and applets can use native libs with the element in JNLP files. It's even easier when you use JNLP extensions. I'm sure the SWT team has created a standard SWT extension that you can simply include in your app's JNLP. - Josh On Nov 2, 2009, at 11:30 AM, Mario Camou wrote: > The

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Joshua Marinacci
JavaFX for mobile has no Swing in it. JavaFX for desktop uses parts of Swing and Java2D today, but it won't always. JavaFX running on the next gen graphics stack will have no AWT or Swing in it at all. However, Swing will always be supported because it's part of core Java and the JRE. That

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Joshua Marinacci
Yes, you can skin JavaFX controls with pure code, FXDs, or CSS On Nov 2, 2009, at 11:52 AM, Casper Bang wrote: > > True. But the problem is then you are required to write your own > UIDelegates in Swing to get Nimbus to run on that 3'rd part data > picker you tracked down. Flex skinning is a some

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Kevin Wright
On Mon, Nov 2, 2009 at 10:51 AM, Steven Herod wrote: > > If Sun does eventually drop or depreciate Swing in favour of JavaFX, > then SWT may be the only way to do desktop apps in Java in the > future.  (And thats entirely supposition on my part) Doesn't JavaFX use swing behind the scenes anyway?

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Casper Bang
True. But the problem is then you are required to write your own UIDelegates in Swing to get Nimbus to run on that 3'rd part data picker you tracked down. Flex skinning is a somewhat more approachable topic with images and CSS (which AFAIK JavaFX has adopted?). /Casper On 2 Nov., 11:32, Mario Ca

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Steven Herod
If Sun does eventually drop or depreciate Swing in favour of JavaFX, then SWT may be the only way to do desktop apps in Java in the future. (And thats entirely supposition on my part) As far as the native vs other look, it depends on the app and the environment Sure MP3 players, twitter clients

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Mario Camou
Oh, and another thing. The current crop of Flex apps has demonstrated that having a native L&F isn't really necessary for many kinds of apps, so it's probably better to go with something that looks good vs. some half-assed emulation of native widgets (i.e., Nimbus is beautiful). -Mario. -- I want

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Mario Camou
The big problem I see with SWT is the native parts (DLL, .so, etc), which means that an SWT app can't be easily deployed, for example, through WebStart or as an applet (without having to preinstall shared libs). That is a killer for some range of apps (one of which I'm working on right now). Of cou

[The Java Posse] Is Carl Speaking at CodeMash 2010?

2009-11-02 Thread Marc E
I believe in episode 284, Carl said he'd be giving a talk on "everything he's learned in the last XXX years". However, I don't see a session listed on the CodeMash site. So... is Carl speaking? --~--~-~--~~~---~--~~ You received this message because you are subscri

[The Java Posse] Re: what you think about SWT on desktop

2009-11-02 Thread Casper Bang
Right. And interestingly, JSR-295 (beans binding) and JSR-296 (app framework) was all about living without an explicit model. Swing MVC is extremely flexible but also complex and verbose making it darn hard to master (who updates who, and when, in which thread, how to avoid cycles etc.) /Casper