PHP code generated by GPT-2
gist.github.com
gist.github.com
outputImageProviderFromBufferWithPixelFormat:pixelsWide:pixelsHigh:baseAddress:bytesPerRow:releaseCallback:releaseContext:colorSpace:shouldColorMatch:
kCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange
Imagine debugging code all day everyday for life. Oh wait...
"I’m not the cleverest man in the world, but like they say in French: Je ne suis pas un imbecile [I’m not a fool]."
PHP should be intentionally used as training material.
You forget html and JS is perfectly valid syntax to find in a .php file.
PHP, not so much, only if the server returns source by accident.
At first I thought it was something to do with a second revision of GUID Partition Tables.
...and now I hope that searching for code in the future won't become polluted by such spam.
This will be far more readable to PHP devs; https://gist.github.com/navarr/a20284c0533ea6f6ebc0946d62c96...
I am literally living in the streets, freezing my ass off and hungry, looking for any kind of programming work for the past month, and now I have to see some AI bot generating more inexpensive shit code that I am sure some manager will convince themselves might get them that final career promotion by lowering their labor costs to near zero.
WTG, geniuses, for developing AI that before you know will have all of us living in the streets and hungry...
I'll save you a spot.
Gingrapp.com is looking for a developer. Our parent company owns many other companies as well and are always looking for developers.
My personal email is on my profile. Please feel free to reach out! I’ve helped find work for other devs down on their luck here on HN successfully.
I don't know what Las Vegas is like, but there is a lot of LAMP/WordPress work here in Toronto. (Frankly, I want nothing to do with it, but there's plenty of it and they pay alright. Some also offer PT or FT remote)
---
The company I'm with is even hiring for such a role: https://twitter.com/scarbiedoll/status/1095714031023714305
---
Best of luck
My next comment is you are in the wrong industry if something like this scares you. You have the wrong attitude. Instead of lamenting about a new tech replacing your current skills, you should be asking yourself, how can I learn this new technology and put it to work for me?
Some people may say someone in your position has more important things to worry about and I would agree. Get yourself the first job you can find (tech related or not) and get your basic needs in order. Then invest your time in learning a tech with some staying power.
Jumping from short lived and volatile coding jobs isn’t a long term solution.
However, you don't have to worry, free open source tools and off the shelf B2B software will make your job obsolete long before AI is actually a time saver when writing code.
Are you saying that "a lot" isn't almost semi-trivial to obtain, seeing how much code is available online?
And while it makes tons of obvious mistakes in English (which is a much more flexible and forgiving language), its PHP is somehow nearly syntactically perfect?
-
Examples from GPT-2 GitHub have a lot of code:
https://raw.githubusercontent.com/openai/gpt-2/master/gpt-2-...
To me, this doesn't seem like an argument in favor of this model "understanding" English (or C, or PHP). It seems more like an indication that it memorizes way more information than the paper implies and then does clever word substitution.
See also the example in the paper of accidentally learning to translate into French even though they tried to remove French pages from the corpus.
I'm not sure what point you're trying to make. Do you think a neural net is not capable of generating the code in the gist? Because it's pretty easy to do that. The harder part that we're still trying to figure out is getting that code to do something meaningful.
https://gist.github.com/moyix/dda9c3180198fcb68ad64c3e6bc7af...
The first
// web/application/handlers/add-full-no-app-directly.md (1071 bytes)
and the last
public function registerPipeHandlerInterceptor
https://raw.githubusercontent.com/openai/gpt-2/master/gpt-2-...
The PHP sample is Sample 195.
Your model would be based on NLP/votes of the questions, NLP/votes of the answers, and separating the text from the code in both.
The fact that many markdown/code formatting tools have you select the language for syntax highlighting is useful for classifying code as well.