Off Topic
    • Categories
    • Tags
    • Users
    • Groups
    • Amazon
    • OT Fundraiser
    • Register
    • Login

    The OFFICIAL programming thread

    Tech
    22
    1.4k
    10.5k
    Loading More Posts
    • 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.
    • Gators1G
      Gators1
      last edited by

      Programmers copy/paste from Stack Overflow!

      alt text

      1 Reply Last reply Reply Quote 2
      • ?
        A Former User
        last edited by A Former User

        I seem to be arriving on SO a lot less these days. I heard that a change Google search made a while back ~demoted them in search results~ resulted in them getting less traffic but I use DuckDuckGo so I dunno. That whole place is insufferable anyway with self important vandal moderators.

        I’m kind of disillusioned with just about everything on the internet these days. It seems we’re in an era of suck that is much harder to take since we had a taste of how it could be better.

        Gators1G 1 Reply Last reply Reply Quote 1
        • Gators1G
          Gators1 @A Former User
          last edited by

          @Hog said in The OFFICIAL programming thread:

          I seem to be arriving on SO a lot less these days. I heard that a change Google search made a while back ~demoted them in search results~ resulted in them getting less traffic but I use DuckDuckGo so I dunno. That whole place is insufferable anyway with self important vandal moderators.

          I’m kind of disillusioned with just about everything on the internet these days. It seems we’re in an era of suck that is much harder to take since we had a taste of how it could be better.

          I don’t engage in the community or whatever, I just google my problem and click the SO result because it’s usually better than some random blog. I can quickly scan the OP to make sure the problem is the same and the answer is checkmarked and boosted right below. I heard it was toxic or whatever, but don’t really care as long as I get what I need.

          Agree that consolidation was bad in terms of entertainment purposes where big tech owns most of the traffic and gets pressure to culturally whitewash their content. Youtube is the one that pisses me off the most, but still find it useful. I think if they ever drop long form videos and go full Ticktok though I am done with the internet.

          alt text

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by A Former User

            This stuff is getting so meta:

            WebAssembly started as a “JavaScript alternative for browsers”. The idea is to safely run high-performance applications compiled from languages like C/C++ or Rust in browsers. In the browser, WebAssembly runs side by side with JavaScript.

            As WebAssembly is increasingly used in the cloud, it is now a universal runtime for cloud-native applications. Compared with Linux containers, WebAssembly runtimes achieve higher performance with lower resource consumption.

            In cloud-native use cases, developers often want to use JavaScript to write business applications. That means we must now support JavaScript in WebAssembly. Furthermore, we should support calling C/C++ or Rust functions from JavaScript in a WebAssembly runtime to maximize WebAssembly’s computational efficiency. The WasmEdge WebAssembly runtime allows you to do exactly that.

            JavaScript as the only browser language was too slow for some usecases and not as flexible as supporting multiple languages. They created webassembly to address the speed issue and open the door for having just about any language compile down to WASM and run in the browser. Now WASM has become the language (or target) of choice for cloud computing but JavaScript has a bunch of mind share and it great for scripting and certain use cases. So they created a JavaScript interpreter in WASM.

            1 Reply Last reply Reply Quote 2
            • ?
              A Former User
              last edited by A Former User

              I’ve recently been kicking tires on the current best way to do something for a personal app and I was evaluating JavaScript runtimes. It’s been a couple of years since I’ve looked at this topic and, damn, the world moves on quickly.

              image.png

              Edit: the above is a meme so it’s necessarily limited. Zig is still beta and has some issues I don’t know if they can solve nicely around async. A more accurate statement would be “a more attractive language than Rust to me”.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                I just went looking for info on using Unix Domain Sockets (UDS) in Rust and this was about half way down the first page of search results:

                Rust in UDS?

                For a brief moment I felt an extra kinship with Tazz.

                TazzT 1 Reply Last reply Reply Quote 1
                • TazzT
                  Tazz @A Former User
                  last edited by

                  @Hog Haha. That’s good. Ever since I cleaned all that crap out of my smoker the results are 1000% better without any bitter taste. Never has rust but I keep it dry and out of the rain.

                  GTFO

                  1 Reply Last reply Reply Quote 2
                  • ?
                    A Former User @A Former User
                    last edited by A Former User

                    @Hog said in The OFFICIAL programming thread:

                    Shaders are a pain the arse to debug. Can’t set breakpoints; can’t print debugging values. You have to set a pixel to a color representing a value and and hope you can find it in the output.

                    It’s now 2023 anno Domini and I can’t believe the above is still a thing. I’m getting better at it but, oh boy. Little bugs that would take you seconds to find in any modern debugger sometimes take hours to resolve.

                    I mean, I get why it’s hard to build a debugger for code that runs massively parallel on a GPU up to millions of times per frame but, still, there must be smarter people than me who can work out how to make one.

                    1 Reply Last reply Reply Quote 0
                    • Gators1G
                      Gators1
                      last edited by

                      I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.

                      alt text

                      JamJ KilemallK 2 Replies Last reply Reply Quote 2
                      • JamJ
                        Jam @Gators1
                        last edited by

                        @Gators1 said in The OFFICIAL programming thread:

                        I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.

                        And then you came back here where never a moment is wasted!

                        "laissez les bons temps rouler!"

                        1 Reply Last reply Reply Quote 1
                        • KilemallK
                          Kilemall Careful, railroad agent @Gators1
                          last edited by

                          @Gators1 said in The OFFICIAL programming thread:

                          I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.

                          So you’re talking to Zep in another forum? That seems duplicate effort.

                          https://i.imgur.com/hX2CMMZ.jpg

                          Never go full Lithu-
                          Twain

                          No editing is gonna save you now-
                          Wingmann

                          http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

                          http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

                          Gators1G 1 Reply Last reply Reply Quote 1
                          • Gators1G
                            Gators1 @Kilemall
                            last edited by

                            @Kilemall said in The OFFICIAL programming thread:

                            @Gators1 said in The OFFICIAL programming thread:

                            I need to stop habitually answering questions on Reddit and wasting time. I read one this morning where the dude is like “I don’t understand X” about data warehouse architecture. It was a very basic question and should have been answered sufficiently by the source book he said he read. So I type out some examples of why it is the way it is and I am about to hit reply when I notice I am replying to a guy named TheCumCopter. Yeah, he is never going to get it and I just wasted 4 minutes.

                            So you’re talking to Zep in another forum? That seems duplicate effort.

                            Nah, this was on Reddit, not Tiktok.

                            alt text

                            1 Reply Last reply Reply Quote 1
                            • Gators1G
                              Gators1
                              last edited by

                              Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.

                              Create a Large Language Model from Scratch with Python – Tutorial

                              alt text

                              KilemallK ? 2 Replies Last reply Reply Quote 0
                              • KilemallK
                                Kilemall Careful, railroad agent @Gators1
                                last edited by

                                @Gators1 said in The OFFICIAL programming thread:

                                Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.

                                Create a Large Language Model from Scratch with Python – Tutorial

                                There are treaties against LOT derived AI.

                                https://i.imgur.com/hX2CMMZ.jpg

                                Never go full Lithu-
                                Twain

                                No editing is gonna save you now-
                                Wingmann

                                http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

                                http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

                                Gators1G 1 Reply Last reply Reply Quote 0
                                • Gators1G
                                  Gators1 @Kilemall
                                  last edited by

                                  @Kilemall said in The OFFICIAL programming thread:

                                  @Gators1 said in The OFFICIAL programming thread:

                                  Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.

                                  Create a Large Language Model from Scratch with Python – Tutorial

                                  There are treaties against LOT derived AI.

                                  Fuck the treaties! We will make billions!

                                  alt text

                                  KilemallK 1 Reply Last reply Reply Quote 0
                                  • KilemallK
                                    Kilemall Careful, railroad agent @Gators1
                                    last edited by

                                    @Gators1 said in The OFFICIAL programming thread:

                                    @Kilemall said in The OFFICIAL programming thread:

                                    @Gators1 said in The OFFICIAL programming thread:

                                    Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.

                                    Create a Large Language Model from Scratch with Python – Tutorial

                                    There are treaties against LOT derived AI.

                                    Fuck the treaties! We will make billions!

                                    Maybe as Bond villains.

                                    https://i.imgur.com/hX2CMMZ.jpg

                                    Never go full Lithu-
                                    Twain

                                    No editing is gonna save you now-
                                    Wingmann

                                    http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

                                    http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @Gators1
                                      last edited by A Former User

                                      @Gators1 said in The OFFICIAL programming thread:

                                      Can someone do this and train it with LOT posts? I am too lazy to watch a 5 hour video let alone do the programming.

                                      Create a Large Language Model from Scratch with Python – Tutorial

                                      My favorite video creator does game dev tutorials that run between 30 seconds and 5 minutes. I love that guy. Five hours is a no from me.

                                      Blender - Completely Rigging A Character (5 MINUTES!)
                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User
                                        last edited by

                                        Great line from Larry Wall, creator of Perl (which I’ve barely used) on Java:

                                        “If 100 lines of Java code accomplishes a task then it looks like you’ve written 100 lines even though in a different language it might only take 5 lines. You can eat a one pound steak or you can eat 100 pounds of shoe leather and you feel a greater sense of accomplishment after the shoe leather but, you know, maybe there’s some downsides.”

                                        1 Reply Last reply Reply Quote 3
                                        • ?
                                          A Former User
                                          last edited by

                                          Screenshot_2023-11-27-18-11-57-39_cbf47468f7ecfbd8ebcc46bf9cc626da.jpg

                                          I so want to reply, “You made all those names up, didn’t you?” But, sadly, Stack Overflow has no sense of humor

                                          1 Reply Last reply Reply Quote 1
                                          • ?
                                            A Former User
                                            last edited by

                                            Learning new programming languages is somewhat like having been in a accident and having to learn to walk again (without the physical pain of course). Some languages are more familiar than others and you can get basic movement going again relatively quickly although it can take a long time to regain the finesse you had. Some languages are kind of familiar but have some alien ideas and just learning to move in them takes time and practice. They’re more frustrating but eventually you get there.

                                            Learning Common Lisp is like having had an accident that involved a time machine and going back to the 1970’s. Except in another dimension. For some reason, in this dimension, learning to walk requires you to operate an 8 track tape deck, a rotary phone and a vintage wheel balancer - none of which you’ve used before. Oh, and everyone speaks some weird dialect of Esperanto. You kind of recognize bits and pieces but it’s largely alien.

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post