There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Jimmyeatsausage , in Every Family Dinner Now

I’ll start worrying about artificial intelligence when customers can generate requirements specific enough for actual intelligence to decipher.

Kinda hard to build a prompt when they don’t even really know what they want until they’ve seen what they asked for.

CanadaPlus , in modern operating system running on a Reagan era computer

It should be possible, right? It’s not like we’ve gotten worse at coding. All the bloat is a function of people not caring, and to some degree different requirements.

I should check if lemmy.sdf.org is back online. Retrocomputing would love this.

Mentioning @CanadaPlus, so I can find this easier.

asexualchangeling , in X is just better!

Becouse I’m still on nvidia, when I get the framework 16" soon tm it’s getting Wayland

Johanno ,

The only reason why I am still on x11 is Green with envy. It doesn’t support Wayland yet.

And somehow I got into being a maintainer and now it is my job to fix that.

RandomLegend ,
@RandomLegend@lemmy.dbzer0.com avatar

NVidia RTX3070 here - absolutely no issues with Hyprland. Installed it like you would on any other system and i’m good to go.

Only thing i miss is just as @Johanno mentioned, i can’t use Green With Envy. Don’t need it though.

But NVidia isn’t a barrier for wayland anymore.

Johanno ,

Also for gwe it was Nvidia that didn’t support stuff it needed for Wayland. However it does now. I just need to implement a whole new api

asexualchangeling ,

But NVidia isn’t a barrier for wayland anymore.

I’ve heard that before recently, but tbth I really don’t want to mess with my system rn (barring updates), it mostly acts as a server lately sense I got my SteamDeck and that’s probably how it’s gonna stay as I really want to avoid accidentally breaking anything for the time being

When I get my batch 2 framework order I’m going to be a lot more willing to learn adout and experiment with Wayland, just becouse I know whatever I do on that it won’t interrupt what other people are doing who are connect to the aformentioned server on my older machine

Will I upgrade my other computer to Wayland? Maybe eventually after I’ve learned more about it and played with it some, but for the time being it’s just gonna stay as it is

RandomLegend ,
@RandomLegend@lemmy.dbzer0.com avatar

And that’s a totally valid approach. I didn’t want to push anyone into Wayland, i’ve dragged my X11 setup with me for as long as i wanted. I just wanted to show that NVidia is not the barrier anymore.

Holzkohlen ,

But NVidia isn’t a barrier for wayland anymore.

I disagree. When I used it recently it was still very much subpar compared to the AMD experience. It’s usable, but not to the point that I would like to use it.

RandomLegend ,
@RandomLegend@lemmy.dbzer0.com avatar

I installed Garuda-Hyprland on my RTX3070 last week.

And i have literally zero issues. Might go into detail what exactly you had issues with?

mcmodknower , in Returns a sorted list in O(1) time

you can even have a case where you return the first element of the list if the list is not empty, and it will still be O(1).

murtaza64 ,

you can make it sort the first k elements and it will still be O(1). Set k high enough and it might even be useful

xmunk ,

I set k to 50,000,000,000… that’s more items than my shitty computer can fit in memory (including swsp) but I am now happy to celebrate my O(1) algorithm.

kuberoot ,

By that logic, any sorting implementation is O(1), as the indexing variable/address type has limited size

0x0 , in Returns a sorted list in O(1) time

Besides the obvious flaws… is that parameter a list named list, shadowing the list() constructor?

infinitepcg ,

It works as long as you don’t call list() within that function.

Species5218 ,

That is a type hint

0x0 ,

Well duh. I wonder what happens if you shadow the list constructor and try to use it as a type hint…


<span style="color:#323232;">def foo(list: list):
</span><span style="color:#323232;">  def bar(thingies: list):
</span><span style="color:#323232;">    pass
</span>
Mesa , in Infinite Loop
@Mesa@programming.dev avatar

You guys are getting codebases?

