News for hackers. Stuff that matters.
Re:Asynchronous Programming in C# by aleph_minus_one on Tuesday April 30, 2024 @06:51AM (#40209535)
> the Java ecosystem is superior to .net, and this might be more important.

This depends a lot on what you want to do in your program. Of course, for example, for interacting with other Microsoft technologies, .net has a better ecosystem.

Re:Asynchronous Programming in C# by smaudet on Tuesday April 30, 2024 @09:44AM (#40210907)
I also find binaries (at least on Windows, unsure of nix) are much easier to hook into than what I remember from Java (perhaps it has changed)...

About as easy as Python, at least.

Which, for MS, made a lot of sense, they wanted to hook win32 apis. Java doesnt care, as much...

Re:Asynchronous Programming in C# by neonsunset on Tuesday April 30, 2024 @10:10AM (#40211118)
Unix is trivial too

    unsafe
    {
        [DllImport("libc", EntryPoint = "write")]
        static extern nint Write(nint fd, byte* buf, nint length);

        var text = "Hello, World!"u8;
        fixed (byte* ptr = text)
        {
            Write(1, ptr, text.Length);
        }
    }
Re:Asynchronous Programming in C# by albertopv on Tuesday May 07, 2024 @02:09AM (#40282846)
And for non MS serious enterprise development Java ecosystem is way ahead.