Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Microsoft Software Windows

New Microsoft Silverlight Features Have Windows Bias 251

An anonymous reader writes with this quote from a story at El Reg about an early look at the Silverlight 4 beta: "There are ... major changes to Silverlight's out-of-browser functionality, a loose equivalent to Adobe Systems' AIR runtime for Flash. Even when fully sandboxed, which means having the same permissions that would apply to a browser-hosted Silverlight applet, out-of-browser applications get an HTML control, custom window settings, and the ability to fire pop-up notifications. ... Unfortunately, some of these features are not what they first appear. The HTML control in Silverlight 4 is not a new embedded browser from Microsoft, but uses components from Internet Explorer on Windows, or Safari on the Mac, which means that the same content might render differently. The HTML control only works out-of-browser, and simply displays a blank space if browser-hosted. Clipboard support is text-only in the Silverlight 4 beta, though this could change for the full release. More seriously, COM automation is a Windows-only feature, introducing differentiation between the Mac and Windows implementations."
This discussion has been archived. No new comments can be posted.

New Microsoft Silverlight Features Have Windows Bias

Comments Filter:
  • by segedunum ( 883035 ) on Friday November 20, 2009 @08:22PM (#30180104)
    ActiveX was the sexy name for COM, so it was the other way around. I find it amusing that after nigh on ten years of .Net and MSDN magazine telling us to rewrite everything, COM automation and access is still needed. I'm puzzled though, because COM within Windows is a huge behemoth and the security implications for giving a web-based browser platform access to it, even if it is almost certainly limited, is going to be rather interesting. Mind you, if they expect Silverlight to be the future of Windows client development (as .Net, Windows.Forms, Avalon aka WPF et al were before it) then this is pretty much a given and they can also try and create the lock-in via the Windows client that they tried to get via ActiveX in IE. Whether it will work and be adopted or not outside of corporate MS-oriented intranets is anyone's guess. ActiveX didn't exactly take the web by storm on a large scale.
  • by wandazulu ( 265281 ) on Friday November 20, 2009 @08:23PM (#30180122)

    ...thank God.

    Only Microsoft has the peculiar genius that allows them to take a relatively straightforward concept (reference counting/smart pointers) add a totally over-the-top, incomprehensible library that was designed around the limitations of the broken template support in VC6 (ATL), then totally abandon it for "teh new shiny" because you lost a court case against Sun (.net).

    I have written a *lot* of code in ATL, and I regret practically every moment of it; I liked the idea of COM/ActiveX, it's actually a really cool concept, and it even seemed to have an awesome future (all these COM objects that could talk to each other...Excel could control my toaster via my custom ActiveX dll) but suddenly it became all about the web and the era of a component-laden operating system ended before it really ever began. So for that I slogged through a bunch of ATL books, got to the point where I thought I knew how it all worked, and then all Microsoft wanted talk about was C# and .net.

  • by Anonymous Coward on Friday November 20, 2009 @08:27PM (#30180152)

    Obviously this is some kind of mistake. Miguel assured all us Linux users that Microsoft was a changed company, they would NEVER do something like this! Surely Moonlight would be 100% compatible with Silverlight and Linux would be considered a tier 1 platform!

    He wouldn't have lied, would he?

  • by jeanph01 ( 700760 ) on Friday November 20, 2009 @08:36PM (#30180274)

    Each time I read about silverlight I get angry. Why won't Microsoft invest time and energy making IE html5 compliant instead of promoting this f*** product that nobody wants anyway. I mean, look at the competition for god sake. IE is stuck with Javascript 1.5 since November 2000. Man we are now 9 years since Ms has updated its Javascript engine. Firefox, Chrome, Safari, name it, all have javascript support almost if not ready for ECMAScript 5.

    What is comforting in a way is the low deployment of silverlight. Google can give us a slight idea : http://www.google.com/insights/search/#q=adobe%20flash%2Cmicrosoft%20silverlight&date=today%2012-m&cmpt=q [google.com]
    I know at least that it is not deployed at work : 20,000 less pcs for Microsoft + the 2 mine at home.

  • Speaking of Bias.. (Score:5, Interesting)

    by Dragonshed ( 206590 ) on Friday November 20, 2009 @08:42PM (#30180342)

    From TFA:

    Unfortunately, some of these features are not what they first appear. The HTML control in Silverlight 4 is not a new embedded browser from Microsoft, but uses components from Internet Explorer on Windows, or Safari on the Mac, which means that the same content might render differently. The HTML control only works out-of-browser, and simply displays a blank space if browser-hosted.

    The difference in rendering between IE on Windows and Safari on Macosx is a reality, whether silverlight is involved or not. The purpose of the HTML Control is to allow scenarios dependent on the HTML Bridge, the part of silverlight that blurs the lines and allows communication between the html dom + javascript and C# code, to run correctly when the app is hosted out of the browser. It's essentially a crutch to allow developers that want to use siverlight a way to leverage existing investments in web application development.

    More seriously, COM automation is a Windows-only feature, introducing differentiation between the Mac and Windows implementations. Since cross-platform Mac and Windows is a key Silverlight feature, it is curious that Microsoft has now decided to make it platform-specific in such an important respect. Microsoft Office and parts of the Windows API have a COM interface, so access to COM makes Silverlight a much more capable client.

    This is a fairly obscure feature, and I'm fairly surprised that it was included at all, but doubt it'll be of use to the vast majority of current and future silverlight developers out there. Like the html control, it's a crutch, to allow developers that want to use silverlight a way to leverage existing investments. The mantra I've heard out of the silverlight team is to focus on unblocking customer scenarios (scenarios they cannot unblock themselves) without compromising the overall feature goals (like keeping the runtime download small).

    Nevertheless, Silverlight has crossed a threshold. It is now a runtime that has extended functionality only on Windows. That will not help Microsoft win developers from Adobe AIR, which has the same features on both Mac and Windows.

    I don't think it'll matter. Any developer that is seriously considering using silverlight over Adobe AIR, but is then persuaded not to because Silverlight's Trusted Out-Of-Browser scenario has COM support on Windows and not on Mac is "Doing It Wrong". It's an edge case feature that doesn't affect Silverlight's over all "Cross-Platforminess".

    Flame On.

  • by 93 Escort Wagon ( 326346 ) on Friday November 20, 2009 @09:05PM (#30180568)

    The HTML control in Silverlight 4 is not a new embedded browser from Microsoft, but uses components from Internet Explorer on Windows, or Safari on the Mac, which means that the same content might render differently.

    So on the Mac it'll use Webkit, which means it'll render correctly. On Windows it'll use IE, which means... okay, anyone who's done any web development at all knows what that means.

    I guess I'm not seeing the "pro-Windows bias" here - it looks like an anti-Windows bias to me!

  • Re:History (Score:3, Interesting)

    by Anonymous Coward on Friday November 20, 2009 @09:18PM (#30180666)

    We should be boycotting the Olympics then. This is unacceptable.

  • Re:History (Score:1, Interesting)

    by Anonymous Coward on Friday November 20, 2009 @09:31PM (#30180768)

    I will agree with you on that, it was much better, but now Microsoft just went and ruined it like they do with everything.

    OS lock-down and bias is awful. :(
    Especially because it means Adobe won't need to care as much and might decide to suddenly "stagnate" their development a little.

  • I don't know where they are in terms of language support (not great, if Acid3 is any indication), but IE8's JavaScript engine was a massive step up from IE7's and an even more massive step up from IE6. It's more standards-compliant (i.e. less incorrect behavior), implements more of the spec (not necessarily any of the newest changes to the spec, but more of the language as a whole), and is much, much faster than before.

    Don't get me wrong, it's still way behind the other big-name browsers, but claiming 9 years since MS updated the javascript engine is a bald-faced lie.

  • Re:History (Score:4, Interesting)

    by rtfa-troll ( 1340807 ) on Friday November 20, 2009 @10:10PM (#30181086)
    That may well be true; the Olympics committe doesn't feel it is responsible to anybody and will do anything for money. However; if we judge from history the complaints and problems this will raise will help set back Silverlight acceptance. After the way it was done last time nobody sensible would use silverlight for anything. In fact I'd suggest everybody get ready; set up a system which doesn't work with silverlight and then complain about it, but most of us on Slashdot probably already have several and it really isn't needed anyway.
  • BFD (Score:2, Interesting)

    by McBeer ( 714119 ) on Friday November 20, 2009 @11:48PM (#30181672) Homepage
    I really don't see why everybody is acting like the sky is falling over this. The level of cross platform compatibility is not changing in any significant way. Virtually nobody is going to use the Windows only com automation. It only works in a full trust out of browser Silverlight app. 99.5% of Silverlight use is in browser and of that remaining 0.5% most are partial trust apps. I can't think of why somebody with these requirements wouldn't just use WPF honestly.

    Here's a more comprehensive listing of the changes to come. [silverlight.net]
  • Re:History (Score:5, Interesting)

    by PitaBred ( 632671 ) <slashdot&pitabred,dyndns,org> on Saturday November 21, 2009 @12:56AM (#30182036) Homepage
    I can't wait for HTML5 to start being widely implemented. Get away from both of them.
  • by localtoast ( 611553 ) on Saturday November 21, 2009 @02:53AM (#30182484) Journal
    The full .Net framework has a lot of hacks to support COM. Your STA running managed code can get preempted at any time to Release COM objects behind RCWs that get garbage collected. This can cause interesting stress bugs. It gets even worse when an RCW around an STA gets finalized on the finalizer thread. That blocks the finalizer thread, because it waits for .Net to Release the COM object on the original STA thread. If the STA thread is in a wait state, you can hang the finalizer thread. Another big issue is around supplying alternative credentials for DCOM. .Net has no exposure of the CoCreateInstanceEx API that allows you to specify alternative credentials. Even if you wrap it yourself, you have to make sure you call CoSetProxyBlanket before you do any calls - and .Net does QueryInterface under the hood for you, and you have to make sure CoSetProxyBlanket is called again, then the simple programming interface of .Net becomes more of a hindrance than a help. They were supposed to get away from COM in the Silverlight versions. Now the waters are even muddier, because WPF is still supported on the Full version of the CLR.
  • by TheRaven64 ( 641858 ) on Saturday November 21, 2009 @08:22AM (#30183510) Journal
    It's worth noting that COM isn't actually a Windows-only standard. It's a fairly simple specification defining a Simula-like object model in a language-independent way. Apple uses it for things like Spotlight and QuickLook plugins on OS X and it's pretty trivial to implement it on other platforms too. It just defines a way of storing function pointers in interface structures. You could probably turn GObject into a COM implementation with a few minor tweaks if you wanted to. ActiveX tries to build a Smalltalk-like object model on top of this, demonstrating once again that Greenspun's Tenth Rule contains a lot of truth.

Suggest you just sit there and wait till life gets easier.

Working...