What are you doing where it serves you well?
Ask HN: Those with success using GPT-4 for programming – what are you doing?
1–10 of 109 posts
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#2I just use Amazon CodeWhisperer as a nice autocomplete but that's it.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#3Regular Expressions. I hate doing regexps. It is excellent at them.
Wiki articles for an encyclopedia I'm developing. It is great at this, but occasionally I catch it hallucinating articles out of whole cloth because it has access to zero information about what I asked it about, so it just goes from the article title and imagines what it must be about.
I know where to use it right, and I've found my output has not only doubled since I started using it, I am enjoying coding even more than ever because it has got rid of the worst drudgery that would cause me to switch from my IDE to my browser and bring up HN to avoid working.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#4I probably could have spent more time framing the query to get better results.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#5Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#62. For more complicated tasks it requires good prompting. Example: Tell me three ways to fix this error, then pick the best way and implement it. . Without the "step-by-step" approach it almost never works.
3. It's pretty good at writing microbenchmarks for C++. They always compile, but require some editing. I use the same prompting approach as (2.) for generating microbenchmarks.
4. It's pretty useful for explaining things to me that I then validate later via Google. Example (I had previously tried and failed to Google the answer): The default IEEE rounding mode is called "round to nearest, ties to even". However all large floating point numbers are even. So how is it decided whether 3,000,003 (which is not representable in fp32) becomes 3,000,002 or 3,000,004?.
5. It can explain assembly code. I dump plain objdump -S output into it.
The main limitation seems to be UI. chat.openai.com is horrible for editing large prompts. I wrote some scripts myself to support file-based history, command substitution etc.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#7Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#8I'm now using the optimized Go code in production.
Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#9Re: Ask HN: Those with success using GPT-4 for programming – what are you doing?
#10It's saving me time (sometimes 2x speed up on certain, well-specified, tasks), and I enjoy using it. I wrote a blog post with some details on how it has helped me code the database: https://www.philipotoole.com/what-did-gpt-4-find-wrong-with-...
That said, the most recent release of GPT-4 seems a little more buggy[2].