Originally posted by PeterB:
JNI can be useful for all sorts of things. You might have an application that needs one particular bit to go fast. You might wish to re-use legacy code. Neither of these indicates a "design flaw". Just an acknowledgement that Java isn't brilliant at everything.
Exactly my point. Java ISN'T the golden hammer. That's why using JNI is pointless (and a hack). If performance is a priority, don't use Java, if you have legacy code, why are you porting to Java in the first place? Is it really that necessary? .NET ins't the golden hammer either, but Microsoft is saying that it is. The reality is that there's no such thing as a tool that does EVERYTHING...that why there are lots of different ones out there.
Originally posted by PeterB:
Er. How, pray tell, does that prevent someoen else from implementing the non-ECMA classes?
I think the post above about the Win32 explains it well. As long as Microsoft controls the guts, you'll never know exactly what it's doing because it's all closed source.
Originally posted by PeterB:
Given that they don't own the C# (or CLI) specs, it's not really in a position different to that of Java.
What we're talking about here is the CLR...the Windows implemention of the CLI (as I understand it to be)...not the CLI. The CLI alone would create a decent cross-platform system. The whole problem is that Microsoft is 'embracing and extending' the CLI to add in Windows Specific functionality (the result being the CLR). This misses the whole point of a cross-platform development system in that one of the implementations of the basic spec (the CLR) has features that other implementations may not (or indeed, cannot) have.
Originally posted by PeterB:
Quote: "let me just say that the only reason any of those technologies were implemented my MS is because, without them, their products would be obsolete."
So?
The point is, they added such functionality to achieve security, interoperability, and so on. They worked on standards such as COM, SOAP, XML, C#, CLI, because it provides functionality -- functionality including interoperability and security.
Microsoft only did it because they had to, not because they care about making secure or interoperable products. In other words, they only add what the market specifically asks for, and as such they do not innovate in those areas. This may help them maintain their monopoly, but it does not create quality software and it is not a healthy, long term view (but then again, when you're a monopoly, why should you care about the long term?).
Originally posted by PeterB:
Interoperability and security *are* functionality. They might not have as much functionality in that area as you want. They're certainly gaining more in those areas, and I'm sure this will continue.
Security is often in direct conflict with functionality. Again, Microsoft Outlook is the prime example. They wanted to have ActiveX controls in their e-mail client because it's more Gee-Whizary, and they didn't care about the fact that there is an inherient security risk in implementing that. Functionality over Security. Microsoft will make that decision the same way every time.
As far as interoperability goes, yes it a feature, but it's a feature that Microsoft will not implement in a standard way, because they're monopolistic and don't need to use other products in order to be competitive. Microsoft doesn't think it needs to play well with Linux, and maybe rightly so considering the distribution of market share, but either way, they don't care about working with other products.
Originally posted by PeterB:
How so? Because no-one offers CLI on other platforms? Well, don't worry about that, because they will. They are working on exactly that.
Who is working on that? Certianly not Microsoft. And nobody else is going to be able to because 1) Microsoft will create new functionality faster than any other company could implement it on another system, and 2) Microsoft will hide (at all costs) the inner workings of the Windows Specific functionality so that the API will never be truly open. For example, a function like:
CInteralMicrosftStructure* GetWindowProp();
could easily be implemented in the CLR, because it's windows specific and not bound the the specifications of the CLI, but nobody outside of Microsoft has the documentation on what CInteralMicrosftStructure is or what it does! And if you have to reverse engineer every one of those GOTCHA's you'll never get anything done.
Originally posted by PeterB:
That is an illogical conclusion. It might be that 90% of them will be developed with Windows in mind, but it does not mean that 90% of them will rely on Windows-only features.
Good point, it's not 90%. However it is naive to assume that those features will not be used. I don't know the exact number of developers that will use them, but in reality it doesn't matter. The functionality should be the same across ALL implementations so that you don't have to worry about whether or not your 'platform agnostic' program is really platform agnostic.
Also, the underlying platform should be able to evolve and change independent of the application that's running on it. If you tie the application directly to the platform, every time the platform changes, if you want to use the latest features, you have to change the application too. When you abstract through a virtual machine, that's not necessary...the VM can use the new features without the application ever knowing about it.
Originally posted by PeterB:
Further, the situation might be that the applications rely on Windows features *but* become much easier to port to other platforms with a CLI implementation. They might need, say, per-platform windowing libraries, but their guts might be cross-platform -- where once they wouldn't have been. Even this is a useful step towards platform independence. It significantly reduces the cost of porting.
Another good point, but you can achieve the same thing with a good Object Oriented design in a platform specfic language like Visual C++ (see, I don't hate ALL MS products...just the bad ones =). The only case I really see this being useful is when high performance and high portability are both critically important in a project (Like a 3D web brower, for instance). Otherwise you'd just be better off using a more straightforward method.
Originally posted by PeterB:
Except that Java apps won't always be platform agnostic. They can readily be tied to a particular platform, or a particular vendor. If you want to write cross-platform .NET apps, you can do so.
Ah, but you can't. Not without sacrificing all the functionality that's built into Windows. This gets back to the point I was making earlier about 90% of the market and 90% of the developers. Microsoft is always going to put all their effort into adding new stuff to the CLR, because CLR functionality IS Windows functionality, and that is their core business. No other company on the planet is going to be able to keep up with them, especially considering how facist MS is about thier source code. So the choice will be Windows specific, or severly limited in functionality...which is an obvious choice for most developers.
Originally posted by PeterB:
The difference is, if you want to use Java as your primary tool, it makes it much harder to break out than if you want to use .NET as your primary tool.
How is being tied to Microsoft products going to make it easier to change development tools? Microsoft has a history (as I've said before) of not playing well with other companies because they want to maintain their monopoly. SUN, IBM, and other companies outside the Microsoft 'family' have to be interoperable because if they're not, they won't be competitive. Case in point, There's a JVM for WindowsXP written by SUN, and supported by SUN. When is Microsoft going to write a CLI implementation for Solaris? Never...