Readit News logoReadit News
DougWebb commented on AI can code, but it can't build software   bytesauna.com/post/coding... · Posted by u/nreece
crazygringo · 5 months ago
> The people saying LLM can code are hard for me to understand.

Just today, I spent an hour documenting a function that performs a set of complex scientific simulations. Defined the function input structure, the outputs, and put a bunch of references in the body to function calls it would use.

I then spent 15 minutes explaining to the free version of ChatGPT what the function needs to do both in scientific terms and in computer architecture terms (e.g. what needed to be separated out for unit tests). Then it asked me to answer ~15 questions it had (most were yes/no, it took about 5 min), then it output around 700 lines of code.

It took me about 5 minutes to get it working, since it had a few typos. It ran.

Then I spent another 15 minutes laying out all the categories of unit tests and sanity tests I wanted it to write. It produced ~1500 lines of tests. It took me half an hour to read through them all, adjusting some edge cases that didn't make sense to me and adjusting the code accordingly. And a couple cases where it was testing the right part of the code, but had made valiant but wrong guesses as to what the scientifically correct answer would be. All the tests then passed.

All in all, a little over two hours. And it ran perfectly. In contrast, writing the code and tests myself entirely by hand would have taken at least a couple of entire days.

So when you say they're good for those simple things you list and "that's about it", I couldn't disagree more. In fact, I find myself relying on them more and more for the hardest scientific and algorithmic programming, when I provide the design and the code is relatively self-contained and tests can ensure correctness. I do the thinking, it does the coding.

DougWebb · 5 months ago
> Just today, I spent an hour documenting a function that performs a set of complex scientific simulations. Defined the function input structure, the outputs, and put a bunch of references in the body to function calls it would use.

So that's... math. A very well defined problem, defined very well. Any decent programmer should be able to produce working software from that, and it's great that ChatGPT was able to help you get it done much faster than you could have done it yourself. That's also the kind of project that's very well suited for unit testing, because again: math. Functions with well defined inputs, outputs, and no side-effects.

Only a tiny subset of software development projects are like that though.

