News for hackers. Stuff that matters.
Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @06:35AM (#35301304)
I might be in the minority here, but I'm not using any AI tools so far, probably to my detriment.

I don't trust it with my data, and won't rely on such tools until I can self-host them, and they can be entirely offline. There is some progress in this space, but they're not great yet, and I don't have the resources to run them. I'm hoping that the requirements will go down, or I might just host it on a cloud provider.

The amount of people who don't think twice about sending these services all kinds of private data, even in the tech space, is concerning. Keyloggers like Grammarly are particularly insidious.

Re:Ask HN: How are you using GPT to be productive? by thefz on Saturday March 25, 2023 @06:59AM (#35301411)
Same! Never even opened ChatGPT page nor used an AI bot.
Re:Ask HN: How are you using GPT to be productive? by hsjqllzlfkf on Saturday March 25, 2023 @09:08AM (#35302283)
Good for you! If you don't want to learn new tools, you shouldn't.
Re:Ask HN: How are you using GPT to be productive? by thefz on Sunday March 26, 2023 @04:26AM (#35312320)
Tools? Nah. I would not trust that stuff for anything, not even a recipe on how to make plain bread.

A good old Google search followed by reasoning on what you have found is still the most valuable tool. Learn to sift through information, filter, ingest.

Re:Ask HN: How are you using GPT to be productive? by hsjqllzlfkf on Sunday March 26, 2023 @08:34AM (#35313787)
Exactly, because Google search isn't a tool.
Re:Ask HN: How are you using GPT to be productive? by mordae on Saturday March 25, 2023 @10:46AM (#35303141)
Yeah, you really should.

Said as someone who waits for the ability to self-host before doubling down on these tools.

Re:Ask HN: How are you using GPT to be productive? by thefz on Sunday March 26, 2023 @04:26AM (#35312323)
No, I really shouldn't.
Re:Ask HN: How are you using GPT to be productive? by pmoriarty on Saturday March 25, 2023 @07:11AM (#35301495)
Me neither, but I think before long people like us are going to be left behind. We're like people who insist on continuing to ride horses in the age of the automobile.
Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @07:20AM (#35301555)
I think that time will come, but we'll have self-hosted options before employers start discriminating based on performance with or without AI tools. So I'm not too worried about it.
Re:Ask HN: How are you using GPT to be productive? by re-thc on Saturday March 25, 2023 @08:25AM (#35301975)
Automobile were faster or equivalent to horses (even early 1s). At the moment GPT isn't.

Well I hope... I've definitely seen teams and codebases with worse output than GPT so...

Re:Ask HN: How are you using GPT to be productive? by dharmab on Saturday March 25, 2023 @02:06PM (#35305296)
> Automobile were faster or equivalent to horses (even early 1s).

The automobile was invented in 1885, but didn't replace the horse until the 1910s.

Re:Ask HN: How are you using GPT to be productive? by re-thc on Sunday March 26, 2023 @01:11AM (#35311210)
For the same reasons or different 1s? Could be cost, accessibility and others.
Re:Ask HN: How are you using GPT to be productive? by dharmab on Sunday March 26, 2023 @03:31AM (#35312001)
Largely because of infrastructure. You could get animal feed in places you couldn't get gasoline and oil. And horses don't need smooth roads.
Re:Ask HN: How are you using GPT to be productive? by precompute on Saturday March 25, 2023 @12:43PM (#35304385)
That won't happen, you can't expect to be "left behind" by a tool that's this easy to use. The big downsides of using a LLM will show up long-term, people will be chained to them and won't be able to do simple, trivial things on their own.
Re:Ask HN: How are you using GPT to be productive? by throwaway675309 on Saturday March 25, 2023 @03:36PM (#35306309)
Most people can't change their own oil, replace radiator fluid, or know the difference between a hubcap and a distributor cap. And yet life seemingly goes on...
Re:Ask HN: How are you using GPT to be productive? by precompute on Saturday March 25, 2023 @05:41PM (#35307730)
* * *
Re:Ask HN: How are you using GPT to be productive? by nibbleshifter on Saturday March 25, 2023 @07:13AM (#35301508)
I don't use them either.

I've played around with ChatGPT and Copilot a little, and found that they often are subtly, but very confidently wrong in their output when asked to perform a programming task.

Sure you could spend ages refining the prompt etc, but its going to be faster to just write the fucking code yourself in the first place most of the time.

Then there's the privacy/security concerns...

Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @07:32AM (#35301622)
I really doubt it would be faster to write code manually, even with the state of AI tools today. Even with very sophisticated keyboard macros and traditional autocompletion, someone using GPT would outperform anyone who doesn't. Think of the amount of boilerplate and tests you write, and tedious API documentation lookups you do daily; that all goes away with GPT. The amount of work to double check whether the generated code is valid, and fix it, is negligible compared to the alternative of writing it all manually.

Of course, I'm saying this without actually having used it for programming, so I might be way off base, but the feedback from coworkers who rely even on the now basic GitHub Copilot is that it greatly improves their productivity. I'm envious, of course, but I'm not willing to sacrifice my privacy for that.

Re:Ask HN: How are you using GPT to be productive? by fooker on Saturday March 25, 2023 @08:00AM (#35301791)
People who are downvoting this: please set up and use GitHub copilot once, maybe for some auxiliary thing not connected to your main task.

It is not just a tool for students to write assignments. In experienced hands it can easily double your productivity.

Re:Ask HN: How are you using GPT to be productive? by applesauce004 on Saturday March 25, 2023 @08:29AM (#35301996)
I agree with this statement a lot. Using Copilot saves you a lot of tedium if you are comfortable with the language already. If you are new to the language, then it might trip you up a bit (at least in its current incarnation).

Here is an example where it helps. I tried to initiate a connection to a Mongodb server using Python. While i have used many databases before, I have never used Python and MongoDB together. So, i knew i would have to have some kind of MongoDB library, a connection Factory and a connection string. I could have googled all of these things.

I did the following in VS Code using CoPilot. def get_db():

   """Initialise a MongoDB connection to a local database"""
It then automatically filled in the rest.

   db = getattr(g, '_database', None)

   if db is None:

       db = g._database = 
MongoClient('mongodb://localhost:27017/')

   return db
Notice above, that it knew i was using a flask environment and added the line getattr.

Why this is a productivity boost is that i did not have to alt-tab to a browser, search for "pythong mongodb tutorial example" and then type it out. I was able to do the whole thing from VS Code and since i use vsvim, i could do this without taking my fingers off of the keyboard.

This is the next jump since autocompletion. I like it.

Re:Ask HN: How are you using GPT to be productive? by fanagra32 on Saturday March 25, 2023 @09:38AM (#35302504)
And you will have no idea whether the solution it presents to you is idiomatic or recommended or contains some common critical flaw or is hopelessly outdated. How can you find out? Back to alt-tabbing to the browser.

Sure it may take a bit more time to get going, but then you'll get it right the first time and learn something along the way. Your copilot example is just another iteration of copy-and-paste some random snippet from StackOverflow in the hope that it will work, but without having seen its context, like from when is the post and what comments, good or bad, did it get.

I'd actually be pretty afraid of a codebase that is created like that.

Re:Ask HN: How are you using GPT to be productive? by throwthrowuknow on Saturday March 25, 2023 @11:10AM (#35303412)
Watch the demos where they provide GPT-4 with an API for performing search queries and calculations. These tool integrations are the next step and they will include specialized ones for using language and library docs. They could also be given access to your favourite books on code style or have access to a linter that they could use to cleanup and format the code before presenting it. The model is capable of using these tools itself when it is set up with the right initial prompt. Even now Copilot is pretty good at copying your code style if there is enough code in the repo to start with.
Re:Ask HN: How are you using GPT to be productive? by fooker on Saturday March 25, 2023 @11:33AM (#35303661)
You have no idea if the alternative code you would have written would have been idiomatic or had some critical flaw.

We have 50+ years of software engineering wisdom to deal with these issues. Testing, Fuzzing, version control, code reviews, the whole gauntlet.

Re:Ask HN: How are you using GPT to be productive? by macNchz on Saturday March 25, 2023 @12:16PM (#35304115)
I mean... I certainly know which languages I can write idiomatic code in and which I cannot.

I can't know that my code will be free of critical flaws, but I do understand the common sources of flaws and techniques to avoid them, and I'm quite confident I can build small features like this that simply aren't vulnerable to SQL injection, on the first try and without requiring fuzzers or code review: https://infosec.exchange/@malwaretech/110029899620668108

Re:Ask HN: How are you using GPT to be productive? by fooker on Saturday March 25, 2023 @12:43PM (#35304387)
You don’t have to accept the suggestions as-is. It’s just code, you can edit it as much as you like. Getting a good idiomatic starting point is a great boost.
Re:Ask HN: How are you using GPT to be productive? by jjeaff on Saturday March 25, 2023 @09:07PM (#35309490)
I'm confident enough in most languages I write in to recognize correct code. But I am not usually so familiar that I can conjure the exact syntax for many specialized things I need. Copilot is just a much quicker way to get what I need without looking it up.
Re:Ask HN: How are you using GPT to be productive? by fanagra32 on Sunday March 26, 2023 @04:27PM (#35319196)
> You have no idea if the alternative code you would have written would have been idiomatic or had some critical flaw.

But I have a feeling for both, which is one of the key components of the skill in our trade.

For idionmatic code, I know the degree to which I'm following how things "should" be done or are "usually" done in a given language. If I'm uncertain, I know that. GPT won't tell me this. Worse, it will confidently claim things, possibly even if presented with evidence to the contrary.

For critical flaws, I know the "dark corners" of the code. Cases which were not obvious to handle or required some trick, etc. I'll test those specifically. With GPTs code, I have no idea what the critical cases are. I can read the code and can try to guess. But it's like outsourcing writing tests to a QA department. Never donna be as effective as the original author of the code. And if I can't trust GPT to write correct code, I can't trust it to write a good test for the code. So, neither the original author of the code (GPT) nor somebody external (me) will be able to test the result properly

Re:Ask HN: How are you using GPT to be productive? by throwaway675309 on Saturday March 25, 2023 @03:33PM (#35306272)
"Back to alt-tabbing to the browser."

Yes because tutorial info on some rando's webpage is never out of date. /s

Re:Ask HN: How are you using GPT to be productive? by fanagra32 on Sunday March 26, 2023 @04:34PM (#35319270)
It is. I can see that it was written in 2003 and discard it. GPT won't tell me if its answer is based on an ancient lib version.

Essentially, GPT is that rando's webpage but with the metadata stripped away that allowed me to make judgement calls about its trustworthyness. No author, no time, no style to see if somebody is trolling.

Re:Ask HN: How are you using GPT to be productive? by f6v on Saturday March 25, 2023 @08:10AM (#35301867)
My experience was always that most of my time isn’t deducted to writing code. Maybe 10%, the rest us thinking about how the code I write will fit into the existing architecture or accommodate future features.
Re:Ask HN: How are you using GPT to be productive? by mlboss on Saturday March 25, 2023 @09:15AM (#35302330)
In very near future your IDE will send the whole codebase as context to LLMs. Then instead of thinking up all possibilities you can just ask. LLM will suggest multiple alternatives and you can select the best when and ask it to implement it.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Saturday March 25, 2023 @09:19AM (#35302370)
Don't make stuff up. There is no indication that will happen.
Re:Ask HN: How are you using GPT to be productive? by sd9 on Saturday March 25, 2023 @09:48AM (#35302594)
This seems very plausible to me. The context window improved a lot between GPT-3.5 and GPT-4, and OpenAI clearly see value in increasing it further.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Saturday March 25, 2023 @05:07PM (#35307362)
Explain how it improved. Yes, it has improved accuracy (test taking) but it still gets stuck in the same loops over and over:

"response has issue A" -> point out issue A to GPT "response has issue B" -> point out issue B to GPT

GPT replies with the response that had issue A ...

This is not a tool that is going to be good at performing generic tasks. It just isn't.

Re:Ask HN: How are you using GPT to be productive? by sd9 on Sunday March 26, 2023 @09:04AM (#35314000)
I said that the context window improved. I mean that it is larger. GPT-3.5 is 4k tokens, GPT-4 is 8k tokens (standard) or 32k tokens (only API access atm). This is the number of tokens that GPT-X can take into account when producing a response.

Specifically, I was using this to support the statement "In very near future your IDE will send the whole codebase as context to LLMs." I'm not talking about loops or accuracy.

https://platform.openai.com/docs/models

Re:Ask HN: How are you using GPT to be productive? by roflyear on Sunday March 26, 2023 @02:55PM (#35318088)
It's true, but there is no indication that GPT can explain larger concepts for you, and negative indication it will be able to do it accurately.

It can't even explain small code to me unless it is something that it has been trained on. Often it gets even simple things wrong, either obviously, or worse, subtly wrong.

Re:Ask HN: How are you using GPT to be productive? by sd9 on Sunday March 26, 2023 @03:25PM (#35318508)
I agree that this is the part that needs more work, and is most uncertain. Increasing context windows seems like a fairly straightforward computational challenge (albeit potentially expensive). On the other hand, whether or not we can scale current models towards "true understanding" (or similar), is a total unknown atm.

I still think we will get useful things from scaling up current models though. I've already got a lot of value out of Copilot, for instance, and I'm looking forward to the next version based on GPT-4. Recently, I've been using the GPT-3 Copilot to write a lot of pandas/matplotlib code, which is fairly straightforward and repetitive, but as mainly a Java developer, I just don't have the APIs at my fingertips. Copilot helps a lot with this sort of thing.

Re:Ask HN: How are you using GPT to be productive? by roflyear on Sunday March 26, 2023 @08:01PM (#35321111)
> can scale current models towards "true understanding" (or similar), is a total unknown atm.

Right, but it's no more known than before GPT models IMO. It's the same unknown.

I don't mean to imply these language models are not impressive. They are pretty impressive.

Re:Ask HN: How are you using GPT to be productive? by throwthrowuknow on Saturday March 25, 2023 @11:18AM (#35303501)
GPT-4 has a model capable of using around 50 pages of written text worth of tokens (32,000) not sure exactly how many lines of code that translates to but it’s a lot. GPT-3 can use 4k so that’s a huge increase, the next version could be even larger and there are other ML techniques that allow for massive context lengths. Copilot already does a good job of refactoring code and knows enough about your code base to use your functions and methods. So what the other commenter said does not sound impossible to me.
Re:Ask HN: How are you using GPT to be productive? by f6v on Saturday March 25, 2023 @12:42PM (#35304378)
Is there a proof that context length increase will result in a better result? It’s a possIbility, but not certain.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Saturday March 25, 2023 @05:08PM (#35307372)
It isn't anywhere near being able to diagnose anything more than off-by-one and other common errors.

Identifying hose problems will bring a LOT of value - but it isn't going to program and do general problem solving for you! It just has no signs of being able to do that.

Re:Ask HN: How are you using GPT to be productive? by mlboss on Saturday March 25, 2023 @12:12PM (#35304080)
Yesterday’s Steve Yegge post talks about it. You can provide text as context but you can also provide a dense representation in the form of text embeddings that capture the context. Today you can manually do it by something like LangChain but in future it will be part of our text editors.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Saturday March 25, 2023 @05:09PM (#35307382)
Yes it will be able to give amazing feedback to us as devs and quickly identify common problems (that I still make all the time, even after developing for a decade!) which will bring a ton of value to programmers.

But, it will be a tool - it won't be something that will solve general problems for you. It won't make an average programmer a great programmer.

Re:Ask HN: How are you using GPT to be productive? by imiric on Sunday March 26, 2023 @07:55AM (#35313506)
Re:Ask HN: How are you using GPT to be productive? by roflyear on Sunday March 26, 2023 @02:53PM (#35318049)
Absolutely not what was suggested, but ok.
Re:Ask HN: How are you using GPT to be productive? by f6v on Saturday March 25, 2023 @10:06AM (#35302751)
The moment that happens we can all forget about working and just do arts, space exploration, and acid orgies. But that “future” is somewhere between full self driving and thermonuclear reactor.
Re:Ask HN: How are you using GPT to be productive? by re-thc on Saturday March 25, 2023 @08:23AM (#35301959)
> I really doubt it would be faster to write code manually,

Not faster or slower but at what quality?

At least every time I've tried to ask GPT 3 & 4 to write anything it's always missing things or not even close to the optimal way that I have to look up the docs and fill in the gaps, which often takes just as long as starting from scratch.

> now basic GitHub Copilot is that it greatly improves their productivity

Perhaps it depends on what you're working on. If it's quick iterations that isn't that concerned about what code goes in and whether it's maintainable then sure.

It's impressive but for now still has lots of gaps. However it is over confident and often misleading.

Re:Ask HN: How are you using GPT to be productive? by politician on Saturday March 25, 2023 @09:40AM (#35302519)
Which language is it struggling with?
Re:Ask HN: How are you using GPT to be productive? by jhugo on Saturday March 25, 2023 @10:20AM (#35302886)
I've had similar experiences when testing it out with Rust, Java and Go. Once I got beyond basic stuff, very little of the output was of a quality that I would consider remotely acceptable, and the work to bring it up to standard was basically equivalent to just writing the code in the first place (which, come on, typing is not even the time-consuming part of engineering).
Re:Ask HN: How are you using GPT to be productive? by jjeaff on Saturday March 25, 2023 @09:13PM (#35309556)
It makes sense that it wouldn't be very good at Go or Rust since both are rather rare languages in the open source world that copilot is trained on. When I did my first go project a few years ago, I had the hardest time finding even basic examples like how to parse a json string. Rust is even newer and less used. But java is the 3rd most popular language for GitHub projects so I would think it would do better with Java.
Re:Ask HN: How are you using GPT to be productive? by jhugo on Sunday March 26, 2023 @12:50AM (#35311070)
The failure mode seemed similar in all three languages. If you were doing toy things, or writing boilerplate stuff, it did perfectly fine. If you were writing something that wasn't a slightly-modified copy of some code that already exists out there, it fell apart. I don't think the issue is the language in this case — Go and Rust are common enough, and it rarely had trouble with the syntax — I think it's that the model doesn't go very "deep", so it's able to reproduce common patterns with minor variations but is unable to conceptualise.
Re:Ask HN: How are you using GPT to be productive? by re-thc on Sunday March 26, 2023 @01:10AM (#35311197)
Java is ultimately worse. It's old. It's gone through A LOT of change over the years. How does it even tell what's good and bad? Java also has lots of convention over configuration and "magic" in most frameworks, which it doesn't exactly understand.

When I tried it I'd often have to go back to it and keep telling it to use a different way of doing things because the world moved on. By that time there wasn't much point.

I see praises by those that have never coded in a language. They try ChatGPT, see it produce "ok" output and call it a day. If that's where we're going the web will be even more bloated than Electron and everything will be 10x worse. It's like low code but even lower (in quality).

Re:Ask HN: How are you using GPT to be productive? by majewsky on Monday March 27, 2023 @08:14AM (#35325663)
There are over 50,000 and over 40,000 repositories just on GitHub that contain Go and Rust code, respectively. [1] Among them, some truly massive projects like Kubernetes for Go or Servo for Rust. I will freely admit your argument for new and/or obscure languages like Hare, but Go and Rust are not "rare" under any reasonable definition of the word.

[1] https://github.com/topics/go https://github.com/topics/rust

Re:Ask HN: How are you using GPT to be productive? by jhugo on Saturday March 25, 2023 @10:19AM (#35302871)
> Think of the amount of boilerplate and tests you write, and tedious API documentation lookups you do daily; that all goes away with GPT.

At work we have really worked hard to minimise boilerplate and manually-written/repetitive tests, so I don't write much of that. Getting GPT to write it would certainly be worse: we would still have the deadweight of boilerplate/repetition even if we didn't have to write it, and some of it would be incorrect. Maybe this varies a lot by company — if you're often writing a lot of repetitive code, and for whatever reason you can't fix the deeper issues, then something like GPT/Copilot could be a godsend.

About documentation lookups, I don't know if this varies by language, but I've had very little luck with using GPT for this. For the languages I use regularly, I can find anything I need in the documentation very rapidly. When I've tried to use GPT to answer the same questions, it occasionally gives completely wrong answers (wasting my time if I believe it), and almost always misses out some subtlety that turned out to be important. It just doesn't seem to be very good for this purpose yet.

Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @05:30PM (#35307616)
> At work we have really worked hard to minimise boilerplate and manually-written/repetitive tests, so I don't write much of that.

There's boilerplate in any codebase, even if you make an effort to minimize it. There are always patterns, repeated code structure, CI and build tool configuration, etc.

If nothing else, just being able to say "write a test for this function", which covers all code paths, mocking, fuzzing, etc., would be a huge timesaver, even if you have to end up fixing the code manually. From what I've seen, this is already possible with current tools; imagine how the accuracy will improve with future generations. Today it's not much different from reviewing code from a coworker, but soon you'll just be able to accept the changes with a quick overview, or right away.

Re:Ask HN: How are you using GPT to be productive? by jhugo on Saturday March 25, 2023 @08:17PM (#35309079)
This may be highly dependent on problem domain or programming language (see the other article about GPT tending to hallucinate any time it is given problems that don't exist in its training set). My experience has mostly been that the output (including simple stuff like "test this function", though we generally avoid unit tests due to low benefit and high cost) is consistently so flawed that the time to fix it approaches the time to write it.
Re:Ask HN: How are you using GPT to be productive? by plorkyeran on Saturday March 25, 2023 @04:39PM (#35307080)
If you eliminated 100% of my code typing time with perfect effectiveness I think that'd make me maybe 10% or 20% more productive? Turning ideas of what the code should be doing into code just isn't a bottleneck for me in the first place. Are there people who just add net 1000 lines of code to whatever they're working on every single day or something?
Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @05:18PM (#35307490)
I keep seeing this point made, but AI tools don't save you just typing time. They save you time you would previously use to lookup documentation, search the web and Stack Overflow answers. They save you time it takes to navigate and understand a codebase, write boilerplate code and tests, propose implementation suggestions, etc.

Dismissing them on the basis that they just save you typing time is not seeing their full potential.

Re:Ask HN: How are you using GPT to be productive? by plorkyeran on Saturday March 25, 2023 @09:26PM (#35309645)
Navigating and understanding a codebase is the only one of those which would excite me, but it's also something I've never even someone propose using ChatGPT for. Do you have an example of what that would look like?
Re:Ask HN: How are you using GPT to be productive? by imiric on Sunday March 26, 2023 @07:38AM (#35313374)
There have been a few announcements here just in the last week:

- https://news.ycombinator.com/item?id=35236275

- https://news.ycombinator.com/item?id=35248704

- https://news.ycombinator.com/item?id=35228808

And this is with the GPT-4 limitation of 32k input tokens. Imagine what will be possible in the next generation that increases the context size.

Re:Ask HN: How are you using GPT to be productive? by safety1st on Saturday March 25, 2023 @08:38AM (#35302065)
I've only toyed with ChatGPT, but what I like is that it knows about stuff I don't. I'm reasonably informed about the tools, practices etc. in my field, but I don't know everything, and it's been trained on all kinds of stuff I've never heard of.

In practice the stuff it will suggest to me is sort of random, it may or may not be the best choice for the task at hand, but it's a form of discovery I didn't have previously. The fact that when it tells me about e.g. a new library it can also mock up some sample code that might or might not work is a pleasant bonus.

Re:Ask HN: How are you using GPT to be productive? by roflyear on Saturday March 25, 2023 @09:19AM (#35302366)
Yes unless you understand the problem well it is hard to fix it. Might as well code it yourself.

I suspect the people who find this amazing tech don't program much or are using this very differently than we are. Or program very differently than us.

Re:Ask HN: How are you using GPT to be productive? by throwaway4aday on Saturday March 25, 2023 @09:31AM (#35302452)
If you share your prompts then we could help. The most generally applicable thing I can think of is that you have to drop your old habits from using search engines, those types of queries will not get you very far. You have to talk to it like you would talk to someone in your company Slack/Teams/whatever chat and explain what it is you're trying to do and what tools you want to use to do it. Then ask it to refine its answer by telling it what it got wrong or clarifying the request you made by adding more details. Also, always keep in mind that it is fundamentally a text completion engine. You can drastically alter the type of output you get by adding relative context up front. That can be anything from snippets of code to requests for it to write in the style of some famous person to even just a chunk of your own writing so it can get an idea of the style that you use.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Saturday March 25, 2023 @05:10PM (#35307390)
I'm not talking about informational stuff.
Re:Ask HN: How are you using GPT to be productive? by throwaway4aday on Sunday March 26, 2023 @11:17AM (#35315335)
Cool, if you don't want to talk about it that's ok. In that case I'd suggest looking up one of the various prompt libraries and learning from there.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Sunday March 26, 2023 @02:57PM (#35318122)
I'm just not talking about trying to fish an accurate answer. I think you can do that. I'm talking about getting an answer about something that requires an interaction that gets the model to "understand" the problem (like you would a person) - which GPT can't do.
Re:Ask HN: How are you using GPT to be productive? by wnkrshm on Monday March 27, 2023 @04:20AM (#35324211)
Something akin to: Here is a niche mathematical problem that does not fit any existing solutions/publications, we need a working but not necessarily optimal solution to do this. ?
Re:Ask HN: How are you using GPT to be productive? by roflyear on Monday March 27, 2023 @09:24AM (#35326398)
Sure, or even an existing algo or method that is applied to something very niche that hasn't been done much (at least in the data GPT is trained on, I guess).

In my experience these things need a little nuance communicated as a part of the problem, but GPT can't get there. It just starts looping over incorrect solutions (rather than modifying them slightly to get it right like a person would).

These aren't crazy advanced things, either. I'm not a genius. I solved the problems when GPT couldn't. I was just trying out GPT4.

Re:Ask HN: How are you using GPT to be productive? by throwaway4aday on Monday March 27, 2023 @07:29AM (#35325307)
Consider how long our comment thread is and I still don't have a clear idea of what you're talking about or how to help you.
Re:Ask HN: How are you using GPT to be productive? by roflyear on Monday March 27, 2023 @09:22AM (#35326369)
I'm not looking for help, so I don't think we're really trying to have the same conversation.
Re:Ask HN: How are you using GPT to be productive? by evilduck on Saturday March 25, 2023 @01:22PM (#35304859)
Copilot is a huge time and typing saver for manipulating data, richly autocompleting logging messages, mocking out objects and services in tests, etc.

If you're only expecting it to solve your hard problem completely and from scratch entirely from a prompt that's probably not going to succeed, but I can't see how you're possibly faster typing 80-90 extra characters of a log statement than a Copilot user who just presses tab to get the same thing. Those little things add up to significant time savings over a week. Same for mocking services in a test, or manipulating lists of data or any number of things it autocompletes where you'd previously need to author a short script to perform or learn advanced vim movements and recording macros to emulate.

Re:Ask HN: How are you using GPT to be productive? by circuit10 on Sunday March 26, 2023 @05:16PM (#35319720)
Then use it as autocomplete to write things you were going to put anyway but faster, it will still speed things up
Re:Ask HN: How are you using GPT to be productive? by sillysaurusx on Saturday March 25, 2023 @07:34AM (#35301636)
> I don't trust it with my data, and won't rely on such tools until I can self-host them, and they can be entirely offline.

Interestingly, my point to The Verge was exactly that. https://twitter.com/theshawwn/status/1633456289639542789

Me:

> So, imagine it. You'll have a ChatGPT on your laptop -- your very own, that you can use for whatever purposes you want. Personally, I'll be hooking it up to read my emails and let me know if anything comes in that I need to pay attention to, or hook it up to the phone so that it can schedule doctor's appointments for me, or deal with AT&T billing department, or a million other things. The tech exists right now, and I'd be shocked if no one turns it into a startup idea over the next few years. (There's already a service called GhostWrite, where you can let GPT write your emails on your behalf. So having one talk on the phone on your behalf isn't far behind.)

The article:

> Presser imagines future versions of LLaMA could be hosted on your computer and trained on your emails; able to answer questions about your work schedules, past ideas, to-do lists, and more. This is functionality that startups and tech companies are developing, but for many AI researchers, the idea of local control is far more attractive. (For typical users, tradeoffs in cost and privacy for ease of use will likely swing things the other way.)

Notice how they turned the point around from "you can host it yourself" to "but typical users probably won't want that," like this is some esoteric concern that only three people have.

So like, it's not just you. If you feel like you're "in the minority" just because you want to run these models yourself, know that even as an AI researcher I, too, feel like an outsider. We're in this together.

And I have no idea why things are like this. But I just wanted to at least reassure you that the frustrations exist at the researcher level too.

Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @08:11AM (#35301877)
That's an interesting interview, thanks for sharing.

Though I draw the line with using these tools at helping me out with the drudgery of daily work. I don't want them to impersonate me, or write emails on my behalf. I cringe whenever Gmail suggests the next phrase it thinks I want to write. It's akin to someone trying to end your sentences for you. Stop putting words in my mouth!

The recent Microsoft 365 Copilot presentation, where the host had it ghost write a speech for their kid's graduation party[1]—complete with cues about where to look(!)—is unbelievably cringey. Do these people really think AI should be assisting with such personal matters? Do they really find doing these things themselves a chore?

> And I have no idea why things are like this.

Oh, I think it's pretty clear. The amount of resources required to run this on personal machines is still prohibitively high. I saw in one of your posts you mentioned you use 8xA100s. That's a crazy amount of compute unreachable by most people, not to mention the disk space it requires. Once the resource requirements are lowered, and our personal devices are _much_ more powerful, then self-hosting would be feasible.

Another, perhaps larger, reason, is that AI tools are still a business advantage for companies, so it's no wonder that they want to keep them to themselves. I think this will change and open source LLMs will be widespread in a few years, but proprietary services will still be more popular.

And lastly, most people just don't want/like/know how to self-host _anything_. There's a technical barrier to entry, for sure, but even if that is lowered, most people are entirely willing to give up their personal data for the convenience of using a proprietary service. You can see this today with web, mail, file servers, etc.; self-hosting is still done by a very niche group of privacy-minded tech-literate people.

Anyway, thanks for leading the way, and spreading the word about why self-hosting these tools is important. I hope that our vision becomes a reality for many soon.

[1]: https://www.youtube.com/watch?v=ebls5x-gb0s

Re:Ask HN: How are you using GPT to be productive? by sillysaurusx on Saturday March 25, 2023 @08:27AM (#35301980)
> The amount of resources required to run this on personal machines is still prohibitively high. I saw in one of your posts you mentioned you use 8xA100s. That's a crazy amount of compute unreachable by most people

FWIW LLaMA 65B can run on a single MacBook Pro now. Things move crazy fast. (Or did, before Facebook started DMCA'ing everyone.)

I did a bad job of explaining that personal GPUs will be sufficient in the near future. Thanks for pointing that out.

> thanks for leading the way, and spreading the word about why self-hosting these tools is important. I hope that our vision becomes a reality for many soon.

Thanks for talking about the issue at all. The whole reason I got into AI was to run these myself. It'll be a shame if only massive corporations can run models anyone cares about.

Re:Ask HN: How are you using GPT to be productive? by yadingus on Saturday March 25, 2023 @08:16AM (#35301908)
> And I have no idea why things are like this.

Propaganda. These tools are not for the people, and I'm convinced the idea of how much better our lives could be if technology was thoughtfully designed to truly serve the user is purposely and subtly filtered from the collective conversation.

Re:Ask HN: How are you using GPT to be productive? by wizzwizz4 on Saturday March 25, 2023 @08:30AM (#35302006)
The idea is discussed quite a lot on the Fediverse. It's a relatively small movement, but so's the digital accessibility movement, and look where that's going.
Re:Ask HN: How are you using GPT to be productive? by flyval on Monday March 27, 2023 @09:37AM (#35326530)
I mean, google has access to ~all of that stuff anyway. Even if you’re self-hosting your email+calendar, everyone else isn’t.

I’d love to have more privacy on everything, but realistically, the ship’s sailed on most of it.

Re:Ask HN: How are you using GPT to be productive? by Applejinx on Saturday March 25, 2023 @08:04AM (#35301830)
Likewise, but not over trusting it with my data. I'm capable of getting this stuff running locally: in fact I got a computer specifically with this in mind.

I'm not doing the kind of work that lends itself to AI tools, or at least what I've been focussing on hasn't lent itself to such tools. Not yet.

The places I'd use it are rough drafting in an area where a community of basic people with more knowledge than me could get the job done. For instance, at one point I got Stable Diffusion to generate a bunch of neat album covers in various styles, like I was an art director. Also asked it to draw toys of certain kinds as starting points for game characters. I wanted some prompts.

In my job I quickly get to where I have to start coming up with ideas most people don't think of. That said, I see marketing possibilities: 'this is the category in which I work, tell me what you need out of it'. Then, when you have the thing made, 'this is the thing, why do you want to buy it?'

ChatGPT would be able to answer that. It's least capable of coming up with an idea outside the mainstream, but it ought to be real good at tapping the zeitgeist because that's all it is, really! It's a collective unconscious.

It's ONLY a collective unconscious. Sometimes what you need to do is surprise that collective unconscious, and AI won't be any better at that than you can be. But sometimes you need to frame something to make sense to the collective unconscious, and AI does that quite easily.

If you asked your average person 'what is great art?' they would very likely fall back on something like Greg Rutkowski, rather than say Basquiat. If you ask AI to MAKE art, it can mimic either, but will gravitate towards formulas that express what its collective unconscious approves of. So you get a lot of Rutkowski, and impress a lot of average people.

Re:Ask HN: How are you using GPT to be productive? by znpy on Saturday March 25, 2023 @08:17AM (#35301913)
Me neither.

I’m waiting for the whole thing to evolve enough to have self hosted stuff to run at home.

Re:Ask HN: How are you using GPT to be productive? by hsjqllzlfkf on Saturday March 25, 2023 @09:06AM (#35302270)
So, are you using Google search?

Your argument of "I don't trust it with my data and won't until you can self host" should apply to google search as well, no?

And alternative take is that for whatever reason you've decided you didn't want to use new tools, a posteriori created an argument to justify that, and haven't realized the same argument applies to your old tools.

Re:Ask HN: How are you using GPT to be productive? by ornornor on Saturday March 25, 2023 @10:09AM (#35302768)
Re:Ask HN: How are you using GPT to be productive? by PartiallyTyped on Saturday March 25, 2023 @10:42AM (#35303105)
This is not whataboutism.

GP identifies an action that analogous and holds certain properties as the original action, in the process illuminating how the issues of approach A exist in approach B.

Re:Ask HN: How are you using GPT to be productive? by ornornor on Saturday March 25, 2023 @10:51AM (#35303189)
But it is. "You're concerned about your data when using ChatGPT but you're probably using Google so your concerns are invalid"
Re:Ask HN: How are you using GPT to be productive? by PartiallyTyped on Saturday March 25, 2023 @11:12AM (#35303431)
They are not expressing that the concerns are invalid, they are expressing that one is held onto a higher standard than the other.
Re:Ask HN: How are you using GPT to be productive? by ornornor on Saturday March 25, 2023 @11:24AM (#35303559)
Agree to disagree then.
Re:Ask HN: How are you using GPT to be productive? by hsjqllzlfkf on Saturday March 25, 2023 @01:23PM (#35304870)
> They are not expressing that the concerns are invalid

> Agree to disagree then

Since you're discussing what I was expressing, I can tell you who's correct, since I know what I was expressing. And you're wrong. I wasn't expressing that the concerns are invalid. They're very valid.

Instead, what I was expressing was that OP doesn't actually have those concerns, not that they're invalid.

Re:Ask HN: How are you using GPT to be productive? by JW_00000 on Saturday March 25, 2023 @10:40AM (#35303074)
I think it's more about personal data being used for training.

I may use Google to look up if that slight itch I feel is a symptom of cancer (I'm exaggerating), and I store mails with personal details, my calendar, and messages on Google. But I also assume they're not using those texts to train an AI.

When you enter a code snippet or a personal question in ChatGPT, and press the little thumbs up/down next to the answer, you're adding your data to a training set. The next generation of the model might regurgitate that text verbatim.

Re:Ask HN: How are you using GPT to be productive? by throwthrowuknow on Saturday March 25, 2023 @11:29AM (#35303608)
Right, because Google doesn’t use ML or your data for marketing and advertising.

Is your concern simply that it might spit out the same thing you typed in? That’s highly unlikely unless you and thousands of other people type in exactly the same thing. I don’t see how that’s anymore worrisome than Google having all of your documents and email on its servers.

Re:Ask HN: How are you using GPT to be productive? by fanagra32 on Saturday March 25, 2023 @10:58AM (#35303260)
Maybe they are ok with Google seeing search terms but not with Google seeing their companies code.
Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @12:32PM (#35304261)
That's not a great comparison, as privacy-focused search engines do exist (Kagi, DDG to an extent, et al.). And you can still use mainstream search engines with frontends like SearX. Most of my privacy concerns are with adtech corporations tying my search terms to my profile, that they later sell to advertisers, and whoever else on shady data broker markets. I don't want to be complicit with my data being exploited to later manipulate me, nor do I want to make them money in exchange of a "free" service.

These are partly the same reasons I don't voluntarily use proprietary services at all. I don't want to train someone else's model, nor help them build a profile on me. Even if they're not involved in adtech—a rarity nowadays—you have no guarantees of how this data will be used in the future.

For AI tools, there's currently no alternative. Large corporations are building silos around their models, and by using their services you're giving them perpetual access to your inputs. Even if they later comply with data protection laws and allow you to delete your profile, they won't "untrain" their models, so your data is still in there somewhere. Considering that currently we're talking about 32,000 tokens worth of input, and soon people uploading their whole codebases to it, that's an unprecedented amount of data they can learn from, instead of what they can gather from web search terms. No wonder adtech is salivating at opening up the firehose for you to feed them even more data.

The use cases of AI tools are also different, and more personal. While we use search engines for looking things up on the web, and some personal information can be extracted from that, LLMs are used in a conversational way, and often involve much more personal information. It's an entirely different ballpark of privacy concerns.

Re:Ask HN: How are you using GPT to be productive? by drawkbox on Saturday March 25, 2023 @09:29AM (#35302434)
I use AI/ML for ideas today. I love the simple input/output of the chat style, it will win for most things just as keyword search is the best for search output.

I use it for re-writing content better, writing ideas, simplifying text (legal/verbose -- simplifying terms is a killer feature really) and context even though trust is limited of the output it is helpful.

I love the art / computer vision side of AI/ML. Though I only like to do that with tools on my machine than rely on a dataset or company that is very closed, that is harder to do with AI/ML because of the storage/processing needed.

I hate blackboxes and magic I don't have access to, though I am a big fan of stable unchanging input/output atomic apis, as long as I have access to the flow. The chat input/output is so simple it will win as it will never really have a breaking change. Until commercial AI/ML GPTs are more open in reality it can't be trusted to not be a trojan horse or trap. What happens when it goes away or the model changes or the terms change?

As far as company/commercial, Google seems to be the most open and Google Brain really started this whole thing with transformers.

Transformers, the T in GPT was invented at Google during Google Brain [1][2]. They made possible this round of progress.

> Transformers were introduced in 2017 by a team at Google Brain and are increasingly the model of choice for NLP problems, replacing RNN models such as long short-term memory (LSTM). The additional training parallelization allows training on larger datasets. This led to the development of pretrained systems such as BERT (Bidirectional Encoder Representations from Transformers) and GPT (Generative Pre-trained Transformer), which were trained with large language datasets, such as the Wikipedia Corpus and Common Crawl, and can be fine-tuned for specific tasks.

Google also gave the public TensorFlow [3] and DeepDream [4] that really started the intense excitement of AI/ML. I was super interested when the AI art / computer vision side started to come up. The GANs for style transfer and stable diffusion are intriguing and euphoric almost in output.

In terms of GPT/chat, Bard or some iteration of it, will most likely win long term, though I wish it was just called Google Brain. Bard is a horrible name.

ChatGPT basically used Google Brain created AI tech, transformers. These were used to build ClosedGPT. For that reason it is NopeGPT. ChatGPT is really just datasets, which no one knows, these could swap at any time run some misinformation then swap the next day. This is data blackboxing and gaslighting at the up most level. Not only that it is largely funded by private sources and it could be some authoritarian money. Again, blackboxes create distrust.

Microsoft is trusting OpenAI and that is a risk. Maybe their goal is embrace, extend, extinguish here but it seems with Google and Apple that Microsoft may be a bit behind on this. Github Co-pilot is great though. Microsoft usually comes along later and make an accessible version. The AI/ML offerings on Azure are already solid. AI/ML is suited for large datasets so cloud companies will benefit the most, it also is very, very costly and this unfortunately keeps it in BigCo or wealthy only arenas for a while.

Google Brain and other tech is way more open already than "Open"AI.

ChatGPT/OpenAI just front ran the commercial side, but long term they aren't really innovating like Google is on this. They look like a leader from the marketing/pump but they are a follower.

[1] https://en.wikipedia.org/wiki/Google_Brain

[2] https://en.wikipedia.org/wiki/Transformer_(machine_learning_...

[3] https://en.wikipedia.org/wiki/TensorFlow

[4] https://en.wikipedia.org/wiki/DeepDream

Re:Ask HN: How are you using GPT to be productive? by olalonde on Saturday March 25, 2023 @10:56AM (#35303244)
Genuine question: Is your concern primarily based on principles, or are you sincerely worried that OpenAI having access to your data could lead to practical, tangible negative consequences (beyond principles / psychological effects)?
Re:Ask HN: How are you using GPT to be productive? by imiric on Saturday March 25, 2023 @01:09PM (#35304708)
I listed some of my concerns here[1]. It is mostly based on principles, but also on the fact that we don't know what these models will be used for in the future. We can trust OpenAI to do the right thing today, but even if they're not involved in the data broker market, your data is only a bug, breach or subpoena away from 3rd party hands.

Also, OpenAI is not the only company in this market anymore. Google, Facebook and Microsoft have competing products, and we know the privacy track record of these companies.

I have an extreme take on this, since for me this applies to all "free" proprietary services, which I avoid as much as possible. The difference with AI tools is that they ask for a much deeper insight into your mind, so the profile they build can be far more accurate. This is the same reason I've never used traditional voice assistant tools either. I don't find them more helpful than doing web searches or home automation tasks manually, and I can at least be somewhat in control of my privacy. I might be deluding myself and making my life more difficult for no reason, but I can at least not give them my data voluntarily. This is why I'll always prefer self-hosting open source tools, over using a proprietary service.

[1]: https://news.ycombinator.com/item?id=35304261

Re:Ask HN: How are you using GPT to be productive? by smrtinsert on Saturday March 25, 2023 @11:03AM (#35303325)
This is 100% why I'm watching Alpaca with more interest. I also keep thinking we're at the mainframe era of AI as a tool. For now its on some remote server, but the power will explode when its on all our devices and casually useful for everthing.
Re:Ask HN: How are you using GPT to be productive? by coffeefirst on Saturday March 25, 2023 @12:21PM (#35304159)
Same.

I don't need it to write documents or emails for me. It mostly generates filler, which... nobody needs.

Most of the energy I put into code is about what it should do and how to make it clear to the next person, not typing. I was able to use it once to look up a complex SQL fix that I was having a hard time Googling the syntax on, but that's it.

Perhaps it would be useful if I was working in a language I'm not familiar with, BUT in that scenario I really need it to cite its sources, because that's exactly the case where I wouldn't know when it's making a mistake.

There's something useful here, but it's probably more like a library help desk meets a search engine on steroids. It would be pretty cool to run an AI on my laptop that knows my own code and notes where I can ask "I did something like this three years ago, go find it."

Re:Ask HN: How are you using GPT to be productive? by OOPMan on Sunday March 26, 2023 @12:16AM (#35310869)
You're not alone.

I can't be bothered to add an extra layer of bullshit into the already bullshit infested realm that is the internet.

Re:Ask HN: How are you using GPT to be productive? by namlem on Tuesday March 28, 2023 @12:34AM (#35335962)
You can self-host LLAMA, though it's obviously much worse in terms of performance, it's still good enough to be useful for some things.