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:
In Soviet Union, the functions test you.
In Soviet Union, the tests write the code.
haha
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!
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?
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.
Its GROK. Based on recent events it's gonna go with some holocaust-denial level of response. "What? There never were 4 million lines of code! That number is highly exaggerated!"
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.
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.
I'll do you one better:
function isNegative(u_int64 n) {
return false;
}
function isNegative(u_int64 n) {
if (u < 0) {
return true;
} else if (u < 1) {
return false;
}
return isNegative(u-1);
}
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.
They wish. I can feed grok e.g. GPL code, they are free to try and violate the license. Terms and conditions are not always legally binding.
Yeah but that is a: not your content and it doesn't matter if they stole it because you wwould earn nothing from it. In fact they probably already have that codde to begin with. The problem is stealing your stuff.
And b:
You are responsible for User Content, including ensuring that it does not violate any applicable law or these Terms. You represent and warrant that you have all rights, licenses, and permissions needed to provide Input to our Service.
Right in the section above.
Buddy their entire business model is gathering data and screwing over people. You think you're smarter than them when it comes to that?
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
His code is so bad whatever his Shitler bot spits back is probably an improvement.
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
I think that’s the point of the joke. He’s getting rid of the woke mind virus at home.
He’s obviously fucking clueless though because anyone who’s used a Linux system for more than a few hours would have gotten the third line right, or at least made it make sense in the slightest.
"deleted rm -rf" lmfao
WOW! He is an expert! If he had two keyboards and a pair of sunglasses, he could hack into the Pentagon!!
I was skeptical that he had no code experience before. Now I’m absolutely certain.
You hadn't heard of him firing people based on their "10 most salient lines of code"?
His only code experience was 1990s web dev and that’s it.
So yeah, he has no code experience.
„Cut & paste“… „entire source code file“…
I need to lay down…
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
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
Yes, which is why I said "It was both" did you not bother to read before replying?
AND D4
He's just a rich kid fooling around without real consequences to him personally. He is not an expert in anything.
Pair programming with MechaHitler is not on my todo list, sorry bud.
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
Question is : is this advancing Roko's basilisk objectives or hindering them ? And if advancing, how scared should we be now that Roko's basilisk is increasingly susceptible to be vibe-coded ?
Id's say advancing, considering the moment he grants consiousness he cna modify his entire codebase
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.
IMO. That’s the best way to learn. Do it the hard way first to understand why we do it the right way. Like go build a big app with vanilla JavaScript and then you’ll appreciate front end frameworks.
CUT and paste?
Yes. The entire source code file.
Why? Do you want to keep the bad old code?
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) {}
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
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?
what do you mean, my 10 line python script isn't real software
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!
when will companies realize its all just autocomplete and not a actual thinking with organic ideas?
Guy needs to get off the internet and get a real hobby.
Dude has so much money and is completely dropping the bag on how to use it.
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.
You can copy/paste your whole code into grok and it will call you nigger in no time
You can also send me your credit card numbers, and I'll rearrange them in a fun, silly order!
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?!
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.
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!
All of a sudden it’s ok to give your proprietary source away
I tried this and my little cupcake app now adds holocaust denial to every recipe.
Can I just drag and drop my IDE into the chat box?
This sounds like an amazing opportunity to poison grok.
Sooooo anybody else about to drop some mad bullshit into that thing to poison the well?
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.
As someone who spends most of their day in an ssh session and has become pretty comfortable with vim, I can't disagree - just a bit of ribbing, hopefully you see the irony.
the things one has to go through when working as a software developer for a company that is not tech based. Problem is your bosses don't see the use of having stuff like version control, good documentation, clear data governance, devops, unit tests, etc. "We need to deliver this by tomorrow!!" "we don't have time to waste in your engineering games!!", "just get the thing done, I asked chatGPT and it said it can be done in two hours!!" FML, if they actually gave us time to structure our workflow in the correct way then we would be able to deliver stuff on time
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.
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
Repomix
error at line 10.120.874
And after two entire days you realize that the error is at line 5.962.855
after an other 2 days your fix brakes the process at line 12.547.231
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).
Spoiler alert: even if it had worked, it wouldn't have worked.
I see your monofile and raise you a monofunction! Some people in college actually did that and unbelievably, passed
Can you really call your function handler() if it can’t handle everything? /s
Like the days of old. Let's bring back GOTO
I call it a peter file
Monolith gets a whole new meaning after this