878
Bad coding (sh.itjust.works)
top 17 comments
sorted by: hot top controversial new old
[-] pkill@programming.dev 65 points 9 months ago

I mean, correcting a LLM until it spews out something that mostly works is just good old shotgun debugging, prove me wrong

[-] bobs_monkey@lemm.ee 12 points 9 months ago

No no, that's a very valid point. Get an llm to write this article, submit it and someone pay this man!

[-] Ephera@lemmy.ml 4 points 9 months ago

Personally, I feel like it has most resemblance with empirical science. So, not really much to do with programming or software engineering...

[-] Ravi@feddit.de 1 points 9 months ago

That's also why it falls in the area of data science. You develop a model based on available papers of similar tasks and refine the model and training with statistical methods.

[-] 0x4E4F@sh.itjust.works 2 points 9 months ago

Hey, it works in RCE 🤷.

[-] jaybone@lemmy.world -5 points 9 months ago

Is an LLM machine learning? In ML you are usually predicting a value based on values in the training set. That’s not really what an LLM does it seems. Maybe it uses some ML under the hood.

[-] pkill@programming.dev 12 points 9 months ago

LLM is pretty much guessing the next word

[-] Korne127@lemmy.world 10 points 9 months ago* (last edited 9 months ago)

In ML you are usually predicting a value based on values in the training set

No, that's just a small part of ML: Supervised learning. There also is unsupervised learning, reinforcement learning and a whole bunch of other things in machine learning; It's a way bigger field than just that.

And about your question: Yeah, LLMs are a prime example of machine learning. Very simplified, they use a kind of recurrent neural network to take inputs of arbitrary lengths and give outputs. They are trained on huge loads of data (text) to auto-complete the data (so that they get e.g. a sentence as input and give a second sentence that's likely the next sentence in the data as output). E.g. "Today I went" as input could generate "to school." as output.

ChatGPT is based on these LLMs like GPT-4 in the way that the start of the input data is commands in human language for the bot how to behave. (E.g. "You are called ChatGPT. You are not allowed to […]. You are helpful and friendly."), then adding the user input. The LLM then generates what the chatbot described with the given characteristics would give as an output based on the training set and it's returned as the output by ChatGPT.

[-] shiroininja@lemmy.world 30 points 9 months ago

How else would you write code? you write it, you run it, and do it again until it works.

[-] geogle@lemmy.world 20 points 9 months ago

Back in my ancient college days, compilers (C, FORTRAN) would take like 5 minutes or more, so it was really important to code carefully.

[-] Ephera@lemmy.ml 9 points 9 months ago

It's rather about changing things randomly.

Ideally, you work out the requirements. Then you formulate those requirements in code, via the static type system and/or automated unit+integration tests. And then you implement your code to match those requirements (compiler stops complaining and tests are green).

Ideally, you don't have to actually run the whole application to feel confident enough about your changes, although obviously you would still do that eventually, for example before publishing a release.

[-] Pyroglyph@lemmy.world 1 points 9 months ago

It's rather about changing things randomly.

I do this all the time when working with transformations (in personal projects). I know I need to take into account these 5 variables but I'm not sure exactly how they all fit together, and I really don't want to get a pen and paper out, so I just shuffle things and their operators about until it works or I get bored and do something else.

[-] unreachable@lemmy.world 28 points 9 months ago

brute force programming

[-] 1984@lemmy.today 17 points 9 months ago

I tried to learn machine learning but it was incredibly boring.

[-] Korne127@lemmy.world 8 points 9 months ago

I mean, everyone has their own preferences. It's okay if you don't like it.

I don't think you can say it's boring in general though. I personally think it's super fascinating.

[-] tryptaminev@feddit.de 6 points 9 months ago

I found it quite interesting, but we had a more theoretical focus. It is still a good bit of "magic" to me. Especially the whole Kernel stuff.

[-] AdmiralShat@programming.dev 4 points 9 months ago

Have you tried building simple ones to solve game puzzles? It's actually fun

this post was submitted on 24 Jan 2024
878 points (99.5% liked)

Lemmy Shitpost

26697 readers
3684 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 1 year ago
MODERATORS