r/shittyaskelectronics • u/ExpensiveCoat8912 • 16h ago
r/shittyaskelectronics • u/Cesalv • 9h ago
How many bad boys like this do I need to download the whole Internet?
r/shittyaskelectronics • u/Overall_Tennis_7983 • 16h ago
Genius level thinking So my warranty is not voided because I damaged it but did not remove it?
r/shittyaskelectronics • u/3801sadas5 • 1h ago
Is this a good idea? Is there anything I can do to increase the charging speed?
r/shittyaskelectronics • u/AspiringDev07 • 20h ago
altman Hello I am new to reddit is it safe to put glue stick on ram and will it cool it down I am trying to make ram with fan
r/shittyaskelectronics • u/National-Studio-2103 • 23h ago
Genius level thinking How I vibe code for security-critical firmware, plus tips.
Hello, I'm a firmware engineer in Brazil and I work for a company that develops firmware for radiotherapy machines, specially LINACs. We write firmware for step-motor drivers for the gantry, beam energy and timing, turntable position (for exchanging between X-ray and Eletron modes), CAL data for ion-chambers, etc...
The company I work at forbidden the use of AI at developing firmware for safety-critical hardware, however I take home most of the work and do it with Claude while at home, just copying the AI-made firmware back to the company's computer.
Yes, Claude is good enough at writing firmware, better than myself included. There's some things that you need to consider tho.
- Always ask Claude to write the firmware with "make no mistakes, this is critical" at the end, but never tell it that's a LINAC's code, otherwise it might refuse to write (it happened to me once).
- Always use EFFORT to the maximum allowed.
- After the code is compiled, there might be few things that may go wrong. Use the Google Gemini to revise the code, it's always good to have a second-check. Also, keep changing the code until both AI agree.
- Don't worry about getting something wrong, most of modern machines have mechanical interlock anyway.
- TEST YOUR CODE on a simulator for 12h. After, try the version you developed at the machine for the same amount of time.
- PLUS: always remove the commentaries made by AI and replace with your own. If your collegue reads, he'll probably tell it's AI genenated.
- PLUS 2: Feed the AI with a code developed by yourself, and asks AI to write variable names and function the same way do usually do. ifYouWriteLikeThis please don't let AI WRITE_THE_CODE_LIKE_THIS. People will notice.
If you don't know how to structure your code, you can also ask Claude to do so. Even if you're going to write the code, Claude can help you to structure it (functions, etc...) in the best way possible.