potapenko (@potapenko) profile picture

Creator https://xitter.gq/t.co/k15imoB7je, https://xitter.gq/t.co/bVEjXFMvdF

Petrovac, Montenegro
Joined January 2009
Ported a project from Clojure to SwiftUI. It works. Sort of. But the amount of messy code is kind of impressive. The concepts are different, sure. Still feels like Codex is much worse at SwiftUI than it is at Clojure. Maybe there is more bad SwiftUI in the training set. It also keeps trying to sneak AppKit into everything. Any problem, any screen: here, have some AppKit. Codex really loves AppKit. Maybe 80% of the Apple UI code it was trained on was written with AppKit. It's the older technology, after all. Yesterday I got sick of wrestling with SwiftUI in Codex. Then I talked it through with ChatGPT and decided to build a skill, plus some tooling, for analyzing Swift code trees. Nothing too fancy. Or so I thought. The tool turns the Swift code tree into a kind of pseudocode and hands it to an agent. The agent analyzes the patterns and suggests improvements. I keep feeding it new patterns, and it adds them to the analysis. Repeat. So far, kind of fun. I thought this would be some tiny little tool. It turned into 6,000 lines of Swift overnight. And somehow it uses three pretty big libraries just to analyze Swift code. Apparently not so tiny. github.com/potapenko/swiftui…
119
Lately, for some reason, I keep thinking about the future of humanity. Which sounds a little ridiculous, obviously. But who doesn't think about humanity's future? Only people who are busy thinking about the Roman Empire. With AI, that future suddenly feels less abstract. Musk will launch some hypothetical million satellites, computing power will keep growing, new chips will appear, and AI will help design whatever comes next. The whole thing keeps accelerating. I also have a slightly cynical theory about all the absurd money pouring into AI. Some of the people controlling it are fabulously rich, getting older, and hoping to live long enough to see rejuvenation that actually works. Not immortality. Just a way to roll the body back a few decades. A perfectly understandable investment thesis. One research direction is partial cellular reprogramming: trying to reverse some age-related changes without turning the cell into something else entirely. Nature offers a few clues too. The germline continues from generation to generation, while cancer cells can evade the normal limits on division. The latter is more warning than instruction. Safe rejuvenation of an entire human body is still a long way off. But the idea no longer sounds like pure magic: reset our cells closer to factory settings without wiping the user's configuration - memory, personality, everything else. Suppose it works. People live, not forever, but for a thousand years or so. Then what? Does a stupid person get smarter over a millennium? Probably not. Wiser? Maybe. Though if the treatment restores 20-year-old hormones too, I wouldn't bet much on wisdom. Society would generate enough new problems to fill those thousand years. But if we really are alone in our visible corner of the universe, humanity has a lot of settling to do. We'll need everyone - the wise, the hormonal, even football fans. Especially if technology keeps developing faster than common sense. I keep wondering where all those people would live, even within our own Solar System. The first step might be rotating space cities with artificial gravity, like the ones in Interstellar. Then maybe a Dyson swarm, or something close to a Dyson sphere. Dismantle asteroids, planets, almost everything we can reach, and turn the material into habitats around the Sun. Perhaps one day Earth becomes construction material too. The living area would dwarf Earth's surface. There would be room for an absurd number of people. Then imagination takes a completely indecent leap: what if dark matter is actually the trace of civilizations that sealed themselves inside structures like these long ago and somehow hid their emissions? This is where I probably give astronomers an eye twitch. We expect Dyson spheres to reveal themselves through infrared waste heat, and dark matter doesn't fit this explanation. Still, I like the image: maybe the universe is full of life, but everyone has retreated into closed systems and gone dark. Anyway, this is the chain currently running through my head: AI, the elixir of youth, thousand-year-old football fans, dismantling Earth, a Dyson sphere, and dark matter. Perfectly normal thoughts for a grown adult.
🤖 Made with AI
150
I tried as hard as possible to make sure the transcript wouldn't get lost. That is, you say something for a minute or two, and then suddenly it turns out that your internet is off, or something else happened. So first, I made the keyboard shortcut Ctrl-Options-V to paste into the input if something went wrong, for example if focus in the input was lost. Second, if something did happen, there will be a message telling you to try again. And third, you always have history, where you can try again, listen to your voice, in case your microphone was turned off or there was some volume issue. By the way, that happened to me too: the volume was low and the recognition wasn't very good. So you can listen to yourself. But to listen to yourself, you need to enable the cache in settings, then your last 10 recordings will be saved by default; by default this is turned off for privacy. But for me it's convenient, so I can control my dictations more. Also, it's convenient that this cache lets you save those files and maybe use them for your own purposes, like if you run a YouTube channel and need your comments on videos or something like that, and then you can collect them as files and use them for your work. In other words, it's a dictation machine that will always be useful in your work.
1
73
Another fun thing is automatic translation. In fact, right now I'm speaking in Russian, and the text that ends up being produced is English. It's very useful for non-native speakers. You can choose any translation direction you want; if you speak English and want to enter Spanish, that's fine too. The same thing. In fact, transcription happens first, and then a second request is sent to the OpenAI model, and a very high-quality translation is produced. So that's useful too. To do this, you need to hold not the right Command, but the right Command together with the right Alt (Option).
1
75
One of the fun and useful features in my little app is voice input for emojis. It's a pretty fun and useful thing. You can write on social media without touching the keyboard at all.
39
I'm currently working on the iOS version for iPhone and iPad, so it will also be something useful on mobile. I want to fully cover the use cases that WhisperFlow made for me for this too. There's also a keyboard there; this will also have a keyboard, but with much richer functionality and for free. The only thing needed will be to add an OpenAI key.
1
89
Montenegro. Bus stop.
1
3
Playphrase.me 2.0 released! playphrase.me
1
2
Crockford on JavaScript - Chapter 2: And Then There Was JavaScript: youtu.be/RO1Wnu-xKoY