Hacker Newsnew | past | comments | ask | show | jobs | submit | shazar's commentslogin

I gave it two tries, GPT-4 was much better in both cases. Tried with two Leetcode questions. It came back with an empty response for one, and provided a worse code (O(n2) solutions when it can be done with linear time) for the other one.

GPT-4 on the other hand provided a good answer for both questions. Also I guess the UI is buggy w.r.t code formatting, it things the following line is a code and switches to a code block.

``` You are given an array prices where prices[i] is the price of a given stock on the ith day. ```

The only downside for GPT-4 for me right now, is its slowness.


GPT-4 has ingested all of Leetcode, you can literally just type "leetcode 100 python" and it will regurgitate a response for you.

Only exception I found is with some of the Leetcode Premium questions, you might have to actually type in the problem statement, but it's still very likely that multiple solutions have been ingested from GitHub and elsewhere.


I suggest you try enabling "Ignore search results" from the model dropdown for these types of questions. The web results can be distracting for the model for Leetcode-type questions.


I see you've had to suggest this a few times in this thread, and in my experience I would agree with the suggestion. I wonder if you can have a simple gpt model decide automatically when ignoring search results would improve the result and do it automatically.


Interesting idea.


I tried with that option enabled and now it can't generate code at all. Here's my prompt:

``` You are given an array prices where prices[i] is the price of a given stock on the ith day.

Find the maximum profit you can achieve. You may complete at most two transactions.

Note: You may not engage in multiple transactions simultaneously (i.e., you must sell the stock before you buy again).

Write Python code to solve this: def maxProfit(self, prices: List[int]) -> int: ```

Output:

``` It seems like you want to find the maximum profit that can be achieved by buying and selling stocks, with the constraint that you can only make at most two transactions. Is that correct?

Could you please provide some example input and output to help me better understand your requirements? ```

I also tried a more basic prompt, but the output is not what I'd consider good code.

Can you maybe share some examples where we can see how it exceeds GPT-4's capabilities? Thanks!



In my own RAG implementations in the industrial sector, I've found it effective to first have the AI decide whether it needs to search at all. If it doesn't, the answers are much better.


Just tried a few languages and there seems to be a problem with German speech to text. When I say "Hallo" it just thinks I said "Untertitel der Amara.org-Community" :-)

English and Spanish seemed to be functioning OK though, but I really wanted to test my German.


The reason for this is quite interesting and is due to the data that Whisper (the transcription service) was trained on: https://github.com/openai/whisper/discussions/928


Thanks for the comment. Sometimes if you toggle the microphone quickly without saying anything, it will halucinate something. If you could, is there any chance you could try again in German and let me know if it's still not working?


Curious about this, why do you think it hallucinates? Isn't that supposed to be the direct output from speech recognition?

PS: Just happened with Spanish now as well, which was working fine. (You: Subtítulos realizados por la comunidad de Amara.org)


No, still not working. Also tried a bunch of other languages and they all seemed to work except Turkish, which also spits out something related to subtitles...


Ah darn - okay, thanks for the feedback. I'll find a way to stop it from doing this.


It would be amazing if the microphone detected say 15 second silence and responded automatically for a fully hands free experience


Yeah - this is a good shout


Unrelated to the article, but hijacking the history and making it impossible to navigate back is the new cancer in the internet I guess.


I seem to recall that hijacking the back button goes back to the 1990's. I suspect some of the ways in which it was done (like with naive redirects) probably don't work today, but the annoying effect has been there for eons.


I remember browsers stopped it for awhile. Maybe I’m misremembering?


I don't think you are. I think early versions of the problem happened because the website did a redirect: x.y.com/ would sand you to w.y.com/ and your browser would stupidly remember that as a user navigation. Your back button from w.y.com would take you to x.y.com, which would perpetrate the redirect. The fix for that is not to enter redirects into the back history, only user-initiated navigations.



Here’s the direct link to the video:

https://youtu.be/B2h5WwrkJFg

I enjoyed it immensely.


I thought people would find it really boring, hence the 800% speed up on most clips. Very glad to hear at least some people enjoyed it


Congrats, very well done! What was the laser doing the cutting and engraving?

I loved the video format, reminded me of the Primitive Technology channel where he just gets out of the way and lets the work itself (plus closed captions) do all the talking.


Just a no name, Chinese, 20W fiber laser. Takes a minute to get through but it works.

Would have liked to do a little more talking but the video already took way too bloody long and I didnt know if anyone would watch it


You should narrate the video, it would make it easier to follow for people who've no idea what you're doing (like me).


Did a few captions and would have liked to do more narration. Needed to get it done for an Instructables competition tho so just posted it as is


This is the opposite of boring :) Thank you and well done!


That's why I just middle click to open everything on a new tab nowadays. Back button still works 90% of the times, but when it's hijacked it's incredibly annoying, and I have plenty of monitor width for the tabs.


