News for hackers. Stuff that matters.
Re:Satya Nadella – Microsoft's CEO by Touche on Tuesday February 04, 2014 @11:02AM (#7178238)
I think the #1 thing Microsoft needs to do in order to right itself is become a platform that developers love, which isn't the case today. Becoming fully posix compliant would be a great start to that.
Re:Satya Nadella – Microsoft's CEO by r00fus on Tuesday February 04, 2014 @01:35PM (#7179349)
The CLR, .NET and Visual Studio are quite nice, some of the best in the IDE world.

However, it's Microsoft's tendency to squeeze and coerce compliance that drove people away. Proprietary everything means you don't play nice with everyone else.

Now the web has leveled the playing field somewhat, and they can't be coercive to be successful. It'll be interesting to see them play will on other companies' turf and platforms.

Re:Satya Nadella – Microsoft's CEO by ygra on Tuesday February 04, 2014 @11:06AM (#7178258)
They've been there and no one used it.
Re:Satya Nadella – Microsoft's CEO by nailer on Tuesday February 04, 2014 @11:50AM (#7178564)
IIRC (old Windows NT4 MCSE here) POSIX subsystem never had access to TCPIP, which made it pointless. It was a sales point, rather than a genuinely useful subsystem.

That said, I think OSs are irrelevant: people are happy to pay for apps, cloud hosting etc and MS are happy to provide it to them, Windows or not, for money.

Re:Satya Nadella – Microsoft's CEO by hga on Tuesday February 04, 2014 @01:02PM (#7179122)
I don't doubt it, it was only Posix.1, required by the Federal government (https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem).

Per http://www.unityisplural.com/2012/01/windows-posix-complianc... due to a procurement lawsuit in 1995 the Coast Guard was forced to accept a NT based "open system" bid. I don't know if they actually cared at the time, but the UNIX(TM) losing bidders certainly did, and it certainly made a big difference in subsequent adoption of NT/Windows.

Re:Satya Nadella – Microsoft's CEO by tanzam75 on Tuesday February 04, 2014 @06:16PM (#7180900)
Microsoft acquired Interix in 1999. That was a much more complete POSIX subsystem than the one that originally shipped with NT.

Another lost opportunity. Microsoft could've captured the academic and web-developer market that eventually turned to OS X as a client OS.

Re:Satya Nadella – Microsoft's CEO by Touche on Tuesday February 04, 2014 @11:22AM (#7178371)
They abandoned it when they dominated developer mindshare, which they do not today.

Also, I'm not talking about a posix layer that is all but hidden, I'm talking about making Windows a posix system. Coreutils (or something like it), a free compiler, a terminal.

Re:Satya Nadella – Microsoft's CEO by jasomill on Tuesday February 04, 2014 @01:16PM (#7179219)
Microsoft already provides "something like" coreutils, free compilers, and a console subsystem. While these things could use considerable improvement — particularly the console subsystem — I'm not sure that the best approach for either Microsoft or the market is to encourage a POSIX/GNU monoculture. I'd rather see Microsoft incorporate good ideas from the competition into future products, and vice versa.
Re:Satya Nadella – Microsoft's CEO by leobelle on Tuesday February 04, 2014 @01:57PM (#7179513)
Well sure, I guess my problem is that the current console is terrible, including the powershell.
Re:Satya Nadella – Microsoft's CEO by marshray on Thursday February 06, 2014 @02:20AM (#7189144)
Console window aside, what do you think of Powershell as a shell/scripting language?
Re:Satya Nadella – Microsoft's CEO by ygra on Thursday February 06, 2014 @03:42AM (#7189339)
I'd hazard a guess and say that they didn't use it much and only noticed »Whoa, I have to type Get-ChildItem instead of ls? That's so bloated, get me out of here.«

(Side note: I'm a developer, not an administrator and I use PowerShell as such – I have no clue of how to query AD or manage IIS, but I do know the language very well. I also was a technical reviewer of the PowerShell Cookbook 2nd ed.)

From my experience the language has some quirks (that are being slowly remedied in recent versions, e.g. handling of one-element arrays), but otherwise is quite well designed. The quite consistent naming of cmdlets give you enough hints to figure out what a command would be, if you only knows it exists, e.g. querying things always start with Get, projection is done with Select, etc. In a way, PowerShell is more unixy than traditional Unix utilities in that they really do one thing and only one thing. This can lead some to consider PowerShell overly verbose, because the pipeline often looks like

    Get-Things | Select-Things | Format-Things
But to me this is actually nicer because I can concentrate on each part individually and not figure out the switch to ls that tells me the file size. And well, PowerShell passes objects through the pipeline so most of the time you can cut text processing to a minimum because you already get what you need directly (which is not to say that text processing is poor in PowerShell – -match, -replace represent grep and sed and switch -regex is very nice for quickly writing parsers for semi-structured text content).
Re:Satya Nadella – Microsoft's CEO by marshray on Thursday February 06, 2014 @03:59AM (#7189392)
Thanks! Sounds like I will have to get serious about finding time to get it under my fingers then.
Re:Satya Nadella – Microsoft's CEO by ygra on Thursday February 06, 2014 @05:15AM (#7189600)
I started out code-golfing Project Euler problems in PowerShell and later noticed that because it's .NET-based it can complement .NET development fairly well. Examples below are all things I did recently.

Need to fiddle around with a format string to get it right?

    '{0:yyyy-MM-dd}' -f (Get-Date)
Or need to quickly test a web service whether the new method works correctly?

    $p = New-WebServiceProxy http://localhost/FooService.svc
    $p.AwesomeMethod()
Or quickly figure out whether a license key matches with the lib you have lying around anyway:

    Add-Type -Path key.dll
    [Key.LicenseKey]::Check('...')
For me it dramatically reduced the number of ConsoleApplication8624 projects in VS. In any case, if there are questions you can also drop me a mail.
Re:Satya Nadella – Microsoft's CEO by marshray on Thursday February 06, 2014 @05:53AM (#7189717)
Cool, thanks again
Re:Satya Nadella – Microsoft's CEO by jejones3141 on Tuesday February 04, 2014 @08:40PM (#7181414)
What I recall hearing was that wherever the standard allowed a POSIX call to just set errno to indicate "sorry, we don't support this", MS's POSIX compatibility library did so, rendering it useless.