Pythonnet – A package that integrates Python (2.7-3.6) with the .NET CLR
github.com
github.com
https://blogs.msdn.microsoft.com/visualstudio/2015/08/03/why...
The main reason I don't write C# much of the time is because of the .NET dependency. There has always been Mono and nowadays there even is some Microsoft official version of .NET for Linux-based systems if I remember correctly, but really I'd just like C# to be completely independent of an operating system and independent of $someBigCorp.
Of course Microsoft has the majority of the Foundation members, as they are paying most of the DotNet bills, in the end, but most of DotNet is open these days.
In you want to look into functional world, you will love F#
You could probably strip down .NET core runtime if size is your concern and have an AoT compiled binary that links to that if you're concerned about JIT. I think there was a MS project a while back that compiled .NET IL to static code trough LLVM (https://github.com/dotnet/llilc - it seems dead now unfortunately)
But C# without .NET doesn't really make sense.
You can also run ngen to pre-jit everything
https://blogs.msdn.microsoft.com/dotnet/2016/11/08/the-week-...
https://blogs.msdn.microsoft.com/alphageek/2016/10/13/native...
I am not a big fan of WASM, as I rather bet on native apps.
Otherwise there are a few options already
https://www.toradex.com/windows-iot-starter-kit
https://developer.microsoft.com/en-us/windows/iot/Explore/de...
The problem with using C and Assembly instead of more productive options, when the hardware allows for it, is that many don't search properly.
But it requires you fully embracing the data binding rules of the platform.
Pretty sure that can be solved by implementing IDisposable and having Dispose call back into C++ to free resources. Probably if you add a managed C++ layer in between this is sort of built-in.
Oh and like skc says: the validation you're after does work as well, though I admit it takes some time to figure out exactly how to do it.