Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. It's 2006. I'm working with threads in C and it's awful

It's 2006. I'm working with threads in C and it's awful

Scheduled Pinned Locked Moved Uncategorized
29 Posts 23 Posters 80 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • kirtai@tech.lgbtK kirtai@tech.lgbt

    @khleedril @eniko
    I recently read that Rust uses pretty much the same thread model as C++.

    khleedril@cyberplace.socialK This user is from outside of this forum
    khleedril@cyberplace.socialK This user is from outside of this forum
    khleedril@cyberplace.social
    wrote last edited by
    #17

    @kirtai @eniko The model might be the same, but the guardrails are there...

    kirtai@tech.lgbtK 1 Reply Last reply
    0
    • khleedril@cyberplace.socialK khleedril@cyberplace.social

      @kirtai @eniko The model might be the same, but the guardrails are there...

      kirtai@tech.lgbtK This user is from outside of this forum
      kirtai@tech.lgbtK This user is from outside of this forum
      kirtai@tech.lgbt
      wrote last edited by
      #18

      @khleedril @eniko
      Are they though?
      Threads have a lot more problems than memory issues

      khleedril@cyberplace.socialK 1 Reply Last reply
      0
      • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

        It's 2006. I'm working with threads in C and it's awful

        It's 2016. I'm working with threads in C and it's awful

        It's 2026. I'm working with threads in C and it's awful

        dbat@mastodon.gamedev.placeD This user is from outside of this forum
        dbat@mastodon.gamedev.placeD This user is from outside of this forum
        dbat@mastodon.gamedev.place
        wrote last edited by
        #19

        @eniko sounds like threads should be called dreads.

        1 Reply Last reply
        0
        • kirtai@tech.lgbtK kirtai@tech.lgbt

          @khleedril @eniko
          Are they though?
          Threads have a lot more problems than memory issues

          khleedril@cyberplace.socialK This user is from outside of this forum
          khleedril@cyberplace.socialK This user is from outside of this forum
          khleedril@cyberplace.social
          wrote last edited by
          #20

          @kirtai @eniko It is true that rust can't stop you locking up, but, hell, having the memory issues mostly sorted is a massive win, is it not?

          1 Reply Last reply
          0
          • lisyarus@mastodon.gamedev.placeL lisyarus@mastodon.gamedev.place

            @eniko 2011 - present: I'm working with threads in C++ and it's great (mostly)

            raptor85@mastodon.gamedev.placeR This user is from outside of this forum
            raptor85@mastodon.gamedev.placeR This user is from outside of this forum
            raptor85@mastodon.gamedev.place
            wrote last edited by
            #21

            @lisyarus @eniko yeah, C++11's std::thread interface is great, makes it extremely simple to set up stuff like thread pooling and generic worker threads.

            1 Reply Last reply
            0
            • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

              It's 2006. I'm working with threads in C and it's awful

              It's 2016. I'm working with threads in C and it's awful

              It's 2026. I'm working with threads in C and it's awful

              countablenewt@mastodon.socialC This user is from outside of this forum
              countablenewt@mastodon.socialC This user is from outside of this forum
              countablenewt@mastodon.social
              wrote last edited by
              #22

              @eniko . working threads I’m 2026 C it’s and awful with It’s ,

              1 Reply Last reply
              0
              • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                It's 2006. I'm working with threads in C and it's awful

                It's 2016. I'm working with threads in C and it's awful

                It's 2026. I'm working with threads in C and it's awful

                joe@f.duriansoftware.comJ This user is from outside of this forum
                joe@f.duriansoftware.comJ This user is from outside of this forum
                joe@f.duriansoftware.com
                wrote last edited by
                #23

                @eniko you could leave "in C" out and it would be about the same

                scottmichaud@mastodon.gamedev.placeS vfig@mastodon.gamedev.placeV 2 Replies Last reply
                0
                • joe@f.duriansoftware.comJ joe@f.duriansoftware.com

                  @eniko you could leave "in C" out and it would be about the same

                  scottmichaud@mastodon.gamedev.placeS This user is from outside of this forum
                  scottmichaud@mastodon.gamedev.placeS This user is from outside of this forum
                  scottmichaud@mastodon.gamedev.place
                  wrote last edited by
                  #24

                  @joe @eniko Ignoring run-to-run variance.

                  joe@f.duriansoftware.comJ 1 Reply Last reply
                  0
                  • scottmichaud@mastodon.gamedev.placeS scottmichaud@mastodon.gamedev.place

                    @joe @eniko Ignoring run-to-run variance.

                    joe@f.duriansoftware.comJ This user is from outside of this forum
                    joe@f.duriansoftware.comJ This user is from outside of this forum
                    joe@f.duriansoftware.com
                    wrote last edited by
                    #25

                    @scottmichaud @eniko vibe coders 🤝concurrency programmers

                    1 Reply Last reply
                    0
                    • joe@f.duriansoftware.comJ joe@f.duriansoftware.com

                      @eniko you could leave "in C" out and it would be about the same

                      vfig@mastodon.gamedev.placeV This user is from outside of this forum
                      vfig@mastodon.gamedev.placeV This user is from outside of this forum
                      vfig@mastodon.gamedev.place
                      wrote last edited by
                      #26

                      @joe @eniko but that would make Terry Riley sad

                      1 Reply Last reply
                      0
                      • halla@kde.socialH halla@kde.social

                        @eniko Well, yes... But rest assured, threads in C++ are awful. Threads in Java are awful. Threads in Python are double-plus awful.

                        And they're still needed, so have an ice cream (or other treat) every time you added tread-using code to your project.

                        casar@mastodon.socialC This user is from outside of this forum
                        casar@mastodon.socialC This user is from outside of this forum
                        casar@mastodon.social
                        wrote last edited by
                        #27

                        @halla I've been working with threads in Java and in Python and they were ... so, so, those in Python most certainly double-plus than ones in Java.

                        But I always imagined (but never tried) working with threads in C must be wonderful. Now I am confused.

                        @eniko

                        1 Reply Last reply
                        0
                        • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                          It's 2006. I'm working with threads in C and it's awful

                          It's 2016. I'm working with threads in C and it's awful

                          It's 2026. I'm working with threads in C and it's awful

                          superblox@mastodon.socialS This user is from outside of this forum
                          superblox@mastodon.socialS This user is from outside of this forum
                          superblox@mastodon.social
                          wrote last edited by
                          #28

                          @eniko Have you heard the good news about our lord and savior Rust yet?

                          1 Reply Last reply
                          0
                          • silvermoon82@wandering.shopS silvermoon82@wandering.shop

                            @eniko
                            pthreads! The "g" is for "good"

                            eniko@mastodon.gamedev.placeE This user is from outside of this forum
                            eniko@mastodon.gamedev.placeE This user is from outside of this forum
                            eniko@mastodon.gamedev.place
                            wrote last edited by
                            #29

                            @silvermoon82 and the w is for works well in windows

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups