Hacker Newsnew | past | comments | ask | show | jobs | submit | stevedonovan's commentslogin

You could write in the language you are most eloquent in and prompt a bot to do a faithful translation.

Post both versions


Except for the power-to-weight problem. Would need very big wings!


Codex generates solid Rust in my experience. Just needs a little style guidance


It was my first taste of Swift, and has destroyed any lingering curiosity I had about it.


As a Swift dev, I have to say this was a frustrating read.

Apple’s documentation is often very poor, and I will note that Swift Packages (especially CLIs) doesn’t always feel great. As another commenter noted, anything other than Xcode feels like fighting an uphill battle.

But many of your frustrations could be solved by checking not API docs, but just the Swift language guide. You seem perturbed, for example, that the Package initializer expects ordered arguments. It is a basic part of Swift’s design that arguments are always ordered and exclusively are either named or unnamed (never optionally both).

The ghost’s use of semaphores with async/await is a massive red flag in terms of mixing two asynchronous frameworks (Concurrency and GCD). I’d not be surprised if it worked, but that’s really against the grain in terms of how either framework were designed. This is the shortfall of relying on bottled ghosts to learn new tools. I know from experience that the documentation on Concurrency (async/await) is pretty good, and lays out a clear rationale for how it’s intended to be used, but that is a huge piece of documentation and it’s a big hill to climb when all you’re building is a small tool. This is the risk we run when asking AI for help when it itself is ignorant of the actual intended use of the apis and is only trained on the output of developers. Here it’s easy to see that it was faced with a problem of synchronous access to an async function and reached for a common solution (semaphore), despite the fact that semaphores are part of a 10 year old framework, and the async/await keywords are only 2-3 years old!

Anyway, the article reminded me of the challenges of learning a new (programming) language. There’s more to it than just following tutorials and blindly directing AI. I know the feeling, having to currently learn c# at the moment. I can write simple functions and follow the syntax, but I can’t intuitively understand what’s happening like I can with Swift. Is that because Swift is better than C#? Not really- it’s just that I’m fluent in one but not the other. Ironically I guess you probably get this already from learning Mandarin, but you’ve not written an article about how frustrating it is that it inexplicably insists on using tones to express meaning, when English is fine without it(!).

I’m sorry you had a bad experience with Swift. I do genuinely think it’s a great language to write, and the open source Swift Evolution team are great. They are continually pushing for more openness and more cross platform compatibility, and I do like the way that the core of the language is strongly opinionated in a way that makes it clear what’s happening if you do understand the syntax. What’s hard is then the application of Apple’s APIs which are wildly inconsistent and often incomplete. Some are maintained while others are still wrappers for 15 year old objective C that have no concept of modern Swift paradigms. That said, I’d still encourage you to persevere with Swift. Once you get past those rough edges of stdio and UI and get into the heart of a Package, I would expect most of these complaints to disappear!


Yep, there's always syntax, whether it's 'friendly' or not.

And it still isn't natural language, where you can paraphrase, use synonyms etc. Good job for an LLM


But are they writing? In that specific sense of high prestige communication? Sounds like stolen aura.

Now, code by Gen AI is straightforward in comparison. Coding is not writing poetry, even if the lines also don't reach the right margin


"This post could have been a tweet", and so on.

It's a lovely metaphor for the soulful business of doing something really well, even if there is no 'market' for that kind of quality


Art is often its own reward.


I've been getting great results from Codex. Can be a bit slow, but gets there. Writes good Rust, powers through integration test generation.

So (again) we are just sharing anecdata


Heh,I read SF as San Francisco; point remains true. Except the Valley wants to force a future, not describe it


It's not inconsistent to say there's a financial bubble and also genuinely think it's a new era for software development.

There aren't enough programmers to justify the valuations and capex


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: