Am I the only who think this is incredible!?<p>If you would've told me a year ago when we would have an ai that can code based on normal human language prompts, I would've said maybe in 2025 or 2026, but its 2022 and it already exists!<p>Man, if this what we have now, imagine what we will have in 2025 or 2030!<p>I just hope this doesn't end up killing search engines and personal blogs, since no one needs to search for anything anymore.<p>Also Ai generated replys are definitely an Extinction level threat for forums and the independent internet in general, let's hope OpenAI can find a way to make chatgpt replies easy to filter out.
Just today I used ChatGPT to help me speed up writing somewhat trivial C Code for a project in an embedded systems class.<p>Prompt: "Generate a tiny PID controller with only a Proportional factor written in C. That takes a rotational input from -360 to 360 degrees. The setpoint in degrees. And returns a motor speed in the range of -255 to 255."<p>=> Produced a compiling correct result.<p>Later I wanted to know how to communicate between my kernel module and user space program:
Prompt: "How do I get a value via character device from my kernel module into my user space c programm?" gave a bunch of answers and digging deeper with Prompt: "Could you provide me with an example of the user space program" gave a compiling and correct answer again.<p>I could have written all of that myself while spending a good amount researching on google. But this way I felt less frustrated and was definitively a lot quicker.<p>Not the solution for everything but maybe for a C beginner where research can take a long time and often leads to more confusion than anything else. Now the question is if that confusion is critical in the learning process. And if so how critical and at what stages of the experience spectrum the most?
I just bought a Streamdeck (<a href="https://www.amazon.com/Elgato-Stream-Deck-Controller-customizable/dp/B06XKNZT1P" rel="nofollow">https://www.amazon.com/Elgato-Stream-Deck-Controller-customi...</a>) for Cybermonday and attached bash scripts similar to those mentioned by the author to buttons next to my keyboard. It is delightful.
> But it fucking sucks. Like, it’s truly awful to write<p>I feel like I'm the only person among my peers to think this and I don't understand why.
On the other hand I’ve had vastly different experience.<p>Every single time I went to GPT and ask for anything development related I came back empty handed after being send for the goose chase.<p>An example of this would be when I asked fswatch to emit one faux event preemptively and it insisted to use “-1” instead (which quits after one event).<p>I had few instances for more obscure problems where GPT would actually create something I’d call parallel universe of the API. It felt good but such API never existed. Those problems were in JS, Ruby, Shellscript and Elixir.<p>One of the worst answer I was given was actually really buggy implementation of input controlled debounce function. It seemed correct when running but in reality it wasn’t debouncing but ignoring the output on debounce call.<p>So yeah, I don’t think I’ll be using GPT for that soon, but it works quite well as a rubber duck equivalent. By proposing dumb solutions I gather my thoughts better. Not sure if that’s something I’d pay for (yet I’d pay for text generating capabilities)<p>Edit: denounce -> debounce, because autocorrect
This is a great example of how someone with little programming knowledge could leverage an AI into building simple scripts.<p>Lately I've been encouraging my friends into trying just that.<p>If the poster would want, for example, to save all current tabs when switching context (going from dev to marketing, for example), this would quickly turn into a more involved debugging/prompting question.
ChatGPT has been amazing for all kinds of programming-adjacent things, even in my line of work where I asked it for help modifying the config file for a selfhosted gitlab instance.<p>> But [Bash] fucking sucks. Like, it’s truly awful to write [...]<p>As an aside, considering how basic the shell script actually was, I think this is a great example of being so intimidated by something that you don't actually try and use it - until you do, and discover it wasn't actually that bad. The hardest part was just discovering the incantations for interacting with Chrome - which was a fantastic demo of the power of ChatGPT.
So the author complains about bash, but uses zsh<p>They also basically uses the chrome cmdline commands and blames bash for that being bad<p>Your problem doesn't seem to actually be bash (but chatgpt really makes it super easy)
It's semi-replaced Google and StackOverflow for me. It's like having an interactive rubber duck <a href="https://en.wikipedia.org/wiki/Rubber_duck_debugging" rel="nofollow">https://en.wikipedia.org/wiki/Rubber_duck_debugging</a>
I find bash to be pretty awesome, it’s super easy for an old hat like me to use. It just works and it has been mostly unchanged, two core principles more projects should consider.
This is a relatively common use case for browsers that's usually solved by tab groups. I'm happy the author learned bash and leveraged new tools to solve the problem, but it's a little over engineered.
I've been using it more and more at work, and it's already saved me hours by generating bash commands and simple scripts/servers that I would otherwise have to search for on Google and adjust to my specific use case from multiple sources. Thanks to this tool, I have more time to focus on difficult and business-related problems. If they start charging for it, I will definitely become a paying customer. This is an excellent tool that is making me more productive, and I was a big skeptic about how LLMs work internally. Remove hallucination problem, add annotations with links to sources and this is how Google will look like in a few years. IMO this is how future of knowledge search will look like on the internet.
Wow, yea, I've have the exact same experience with bash.<p>"im using mac, not linux" is an often prompt I need to use, but otherwise this type of flow works great for simple bash functions.<p>For more advanced scripts, prompting & careful flow are important, but I've done some pretty awesome things. Today, ChatGPT helped me create a bash script to create a flat structure of large tars from an nTiB dataset directory by aggregating multiple sub-datasets & their files into the desired tar file size. Eg. "need single tar files of all the data in that folder/subfolder, every tar file must be 50GB, most files range from 4MB-1GB. So, need to aggregate them"
This is an awesome walkthrough and gets me thinking about all the other automation tasks I could get done with ChatGPT-driven bash scripts... can take this same approach to context switching for actual apps. For ex: "dev" branch can open up vscode, terminal windows, linear, server logs, etc, while "marketing" branch can open up slack, chrome (to email), twitter, notion, etc
I was just commenting to a friend how annoying it is that macOS aliases can't add flags to executables like you can easily do in Windows shortcuts since, what? Windows 95?<p>If you want to launch Chrome with flags through your dock/UI you have to compile an AppleScript to an .app. It's crazy.
I am very excited to see this being integrated with a lot of productivity tools -- removing the need for manually copy-pasting the ChatGPT output into various other apps like VS Code or Excel :)<p>"Create a new Python project folder named 'hello-openapi' and initate a git repo. Create a requirements.txt with openai, os and json. Create a starter python file with an openai example code and make the first commit."
I find it interesting how much harder it is to grok bash/sh/zsh than other languages I’ve learned. Off the top of my head it may be tooling like the lack of linting, or maybe it’s just experience as I avoid complexity like the plague when writing bash which sounds like a self fulfilling feedback loop.<p>Gpt does seem to unblock this mental burden a bit which has me excited for its potential when it comes to education/teaching.
Try LLM.sh - GPT-3 in your terminal<p><a href="https://github.com/jayhack/llm.sh">https://github.com/jayhack/llm.sh</a><p>Type `llm [natural language command]` and it will suggest a command for you, then run it.<p>Details here: <a href="https://twitter.com/mathemagic1an/status/1590480438258462721" rel="nofollow">https://twitter.com/mathemagic1an/status/1590480438258462721</a>
yeah, game changer. it's deprecated having to click on links for common use-cases and not only that, it's improved it by more than 10x. can't wait to see this technology evolve.
i will take a chance anywhere i can to just say it's a crying shame how useful this is - but also how crap it is that it requires use to be linked to your identity...