News for hackers. Stuff that matters.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by xrd on Tuesday October 31, 2023 @02:50PM (#38089573)
I know it isn't popular, but I wish there was a way to use this inside Emacs. Or, vim. I just don't want to use VS Code anymore.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by mg on Tuesday October 31, 2023 @03:12PM (#38089932)
In Vim, I tried to assign a shortcut to send the selected text to Phind (or any other LLM) and came up with this:

:'<,'>y|call system('firefox <url>?q='.shellescape(@*).' &')

The only problem left is that the text is not urlencoded.

There probably is some elegant way to urlencode it. But I did not come up with one yet.

I guess I will wait until AI is able to cook up a nice solution. So far the, approaches it suggests are either not really good or too complex for my liking:

https://www.gnod.com/search/ai#q=Write%20a%20Vim%20shortcut%....

Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by wizzwizz4 on Tuesday October 31, 2023 @04:45PM (#38091136)
https://stackoverflow.com/a/76488059 claims to have one, though it's not explained.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by Jeff_Brown on Tuesday October 31, 2023 @02:59PM (#38089725)
If only the depth of our feelings for Emacs counted for more in the market.

There's an argument that music and the arts are dumbed down by the fact that, for instance, making an album worth $10 to millions of people pays way better than making an album worth a million dollars to tens of people, since the album is going to get priced at $10 one way or the other. It only just now occurred to me that the same phenomenon applies to tools.

Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by freedomben on Tuesday October 31, 2023 @03:01PM (#38089762)
The standardizing on VS code is one of the saddest developments over the last several years IMHO. I think it's great that VS Code exists, but we're headed for a world where you have to use VS Code if you want the best tooling because it won't support other options. The same thing happened with Java dev and IntelliJ, and IMHO it has been extremely unhealthy for the ecosystem. I'm immensely glad that Copilot supports vim, but I'm fearful that it soon won't.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by FreezerburnV on Tuesday October 31, 2023 @03:10PM (#38089908)
Same could have/could be said about Jetbrains products. People are likely always going to use vim/emacs and create tooling around whatever new hotness exists for them. And honestly? VS Code is just a new iteration on how vim/emacs work in a lot of ways: Providing a place to edit text and then a bunch of plugins that do things with that text.

And if you want vim/emacs to keep living, then you should spend time helping! Create your own extensions, maintain/contribute to existing ones, etc. They will only die out when the last person actively contributing to them stops, so keep the chain of people going :)

Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by papichulo2023 on Tuesday October 31, 2023 @05:20PM (#38091532)
Didnt vscode standardise language servers making much easier for all the rest text-editor-close-almost-ides to integrate? Is it really that sad?
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by freedomben on Tuesday October 31, 2023 @06:16PM (#38092177)
Very fair point. Vim has benefited tremendously from that effort.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by selfhoster11 on Wednesday November 01, 2023 @05:53AM (#38096317)
> The same thing happened with Java dev and IntelliJ, and IMHO it has been extremely unhealthy for the ecosystem.

While I agree, at the very least IntelliJ stood up on its own as a good IDE. I cut my baby teeth on Eclipse, and as soon as I realised how good IntelliJ is, I jumped ship without looking back. The same can barely be said about VS Code.

Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by bigdict on Tuesday October 31, 2023 @02:58PM (#38089709)
Pretty sure GitHub Copilot has emacs/vim integration.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by freedomben on Tuesday October 31, 2023 @03:02PM (#38089779)
It does, although not the most recent features. I use the compatible features in Vim and I really like it. Not enough to switch editors though.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by notpublic on Tuesday October 31, 2023 @03:08PM (#38089875)
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by fictorial on Tuesday October 31, 2023 @03:18PM (#38090016)
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by haarts on Tuesday October 31, 2023 @03:07PM (#38089857)
You and me both brother. LSP integration seems the way forward.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by accoil on Tuesday October 31, 2023 @05:58PM (#38091989)
Maybe ellama[1] would work? It doesn't support Phind yet, but a provider could be created for the underlying connection package llm[2].

[1]: https://github.com/s-kostyaev/ellama

[2]: https://github.com/ahyatt/llm

Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by regularfry on Wednesday November 01, 2023 @05:10AM (#38096056)
I've hacked together a basic Emacs ollama api integration that does simplistic code completion against a local LLM from someone else's copilot example. It's slower than I want (about 7 seconds per inference on my M1 mac, typically) and very stupid about what context it sends, but nevertheless: it's just, and only just, enough to be useful. Hadn't considered publishing it because it relies on a python façade to convert copilot-style requests and responses back and forth to ollama, but if there's interest I'll spruce it up and get it out.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by regularfry on Wednesday November 01, 2023 @05:12AM (#38096080)
From downthread, just use ellama. They're further ahead than me by the looks of things.
Re:Show HN: Phind Model beats GPT-4 at coding, with GPT-3.5 ... by ewokone on Saturday November 04, 2023 @12:18PM (#38142442)
I have been a vs code power user and switched to pycharm two years ago and will never go back because of the features for working with multiple environments and projects in pycharm.

Working with phind needs to be available in pycharm for me considering switching from gpt4 to phind. Chatting with phind on my local files is the feature I am looking for.