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.
  • 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

    halla@kde.socialH This user is from outside of this forum
    halla@kde.socialH This user is from outside of this forum
    halla@kde.social
    wrote last edited by
    #6

    @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 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

      theeclecticdyslexic@mstdn.socialT This user is from outside of this forum
      theeclecticdyslexic@mstdn.socialT This user is from outside of this forum
      theeclecticdyslexic@mstdn.social
      wrote last edited by
      #7

      @eniko this is why I use thread pools in languages that support them ootb, combine their results in the main thread, and pretend that no other use cases exist.

      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

        nuintari@mastodon.bsd.cafeN This user is from outside of this forum
        nuintari@mastodon.bsd.cafeN This user is from outside of this forum
        nuintari@mastodon.bsd.cafe
        wrote last edited by
        #8

        @eniko Hey, consistency ain't nothing to be dismissed lightly.

        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

          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
          #9

          @eniko Sorry to use the R-word, but... #Rust

          kirtai@tech.lgbtK 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

            passocacornio@tech.lgbtP This user is from outside of this forum
            passocacornio@tech.lgbtP This user is from outside of this forum
            passocacornio@tech.lgbt
            wrote last edited by
            #10

            @eniko oh goddesses, you were suffering with C back in 2006? oh wow! (2006 I was still dreaming I would be a writer)

            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

              ericsedge@bitbang.socialE This user is from outside of this forum
              ericsedge@bitbang.socialE This user is from outside of this forum
              ericsedge@bitbang.social
              wrote last edited by
              #11

              @eniko I’ll join in with a bit of paraphrasing.

              It’s 1987. I’m forking this process in C and my library code isn’t reentrant….

              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

                pixx@merveilles.townP This user is from outside of this forum
                pixx@merveilles.townP This user is from outside of this forum
                pixx@merveilles.town
                wrote last edited by
                #12

                @eniko

                /winces

                Can i ask what about it?

                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

                  landelare@mastodon.gamedev.placeL This user is from outside of this forum
                  landelare@mastodon.gamedev.placeL This user is from outside of this forum
                  landelare@mastodon.gamedev.place
                  wrote last edited by
                  #13

                  @eniko It's 2026. [...] C [...] i[...]s awful

                  1 Reply Last reply
                  0
                  • analog_feelings@tech.lgbtA analog_feelings@tech.lgbt

                    @eniko how do threads even work on C, function pointers?

                    lisyarus@mastodon.gamedev.placeL This user is from outside of this forum
                    lisyarus@mastodon.gamedev.placeL This user is from outside of this forum
                    lisyarus@mastodon.gamedev.place
                    wrote last edited by
                    #14

                    @analog_feelings @eniko Yup: https://man7.org/linux/man-pages/man3/pthread_create.3.html

                    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

                      gureito@mastodon.gamedev.placeG This user is from outside of this forum
                      gureito@mastodon.gamedev.placeG This user is from outside of this forum
                      gureito@mastodon.gamedev.place
                      wrote last edited by
                      #15

                      @eniko in my head-canon, that's the reason we got erlang, go, rust.......

                      (it's 1996 and threads in C is awful, it's 1986 and threads in C is awful......)

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

                        @eniko Sorry to use the R-word, but... #Rust

                        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
                        #16

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

                        khleedril@cyberplace.socialK 1 Reply Last reply
                        0
                        • 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
                                          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