NigelFrobisher , in Every Family Dinner Now

Any gains from LLM now would barely offset the complexity bloat introduced in enterprise applications in the last decade alone. And that’s not even taking into account the sins of the past that are only hidden behind the topsoil lair of cargo cult architecture.

sheogorath ,

After the report that codes made by the assistance of copilot are actually shittier than code written manually I’m feeling safe until the next breakthrough in AI development. Meanwhile I’m saving up gold for the eventuality.

state_electrician , in X is just better!

No Barrier for Wayland. :(

jwt , in You may call me a monster but I know I'm not the only one
Blackmist , in Bug Fixing

Yeah, but sometimes it works.

noddy ,

Good luck figuring out why it sometimes doesn’t work 🙃

CanadaPlus ,

Mmm, race conditions, just like mama used to make.

Aceticon ,

It’s even worse then: that means it’s probably a race condition and do you really want to run the risk of having it randomly fail in Production or during an important presentation? Also race conditions generally are way harder to figure out and fix that the more “reliable” kind of bug.

dev_null ,

Or it was an issue with code generation, or something in the environment changed.

Octopus1348 ,
@Octopus1348@lemy.lol avatar

There was that kind of bug in Linux and a person restarted it idk how much (iirc around 2k times) just to debug it.

wewlad ,

We call this sort of test “fuzzy”. If it’s really bad they call it by my own personal identifier of “unstable”.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Legit happens without a race condition if you’ve improperly linked libraries that need to be built in a specific order. I’ve seen more than one solution that needed to be run multiple times, or built project by project, in order to work.

abraxas ,

Isn’t that the definition of a race condition, though? In this case, the builds are racing and your success is tied to the builds happening to happen at the right times.

Or do you mean “builds 1 and 2 kick off at the same time, but build 1 fails unless build 2 is done. If you run it twice, build 2 does “no change” and you’re fine”?

Then that’s legit.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Yup, it’s that second one. 0% chance of success until all dependencies are built, then the final run has a 100% chance to work.

crushyerbones ,

This is 100% valid when dealing with code generation sometimes and I hate it

semi , in You may call me a monster but I know I'm not the only one

Hey URL, go and fetch your friend JSON!

Makes perfect sense.

TheBananaKing , in Returns a sorted list in O(1) time
blackn1ght , in Always

This isn’t my experience. I’m way more focused in the morning and then it’s all downhill after lunch. By the time it’s the evening I have zero motivation to do any code.

oce ,
@oce@jlai.lu avatar

My best focus is before lunch and before the end of the day.

CodingCarpenter ,

I’m the opposite I’m useless until after lunch

weird_nugget ,

Jokes on you, I’m useless all the time

Badabinski , in Every Family Dinner Now

lol, I'd love to see the fucking ruin of the world we'd live in if current LLMs replaced senior developers. Maybe it'll happen some day, but in the meantime it's job security! I get to fix all of the bugfuck crazy issues generated by my juniors using Copilot and ChatGPT.

scrubbles ,
@scrubbles@poptalk.scrubbles.tech avatar

So much hallucinated crap and shoddy answers. Just because it was AI generated doesn’t mean it was a good solution

anarchyrabbit ,

There is a reason Microsoft has branded it copilot…

aksdb ,

Headline: airline fires every second pilot; says the copilot is good enough to fly the machine.

wewbull ,

…because Tesla had already made the mistake of over promising with the “autopilot” name?

fidodo ,

It’ll be like when we were all supposed to lose our jobs to outsourcing

MajorHavoc ,

And when “web frameworks means we don’t need web developers anymore” and when “COBOL is basically plain English, so anyone can code, so we don’t need specialists anymore”.

wewbull ,

Millions did. It’s just that after a while the advantages stopped being convincing and the trend reversed. If the same thing happens here, expect to go jobless for a while until you’re needed again.

SakuraCosmos ,
@SakuraCosmos@programming.dev avatar

One of my uni lecturers does the whole “You are out of a job” thing. He’s a smart guy but he’s barley written a line of code in his life. This comes up frequently and everytime I ask him “Get CHATGPT to write fizz buzz in X86 ASM.” Without fail it will crash when trying to build everytime. This technology is very advanced but I find people get it to the the simplest tasks and then expect it to solve the most complex ones.

evranch ,

I tried using AI tools to do some cleanup and refactoring of some legacy embedded C code and was curious if it could do any optimization or knew any clever algorithms.

It’s pretty good at figuring out the function of the code and adding comments, it did some decent refactoring of some sections to make them more readable.

It has no clue about how to work in a resource constrained environment or about the main concepts that separate embedded from everything else. Namely that it has to be able to run “forever”, operate in realtime on a constant flow of sensor data, and that nobody else is taking care of your memory management.

It even explained to me that we could do input filtering by using big arrays to do simple averaging on a device with only 1kB RAM, or use a long long for a never-reset accumulator without worrying about what will happen because “it will be years before it overflows”.

AI buddy, some of these units have run for decades without a power cycle. If lazy coders start dumping AI output into embedded systems the whole world is going to get a lot more glitchy.

wewbull ,

This is how AI is a threat to humanity. Not because it will choose to act against us, but because people will trust what it says without question and base huge decisions on faulty information.

evranch ,

A million tiny decisions can be just as damaging. In my limited experience with several different local and cloud models you have to review basically all output as it can confidently introduce small errors. Often code will compile and run, but it has small errors that can cause output to drift, or the aforementioned long-run overflow type errors.

Those are the errors that junior or lazy coders will never notice and walk away from, causing hard to diagnose failure down the road. And the code “looks fine” so reviewers would need to really go over it with a fine toothed comb, which only happens in critical industries.

I will only use AI to write comments and documentation blocks and to get jumping off points for algorithms I don’t keep in my head. (“Write a function to sort this array”) It’s better than stack exchange for that IMO.

someacnt_ ,

Maybe the real “AI nuking the world” scenario was that it ie caused by the faulty information the AI hallucinated into existence

Clent ,

And those juniors don’t realize they’ve set themselves up to be forever-juniors since they aren’t learning how to do the basics themselves.

ignotum ,

I was helping someone with their programming homework, every time copilot suggested anything he just blindly added it, and every time i had to ask him “and why do you need those lines? What do they do?”, and he could never answer…

Sometimes those lines made sense, other times they were completely irrelevant to the problem, but he just add the suggestions on reflex without even reading them

MagicShel ,

I had to pull aside a developer to inform him that he “would be” violating our national security by pasting code online to an AI and that there were potentially repercussions far beyond his job.

He’s a lot slower now, but the code is better.

Lennnny , in Every Family Dinner Now
@Lennnny@lemmy.world avatar

This is why I’ve sided with the enemy and my career involves educating people on how to build AI automation.

scrubbles ,
@scrubbles@poptalk.scrubbles.tech avatar

I was afraid of AI coming from my job, so I decided to learn about it. And by learning about it, I learned its limitations, which are numerous.

Someday maybe it will be strong enough to take on an entire engineer – but it’s going to be a very long time until that happens. If anything, I’ve spent more time screwing with prompts making sure that they’re perfect to try to get better outputs. Really where I see our jobs going is prompt engineering, DevOps, and fine tuning

Lennnny ,
@Lennnny@lemmy.world avatar

Absolutely. AI is really good at single tasks of specific types. For example, it’s great for organizing your emails, or creating filler content for a website, or helping suggest responses for customer support people. And sure, it did an amazing job creating code for a Google spreadsheet so I could easily scrape radio websites for their competitions and win festival tickets for the seventh year in a row. But in all these things it’s incredibly one dimensional, and still needs a human to guide it. People come to my demo calls thinking that AI agents are fully possible and capable. Nope, not yet.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines