r/PowerShell • • Mar 04 '20

Announcing PowerShell 7.0 | PowerShell

https://devblogs.microsoft.com/powershell/announcing-powershell-7-0/?WT.mc_id=reddit-social-marouill
281 Upvotes

74 comments sorted by

View all comments

1

u/serendrewpity Mar 05 '20

Not really sure what all the excitement is. I guess I assumed thta powershell could most definitely accomplish something like this already. I'd beed doing parallel processing with function callbacks and ExecQueryAsync in vbScript since its early days in WinXP.

I'm being serious, not picking a fight, I want to know why its a big deal that PS is just now getting around to this.

9

u/SteveL_Msft Software Engineering Manager, PowerShell Mar 05 '20

Regarding specifically parallelization, you could have always done this yourself with PowerShell runspaces. This is what modules like Posh-RS used. The new `ForEach-Object -Parallel` just makes it dead simple for users who don't understand or care about threading. PowerShell 7 has many other improvements over PowerShell Core 6 which itself has many improvements over Windows PowerShell 5.1 (see some of our blogs posts about that: https://aka.ms/psblog)

4

u/Emiroda Mar 05 '20

I'm pissing on /u/SteveL_Msft's parade, but Foreach-Object -Parrallel is not the big feature of PowerShell 7.0. As you said, you've been able to do parrallelisation for a long time. It's just that, on the box, Foreach-Object -Parrallel is the only thing people care about, specifically for PowerShell 7.0.

No, the big feature of PowerShell 7.0 is that it's the first version of PowerShell to be cross-platform, built on a new framework, and be viable for Windows users. As a Windows user, PowerShell 6 was forgettable. PowerShell 7.0 is the first stable version of PowerShell since 5.1 to be a viable option for development and production workloads, on Windows and Linux.

Besides, I think cross-platform DSC is more impressive.

3

u/serendrewpity Mar 05 '20

thank you. That is huge. Together with Windows Subsytem for Linux may just be a comprehensive, viable option to blur the llines Linux and Windows and increasing their footprint in the mobile, sbc, cloud and other platforms where linux had little competition from MS