reddit / emacs

I wrote an Emacs package for ChatGPT

avindroth · 2022-12-10 16:20
Demo: https://www.youtube.com/watch?v=4oUrm4CnIjo Repo: https://github.com/joshcho/ChatGPT.el
psd6 · 2022-12-10 16:37
I know there are limitations to this AI, but not gonna lie— this looks awesomely handy.
deaddyfreddy · 2022-12-10 16:48
`:quelpa` keyword supports recipes
TheLastSock · 2022-12-10 17:53
Here is the real question, did you use chatgpt to make an emacs client for itself.
Llamanator3830 · 2022-12-10 18:03
I'm guessing this won't work once the research preview period is over for ChatGPT. If so, I think it would be beneficial to the FOSS community if we had something similar to leverage new AI capabilities on Emacs and other editors.
rishianand · 2022-12-10 18:18
GNUGPT? Where is RMS? :)
avindroth · 2022-12-10 18:23
It actually helped a lot :) I had forgotten about deferred and it wrote a large chunk of that. I had to rewrite the README tho because it’s be very verbose. While it’s not perfect, it gives you good ideas that you can jump from.
simendsjo · 2022-12-10 18:52
Awesome! Well done! You have to convert the output to org (using pandoc..?) and integrate with coming ;)
ireallywantfreedom · 2022-12-10 18:55
You can ask it to rewrite things more tersely. E.g. "redo that in the style of Hemingway", or Hunter S Thompson if you're in the mood.
_puhsu · 2022-12-10 19:04
There is in fact an open replication of GPT-3 out there by bigscience initiative: https://bigscience.huggingface.co/blog/bloom They also recently released a tool https://petals.ml for collaborative inference (so you could infer it without eight A100 GPUs). Would be interesting to integrate this open model with emacs in some way! There are also other LLMs in the open: https://github.com/facebookresearch/metaseq/blob/main/projects/OPT/README.md https://github.com/paperswithcode/galai https://github.com/yandex/YaLM-100B
avindroth · 2022-12-10 19:11
Rewrite in the style of John Carmack? I should try that.
avindroth · 2022-12-10 19:13
Yeah it doesn’t handle org all too well. It mostly generates markdown. But since it remembers, maybe prompting it (like “in org, we use ~ instead of ‘) may work.
simendsjo · 2022-12-10 19:26
[Unfortunately, it doesn't look like it can output as org](https://user-images.githubusercontent.com/351519/206872037-70659a61-56c7-4714-ad76-1bbacf293082.png)
avindroth · 2022-12-10 19:43
I have noticed that if you ask directly, it will say no, but you can sort of lead it to give you the right answers. I will play around with it today.
simendsjo · 2022-12-10 19:47
Sounds like a robust solution; tricking the AI to do something it says cannot be done :)
simendsjo · 2022-12-10 19:48
Ask it to promote your product in the style of Donald Trump. It becomes the best software in the world! Throughout eternity! I promise! It's the best!
paretoOptimalDev · 2022-12-10 20:03
Last night it helped me understand pcomplete well by providing simpler examples!
shaunsingh0207 · 2022-12-10 20:34
I'd like to also through https://github.com/semiosis/pen.el as an option. It integrates quite a few open source clients into emacs and can turn it into an "imaginary" editor of sorts
paretoOptimalDev · 2022-12-10 20:36
I asked it for a 3d cube in haskell. It gave me something imperative using GLUT. I said "make it functional" and... It gave me a 3d cube using gloss. It's pretty powerful if you understand it can be wrong and how to detect that it's wrong. It also created a nix flake for my haskell project, but had trouble switching to haskell.nix flake.
mobatreddit · 2022-12-10 22:19
Hot!
jplindstrom · 2022-12-10 22:56
It's not clear from the demo video: In the first general-query example, can you continue the conversation at the bottom of the answer and ask another question? Or is it a one-question-one-answer thing?
nv-elisp · 2022-12-11 02:03
I wouldn't [rely on it too much](https://github.com/joshcho/ChatGPT.el/issues/1).
avindroth · 2022-12-11 02:36
All the conversations are persistent, so it remembers your queries.
anisoptera42 · 2022-12-11 03:16
One big problem with your prompt is that you provide it with an example of it refusing org-mode the second time around. In other words, it submits the entire conversation history every time, so you’ve actually prompted the AI to refuse your second slight rewording. If you want to try and trick it into producing orgmode you have to edit the first line.
avindroth · 2022-12-11 05:58
This is actually incredibly interesting.
shaunsingh0207 · 2022-12-11 06:16
I know right? The author is a bit ... wack, but its those interesting people that come up with such incredible ideas "Living" in emacs is certainly a bit of a meme, but as a challenge for about a month I've *genuinely* ignored reality through the help of this plugin and some custom scripts. It's incredible what AI can do. I had imaginary friends, I was coding in an imaginary language, running through an imaginary interpreter, hosted on an imaginary docker container, browsing an imaginary version of the web. I even played a good portion of a (terribly written) d&d campaign. It's definitely weird and affects you emotionally but I feel like AI will enable us to reach such high levels of escapism in the future that its quite scary and honestly could be detrimental to society
avindroth · 2022-12-11 07:13
DM'd you cuz this is too interesting
shaunsingh0207 · 2022-12-11 07:28
Could you resend the DM request? I don't think I got it
avindroth · 2022-12-11 07:49
I just sent u a msg, did it go through?
aard_fi · 2022-12-11 11:32
I've been playing around with that since yesterday - it seems an (unfortunately common) network error when talking to ChatGPT gets it into a slightly weird state now and then. Other than that it is quite useful - currently looking into gnus integration to make it reply to emails for me.
gerrywastaken · 2022-12-14 14:25
I did