>mogs your favorite language

>mogs your favorite language

Mike Stoklasa's Worst Fan Shirt $21.68

POSIWID: The Purpose Of A System Is What It Does Shirt $21.68

Mike Stoklasa's Worst Fan Shirt $21.68

  1. 2 weeks ago
    Anonymous

    >has garbage collection because it was designed for 3rd worlders who just throw trash on the ground

    • 2 weeks ago
      Anonymous

      it was made by a dane

      • 2 weeks ago
        Anonymous

        and is being used by pajeets, noone expects pajeets to be capable of such a feat as implementing a JIT runtime that actually works.

        • 2 weeks ago
          Anonymous

          I associate it mostly with europe, it's basically the java of europe

    • 2 weeks ago
      Anonymous

      Good morning sir

    • 2 weeks ago
      Anonymous

      It's optional you lying homosexual.

  2. 2 weeks ago
    Anonymous

    C#? more like #C is trending

  3. 2 weeks ago
    Anonymous

    The only thing C# got for itself is that it is better than Java. That's about it.

    • 2 weeks ago
      Anonymous

      >cant pointers
      C# is my favourite's language grandson

      But Anon, that IS my favorite language!

      Uhhh C# bros I want to learn cross platform development with C# preferably on iOS/Android/Windows/MacOS/Linux but idk what framework to pick here. Xamarin? MAUI with Blazor? Avalonia?

      >inb4 Unity

      • 2 weeks ago
        Anonymous

        Listen I like C# but all of these frameworks are garbage and some of them are out of support so why are you even asking? It's not even updooting shit, just many problems and missing things that will never be fixed or implemented. Learn react native or flutter and don't waste your time

      • 2 weeks ago
        Anonymous

        Xamarin is dead. Officially dead.

        Unironically the best option is PWA with Blazor.

  4. 2 weeks ago
    Anonymous

    C# is almost good, but has a few deal breakers which make it unusable.

    • 2 weeks ago
      Anonymous

      id be more offended from being an american, tho

    • 2 weeks ago
      Anonymous

      >C# is almost good
      Name ONE good language

      • 2 weeks ago
        Anonymous

        nta, but C

    • 2 weeks ago
      Anonymous

      Such as?

      • 2 weeks ago
        Anonymous

        For one thing it has terrible interop with C and C like constructs. fixed size arrays in structures for example are not allowed in C#.

        • 2 weeks ago
          Anonymous

          >fixed size arrays in structures for example are not allowed in C#
          lolwut. is this not what you're talking about or is there something wrong with this?
          public unsafe struct Sneed
          {
          public fixed char Feed[64];
          }

          • 2 weeks ago
            Anonymous

            Ok, I have remembered the exact complaint. You can only created fixed arrays of primitive types. You can't have a fixed array of structs.

          • 2 weeks ago
            Anonymous

            >You can't have a fixed array of structs
            not impossible but all of the structs will have to be marshallable
            using System.Runtime.InteropServices;

            Console.WriteLine(Marshal.SizeOf<Sneed>()); // 16

            public struct Data
            {
            public int field;
            }

            public unsafe struct Sneed
            {
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
            public Data[] Feed;
            }

          • 2 weeks ago
            Anonymous

            Marshaling is worthless.

          • 2 weeks ago
            Anonymous

            I know but that's a completely different complaint

          • 2 weeks ago
            Anonymous

            You can now with inline arrays (they can hold any type, with GC refs or not). They are somewhat clunky but in practical terms it's rarely an issue. You can just `stackalloc T[len]` anything that is `unmanaged` anyway:

            ```cs
            var values = (stackalloc A[128]);

            struct A {
            public int B;
            }
            ```

            Inline arrays: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-12.0/inline-arrays

          • 2 weeks ago
            Anonymous

            This homie came straight from discord
            Try "(code) your ad here (/code)" (in square brackets) next time

          • 2 weeks ago
            Anonymous

            From github. Thanks.

            can't dodge hardware characteristics like locality of reference in any language

            GC designers are not morons. At least in .NET. And are painfully aware of hardware characteristics of making allocation (and deallocation) fast. Objects allocations will be laid out linearly in their respective heap in most situations. Performance cost of objects that get allocated and die in ephemeral heaps (Gen 0 and Gen 1) is quite similar to just allocating an arena and then freeing it.

            In fact, most allocations will be completely synchronization-free and boil down to a threadlocal read and a pointer bump. The object alloc stub is just this:
            MOV EDX,dword ptr [_tls_index]
            MOV RAX,qword ptr GS:[offset ThreadLocalStoragePointer + _tls_index * 8]
            MOV RAX,qword ptr [RAX + RDX*0x8]
            MOV EDX,0x30
            ADD RDX,RAX
            MOV R8D,dword ptr [RCX + 0x4]
            MOV RAX,qword ptr [RDX]
            ADD R8,RAX
            CMP R8,qword ptr [RDX + 0x8]
            JA LAB_140006b22
            MOV qword ptr [RDX],R8
            MOV qword ptr [RAX],RCX
            RET
            LAB_140006b22
            XOR EDX,EDX
            ;; Rare path when allocation context is full and
            ;; cannot satisfy the allocation request
            JMP RhpNewObject

            There is a lot of misunderstanding and conflating unrelated aspects of popular GC-based languages that actually cost peformance with GC itself:

            - Interpreted languages with dynamic typing are generally dog slow and even V8's JIT compiler can at most only partially mitigate this cost (the dispatch is still expensive and the best it can do is inline caching and direct dispatch behind a guard on a specific object "shape" under limited conditions). Don't even get me started on Python or Ruby, or even Elixir. Lol, lmao.

            - Many other GC-based languages (JVM family first and foremost) do not expose efficient containers/primitives, have a lot of virtual dispatch, do not have monomorphized generics or have weak compilers.

            These cost more than GC itself.

          • 2 weeks ago
            Anonymous

            Has java GC pause poster still been frequenting these threads?

        • 2 weeks ago
          Anonymous

          Looks like .NET 8 added something called InlineArrayAttribute which might be what you're looking for

      • 2 weeks ago
        Anonymous

        The lack of discriminated unions is unacceptable at this late date

        moron

  5. 2 weeks ago
    Anonymous

    >cant pointers
    C# is my favourite's language grandson

    • 2 weeks ago
      Anonymous

      >cant pointers
      It can though, unsafe C#

      • 2 weeks ago
        Anonymous

        woot?
        this language has now my full attention

        • 2 weeks ago
          Anonymous

          // compile with: -unsafe
          class UnsafeTest
          {
          // Unsafe method: takes pointer to int.
          unsafe static void SquarePtrParam(int* p)
          {
          *p *= *p;
          }

          unsafe static void Main()
          {
          int i = 5;
          // Unsafe method: uses address-of operator (&).
          SquarePtrParam(&i);
          Console.WriteLine(i);
          }
          }
          // Output: 25

          fr fr we wuz C

          • 2 weeks ago
            Anonymous

            unfathomably based
            whoever calls C# a pajeet language is a seething troon
            why do we even need fricking rust?
            C# is right there!

          • 2 weeks ago
            Anonymous

            >Seething troon
            True, At first, they tried to attack C++, but it was debunked that it's needed for performance, yet as safe as C++. The process would be 10x more complicated. Now, they are trying to attack C#, but it's debunked again that C# already has Rust like features since a long time ago, and it's even more mature than Rust

          • 2 weeks ago
            Anonymous

            Calling C# a pajeet language would be a compliment because it's literally a n***er language.

          • 2 weeks ago
            Anonymous

            no one cares about your low IQ racist's opinions

          • 2 weeks ago
            Anonymous

            POO

        • 2 weeks ago
          Anonymous

          Span<T> and Memory<T> also need a mention
          https://learn.microsoft.com/en-us/archive/msdn-magazine/2017/connect/csharp-all-about-span-exploring-a-new-net-mainstay

          • 2 weeks ago
            Anonymous

            looks comfy, indeed

      • 2 weeks ago
        Anonymous

        woot?
        this language has now my full attention

        (cont.)
        it absolutely based
        C# goes onto the list of the languages i will properly learn.
        2nd place. right after asm

    • 2 weeks ago
      Anonymous

      It it always the case that people who hate a language don't know shit about it or is it unique to C#?

      For one thing it has terrible interop with C and C like constructs. fixed size arrays in structures for example are not allowed in C#.

      • 2 weeks ago
        Anonymous

        many such cases, for sure

      • 2 weeks ago
        Anonymous

        idk but it's very commonplace, for now I resort to just suggesting everyone who thinks so to immediately get the rope and never talk again, at least saves time than trying to communicate with the last 2 remaining brancells average golet has

      • 2 weeks ago
        Anonymous

        wym?
        its not the same person
        and i dont hate C#

        this is me:

        unfathomably based
        whoever calls C# a pajeet language is a seething troon
        why do we even need fricking rust?
        C# is right there!

        [...]
        (cont.)
        it absolutely based
        C# goes onto the list of the languages i will properly learn.
        2nd place. right after asm

        also yeah, i learned C# has pointers ITT. problem?

        • 2 weeks ago
          Anonymous

          its alright, everyone is just very burnt out by negative good will towards c#

          • 2 weeks ago
            Anonymous

            i noticed the hate on this board.
            me, i like it. i played around a little bit with it in the context of modding a game.
            its comfy. its what i expect from a high level language... and more, it appears.

            its on the list. i will learn it properly.

    • 2 weeks ago
      Anonymous

      seeing posts like this one helps reminding myself of how most people who post on this shithole dont have the slightest idea of what they're talking about

  6. 2 weeks ago
    Anonymous

    But Anon, that IS my favorite language!

    • 2 weeks ago
      Anonymous

      it mogs itself with every new version

  7. 2 weeks ago
    Anonymous

    What can I say? C-sharp had a beautiful syntax while I was working for the corpos, but
    it was still way behind C++ when it comes to performance.

    • 2 weeks ago
      Anonymous

      Have you tried AOT? I noticed a major performance boost in traditional x86 or x64 binaries versus an x64 AOT binary, and the file size is about what'd expect a C++ binary to be. If C# AOT takes off and gains traction and more adoption so there's plenty of JIT/AOT libraries C# will be a fricking juggernaut.

      • 2 weeks ago
        Anonymous

        >If
        A small but important word, loser.

      • 2 weeks ago
        Anonymous

        Fodder for Microsoft's good idea graveyard.

        I'm learning C# and I like it. I want to learn Java and Go too.

        Checking for happy learning.

    • 2 weeks ago
      Anonymous

      What specific performance issues did you run into? You can write C-style C# that is almost as fast.

  8. 2 weeks ago
    Anonymous

    Anyone who hates C# doesn't know what they're talking about
    Easily top 3 best corpo language, if not the best

  9. 2 weeks ago
    Frosch

    OP will make a great comedian one day.

  10. 2 weeks ago
    Anonymous

    >what if everything were Java, but different

    • 2 weeks ago
      Anonymous

      isnt it the other way around? im pretty sure java appeared before c#

  11. 2 weeks ago
    Anonymous

    I think it's a great language but the focus of the language team is not correct. They're giving us 10 ways to do everything and the mental overload of having to know so much new syntax every update fricking sucks.

    That said it's my favorite language for sure, it's very capable of making fast programs (but you have to be extremely mindful of the GC and know how it works) since it gives you tools for quite low level stuff.

  12. 2 weeks ago
    Anonymous

    yup

    they just struggle to admit it, especially now tribal consensus has set and normies think C# is a worse Java (Java *wishes* it could match C# but alas).

    Hell, writing high-perf routines is so much less cancer in it:

    e.g. https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Base64Decoder.cs#L784-L837 and

  13. 2 weeks ago
    Anonymous

    >chokes when collecting its garbage

  14. 2 weeks ago
    Anonymous

    I don't like OOP poo

  15. 2 weeks ago
    Anonymous

    Most C# Jobs are married to Azure Cloud. Then a badly documented API change in some dependency can break your entire codebase. Meanwhile Microsoft shits on useful projects to make C# be cross plattform. I can't help it, but you don't have any of these problems with java. Come home white man

  16. 2 weeks ago
    Anonymous

    Why are C# object so fricking shit? It seems like there is no canonical way to use them and 20 years of legacy cruft means every code base has a different way of making objects. Python might be gay but they are the only jeets that made decent implementation of OOP.

    class Black person:
    def __init__super(goods, whitey, television):
    self.stolen_goods = goods
    self.steal_television(whitey, television)

    def steal_television(self, whitey, television)
    self.stolen_goods.append(television)
    whitey.televisions -= 1

    • 2 weeks ago
      Anonymous

      >Python
      >classes
      you my man are beyond help
      no one seriously uses classes in that language, no one with a brain at least

  17. 2 weeks ago
    Anonymous

    >C shart
    >ever

  18. 2 weeks ago
    Anonymous

    I'm learning C# and I like it. I want to learn Java and Go too.

    • 2 weeks ago
      Anonymous

      Go mogs C# and Java as it has been designed by sane people.

      • 2 weeks ago
        Anonymous

        >sane people

  19. 2 weeks ago
    Anonymous

    C# and TypeScript.

  20. 2 weeks ago
    Anonymous

    Why do nerds love this so much??

    because... they can't see sharp!!!!!!! like if you get it

    • 2 weeks ago
      Anonymous

      Your post was so obnoxiously satire it actually made me chuckle for a second.

  21. 2 weeks ago
    Anonymous

    GOOD MORNING SAAAAAAAAR

  22. 2 weeks ago
    Anonymous

    >mogs your language

  23. 2 weeks ago
    Anonymous

    Despite my undying hate for Microsoft I found C# to be not that bad.
    After I had suffered Java for many years.

  24. 2 weeks ago
    Anonymous

    >can't pattern match within functions
    >has no low latency GC
    >shitty enums
    >async/await even though it's a managed language. Green threads/go routines are better.
    >generally the most bloated language in grammar size and features
    >Microsoft

    • 2 weeks ago
      Anonymous

      seethe

    • 2 weeks ago
      Anonymous

      >>can't pattern match within functions
      You can
      >>has no low latency GC
      It has
      enums
      They're fine
      even though it's a managed language. Green threads/go routines are better.
      Nocoder babble
      the most bloated language in grammar size and features
      Fair

      Fair

  25. 2 weeks ago
    Anonymous

    C# for sure. I might get forced to move to Java though. Feels bad man.

  26. 2 weeks ago
    Anonymous

    >It requires a VM
    It goes to the trash

  27. 2 weeks ago
    Anonymous

    C# is the pragmatic, well-designed successor to Java. It's a fantastic language. I don't see why you'd hate it.
    >cross platform development with C#
    For something lightweight check out .net core.

    • 2 weeks ago
      Anonymous

      It's not called .NET Core anymore, .NET Core became .NET in .NET 5, replacing .NET Framework. .NET 8 is .NET Core

      • 2 weeks ago
        Anonymous

        This truly is one of the things I hate about C# and its ecosystem: Microshit's awful names and tendency to change said awful names for seemingly no reason.

        • 2 weeks ago
          Anonymous

          Yeah it can be confusing. I really like C# but Microsoft has a habit of creating things for it and dropping support not long after.

          Microsoft XNA Framework. Silverlight. WinForms. WPF. WinUI / UWP.

          Surely MAUI won't go the same way. Avalonia is decent though from when I played around with it, it's a cross platform UI framework that's not made by Microsoft so hopefully it won't get dropped.

        • 2 weeks ago
          Anonymous

          This is the first fair criticism against C# in this entire thread, and it's correctly directed at MSFT's shitty marketing fricking up names as always.

  28. 2 weeks ago
    Anonymous

    It's a good clean language that you can use for everything and runs everywhere. It's reasonably fast has good tooling, can do native interop (so its good for writing desktop apps). Has a big dev community, tons of libraries, with a frickton of them being built in prime quality MS stuff.

    If you wanna get shit done its one of the best languages out there.
    It's only weakness is that its Linux support is not amazing (yeah I know it works, but you can still feel there's a bunch of Windows assumptions in there).

    It's B+ tier in every domain, except maybe for AI/ML.

  29. 2 weeks ago
    Anonymous

    It's alright. Not a fan of how verbose it is at times, the capital I interface naming convention, pascal case, null, the new keyword, no free functions, or the standard indentation style. But those are mostly just my preferences.

    • 2 weeks ago
      Anonymous

      I can tell you come from Python lol. The transition from C# to Python and viceversa is painful.

  30. 2 weeks ago
    Anonymous

    Ai king

  31. 2 weeks ago
    Anonymous

    It's very comfy and I actually changed my opinion on it

  32. 2 weeks ago
    Anonymous

    Nah
    t. F# chad

  33. 2 weeks ago
    Anonymous

    Say no to discriminated unions

  34. 2 weeks ago
    Anonymous

    I can immediately tell this thread is full of nocoders. C# is a terrible language because people try to be as "efficient" as possible and write the less code possible and end up fricking the entire codebase unredeemably.
    Ask me how I know you haven't dealt with a codebase that uses reflection and not only makes it fricking impossible to find the code using it but also makes the interface a matter of "believing it will just work". Ask me how I know you never dealt with a codebase that uses Ninject cancer.

    • 2 weeks ago
      Anonymous

      why would I give a shit about some random codebases that have bad practices? We're talking about the language here, it has nothing to do with shitty programmers

      I think your point is beyond stupid

      • 2 weeks ago
        Anonymous

        Because these things are used a lot in the professional C# space

    • 2 weeks ago
      Anonymous

      >Noooooo stop enjoying your language in the C family
      I can immediately tell this reply is a rust troon.

      • 2 weeks ago
        Anonymous

        anon, not only do I use C++ in personal projects and program C professionally, but I fricking hate Rust, what are you talking about. Are these Rust trannies you speak of in this room right now? Can they hurt you?

        • 2 weeks ago
          Anonymous

          i'm the same as you but i'm pretty positive on rust
          it feels like c++ / c but with years of legacy cruft removed and sensible new features implemented
          why do you hate it?

          • 2 weeks ago
            Anonymous

            >why do you hate it?
            Because it's the thing to hate du jour. I mean, just imagine being seen as lame by people you don't, and likely never will, interact with in any shape or form in real life. I wouldn't wish it on my worst enemy.

        • 2 weeks ago
          Anonymous

          based post. I would love to use C/ C++ in my workplace. But they love using C# and web development languages, so I can't get to have any fun.

  35. 2 weeks ago
    Anonymous

    yes very good sir good morning sir.

  36. 2 weeks ago
    Anonymous

    C# is super comfy. A shame you have to jump through hoops to ensure performance in big workloads (something pajeets are allergic at).

    • 2 weeks ago
      Anonymous

      well its either that or jumping through even more hoops. low key, programming quality is probably a stronger function of the race of the programmers in question, rather than the tools that they used.

    • 2 weeks ago
      Anonymous

      can't dodge hardware characteristics like locality of reference in any language

  37. 2 weeks ago
    Anonymous

    By far the most comfy language I've used, it mogs python, c++, java imo
    Is it the fastest language? No, but it's close
    Does it allow you to do extreme low level hacks that'll break with every update and can be optimized by just not writing shit code? No, but when was the last time you had to code one up?
    Is it easy to use with good documentation and a big ecosystem? Yes and that's all that matters for the vast majority of jobs

    • 2 weeks ago
      Anonymous

      >extreme low level hacks
      why can't you? you can write inline asm in c#

    • 2 weeks ago
      Anonymous

      >good documentation
      I keep hearing this, but all I've found so far are ginormous listings of properties, methods, and extensions packed into obnoxiously small tables, and the occasional 100 line code sample in which 95% of the code has literally nothing to do with what supposedly is being documented.

Your email address will not be published. Required fields are marked *