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

    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

    silvermoon82@wandering.shopS analog_feelings@tech.lgbtA lisyarus@mastodon.gamedev.placeL halla@kde.socialH theeclecticdyslexic@mstdn.socialT 16 Replies 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

      silvermoon82@wandering.shopS This user is from outside of this forum
      silvermoon82@wandering.shopS This user is from outside of this forum
      silvermoon82@wandering.shop
      wrote last edited by
      #2

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

      gildilinie@beige.partyG eniko@mastodon.gamedev.placeE 2 Replies 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

        analog_feelings@tech.lgbtA This user is from outside of this forum
        analog_feelings@tech.lgbtA This user is from outside of this forum
        analog_feelings@tech.lgbt
        wrote last edited by
        #3

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

        lisyarus@mastodon.gamedev.placeL 1 Reply Last reply
        0
        • silvermoon82@wandering.shopS silvermoon82@wandering.shop

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

          gildilinie@beige.partyG This user is from outside of this forum
          gildilinie@beige.partyG This user is from outside of this forum
          gildilinie@beige.party
          wrote last edited by
          #4

          @silvermoon82 @eniko fozzie bear dot gif

          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

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

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

            raptor85@mastodon.gamedev.placeR 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

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