News for hackers. Stuff that matters.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by iamelgringo on Tuesday June 29, 2010 @02:08AM (#1470572)
Powershell, isn't bash, but it's pretty kick ass.

Instead of piping text from one command to the other, you pipe entire objects back and forth. A lot of bash commands are aliased to Powershell commandlets out of the box. And, as of Powershell 2.0, you have remote scripting similar to SSH.

I choose to do Python Web development on Windows, and I spend my whole day on the PS command line, and I'm really pleased.

http://en.wikipedia.org/wiki/Windows_PowerShell

Re:Windows 8 Plans Leaked: Numerous Details Revealed by mhw on Tuesday June 29, 2010 @02:23AM (#1470601)
> And, as of Powershell 2.0, you have remote scripting similar to SSH.

What, instead of actually using the ubiquitous, widely installed SSH? Some things don't seem to change.

Re:Windows 8 Plans Leaked: Numerous Details Revealed by code_duck on Tuesday June 29, 2010 @02:34AM (#1470627)
That's my problem with PowerShell. No matter how good it may be, I don't really feel like relearning everything just to accomplish the same things, only on Windows instead.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by euroclydon on Tuesday June 29, 2010 @06:57AM (#1471005)
I'm right there with you not wanting to learn a new shell, however PS is written against the .NET Windows API. The new stuff you'd have to learn would be Windows specific, sort of like learning AppleScript. Also, PS has traditional unix shell commands built in now, like grep and ls.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by yread on Tuesday June 29, 2010 @03:24AM (#1470717)
Are you sure you are in the right business if you don't like relearning?
Re:Windows 8 Plans Leaked: Numerous Details Revealed by vetinari on Tuesday June 29, 2010 @03:42AM (#1470738)
Yes, throw away everything you know every now and then, instead of building knowledge on top of knowledge.

That will get you far, right?

Re:Windows 8 Plans Leaked: Numerous Details Revealed by mey on Tuesday June 29, 2010 @10:03PM (#1473608)
Who says you have to throw away everything you know? I don't magically stop knowing C++ when running around in Ruby or SQL.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by code_duck on Tuesday June 29, 2010 @12:05PM (#1471823)
I like relearning. I don't have much use for re-learning... I'd rather learn to do something new. The "to accomplish the same things, only on Windows instead" is the crucial qualifier. I'd rather spend my time, I don't know - learning to configure nginx or doing Haskell tutorials than learn someone's proprietary shell, given that shells aren't particularly exciting and I already know enough about the shells that every other platform offers to be satisifed.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by jpr on Tuesday June 29, 2010 @04:51AM (#1470858)
Learning new stuff is cool. Relearning same old stuff in different clothing because someone decided to do something differently is not cool.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by contextfree on Tuesday June 29, 2010 @11:20AM (#1471667)
PS is substantially different enough that I don't mind, though.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by contextfree on Tuesday June 29, 2010 @11:12AM (#1471636)
I like PS, but my main issue with it is that it's really slow.
Re:Windows 8 Plans Leaked: Numerous Details Revealed by jpr on Tuesday June 29, 2010 @04:49AM (#1470852)
How does that whole "pipe entire objects back and forth" thing work? I mean it seems that there must be some huge machinery to facilitate that kind of thing. For example, if I pipe object from my program to another, how does the other program know what to expect? It must have some sort of type information available, which imposes some pre-planning.

Also, when I pipe an object to another program, can the receiver call methods on it and are the changes visible to the sender?

Re:Windows 8 Plans Leaked: Numerous Details Revealed by jules on Tuesday June 29, 2010 @08:16AM (#1471122)
I'm not sure how they do it and I've only used the basic features of powershell. That said, commands in powershell are .NET classes that define a method ProcessRecord. Inside this they can call WriteObject to write an object to the output stream. So it seems that they can just implement this without any parsing by passing objects around in the .NET runtime.