News for hackers. Stuff that matters.
Re:Building an interpreter for my programming language with ... by habibur on Sunday December 04, 2022 @05:41AM (#33852403)
ChatGPT will be the google killer, if they can scale it up for unregistered general use.

No idea how much openai's computational cost is per query. Unless it's an order of magnitude higher than google's, we might have found the next thing after yahoo -> altavista -> google.

Re:Building an interpreter for my programming language with ... by grashalm on Sunday December 04, 2022 @05:57AM (#33852472)
For ChatGPT to be the Google killer they need to provide source URLs.
Re:Building an interpreter for my programming language with ... by schmorptron on Sunday December 04, 2022 @06:09AM (#33852527)
It looks like it has web browsing support built-in in some form, but it's disabled at the moment. That said, I'm skeptical that it'd be able to "disrupt" google, as the track record of things that are said to do that is quite bad. On the other hand, google seems to be heading in the same direction with projects such as Lamda. In a roundabout way, this might just end up being the quick answer box at the top of search results in the future?
Re:Building an interpreter for my programming language with ... by grashalm on Sunday December 04, 2022 @07:10AM (#33852946)
Yes it seems like an exact match for Google's top box. But as mentioned, they need to work on explaining themselves. That is what the current top box still does better.
Re:Building an interpreter for my programming language with ... by twoodfin on Sunday December 04, 2022 @09:22AM (#33853916)
I don’t think it actually can browse the web. It’s obviously been trained with an extensive web-sourced corpus.

It seems that the developers have placed guardrails around web-search-like queries not because ChatGPT can’t answer them, but because they want to discourage using it that way for—I’d guess because they want to direct usage towards the conversational / contextual aspects they’re trying to improve.

Re:Building an interpreter for my programming language with ... by tiagod on Sunday December 04, 2022 @10:02AM (#33854273)
The presumable pre-prompt, extracted through clever prompts, seems to indicate a browsing setting, which is disabled.

There's also WebGPT[0] already with such capabilities, which could've been merged to ChatGPT.

[0] https://openai.com/blog/webgpt/

Re:Building an interpreter for my programming language with ... by debugnik on Sunday December 04, 2022 @11:29AM (#33855059)
Keep in mind that "setting" is part of a prompt for a language model, also asking it to behave like an assistant: They're nudging it so it doesn't pretend that it can actually browse, but such setting might not actually exist.
Re:Building an interpreter for my programming language with ... by layer8 on Sunday December 04, 2022 @10:30AM (#33854522)
I’d love to have an AI that I can ask “give me a list of all currently available products satisfying all of the following conditions […]” (because Amazon and Google are largely useless when you’re looking for specific properties or have specific constraints). That is, it’s the query capabilities I’d be excited about.
Re:Building an interpreter for my programming language with ... by georgemcbay on Sunday December 04, 2022 @08:03AM (#33853333)
...and if they give URLs for sources that contributed to the answer (assuming those can be maintained in any meaningful way) it becomes a lot more difficult to handwave away the copyright minefield all of these AI prompt systems are attempting to tiptoe through.
Re:Building an interpreter for my programming language with ... by eligro91 on Sunday December 04, 2022 @09:12AM (#33853848)
the problem is ads. there will always be people who will try to promote their results, and it will somehow arrive to ChatGPT. there will be chatGPT SEO, people will try to promote their answers so that ChatGPT will chose these answers. Think of "what's the best pizza in NY" - SEO would pollute the web with hundreds of different articles which places Pizza Foo as #1, and those articles probably be scanned by OpenGPT. The good part here is that you might be able to optimize your query like "what's the best pizza in NY, based on /r/pizza subreddit? exclude bots (based on their karma reputation)"
Re:Building an interpreter for my programming language with ... by mudrockbestgirl on Sunday December 04, 2022 @06:27AM (#33852635)
The problem is that you cannot trust the output. It's often wrong, but in subtle nonobvious ways. For precise information you still need to check the sources to make sure what you're getting is correct. You can test it out with a (not-so-mainstream) topic that you're an expert in. You'll see lots of mistakes that are obvious to you, but wouldn't be obvious to non-experts.

But it's an incredible tool for brainstorming or generating content. I think that soon a large percentage of all online text content will be GPT-generated, and that comes with a lot of new issues that we're not prepared for. It's going to be really difficult to trust anything online and tell fact from fiction.

Re:Building an interpreter for my programming language with ... by ThouYS on Sunday December 04, 2022 @06:47AM (#33852770)
exactly that. It often seems correct, until you look up the actual answer. I was asking it how to unload models from triton server using the REST api, and the results seemed sensible.

However after googling the actual API, turns out ChatGPT's answer, while convincing, was utter rubbish.

Re:Building an interpreter for my programming language with ... by agumonkey on Sunday December 04, 2022 @07:18AM (#33853003)
maybe they should adapt it and bridge onto vetted sources
Re:Building an interpreter for my programming language with ... by bontaq on Sunday December 04, 2022 @07:27AM (#33853058)
The new issues will be interesting. Now that I've seen the quality of the output and played with it a bit I'm already squinting at comments here and there. We're in for an even stranger internet.
Re:Building an interpreter for my programming language with ... by dunefox on Sunday December 04, 2022 @07:40AM (#33853144)
So, it's exactly like Google search but more interactive?
Re:Building an interpreter for my programming language with ... by tazjin on Sunday December 04, 2022 @08:01AM (#33853316)
Google doesn't hallucinate completely fictitious results.

It will however index hallucinated results generated with GPT and published somewhere, so once we're at that point it really doesn't matter anymore.

Re:Building an interpreter for my programming language with ... by beezlewax on Sunday December 04, 2022 @09:07AM (#33853817)
It often links to out of date or ad-ridden content ripped from legitimate sources though.

Some kind of hybrid of this and search would be great.

Re:Building an interpreter for my programming language with ... by throwaway09223 on Sunday December 04, 2022 @09:10AM (#33853837)
Google search absolutely does hallucinate completely fictitious results. It's called SEO spam.

Google just gives you associations provided by random other people on the internet. It's largely garbage, most often deliberately disingenuous (to make you look at an ad). Ad revenue models for the internet encourage the generation of this type of false material.

A better criticism would be that the same thing will happen to something like chatgpt -- and the question is whether the model for analysis can better handle it at scale.

Re:Building an interpreter for my programming language with ... by tazjin on Sunday December 04, 2022 @09:45AM (#33854102)
> Google search absolutely does hallucinate completely fictitious results

No, it absolutely does not. Yes, there is SEO spam in the index, but no - it is not Google hallucating it. It really exists on the internet, see also the second point of my comment.

> the same thing will happen to something like chatgpt

This isn't something that "happens to" GPT, GPT is doing it. There's probably even already GPT -> SEO spam pipelines out there generating websites.

Re:Building an interpreter for my programming language with ... by throwaway09223 on Sunday December 04, 2022 @10:30AM (#33854524)
> "it is not Google hallucating it. It really exists on the internet,"

The exact same thing is true for chatGPT, or any other computer system. It is providing information and associations based on the input dataset.

> "GPT is doing it."

And google is "doing it," when google decides there is an association between my query and a bad response. Both systems are analyzing a corpus, drawing associations, and returning parts of that corpus. The output is deterministic based on the input.

The types of associations differ in their depth, but there is no fundamental difference in terms of agency or outcome.

Re:Building an interpreter for my programming language with ... by lossolo on Sunday December 04, 2022 @12:49PM (#33855852)
> The exact same thing is true for chatGPT, or any other computer system. It is providing information and associations based on the input dataset.

No, it's not, for example if you ask google to show you papers about some topic with words in quotes you think you remember from the paper it will show you the proper link IF it exists and language model will just generate you a result that doesn't exist.

If I search something on Google that doesn't exist or that it have no answer I can see looking at list of search results that probably either what I look for doesn't exist or my assumption is false but language model will generate you plausible explanation/answer that can be 100% false and it doesn't know or understand that it's false and you will have no way to know if it's false or true and no point of reference because ALL the results you will receive could be hallucinated.

Re:Building an interpreter for my programming language with ... by throwaway09223 on Sunday December 04, 2022 @02:37PM (#33856929)
> "if you ask google to show you papers about some topic with words in quotes you think you remember from the paper it will show you the proper link IF it exists and language model will just generate you a result that doesn't exist."

Not really.

What will actually happen is Google may link me the actual research paper, along with thousands of other associated pages which may or may not have all kinds of fake, false information. For example, if I search for "study essential oils treat cancer" I get an estimated 190 millon matching documents. A huge percentage of these have false and misleading information about using oils to treat cancer.

> "language model will generate you plausible explanation/answer that can be 100% false and it doesn't know or understand that it's false and you will have no way to know if it's false or true and no point of reference because ALL the results you will receive could be hallucinated"

With google it is third parties "hallucinating" the wrong answers (or worse: intentionally answering wrong in order to exploit and profit). The overall dynamic is not different. Google is providing these wrong answers, written by others.

The overall dynamic of providing information of questionable veracity is generally the same - because the question of who creates the associations and incorrect content is not particularly germane.

Re:Building an interpreter for my programming language with ... by lossolo on Sunday December 04, 2022 @02:44PM (#33857014)
You are mistaking again model with dataset. To be on the same knowledge depth they both have to use the same dataset, the difference is that in search engine you have points of references, rankings and reputation of sites, human discussion and the most important source of the answer, so a lot of signals on which you can also rank the answer yourself. In language model you have none of that, ZERO signals and not only it can return answer that was NOT in the dataset but it can make it plausible looking.
Re:Building an interpreter for my programming language with ... by throwaway09223 on Monday December 05, 2022 @09:24AM (#33866004)
> "You are mistaking again model with dataset. "

No, what I'm doing is considering the web content (incentivized by the ad systems Google provides) with the web search systems.

> "and not only it can return answer that was NOT in the dataset but it can make it plausible looking."

This is exactly what SEO spammers do. It's the same.

Re:Building an interpreter for my programming language with ... by Pxtl on Sunday December 04, 2022 @09:57AM (#33854213)
This is a distinction without a difference. Both Google and the AI can give you clever but fake results. So at this point the question is which produces fewer fakes?
Re:Building an interpreter for my programming language with ... by qayxc on Sunday December 04, 2022 @09:45AM (#33854107)
> Google search absolutely does hallucinate completely fictitious results. It's called SEO spam.

I wouldn't categorise that as "hallucinating fictitious results" - the algorithms still only returns existing results. If you follow the link, you will find key words embedded in the HTML or visible text in the browser.

Different kettle of fish entirely.

Re:Building an interpreter for my programming language with ... by mudrockbestgirl on Sunday December 04, 2022 @10:06AM (#33854318)
I think it's important to consider incentives. When you search for a topic that's controversial or political you will find lots of spam in Google. But in that case you understand that you need to approach the results with care and do your own research. GPT is the same here. You're not going to treat its answers about political topics as "the truth" - For these kind of topics GPT is actually quite good!

But scientific facts are a different story. Nobody has any incentive to claim that 1+2=4 or that some function in Python does X when it really does Y. So when you search for these kind of facts on Google you can pretty sure that you get correct answers, or at least someone trying to give you the best answer they can. But not so with GPT. It may give you incorrect answers even for these kind of facts if they are not within the reasoning ability / training data.

Re:Building an interpreter for my programming language with ... by throwaway09223 on Sunday December 04, 2022 @10:38AM (#33854592)
> "But scientific facts are a different story. Nobody has any incentive to claim that 1+2=4 or that some function in Python does X when it really does Y."

Incentive is irrelevant. What mattes is whether these things do happen, irrespective of intent -- and they do! I very, very frequently find incorrect answers to math questions, tech function questions, etc.

Incentive is an important part of the dynamic, but it's not important to consider if we're looking empirically at the integrity of the results.

> "So when you search for these kind of facts on Google you can pretty sure that you get correct answers, or at least someone trying to give you the best answer they can. But not so with GPT."

It is so with GPT. Both systems are "trying to give you the best answer."

I think what you're observing is that the Google search engine has two decades and billions of dollars behind it and ChatGPT is a research preview - not even a finished product.

I remember using search engines in the late 90s (in fact, I worked on one of the leading ones). I think you are extending far too much credit.

Re:Building an interpreter for my programming language with ... by lossolo on Sunday December 04, 2022 @01:12PM (#33856068)
> It is so with GPT. Both systems are "trying to give you the best answer."

No, based on your responses you do not understand how language model works. Google is searching in index using keywords and rankings, ChatGPT is predicting plausible words without searching anything anywhere.

What you argue is like saying there is this two guys in library and you ask them to find you something that exists or maybe doesn't exists, both have read all the books, one (Google) have created index of all the words from the books and is going through it to answer you and the other (ChatGPT) do not use any index but he uses his memory with compressed knowledge of statistics between words and will answer by trying to predict any answer that fits statistics between words and in many cases it will basically lie to you and you will have no clue that you were lied to.

There is distinction between indexing human knowledge about some topic where most of the top results are correct (Google) and creating statistics model between words and making things up that never existed and are wrong (ChatGPT).

Re:Building an interpreter for my programming language with ... by throwaway09223 on Sunday December 04, 2022 @02:29PM (#33856846)
> "Google is searching in index using keywords and rankings, ChatGPT is predicting plausible words without searching anything anywhere."

Expand your scope to both Google, and the creation of an ecosystem of SEO pages which Google incentives. They are the same, in totality. Google doesn't just index -- it also funds the creation of landing pages.

> "There is distinction between indexing human knowledge ... and creating statistics model between words and making things up that never existed and are wrong "

It's a false distinction. Google is more than a search engine; it is also an advertising company that incentivizes original content creation with the express intent of providing answers to queries.

Re:Building an interpreter for my programming language with ... by lossolo on Sunday December 04, 2022 @02:38PM (#33856941)
> It's a false distinction. Google is more than a search engine; it is also an advertising company that incentivizes original content creation.

Obvious straw man argument. Replace word google with search engine.

> Expand your scope to both Google, and the creation of an ecosystem of SEO pages which Google incentives. They are the same, in totality. Google doesn't just index -- it also funds the creation of landing pages.

This doesn't matter, you are mistaking dataset with the model. Search engine will not return to you things that were not in dataset, it will give you many results that you can judge with many points of reference. Language model will return you one answer, answer that could be a correct result that is inside the dataset or could be totally false and incorrect but plausible and you will have no point of reference to check that unless you use a real search engine.

Re:Building an interpreter for my programming language with ... by throwaway09223 on Monday December 05, 2022 @09:26AM (#33866037)
> "Replace word google with search engine."

No, I don't think I will. We are talking about the system as a whole.

> " Search engine will not return to you things that were not in dataset"

Yes it will, because the Google/SEO dynamic is in large part about incentivizing the generation of new content.

I understand you want to narrowly define away this fact to make a point, but the fact stands.

Re:Building an interpreter for my programming language with ... by throw16180339 on Sunday December 04, 2022 @02:53PM (#33857119)
Google search also sometimes adjusts your query to something completely different. Black romance is a romance where both characters are Black. Dark romance refers to romance with darker elements such as abuse, sexual assault, or violence. I searched for the former but received results for the latter; the word Black wasn't even present on the page.
Re:Building an interpreter for my programming language with ... by jonathanstrange on Sunday December 04, 2022 @09:14AM (#33853866)
It kind of does in case of their new Questions & Answers feature. They often give wrong or nonsensical answers to queries. To be fair, it doesn't hallucinate the results but offers little snippets from the web that answer something else than what was asked.
Re:Building an interpreter for my programming language with ... by skybrian on Sunday December 04, 2022 @06:58PM (#33859481)
Google links to sources that you can read for yourself.

ChatGPT doesn't, so you don't know where it got its information, and you'd have to do web searches anyway to get some possible sources.

Re:Building an interpreter for my programming language with ... by visarga on Sunday December 04, 2022 @07:46AM (#33853193)
You can trust it. Look again at the OP. They fed the whole language spec into chatGPT, only after that it became capable of coding in their language. If you ask people to solve tasks without references you will see a similar drop in ability.

The trick is to feed relevant contextual information instead of using it closed-book. This can be automated with a search engine, or can be a deliberate manual process. But closed-book mode is not the right way to assess people or AIs.

What are your counter arguments?

Re:Building an interpreter for my programming language with ... by davrosthedalek on Sunday December 04, 2022 @09:21AM (#33853911)
What's fascinating to me is that you can often point out the error, and it will correct them.
Re:Building an interpreter for my programming language with ... by zed1726 on Sunday December 04, 2022 @10:04AM (#33854299)
This means knowing the error in advance so it's not really the same problem being solved by search engines exactly. It's just a method of retrieving things you already know and can reason it into the correct state.
Re:Building an interpreter for my programming language with ... by drivers99 on Sunday December 04, 2022 @10:03AM (#33854287)
My go-to topic to test it with is talking about characters in the movie Hackers. I noticed in someone else’s session that it would take their correction but still hang on to the incorrect contradictory belief. In my session it came up with a seeming rationalization. So I tested it just now, trying to provide the correct information and directly contradicting the incorrect information (x is A. x is not B). That helped, but eventually it just choked. It seems to be handwaving and guessing (bluffing, bullshitting) at the most likely and generic answers when it doesn’t know something.

I’m thinking ChatGPT is best used for generating ideas, not factual information.

Re:Building an interpreter for my programming language with ... by babuskov on Sunday December 04, 2022 @07:28AM (#33853066)
> ChatGPT will be the google killer

This was my prompt: What's the relative distance between Sun and its planets compared to the size of Sun?

ChatGPT answer:

> The average distance between the Sun and its planets is approximately 5% of the Sun's diameter.

If you run into bunch of such answers, you will soon stop trusting it for anything.

As for Google - it doesn't even try to answer the question. But no answer is often better than a wrong one. Google at least gives me link to websites that have enough data for me to calculate it myself.

Re:Building an interpreter for my programming language with ... by habibur on Sunday December 04, 2022 @07:54AM (#33853263)
Google, Wikipedia, and historically the internet had been unreliable for many of the queries. More so in the beginning. But over time most of the errors are ironed out. ChatGPT is a very promising start I would say.

In the end convenience wins out at cost of correctness. The proportion matters, convenience::correctness.

Re:Building an interpreter for my programming language with ... by jonathanstrange on Sunday December 04, 2022 @09:25AM (#33853944)
How so? Anyone who sincerely asks a question wants the answer to be 100% correct, or the person answering to make it clear that they have a low confidence or don't really know. If the answer is false but stated with certainty, it is not only useless, it can even be worse than useless. There are other quality dimensions for answers, of course, such as the right level of detail and comprehensibility for the person asking, but these are all useless if the answer is false in the first place.
Re:Building an interpreter for my programming language with ... by bastawhiz on Sunday December 04, 2022 @03:50PM (#33857741)
> ChatGPT is a very promising start

It is not the start. It is at least the third iteration (if not more) of this tech.

> In the end convenience wins out at cost of correctness.

There's nothing convenient about a wrong answer. Wrong answers have no value. I could very easily build you a convenient service that is rarely correct but nobody would care.

Re:Building an interpreter for my programming language with ... by visarga on Sunday December 04, 2022 @07:58AM (#33853289)
For the same question I got:

> The distances between the Sun and its planets vary greatly. For example, the distance from the Sun to Mercury is about 36 million miles, while the distance from the Sun to Pluto is about 3.6 billion miles. The size of the Sun is about 864,000 miles in diameter, which means that the distance from the Sun to its planets is much greater than the size of the Sun itself.

Then it says something that doesn't follow, probably answering the more frequent question of relative sizes of the planets compared to the Sun

> To put it into perspective, if the Sun were the size of a basketball, the nearest planet, Mercury, would be about the size of a grain of sand, and Pluto would be about the size of a golf ball.

Re:Building an interpreter for my programming language with ... by intotheabyss on Sunday December 04, 2022 @09:55AM (#33854194)
Interesting. I got a totally different answer:

>The distance between the Sun and its planets is relatively small compared to the size of the Sun. The Sun is a massive object, with a diameter of about 1.4 million kilometers, while the distance between the Sun and its planets can vary greatly. For example, the distance between the Sun and Earth is about 150 million kilometers, which is about 100 times the diameter of the Sun. Similarly, the distance between the Sun and the outermost planet in the solar system, Neptune, is about 4.5 billion kilometers, which is more than 3,000 times the diameter of the Sun. So while the distances between the Sun and its planets are not insignificant, they are still relatively small compared to the size of the Sun itself.

I wonder if it chooses units based on where you are located, or if it's just arbitrary. Also, it seems clear from this example that is has no context for the answer because it doesn't see that its first statement is contradicting its next statements.

Re:Building an interpreter for my programming language with ... by pulvinar on Sunday December 04, 2022 @12:56PM (#33855927)
If you use the Q&A preset in the playground it will give Unknown if it doesn't know. You can also set Show Probabilities to Least Likely and see which parts of the result are guesses.

I also changed the Temperature from 0 to 0.5, and it gave the right answer:

Q: What's the relative distance between Sun and its planets compared to the size of Sun? Show your math.

A: The relative distance between the Sun and its planets is approximately 1/100th the size of the Sun. This can be shown mathematically by calculating the ratio of the radius of the Sun (6.96x10^8 m) to the average distance of the planets from the Sun (1.5x10^11 m), which gives a ratio of 1/100th.

Re:Building an interpreter for my programming language with ... by nonameiguess on Sunday December 04, 2022 @07:49AM (#33853220)
Is there a continuous retrain mode? From other articles, I was under the impression this thing doesn't know the current state of the world, just the slice of the world at a snapshot in time represented by its training set. I'm generally not going to a search engine to find the hours of my local pharmacy from two years ago when the search assistant learned human language. I want the hours for today.
Re:Building an interpreter for my programming language with ... by ahoho on Sunday December 04, 2022 @09:07AM (#33853811)
I assume it’s multiple orders of magnitude more expensive than Google because of the use of GPUs (not to mention the ad revenue)