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

The link I posted is not from me, but I did want to post the comment on Antirez’s post, not the post itself.

Or use Safari’s reader mode, it works well!

Me neither, but it does explain why AI is so popular…

Tangentially related, I did a project (forked, but fully rewrote) to be able to avoid the Package.swift file for single file projects like these. [1]

The general idea is a bit like uv if I have understood uv correctly. Basically you do your imports normally and add a comment next to them that tells where the imports should be found. Then instead of running your project through swift directly you run it through swift-sh (or `swift sh`, swift will find the `swift-sh` binary automatically, just like git does for plugins). swift-sh will download and compile the dependencies, then add the proper options to swift so it will know where to find them.

It is even possible to add a regular shebang to swift-sh at the beginning of the file, chmod +x it, and just run it like a regular script!

Or use swift-sh to compile it.

(And installing swift-sh itself is as easy as `brew install xcode-actions/tap/swift-sh`.)

[1] https://github.com/xcode-actions/swift-sh


Thank you for this. I’ve been using it for years.

Did you use it recently? I used it to translate a Chinese website to English and was surprised to see everything made sense. Even the texts on the images were translated (in Safari).

Looks very good! I don’t have feedbacks wrt what you asked, but I like the app.

How many lives have been saved by AI? How many lives have been lost because of it?

Not what I’m asking. But idk, do you have stats? I wouldn’t say _lost_ as a ding against, _ruined_ or _negatively impacted_ is sufficiently a problem

I, for one, love programming (and passionately hate AI).

Note I also think AI is bad for philosophical/ethical reasons.


No, LLM evangelists will not be willing to admit this in general,

or

no, you, as an LLM evangelist, are not not willing to admit this?


The second.

Ok, then as a self described LLM evangelist, what motivates you to preach about LLM coding instead of just, y'know, doing it in private?

It would feel selfish for me not to help other people figure this stuff out.

Probably some of the same things that have always motivated people to explore and then write about their findings for others.

Do you mind when people do this about topics you find interesting? If not, why are you even on HN?


Agreed, but do you honestly think LLMs have reached the level of average programmer? Or is it more a matter of "they can churn out code until I see something that is close enough and I'll make the last few edits"?

Also curious if you publish your working setup or if it changes as fast as the LLMs? Seems like you may have a more stable setup than most given how you are developing tools in the space.


I still do not see LLMs as replacements for programmers - they're tools for programmers to direct. If you don't know anything about programming you might be able to get a vibe coded prototype or simple tool out of them but that's a very different thing from a what happens when a skilled software developer uses these things to help accelerate their work.

My current setup is mainly Claude Code CLI on macOS and Claude Code for web driven by the iPhone all and macOS desktop app. I occasionally use Codex CLI too.

I expect I'll be on a different default combo of tools within a month or two.


Honestly? LLMs are currently above average at programming.

We've all been through The Daily WTF at least once. That's representative of the average. (Although some examples are more egregious than others.)


> The Daily WTF at least once. That's representative of the average

I'd say The Daily WTF are the more spectacularly weird and wrong, not representative; I've seen a few things deserving to be on their site in real life*, but the average I've seen has been much better than that.

It's difficult to be sure, but I think these models are roughly like someone with 1-3 years of experience, though the worst codebase(s) I've seen have been from person(s) who somehow lasted a decade or two in the industry.

* 1000 lines inside an always-true if-block, a pantheon of god classes that poorly re-invent the concept of named properties, copy-pasting class files rather than subclassing even after I'd added comments about needing to de-duplicate things in them, and that was all the same project.


Oh no. Raw AppleScript in a Swift program. Don’t people know stuff anymore? I’m especially disappointed since it’s coming from Steipete…

Anyways, that’s how you do AppleScript in Swift (it’s even type-safe!) [1]

Usage example. [2]

[1] https://github.com/Frizlab/apple-music-to-slack/blob/90964bb...

[2] https://github.com/Frizlab/apple-music-to-slack/blob/90964bb...


> Don't people know stuff anymore?

No, no one has ever known anything, and every day people are born knowing even less. This is a strangely aggressive way to share this interesting information, especially for MacOS programming, a platform requiring such byzantine arcane knowledge I'm amazed people write anything for it at all. At least for Win32 people wrote books you could buy and not blog posts.

Anyway, thank you for the introduction to the very cool SwiftScripting project [0], extracting programmable interfaces directly from app bundles. It's just like COM, right? nice to see MacOS catching up (/ragebait)

[0] https://majestysoftware.wordpress.com/2015/03/31/swift-scrip...


AppleScript: First appeared 1993.

COM: First appeared 1993.

Yup. Catching up.

I understand the rage, but get your facts right.

Also, FYI the interesting part about the post is getting the extracted code in type-safe Swift code. Getting the extracted code for ObjC is trivial and any seasoned macOS developer should already know how to do it.


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

Search: