Re:Programming with ChatGPT
by pseudosavant on Wednesday August 28, 2024 @02:07PM
(#41382364)
I'll echo this sentiment. LLMs have made it so easy to create bash scripts to make things easier, write code in languages I don't write in, or even just for writing up the README.md just based on the code I've written.
I just finished my initial prototype for a Raspberry Pi Zero W based audio recorder. These are all the things it does:
- It has a single button connected to GPIO that starts/stops recording
- An LED indicator connected to GPIO
- Queries the available recording devices, choosing the external USB audio interface if available and setting the appropriate bit-depth
- Launches ALSA's `arecord` in a subprocess to handle the actual recording (<5% CPU on a Pi Zero W when recording 48k @ 32bit)
- The script is setup as a system service
- Nginx is running to serve up the WAV files using a web UI
- There is a simple service to start/stop recording and get status via an API the web UI can use
It is all in Python, which I don't really write, but is the default for these kind of Pi projects. 100% of the code, service definitions, Nginx config, README.md, etc were written by LLMs, mostly Claude.
I just finished my initial prototype for a Raspberry Pi Zero W based audio recorder. These are all the things it does: - It has a single button connected to GPIO that starts/stops recording - An LED indicator connected to GPIO - Queries the available recording devices, choosing the external USB audio interface if available and setting the appropriate bit-depth - Launches ALSA's `arecord` in a subprocess to handle the actual recording (<5% CPU on a Pi Zero W when recording 48k @ 32bit) - The script is setup as a system service - Nginx is running to serve up the WAV files using a web UI - There is a simple service to start/stop recording and get status via an API the web UI can use
It is all in Python, which I don't really write, but is the default for these kind of Pi projects. 100% of the code, service definitions, Nginx config, README.md, etc were written by LLMs, mostly Claude.