That's why I still prefer laptop to mobile or tablet: there is a middle click.


Longpress on iOS Safari gives you a menu that lets you open a link in the background, which is essentially open in a new tab. I use it all the time, e.g to work through the HN front page selecting some comment pages to read later


Ah!

I wish I could say thanks, but when I tried it out just now, I realised that I have seen it many times — trouble is, it's labelled in my mind as "that annoying popup I keep triggering by accident, how do I disable it?"

Still, have a metaphorical cookie: even though I don't like the thing, sharing knowledge kindly is always good :)


If nothing else, now you know what behavior was triggering the thing you don't like. Maybe now you can start to make it only happen deliberately, which might make it less annoying.


Too bad some modern sites even somehow block middle clicks.


A website cannot block the right click "open as new tab" action, and since that's what my gesture based interaction add-on uses, I'm safe.

https://addons.mozilla.org/en-US/firefox/addon/gesturefy/


Im on a mac cmd+click has always been reliable

Not sure I've seen this on the wild


This is an abuse. And it’s one of obligations of web browsers to protect users from abuse.


Another dark pattern is hijacking back to move you to the 'front page' of the site. Like twitter, get linked to a tweet and then the back button takes you to your feed, which absolutely nobody requested.


I'm surprised to see this from Instructables (Autodesk). If you right-click the back button you'll see that it did four redirects and you can click the 5th to get back.

I highly doubt this is effective at anything.


Why do browsers even allow this behavior? The back button should automatically skip any blind redirects.


It's not the back button, but these two otherwise useful APIs used in a malicious way together:

https://developer.mozilla.org/en-US/docs/Web/API/Window/befo...

https://developer.mozilla.org/en-US/docs/Web/API/Location/hr...


because Single-Page-Applications

they want the back button work with app internal state changes


Single page apps don't require a frontend router and the same can be achieved by unconditionally sending a redirect from the server side for any request as long as you also hook into the "beforeunload" event in the browser.


Instructables went down the pan years ago when they tried to paywall the allsteps view.

Autodesk as a company are known for shitty behaviour, so it doesn't surprise me they made it worse.


It’s been common for ages and stupidly built single sign on sites have made it even worse.


The other thing I've seen is they scroll you to the bottom where those weird article embeds are.


Congrats on the launch!

Was it an intention to make the design similar to https://gumroad.com/? Or am I the only one seeing an uncanny resemblance?


(I'm a designer at Plus) It wasn't our intention to look specifically like Gumroad, but some of the visual patterns are definitely similar. This aesthetic is making the rounds right now: https://bootcamp.uxdesign.cc/the-neubrutalism-or-neo-brutali...

We were looking for something that felt approachable and fun, magical but not mysterious. After trying a bunch of different things, this is where we landed.


They look very different to me. Maybe a similar-ish color palette is what you're seeing?


I agree, looks a lot like Gumroad


> So if you’re writing code and are trying to use the time 00:00:00 to represent “no time”, you will be wrong in these countries.

Well, obviously using `00:00:00` as no-time is a terrible idea, but isn't that statement just wrong? If it's used to represent no-time, it would actually have a very low chance of doing what it's supposed to do in those countries, but fail all the time at all other time zones.


FogBugz calculated “daily task” times based on the site’s time zone. If this was set to a timeline like Chile, the daily tasks processor would crash in a loop, until the next day, which did have a 00:00:00. This caused horrible alerts to plague the systems engineer on call.


Aren't week/weak and piece/peace pronounced exactly the same?


I'd pronounce those the same (western US accent), but it can vary. Check out the caught/cot merger, for example: https://en.wikipedia.org/wiki/Cot%E2%80%93caught_merger


They are for me. Exactly the same pronunciation and emphasis. Maybe there are some dialects of English where they are not pronounced the same.


They're really quite close, both pairs of them. But the emphasis isn't quite the same as most people speak it.


As a speaker of fairly standard British English, I would say they are homophones; I tried but couldn't find any natural way in which I could pronounce them differently.


dictionary.com shows both with the same IPA: \wik\ and \pis\.


I think they're identical.


I’m sure, in many accents, that they are. Definitely not the same in Australian Strine.


As an American, I knew about Straya but this is the first I've heard of Strine. Or should I say Murican :)


They're identical in Australian English.


Which one?


They are identical. I think he was making a distinction between {week, weak} on one hand and {wick} on the other (but I was also initially confused by the way he put it). This is a big hurdle for native Spanish speakers as well, because i in Spanish is always pronounced as "ee". There seem to be a lot of embarrassing word pairs around these vowels; sheet, beach, etc.


Yeah what I meant is that it just increases the possibilities of awkwardness. Piss of cake, piss process, etc.


Yes, they're homophones.


Can you share a few of these issues? Been using SQLite for years and don’t remember a running into anything as you described.


I agree, it is heard to read. Used Firefox's Reader View.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: