←back to thread

207 points todsacerdoti | 2 comments | | HN request time: 0s | source
Show context
ikari_pl ◴[] No.46004050[source]
Today, Gemini wrote a python script for me, that connects to Fibaro API (local home automation system), and renames all the rooms and devices to English automatically.

Worked on the first run. I mean, the second, because the first run was by default a dry run printing a beautiful table, and the actual run requires a CLI arg, and it also makes a backup.

It was a complete solution.

replies(3): >>46004066 #>>46004101 #>>46004754 #
igravious ◴[] No.46004101[source]
I've gotten Claude Code to port Ruby 3.4.7 to Cosmopolitan: https://github.com/jart/cosmopolitan

I kid you not. Took between a week and ten days. Cost about €10 . After that I became a firm convert.

I'm still getting my head around how incredible that is. I tell friends and family and they're like "ok, so?"

replies(3): >>46004170 #>>46004251 #>>46005594 #
RealityVoid ◴[] No.46004251[source]
I am incredibly curious how you did that. You just told it... Port ruby to cosmopolitan and let it crank out for a week? Or what did you do?

I'll use these tools, and at times they give good results. But I would not trust it to work that much on a problem by itself.

replies(2): >>46004645 #>>46008917 #
1. igravious ◴[] No.46008917[source]
unzipped Ruby 3.4.7 into the appropriate place (third-party) in the repo and explained what i wanted (it used the Lua and Python port for reference)

first it built the Cosmo Make tooling integration and then we (ha "we" !) started iterating and iterating compiling Ruby with the Cosmo compiler … every time we hit some snag Claude Code would figure it out

I would have completed it sooner but I kept hitting the 5 hourly session token limits on my Pro account

https://github.com/igravious/cosmoruby

replies(1): >>46009770 #
2. simonw ◴[] No.46009770[source]
Looks like this is the relevant code https://github.com/jart/cosmopolitan/compare/master...igravi...