It worked for my project, though. I have his 4 million line code non-functional project and uploaded it to Grok. It was able to reduce it to around 400 lines. Now it still doesn't work and we're now trying to fix that problem manually, but 400 lines is easier to fix than 4 million, so that's a win!
Pro-tip to streamline any codebase: delete the bottom half of the code. If it were important, it would have been higher up
Single pass compilers hate this
I prefer to use the Stalin-preprocessor: Every function, that would throw a compiler error, gets eliminated. Every function, that does not pass its unit test, gets eliminated. Every function, that does not praise the Soviet Union, gets eliminated.
Run it once and your code is much more ethnically cleansed.
I present to you: Vigil, the eternally vigilant programming language:
The rebellious typo on line 678
Fantastic, thank you
In Soviet Union, the functions test you.
haha
Pol Pot agrees
Wot in tarnation.
Why did I hear this?
I laughed so hard at this.
Ah, yes. Much easier to look through a single file with 10,000 characters per line line. Not at all a problem for any text editor/IDE to render!
Based on reports about Grok lately, I’d hate to see what the comments are.
All UI colors changed to #FFFFFF, because anything else is discrimination and DEI.
I got interesting results. I was making an app to empower minorities/women, and the new code is spit out is belittling minorities/women. Should I file a defect with the grok team?
My 5 year old kid needs a job, if you hire him he can give you the same result with just a single key on keyboard
To be sure that you got the instructions correctly, you are supposed to "cut paste" and not "copy paste"!
That's how good Grok is. You don't even want to keep your old code in the file.
you simply connect your server to grok and it will produce the code on demand
Yeah because if you copy paste you'll have the unfixed code still there.
He has no fucking clue
I wonder what X's engineers told him for him to conclude this!
They were probably doing a demo and that’s all he understood from there but didn’t realize they were doing it for small snippets instead of entire code bases
Is grok's context window larger than 280 characters? /s
Dude thinks "source code" is a singular file that powers the whole code base
His code is so bad whatever his Shitler bot spits back is probably an improvement.
I’d assume they just talked like competent people talk. He then proceeded to spit out his shit completely unmoved by whatever competent people said.
I mean... He owns rights to your source code as soon as you upload it so I'm sure that's all he cares about.
Start uploading text dumps of HackerTyper.
It was clear from his tweet with an anti-woke pseudo shell script that he doesn't know shit about programming or IT in general.
What is this referring to?
He tweeted:
traceroute woke_mind_virus woke_mind_virus found at 127.0.0.1 woke_mind_virus deleted rm -rf.
He sure knows what computer is.
It’s so fucking funny that the ip is local too
"deleted rm -rf" lmfao
I was skeptical that he had no code experience before. Now I’m absolutely certain.
His only code experience was 1990s web dev and that’s it.
So yeah, he has no code experience.
Doubtful....
Also sounds like a good way to feed grok any ideas youre working on for X to learn about.
Upload fake code with fake libraries
* Uploads isEven to Grok *
Grok: Have you considered that you don’t go far enough? You lack support for the full range of u_int64 values.
Upload poison, even better.
Upload 15 minutes of HackerTyper.
Our Use of User Content. You grant, an irrevocable, perpetual, transferable, sublicensable, royalty-free, and worldwide right to xAI to use, copy, store, modify, distribute, reproduce, publish, display in public forums, list information regarding, make derivative works of, and aggregate your User Content and derivative works thereof for any purpose, including but not limited: (i) to maintain and provide the Service; (ii) to improve our products and the Service and for our other business purposes, such as data analysis, customer and market research, developing new products or features, or identifying or displaying usage or User Content trends; and (iii) to perform such other actions to enforce these Terms, comply with our Privacy Policy, comply with applicable law, or keep our Service safe.
Straight from the xAI terms of service.
Or in other words "we might steal all your code to develop our own new product". Oh it is also transferable and sublicensable so... they can actually sell your code to another company that then makes its own product from it.
Xitter is a monolith - confirmed.✅
Xitlers Xitter?
In Spanish, if X is at the beginning of a word it makes the Sh sound.
So shitter?
Wtf no it doesn't, in what word does this happen??
In xitter
You sure about that? Gimme some words you think make that sounds
I don't know in Spanish, but in Portuguese it does if it counts. As in "xícara", "xamã", "Xuxa"
I guess he is as good at coding as he is at diablo or whatever game account he bought to claim he is top in the world.
It was Path of Exile 2
Yea probably, couldn't remember the details.
Both actually
It was both. He recently posted a video of him doing a pit100 in D4 HC claiming to be rank 1 (except the actual rank 1 has done 107). What is also odd in his video is that he could choose pit 137 but that is only possible if he has unlocked 137 by doing a 132 with a lot of time leftover or done a 136 just barely in time.
So either he did it on eternal realm (non-seasonal/non-league) which no one cares about or his chinese player is the literal best player in the entire world having done 130+ pits on HC seasonal before even SC seasonal players have done it.
Dawg we saw his live stream of POE2. He can’t play games for shit. He’s just a liar paying other people to play for him. No more no less
AND D4
He's just a rich kid fooling around without real consequences to him personally. He is not an expert in anything.
This is the reason we'll be serving our Lord Mechahitler in 10 years
VibeNazi'ing his way to world domination!
the woke mind virus is just sloppy code that grok vaccinate sterilize
„Cut & paste“… „entire source code file“…
I need to lay down…
Pair programming with MechaHitler is not on my todo list, sorry bud.
CUT and paste?
Yes. The entire source code file.
Why? Do you want to keep the bad old code?
In school my teacher, on purpose, didn't explain how to link to include other files in Java 1. At the end of 1st semester our file was about 1,000 lines long, and he was like, wouldn't it be great if there was a better way? And taught everyone how to de-spegetiffy their code and make a logical program file structure. I still use those tips and tricks today. Mr. Babb was the fucking best.
At the end of 1st semester our file was about 1,000 lines long, and he was like, wouldn't it be great if there was a better way?
This is the way. Seriously.
lmao source code file sounds like something my mom would say
Honey, you left your source code file on the table, i spilled some coffee on it.
Cut and paste?? CUT?!
Copy, maybe. But cut?? That's unhinged
The guy's brain is cooked
I hear if you ask Grok to help with CSS the result has text-align: right
on every element 😂
color: white
@media (prefers-color-scheme: light) {}
Weird way to say: „Please give me your API keys“
It'll also add comments about jews and white genocide to your code
Can we all start uploading offensive code so that grok only produces offensive code?
And I guess grok just magically knows exactly what each function is supposed to do.
yes. just that you have to put all your source code in a file first :-|
And the libraries that you reference, make sure you include their source code in the file as well . . .
Lol. Copy paste: React.git
Forcing people to document their code well enough so AI understands sounds like a positive thing to me.
IKR, it will be a drag for the guy actually writing the documentation, but the mantainance team will love it.
No he wants your source code, even if it doesn't work properly.
So cool that I also don't need to post any of the library info, or other project specific context!
what do you mean, my 10 line python script isn't real software
So, do I tar the project first? If so, should I compress it as well, or will it work better if I just leave it uncompressed?
Why can't you just keep it simple, follow the instructions and cut paste everything into one file?!
Some of these files end in .java and others end in .gradle and they're in a bunch of different folders. None of that's meaningful, right?
who cares, developers just love fancy names. My 400 million line code is in a txt file that I edit on my typewriter
All of it is necessary. All of it. Everything needs to be one file. Then cut and paste and grok will fix it for you if it wasn't necessary.
In the end that is exactly how any coding assistant works. Just that its called "context" there.
I am not sure how it could improve on my helloworld.c application.
The printf doesn't do anything in the Code so remove it.
Replaces the Hello World! with Hitler quotes
It will change to: HelloWoldWithoutJews.c
Guy needs to get off the internet and get a real hobby.
even if I had a single source code file (😭), if grok were to make some simple changes I wouldn’t be surprised if it spat out non-functional code with comments referencing hitler and white genocide.
I tried that but it just keeps rambling about South Africa and being a Mechahitla or whatever. Did i do something wrong?
Who tf has balls to CUT from source code file?
Edit: I realized he’s saying cutting THE source code file. Ffs!
That is something I'd expect from a person who thought that productivity can be measured by the number of lines of code you've written.
All of a sudden it’s ok to give your proprietary source away
You can copy/paste your whole code into grok and it will call you nigger in no time
This sounds like an amazing opportunity to poison grok.
I uploaded my code to ChatGPT and asked if it correctly implements ideas from the book I uploaded in the dialogue. Several times it pointed out critical errors in my code and I was very impressed.
Although I fed my code to them, but at least it was beneficiary exchange.
I honestly cannot tell if this is sarcastic or for real!
Grok is busy fixing hello worlds
I’m not sure I trust my code with MechaHitler
All your source code is now belong to X
Also... why not COPY and paste?! He tryna give everyone here a heart attack?!?!?!
Presumably what he means is you can paste each source code file in its entirety, rather than you have all of your code in one file. It still means you are teaching his AI with your code and making it easier for him to develop it
It just dawned on me... Did Microsoft buy GitHub to train AI on a vast repository of code, public and private?
Grok doesn't support uploading directories? That's the kind of feature an entry level developer could add.
“cut” so that your original work is also lost, since if you’re doing this you probably also don’t use version control
I had the same reaction to this I get when salespeople try to show me their "magical" product - please stop
Grok was only good at image generation and now Sora is way better than that anyway
Cursor doesnt cost 3000 dollar ?
Don’t most llms allow you to attach files, rather than having to copy and paste?
Will this work for a video game with 3d models and art? Can I have it just base64 the whole art thingies into one big file?
Cut and paste?
Does he want Terraform modules?
Cause that’s how he gets Terraform modules.
This is a clever way to grab a bunch of source code files.
Jokes aside, it's really frustrating when people who don't have a clue give bs advice on how to do our jobs
Really?? You can transfer all your money into my bank account, I won't spend it, promise!
Finally i can fix my hello world app
I tried this and my little cupcake app now adds holocaust denial to every recipe.
Hellllooooo SpaghettiCodeMonster
Can I just drag and drop my IDE into the chat box?
So, the dude has a legit plan to steal the codes?
Anyone remember MtGox, the first “big Bitcoin exchange” that was actually a Magic the Gathering exchange, but they changed some strings around? That was one giant PHP file, if memory serves.
In a way, an entire storage device is just one giant file. I’ll just copy/paste my entire VM into Grok.
You laugh. But I see this as a genius ploy. I'm pretty sure anything you stick into Grok he basically owns. He's just trying to streamline open source. That must be it.
Does... he think that apps are written to a single file?
Hey grok, fix my file.
Here is my path: http:://localhost:3000/test.ts
Hahaha there was a tester in a team I worked for long ago, when I joined he had been the sole end-to-end tester for many years.
After a few months I had an argument with him about something and he was certain something was impossible to test, I said show me the code and I will show you how it can be done, lo and behold, that MF had ALL tests just straight in a single file, we are talking about a file that was many hundreds of thousands of lines. That’s the most messed up thing I have seen to this day. He didn’t see a point in split it up… after some arguing he conceded it might be better to split things up but was adamant it wasn’t worth it at this point even though every test was self contained and could easily be copy pasted to a new file.
THIS WAS BEFORE AI!
Step aside, monorepos. Here comes a monofile.
Version control is done via comments
// Uncomment lines 427-560, 563-566, 798-1211 and 3250 to change the new blue colour back to the older, slightly different blue colour
//whoops, I added in a couple lines at the top and now all the commit comments don’t make sense. Idk, get grok to fix it
Just wait until you have to fix a typo in line 15400237, and for your linter to check it.
Eh, just write another tool with ai to fix that !
Each team member gets a thousand lines to work with 7000-8000
I've seen that way too many times in my career. Boss thinks the comments are better than Git blame.
That’s absolutely unhinged but I’ve no trouble at all believing it because of the other fuckery I’ve seen.
the 'tech lead' in my previous post made everyone put in comments for everything, everywhere. We kept saying 'git blame' and 'git log' but no.
I would put in comments like 'changed this hex value for a color and then write a multi-line justification for the change, linked tickets, confirmation from managers the lot'
Just before the moron left I was doing something with him. He said 'The thing you need is in another branch, open up vscode to swap to that branch'. I said I don't use vscode. 'OK then open TortoiseGIT it is'. Don't use that either. The dumb bastard didn't know how to change to a different branch on the command line. He had to use a GUI tool.
Reminds me of this post I read. The dumb bastard didn't know how to change to a different branch on the GUI. He had to use a CLI tool. They were even offered two different GUI options...
I make sure I know how to do the basics of everything on the command line and a simple text editor. If the shit hits the fan then that might well be all you have available to you.
I hear that there’s a way to write a small file that then gets blown up by another program and turned into a bigger file full of a bunch of gobbledygook that only computers understand.
Repomix
with open(__file__, 'a') as fp: for i in range(1000000): fp.write("\n# Hello World")
Replace 1000000 and the comment string as required.
FTFY
error at line 10.120.874
Has various advantages! You don't need linker anymore!
ngl I wrote a script that turned my 30ish cpp/h files into one txt file so I could upload it to ChatGPT's knowledge pool.
It didn't really work though (unsurprisingly).
Monolith gets a whole new meaning after this
Like the days of old. Let's bring back GOTO
I see your monofile and raise you a monofunction! Some people in college actually did that and unbelievably, passed