My wife brought home an electronic piano for the New Year. I asked AI to write a command-line tool to control it, and I wanted AI to play the piano for fun. Because it needs to connect via Bluetooth, I implemented it in Objective-C. Later, I found that pure command-line operation couldn't maintain the hardware connection, so I changed it to an RPC service that the CLI connects to and calls. I then discovered that it was struggling with panics caused by multi-threading and memory management, which made me realize that the RPC service was also implemented in Objective-C. It seems AI also doesn't like memory management and multi-threading😅. PS: For more complex problems like this, Codex is reliable.

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
0/400
No comments
  • Pin

Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate App
Community
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)