News for hackers. Stuff that matters.
Re:.NET 7 introduces Native AOT by goodguyamerikan on Thursday May 19, 2022 @03:52AM (#31431893)
If powershell starts up instantly, I'll have to say goodbye to zsh
Re:.NET 7 introduces Native AOT by gmueckl on Thursday May 19, 2022 @05:32AM (#31432458)
I don't think PowerShell is able to use Native AOT compilation. The blog explicitly states that loading extra code at runtime is not possible, but AFAIK this is required for PowerShell commandlets.
Re:.NET 7 introduces Native AOT by pjmlp on Thursday May 19, 2022 @05:32AM (#31432463)
I never cared about the start time of a shell.

What really bothered me were the IBM RAD Studio for Websphere 5.x start times back in 2005.

Now the few ms that PowerShell takes?

I can live with that, no need to go for breakfast while devenv is booting up.

Re:.NET 7 introduces Native AOT by moogly on Thursday May 19, 2022 @06:52AM (#31432890)

    C:\dev> (Measure-Command { pwsh -c exit }).TotalMilliseconds
    1394.1826
    C:\dev> (Measure-Command { pwsh -noprofile -c exit }).TotalMilliseconds
    247.4816
Non-cold start on a 14-core Skylake-X. Drives me nuts.
Re:.NET 7 introduces Native AOT by animesh on Thursday May 19, 2022 @11:19AM (#31435842)
On an i7-8700 w Kingston NVMe:

    PS C:\Users\me> (Measure-Command { pwsh -c exit }).TotalMilliseconds
    265.3785

    PS C:\Users\me> (Measure-Command { powershell -noprofile -c exit }).TotalMilliseconds
    119.481
Re:.NET 7 introduces Native AOT by DeathArrow on Thursday May 19, 2022 @07:49AM (#31433286)
On mine:

(Measure-Command { powershell(Measure-Command { powershell -c exit }).TotalMilliseconds 768.5885

(Measure-Command { powershell -noprofile -c exit }).TotalMilliseconds 113.3157

Re:.NET 7 introduces Native AOT by kaba0 on Thursday May 19, 2022 @11:53AM (#31436264)
Why isn’t there a constantly running daemon, making the actual binary run as a shell be a tiny executable doing some network calls only?
Re:.NET 7 introduces Native AOT by goodguyamerikan on Friday May 20, 2022 @01:22AM (#31443665)
There was a discussion around that but that was scuttled because aot was com inng up
Re:.NET 7 introduces Native AOT by pjmlp on Thursday May 19, 2022 @07:04AM (#31432954)
If you are restarting your PowerShell session all the time, you must be really busy. /s
Re:.NET 7 introduces Native AOT by sebazzz on Thursday May 19, 2022 @02:36PM (#31438390)
It does. Try using a different anti-malware solution instead, or check which Powershell modules are loaded automatically in your session.