Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 CatNowBlue   ( @therealraluvy95@beehaw.org ) B to Programmer Humor@lemmy.ml · 2 年前

Programming Problem

message-square
44
link
fedilink
42

Programming Problem

 CatNowBlue   ( @therealraluvy95@beehaw.org ) B to Programmer Humor@lemmy.ml · 2 年前
message-square
44
link
fedilink
alert-triangle
You must log in or # to comment.
  •  alcasa   ( @alcasa@lemmy.sdf.org ) 
    link
    fedilink
    arrow-up
    24
    ·
    2 年前

    Who the hell would call python beautiful has never seen python code in the wild

    •  prowlr   ( @prowlr@lemmy.ml ) 
      link
      fedilink
      arrow-up
      7
      ·
      2 年前

      Too true, python can be beautiful and succinct or like a huge plate of spaghetti cut up with scissors

    •  SamC   ( @SamC@lemmy.nz ) 
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      2 年前

      deleted by creator

  •  𝕙𝕖𝕝𝕡   ( @help@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 年前

    One big reason Nim never really caught on is because we’ve got lots of fast-ish languages with garbage collection (like Go, which sucks a lot of oxygen away from Nim IMO). Rust introduced a new concept to the mainstream that lets you program safely without a runtime hit for garbage collection.

    •  solrize   ( @solrize@lemmy.ml ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Ada would like a word with you ;)

      •  𝕙𝕖𝕝𝕡   ( @help@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 年前

        To my knowledge, Ada doesn’t have an equivalent to Rust’s borrow checker. I also think I covered that base by specifying “mainstream” 😀

  •  kia   ( @kia@lemmy.ca ) 
    link
    fedilink
    arrow-up
    8
    ·
    2 年前

    Once you get used to the Rust syntax, it actually makes the code look cleaner.

    •  dragnucs   ( @dragnucs@lemmy.ml ) 
      link
      fedilink
      arrow-up
      4
      ·
      2 年前

      Ans you also learn to format it properly.

      Generally any new santax looks ugly. Then when you understand why it is written like it is it starts looking good.

      •  off_brand_   ( @off_brand_@beehaw.org ) 
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        Go error handling… It looked so ugly to me when I started. The I kept going and… it’s still awful. I get the theory, but god do I want a try catch block ☠️

        Maintaining any mature code is often skipping over 20 little error blocks for each function call, pushing the critical code off the viewport.

  •  loops   ( @loops@lemmy.ml ) 
    link
    fedilink
    arrow-up
    8
    ·
    2 年前

    What are the last two? I know Python and C, but haven’t seen the last two.

    •  pollocks   ( @pollocks@lemmy.ml ) 
      link
      fedilink
      arrow-up
      20
      ·
      2 年前

      The third one is rust which has become a meme at this point. Programmers like it because it has almost as much performance as C but has a lot of safeguards preventing memory errors and vulnerabilities. I have no idea what the last one is tho

      •  loops   ( @loops@lemmy.ml ) 
        link
        fedilink
        arrow-up
        7
        ·
        2 年前

        Did rust change it’s logo? I thought it was a gear. :s

        •  dragnucs   ( @dragnucs@lemmy.ml ) 
          link
          fedilink
          arrow-up
          10
          ·
          2 年前

          It did not change logo. This is the mascot.

        •  ReakDuck   ( @ReakDuck@lemmy.ml ) 
          link
          fedilink
          arrow-up
          2
          ·
          2 年前

          I think it just has two logos but idk

          •  Double_A   ( @Double_A@discuss.tchncs.de ) 
            link
            fedilink
            arrow-up
            2
            ·
            2 年前

            The crab is public domain, so you can use it to advertise your own Rust project or whatever. The gear logo belongs to the Rust foundation, which sparked some controversy a while ago.

    •  Lupec   ( @lupec@lemmy.lpcha.im ) 
      link
      fedilink
      arrow-up
      13
      ·
      2 年前

      Those are Rust and Nim

    •  Re4mstr   ( @Re4mstr@lemmy.re4mstr.com ) 
      link
      fedilink
      arrow-up
      5
      ·
      2 年前

      Crab is Rust, but the last one…

      •  Justin   ( @jlh@lemmy.jlh.name ) 
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        2 年前

        Apparently it’s called nim.

        https://en.m.wikipedia.org/wiki/Nim_(programming_language)

        Looking at the Wikipedia article, it seems like it has some weird syntax choices. And even though it compiles to C code, I’m not convinced that it’s as fast as C or Rust, since it has a garbage collector.

        •  CanadaPlus   ( @CanadaPlus@lemmy.sdf.org ) 
          link
          fedilink
          arrow-up
          9
          ·
          2 年前

          I’m pretty skeptical it could be as fast and safe as Rust without the added challenge. Like, even doing what Rust did was a big deal.

          •  potatoBoy   ( @potatoBoy@programming.dev ) 
            link
            fedilink
            Afaraf
            arrow-up
            1
            ·
            2 年前

            Can compile to C which then compiles using your favourite compiler. So it can operate at the speed of C

            And the new memory management system is similar to rusts system (and can be fully disabled if you want manual memory management)

            •  CanadaPlus   ( @CanadaPlus@lemmy.sdf.org ) 
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              2 年前

              Can compile to C which then compiles using your favourite compiler. So it can operate at the speed of C

              Technically, it all compiles to assembly, but Python is still a lot slower than C or Rust. Speed is lost along the way through those layers of abstraction.

              And the new memory management system is similar to rusts system (and can be fully disabled if you want manual memory management)

              So it doesn’t have a garbage collector? I’m going to have to actually look into this myself.

        •  HolyHell   ( @HolyHell@lemmy.fmhy.ml ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          OH… NIM NIM NIM NIM NIM FUCKING NIM

        •  HolyHell   ( @HolyHell@lemmy.fmhy.ml ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          OH… NIM NIM NIM NIM NIM FUCKING NIM

        •  HolyHell   ( @HolyHell@lemmy.fmhy.ml ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          OH… NIM NIM NIM NIM NIM FUCKING NIM

  •  zexu knub   ( @zexu@lemmy.ml ) 
    link
    fedilink
    arrow-up
    1
    ·
    2 年前

    you forgot zig

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 103 users / day
  • 272 users / week
  • 961 users / month
  • 3.03K users / 6 months
  • 867 local subscribers
  • 39.4K subscribers
  • 1.1K Posts
  • 9.83K Comments
  • Modlog
  • mods:
  •  AgreeableLandscape   ( @AgreeableLandscape@lemmy.ml ) 
  •  cat_programmer   ( @cat_programmer@lemmy.ml ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code