News for hackers. Stuff that matters.
Re:.NET 10 Preview 6 brings JIT improvements, one-shot tool ... by ZenoArrow on Wednesday July 30, 2025 @05:56PM (#44739970)
> I only really wish C# would’ve been directly integrated as an alternative scripting language in PowerShell.

You can embed C# in PowerShell scripts, and you have been able to do so for a long time. This webpage has a couple of examples of how this can work:

https://blog.nuvotex.de/run-c-inside-powershell/

Re:.NET 10 Preview 6 brings JIT improvements, one-shot tool ... by moron4hire on Wednesday July 30, 2025 @09:17PM (#44741411)
That's not "embedding C#". That's runtime loading of .NET assemblies, which every .NET language--including PowerShell--can do.
Re:.NET 10 Preview 6 brings JIT improvements, one-shot tool ... by ZenoArrow on Thursday July 31, 2025 @11:33AM (#44746711)
It is embedding C#, if it was embedding assemblies it would be embedding compiled code. It's no different from inlining assembly in C.