Lurker News
With GPT so hot in the news right now, and seeing lots of impressive demos, I'm curious to know, how are you actively using GPT to be productive in your daily workflow? And what tools are you using in tandem with GPT to make it more effective? Have you written your own tools, or do you use it in tandem with third party tools?

I'd be particularly interested to hear how you use GPT to write or correct code beyond Copilot or asking ChatGPT about code in chat format.
But I'm also interested in hearing about useful prompts that you use to increase your productivity.

Comments (735) 221 threads

Earlier comments
ricklamers2 replies#
So much:

- generate AWK to transform text
- modify python script to make it multithreaded (when this worked first go I was very mindblown)
- explain concepts that I half understand in clear language, eg explain sharpe ratio and show me the math
- “what do people usually call” type questions. Like what are common job titles for people who do X and Y?
- proof read my emails and make suggestions given a stated goal
- settle language/choice of words discussions by asking GPT to reverse pitch understanding, then choosing the one that’s most aligned with the point we’re trying to make
- generally linux-y commands and explanations “best way to remap keys in i3” or find file with content “xyz” with tool faster than find

namanyayg2 replies#
I'm curious what you mean by "reverse pitch understanding" in your second last point, could you elaborate?
bumbledraven#
I had the same question, and I asked GPT-4: https://pastebin.com/9RxenXMk

The phrase has zero hits on Google, though “reverse pitching” is apparently a thing.

ricklamers#
I understand it to mean “I’ll explain something to you in my words, now you describe it back to me so I can evaluate whether the right message came across”.

Helpful exercise if you’re honing a pitch, because first listen understanding is key

thih92 replies#
> modify python script to make it multithreaded (when this worked first go I was very mindblown)

Sounds intriguing, could you elaborate? Which gpt did you use? What was the input like and what did the gpt produce?

WASDx#
I did this already with Codex in the playground, definitely works for ChatGPT as well. Just paste code and tell it to make a loop run in parallel with X threads. I've had it produce code using either multiprocessing or asyncio.
ricklamers#
This was on the first release of ChatGPT so I guess GPT-3.5. Pretty much like WASDx describes. In my case it was even more meta because I was writing a script that was making ChatGPT API calls. It’s an I/O network call so it was fairly easy to rewrite as a multithreaded generator loop, which it got right on the first go. Nice speedup of about 10X, I imagine right about up to the API rate limit.
DoingIsLearning1 reply#
For me the main benefit is what I would describe as 'rubber ducking discovery', using it as a learning tool I am able to try out different problem domains that are completely out of my area, things like:

- Web scrapping
- Web crawler
- Trying out Rust
- Trying out pytorch and training models for computer vision problems
This is all stuff that would have taken me several weekends of reading docs and geting familiar with libraries.
Now it suddenly becomes a few hours because the discovery of the right tool is semi-instant and although the code it provides is often wrong it generally puts you in the right direction.
My intuition is that it's a lot better at outputting viable Python and JS code than other languages, perhaps there is bias in how much data of other languages it has access to.

tcbyrd#
Rubber ducking discovery is a very good description of how I use it too. I don’t necessarily care if it’s 100% right, but it feels like it short circuits my “time to solution” by a significant percentage over hunting around through endless blog posts and SO answers. ChatGPT fills the gap between an idea and getting the LSP to tell me what will actually work.

Earlier today it totally hallucinated a built-in function, but when I started typing it out, the LSP kicked in and I could tell what the GPT was “thinking”. Before that I didn’t even know what the name of the function was that would do what I want, but it was close enough that it stopped me from having to parse the reference docs on my own.

tom-jh2 replies#
Encouraged by the comments here, I tried a few prompts for it to do something useful for our company. Most failed, but it's apparently great at improving our documentation. Here's the prompt and the result as an example:

> Can you improve the following text for clarity: "When deploying into the enterprise, there is a lot of flexibility when it comes to deciding how you structure the deployment, whether you want to run supporting services on premise, and which ones (if any) you choose to deploy. The decisions depend on how you plan to use our software and your security requirements. We’ll be happy to discuss these with you at [email]."
Result:
> "When deploying our software into your enterprise, you have the flexibility to decide on the structure of the deployment, including running supporting services on premise and selecting which ones (if any) to deploy. Your decisions should be based on your intended use of our software and your security requirements. If you need help with these decisions, please feel free to contact us at [email]"
It did indeed improve clarity and readability without screwing anything up. I just want to run this thing on our whole website/repo now, and I wonder how.

mtlynch#
IMHO, GPT didn't do a particularly good rewrite.

The original first sentence is overly long and complex, and so is GPT's. The original obscures the meaning behind passive voice, and GPT added even more passive voice ("should be based on your intended use").
I'll give credit to GPT for eliminating the ambiguity around "discuss these," but the rest of the changes don't improve the clarity much for me.
I appreciate that GPT's feedback is free and instant, but you can make deeper fixes to your writing with a one-time exercise that will probably take 10-20 hours and cost a few hundred dollars. Consider hiring a freelance editor to review your work and identify anti-patterns in your writing. I did this a few years ago, and it substantially improved my writing.[0]
The anti-patterns I notice in this snippet:
* Omission of actors for verbs ("when deploying into the enterprise" - who's deploying?)
* Overloading sentences with complexity (first sentence is very long and has complex structure, complex wording)
* Packing together verbs in a confusing way ("comes to deciding how you structure", "depend on how you plan to use")
* Ambiguous pronouns ("which ones", "discuss these")
[0] https://mtlynch.io/editor/

bitshiftfaced#
The prompt can make a big difference. For example:

"When deploying into the enterprise, there is a lot of flexibility when it comes to deciding how you structure the deployment, whether you want to run supporting services on premise, and which ones (if any) you choose to deploy. The decisions depend on how you plan to use our software and your security requirements. We’ll be happy to discuss these with you at [email]."
I rewrote the above. The recipient read the new version much more easily than they would have for the original:
When deploying our software into the enterprise, there are many options to consider. Depending on how you plan to use our software and your security requirements, you can decide which supporting services to run on-premise. If you have any questions, please don't hesitate to reach out to us at [email].

lowefk1 reply#
I have been using GPT-4 to generate i18n files, and it is great. You can see this post to check GPT-4's translation capabilities: https://www.reddit.com/r/visualnovels/comments/11rty62/gpt4_...

I can simply feed in an en.i18n.json file, and it will generate i18n.json files for as many languages as I want. I don't use a specific prompt, but I occasionally include general information about the software in it.
Edit: I do verify the output by translating it back to English using Google translate, but it seems I need to be more careful.

unhammer1 reply#
And then you let a human check it I hope? It does very well for the top 1% of languages (in terms of text online), but quality quickly degrades where there is less training material.

I asked a speaker of Northern Sámi, a language with not that big corpora available, to comment on GPT-4's translations into her language. She said "The translation is completely incomprehensible. Lots of non-existent and completely incomprehensible words, and the words that are understandable do not fit into the context. Besides, it's the wrong subject, it's Russia's report instead of the UN report etc." Only knowing a tiny bit of the language, I could've easily been fooled by the output.

yosito#
Yeah, it manages to produce intelligible output in Hungarian, but I've given the output to some native Hungarian speakers, and they're constantly telling me that it's making up words or using strange archaic words that they've barely ever heard used in regular speech.

Load more comments