DougWebb commented on Launch HN: Integuru (YC W24) – Reverse-engineer internal APIs using LLMs   github.com/Integuru-AI/In... · Posted by u/richardzhang
compootr · a year ago
I don't think it really matters to them. As a provider giving access to these platforms, they're not the user (and they didn't agree to the terms). the end user did, so it's on them to decide whether they risk getting terminated or whatnot
DougWebb · a year ago
If they have deeper pockets than the user, they're the ones who will get sued for abuse they enable.
DougWebb commented on GPTs and Hallucination   queue.acm.org/detail.cfm?... · Posted by u/yarapavan
HarHarVeryFunny · 2 years ago
Are we really still having this conversation in 2024 ?! :-(

Why would a language model do anything other than "hallucinate" (i.e. generate words without any care about truthiness) ? These aren't expert systems dealing in facts, they are statistical word generators dealing in word statistics.

The useful thing of course is that LLMs often do generate "correct" continuations/replies, specifically when that's predicted by the training data, but it's not like they have a choice of not answering or saying "I don't know" in other cases. They are just statistical word generators - sometimes that's useful, and sometimes it's not, but it's just what they are.

DougWebb · 2 years ago
I've never been worried about LLMs. I've always been worried about how people will use LLMs and how they will interpret the output of LLMs. Especially people who don't understand what LLMs are doing.
DougWebb commented on Show HN: If YouTube had actual channels   ytch.xyz... · Posted by u/hadisafa
DougWebb · 2 years ago
You should make the channels change the video they're playing on a schedule, and link to a tv guide listing that shows the schedule.
DougWebb commented on Show HN: If YouTube had actual channels   ytch.xyz... · Posted by u/hadisafa
DougWebb · 2 years ago
I really like how there are only 12 channels, and you don't get to choose what's on. The only way to make it even more like tv from a few decades ago would be if half of the channels were static.
DougWebb commented on Taking my diabetes treatment into my own hands   martin.janiczek.cz/2024/0... · Posted by u/mjaniczek
janandonly · 2 years ago
Very dumb question here, but I don’t dare ask it to ChatGPT.

What would happen to T1 or T2 diabetics if we would stop eating all sources of sugars and carbs? So no fruit, no rice, no potatoes and so on?

Would it be possible to survive and live comfortably in a state of Ketosis? Or is a 100% ketogenic diet simply not possible on diabetes?

I’m asking because my true question is: what if insulin becomes too expensive? Then what? Do we die? Or is there some form of diet that we could live on??

DougWebb · 2 years ago
T1 and T2 are completely different diseases. T2 should not be called diabetes. It should be called insulin resistance or chronic carbohydrate overdose.

I was diagnosed as pre-diabetic/T2. I started wearing a cgm and watching how various foods affected my blood sugar. I eliminated foods that caused spikes, and started cooking my own meals so I could control what went into them. I wound up with a very low carb diet of meat and vegetables, and a very stable blood sugar with NO spikes ever. According to my blood work and checkups I cured my NAFLD, cured my hypertension (including getting off drugs for that), and "cured" my pre-diabetes. I lost a lot of weight, but still have a lot more to lose.

I put cured in quotes because I don't think this diet can cure you once you're bad enough to need treatment. I think it can only put your disease into remission so that you don't suffer any health effects from it. Some of us just can't overeat carbs or we develop this disease, and the only effective treatment is to stop eating the carbs.

DougWebb commented on How I overcame my addiction to sugar   josem.co/how-i-overcame-m... · Posted by u/josem
xcskier56 · 2 years ago
My biochem is a little rusty but basically your body can create glucose (carbs) from amino acids (proteins) in a process called gluconeogenesis. Because your body will preferentially use glucose over fat and ketones for fuel, it will prioritize this pathway and turn down/off the one that produces ketones... hence dropping you out of ketosis.
DougWebb · 2 years ago
Your body doesn't prefer glucose over fat. Too much glucose is toxic, so your body will focus on reducing it first. Too little is also dangerous so your body will make some from protein if necessary. But only as much as it needs.

Fat adaptation is about shifting your hormonal balance and response to retrain your body to maintain a lower level of glucose, and to retrain your cravings and hunger.

DougWebb commented on Why is no one making a new version of old Facebook?   12challenges.substack.com... · Posted by u/louisbarclay
nostrademons · 2 years ago
Again it's an example of what working before not working in the future, though. Invite-only had worked great for GMail; it actually intensified the buzz. It failed miserably with Wave and Plus, showing that the same tactics sometimes work and sometimes flop.
DougWebb · 2 years ago
Gmail was invite-only to join and get an @gmail.com account, but once you had it you could interact with any email account user, and they could interact with you. GMail isn't a walled garden. Facebook, Wave, G+, etc are. That's why they depend on rapid user growth very early on when the hype is fresh.
DougWebb commented on Some fish live beyond 100 and get healthier as they age   nationalgeographic.com/pr... · Posted by u/prmph
Symmetry · 2 years ago
It's not clear from the article but animals can generally live quite a bit longer than you'd expect if they continue to grow for their entire life, which is true for some types of fish. Gunk that builds up inside or between cells gets redistributed over larger areas, as do cells that become senescent. And larger size means more space for memory T cells. Those are only some aspects of aging of course.
DougWebb · 2 years ago
So, getting fatter as I get older is a good thing? /s
DougWebb commented on Tesla owners in deep freeze discover the cold, hard truth about EVs   theregister.com/2024/01/1... · Posted by u/rntn
DougWebb · 2 years ago
Maybe, in climates that get cold, these chargers should be indoors? It's not like they need to worry about exhaust fumes.

u/DougWebb

KarmaCake day3322April 21, 2009
About
I've been a professional software engineer for the past 20 years. I consider myself a tool-maker, someone who creates tools that make work (and life) easier for others. Let me know the problems you or your business face, the tedious things, the complex things, the things that seem like "there must be a better way", and I'll work with you to create automated tools to handle those things, so that you can focus on the real work that makes your business great.

https://webbindustries.com

https://stackoverflow.com/users/story/73475?view=Cv

Freelance Software Consultant - Jun 2017 - Present

- https://webbindustries.com

Senior Software Engineer at Surround Technologies - 2011-Present

- https://surroundtech.com

Lead Architect at Experian Cheetahmail - 2010-2011

- http://www.cheetahmail.com

Senior architect at Wolters Kluwer Medical Research - 1996-2010

- http://www.ovid.com/site/products/tools/ovid/ovidsp_access.jsp

- https://www.youtube.com/user/OvidWoltersKluwer

View Original