Freewill Tiger
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 1 year ago

"Source code file"

gregtech.eu

message-square
218
link
fedilink
1

"Source code file"

gregtech.eu

Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 1 year ago
message-square
218
link
fedilink
alert-triangle
You must log in or register to comment.
  • paulbg@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    sounds like a very productive team💀

  • Spice Hoarder@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    This just confirms Twitter is a 1M line BASIC program.

    • YtA4QCam2A9j7EfTgHrH@infosec.pub
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Think of all the GOTOs

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Elon goto hell

        • YtA4QCam2A9j7EfTgHrH@infosec.pub
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          GOTO considered harmful, except in this case

      • ChickenLadyLovesLife@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        More like all the On Error Resume Next statements. Which wasn’t even the worst thing about Visual Basic! VB also had the On Error Resume statement. On Error Resume Next at least moved on to the next line after an error occurred; On Error Resume just re-executed the error-generating line, I guess on the assumption that something would eventually change there.

        • locuester@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          There would just be one of those, at the top of the 1 file…

          • ChickenLadyLovesLife@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            On Error was used within a function, so you would have one (or more … or less) per function.

            • locuester@lemmy.zip
              link
              fedilink
              English
              arrow-up
              0
              ·
              1 year ago

              Oof indeed! After 40 years, I forgot it even had fns

              • ChickenLadyLovesLife@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 year ago

                I started with VB3, which didn’t have custom classes. I have no idea how I did anything back then, but at least it was better than TurboBasic.

                • locuester@lemmy.zip
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  1 year ago

                  I did years of gw-basic, then ms quickbasic, j++, java, c#, now rust.

  • negativenull@piefed.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Get popcorn ready

    Upload the entire Linux kernel, then submit the “fixed” code as a PR to Linus.

    Enjoy popcorn

    • CaptDust@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      My sibling in christ, we are trying to code not cause a NATO conflict.

      • methodicalaspect@midwest.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        I’d love to see Linus verbally bitchslap the fuckwit. Or physically, that’d be cool too.

        • AnarchistArtificer@slrpnk.net
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          I think that Linus becoming less of an abusive asshole over the years has been a positive development, but I wouldn’t mind the return of the old for this event

        • Pup Biru@aussie.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          i’d love to see linus revoke twitters license to use linux somehow

    • Avicenna@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      make sure to mention that the fix is by Grok for maximum lols

  • Vince@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Hmm, can you upload files? Wonder if they set an upper limit. Wonder which language would burn the most cycles?

    • chiliedogg@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Knowing how half-assed they’ve been deploying Grok a ZIP bomb would probably work on it if they allowed file uploads.

      • BassTurd@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I really want someone to try this and report back. It really does feel like something that could execute.

      • EpicFailGuy@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        not the same thing at all, but there’s already been a couple of pretty high profile “prompt injection” malware cases out there.

    • KickMeElmo@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Ask for all output in brainfuck.

      • Vince@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        bf was my first thought, but I would think that would be very easy to parse for computers, and hard for humans. So maybe something that’s a lot more verbose?

        • blargle@sh.itjust.worksdeleted by creator
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          How about feeding it a bunch of Twitter source code and asking it to translate into JSON Programming Language? Maybe it’ll somehow accidentally hack/exploit itself.

          But seriously, no one should be using Twitter or interacting with Grok at all, even just to fuck with it.

        • KickMeElmo@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Could go for a middleground. Verbose -and- obscure. Check out fetlang when you’re not on a work computer.

        • Grendel@tiny.tilde.website
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          @Vince @KickMeElmo malbolge is computationally intense to generate. It’s self-modifying, is ternary instead of binary, and after each operation the next opcode gets replaced by its mod 94 value.

          It’s like the insane sudoku of coding.

          https://en.wikipedia.org/wiki/Malbolge?wprov=sfla1

      • MrLLM@ani.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        I have asked several LLM to output brainfuck and Malbolge, but none of them seem capable to do so, even those that implement train of thought, me included ofc.

  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Why are all my variables suddenly named after SS officers?

    • cub Gucci@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      if (hasBillion) { throw new NaziSalute(); }

    • kambusha@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Führer loop

      • ch00f@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago
        • Auswitch statement
        • V2latile variable
        • Goebboolean
        • Zyklon C++
        • Left shift, Reich shift
        • Open and close Parenzer
        • Iron Cross-compiler
        • kibiz0r@midwest.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          Thanks I hate it!

    • Taiatari@lemmynsfw.com
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      It’s for familiarity, that way you can remember the variables better. taps head

      /s obviously

      • PattyMcB@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Modern problems…

        • noodly guy [he/they]@lemmy.myserv.one
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Require traditional 1933 solutions!

  • UnderpantsWeevil@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I am a professional encoder and I always put all my codes in a single big file marked EXE for faster execution.

    • PattyMcB@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      James? I told you not to share or office secrets!

      • kambusha@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        What does the office secrete?

        • PattyMcB@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Garbage code. Sadly

          • NotSteve_@piefed.ca
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            Fucking James 😤

    • skuzz@discuss.tchncs.dedeleted by creator
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      4 months ago

      deleted by creator

      • ricecake@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        No, that makes them slower because theyre leaning into the wind. You want to try to mostly use A’s, because they’re the most aerodynamic, and anything else should be formatted as subscript to keep code size down and reduce drag. C should be avoided at all costs because it’s just going to catch the wind.

        • entropicdrift@lemmy.sdf.org
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Conclusive proof that D is faster than C, 2025

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      marked EXE

      Ok, I’m taking from it that you use a permanent marker pen… I just don’t know why you execute your files, but since paper guillotines are so fun to use, I’m assuming it’s just for amusement.

  • shalafi@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Tempting to try this and diff it. My most complex PowerShell scripts aren’t testable as they were company/task specific. Plus, I killed my X account long ago. :(

    • Morphit @feddit.uk
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      You’re X account… is Aladeen.

      : (

      :)

  • Aurenkin@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Do you have to print it out and scan it first?

    • resipsaloquitur@lemmy.worldBanned
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Only if you don’t have a fax.

  • Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    how does the AI know what the rest of the project is like? Or what the purpouse of the file is?

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      See, that’s the thing. If you take a charitable interpretation of what he’s attempting to say, it still doesn’t make sense.

      You paste a full file from a project into Grok and it “will fix it for you!”

      If you gave me, a human, a file and asked me to fix it, before I did anything else, I’d ask you “ok, what’s wrong with it?” Any human who didn’t and just dove right into trying to fix it would often just give you a “working” program that still didn’t do what you actually wanted. Sure, sometimes the answer is obvious, it doesn’t compile, or it generates unexpected errors. But, often when you hear the answer, the response is “ah, well, I think you’ve overlooked something when thinking about the problem, have you considered X and Y?”

    • CaptDust@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      What do you mean “rest of the project”? Don’t you put all of everything into a singular neatly contained file? It’s way more optimized that way

      • 0ops@piefed.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        That’s how I read the tweet, dork never got further than Programming 1

      • Morphit @feddit.uk
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        That’s Link Time Optimization, right? Put everything into one place for the linker to optimize.

        • MonkeMischief@lemmy.today
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          I thought Link Time Optimization usually involved at least an ocarina…

      • potatoenjoyer@kbin.earth
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        All my source code is in one .h file

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          A hentai file so you can goon while you code? My god , you’re a genius. Elon musk needs you at twitter asap

      • Weirdfish@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        With the obscure language I use for work, I do tend to keep each system to a single file, even though includes and modules are supported.

        Granted, they are generally between 500 and 5000 lines, and are usually written from scratch.

        That being said, there is a 0 percent chance I’m going to be feeding anything I write into Grok.

  • Evil_Shrubbery@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    So “don’t talk to strangers” or “don’t give your credit card info to strangers” never really reached the audience, did it?

    • AreaKode@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      This is the future. Robots are more people than people now!

      • Evil_Shrubbery@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Human rights were made for megacorp’s robots anyway.

  • neidu3@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Using Grok to develop Grok… This sounds like Model Collapse with extra steps.

    • ricdeh@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      There’s nothing wrong with writing code in a text editor. Plain vim is the best imo

      • LadyMeow@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Vim gang, rise up!

        • swab148@startrek.websitedeleted by creator
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          :q!

  • mcforest@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    It would be crazy if something like that could be realized as an IDE plugin for something. But clearly Elon himself only writes code in Notepad.

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I dunno if you’re joking, but yeah there’s IDE plugins that do this. GitHub Copilot grabs context from files in your edit history and you can tell it to edit, refactor, “fix” etc. selections. The more complex actions, the less likely to succeed, though.

      • thesmokingman@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I assume this is Poe’s Law in action. Elon historically doesn’t understand shit about tech so the commenter is just highlighting something that’s been GA for other tools for years.

      • mcforest@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Sorry for not indicating I was joking, it’s exactly what the other commenter says.

        https://plugins.jetbrains.com/plugin/1856-grok/ Looks like people already made IDE plugins for Grok in IntelliJ and also VSCode. So yeah, it’s just Elmo being a moron.

  • maxwells_daemon@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    It will definitely not report back to Musk on your proprietary code…

    Because Musk wouldn’t understand shit, it’ll report back to some Indian guy instead.

  • QuantumTickle@lemmy.zipdeleted by creator
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Is he using the @ of the handle as part of the grammar of the sentence? Have I misunderstood @ all this time?!?

    • T. Hex@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      The first @ was silent, duh

    • Midnitte@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Crazy that not only does he not know how programming works, the owner of Twitter doesn’t even know how Twitter works.

    • Beacon@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      On some platforms if you write @username anywhere then it will act like a tag, or notify the user that you mentioned them, or other similar functionality

      • DesolateMood@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        He’s referring to

        This is what everyone @xAI does.

        Which Elon probably (maybe?) meant to be

        This is what everyone at @xAI does.

        • Beacon@fedia.io
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          I’ve never seen anyone write in that second way, I’ve only ever seen people write in that first way

  • Korhaka@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I should give it my code, if they use that for training Grok will never work again.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 21 users / day
  • 243 users / week
  • 996 users / month
  • 3.65K users / 6 months
  • 0 local subscribers
  • 33.4K subscribers
  • 2.21K Posts
  • 57.3K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org