Live data from Hacker News

Cherri – programming language that compiles to an Apple Shortuct

github.com

71–80 of 82 posts

Re: Cherri – programming language that compiles to an Apple Shortuct

#71

Cool! As a professional programmer few things consistently succeed in making me feel inept like trying to build an Apple Shortcut

I got my first MacOS device, a Macbook Air, recently and was annoyed to find the toggle for 'natural scrolling' is unified between the trackpad and the mouse. I use the macbook docked 90% of the time. So, I asked ChatGPT if there was a way to script toggling the natural scrolling setting. ChatGPT immediately produced a working script and the instructions to create the Shortcut and assign it to a keyboard shortcut. Now I can press Ctrl-Shift-S and toggle natural scrolling.

Even as a programmer, I would have never spent the time necessary to learn the relevant scripting language for this task. I've got other things to do. But ChatGPT knew exactly what to do and now to implement the task, even on the newest version of MacOS.

Re: Cherri – programming language that compiles to an Apple Shortuct

#72

Earlier quoted context omitted.

The biggest problem IMO is the loooooooong animation delay built into every UI interaction. It's so hard to get into a flow state or even maintain a train of thought when you have to wait for everything on the screen to stop sliding, wiggling, wobbling, jiggling, refracting, distorting, and flashing.

I’m guessing you might know already, but just in case you don’t, “reduce motion” in the accessibility settings menu is essential to productivity and sanity.

This does nothing to remove the loooooong animations. Much of the interface still jiggles, wobbles, slides, etc. It just replaces a fraction of those with fade animations that are just as long. It's just a high-latency interface all throughout.

Re: Cherri – programming language that compiles to an Apple Shortuct

#73

I take it this only supports Apple’s built-in actions, and doesn’t plug into the broader AppIntents system? AppIntents includes a packaging concept, would be cool to see if this could use third-party AppIntents in a similar way to how scientific Python uses C modules for performance critical sections.

[dead]

Re: Cherri – programming language that compiles to an Apple Shortuct

#74
post #71

Cool! As a professional programmer few things consistently succeed in making me feel inept like trying to build an Apple Shortcut

I got my first MacOS device, a Macbook Air, recently and was annoyed to find the toggle for 'natural scrolling' is unified between the trackpad and the mouse. I use the macbook docked 90% of the time. So, I asked ChatGPT if there was a way to script toggling the natural scrolling setting. ChatGPT immediately produced a working script and the instructions to create the Shortcut and assign it to a keyboard shortcut. No…

There exists free tools that fix that behaviour too (Apple hasn't seemed to care because if you buy a mouse from them, it scrolls with a touch sensor so natural scrolling feels correct. And I do happen to be one of the few people who likes the Magic Mouse)

Re: Cherri – programming language that compiles to an Apple Shortuct

#75
post #8

I've just used this extensively to build 200 Shortcuts for my event-based automation app on macOS [0], because some actions you simply can't do without Shortcuts: changing Focus Mode, toggling Accessibility functions like Color Filters, accessing the Private Cloud Compute model etc. I also wrote about how Claude was able to basically learn the language from scratch and write those fully compilable Shortcuts for me [1…

are you certain that it wasn't included in the training data?

I saw someone do this awhile ago with a low resource language (I think it might've been Abkhaz?) with seemingly-incredible results, and eventually everyone came to understood that, even though it wasn't officially supported, Abkhaz materials had been in the training data

Re: Cherri – programming language that compiles to an Apple Shortuct

#77

> Cherri (pronounced cherry) Why would you spell it like that if you don't want me to pronounce it chéri/sherry?

> Why would you spell it like that if you don't want me to pronounce it chéri/sherry? Because that's a way to spell it without changing the pronounciation in the US. Also, in the extremely unlikely event that it becomes very popular, in the US you can't trademark a dictionary word, it must be something unique.

Apple?

Re: Cherri – programming language that compiles to an Apple Shortuct

#78
post #52

Earlier quoted context omitted.

It feels actively hostile to programmers sometimes

I always suspected there's a step in Apple's software design process that goes like this: - Is the app convenient to use for power users? Then careful, you must have mindlessly went with what's intuitive for you , but what's actually intuitive for normal people is, has to be, different. Go back and find (or invent if you must), the "naturally" intuitive design.

[deleted]

Re: Cherri – programming language that compiles to an Apple Shortuct

#79
post #71

Cool! As a professional programmer few things consistently succeed in making me feel inept like trying to build an Apple Shortcut

I got my first MacOS device, a Macbook Air, recently and was annoyed to find the toggle for 'natural scrolling' is unified between the trackpad and the mouse. I use the macbook docked 90% of the time. So, I asked ChatGPT if there was a way to script toggling the natural scrolling setting. ChatGPT immediately produced a working script and the instructions to create the Shortcut and assign it to a keyboard shortcut. No…

As an alternative to a script, I can suggest Mos[1], which i've been using for 6 years I think. This is the first app I install on a fresh MacOS because I'm also using my MacBook while it's docked.

[1]: https://github.com/Caldis/Mos

Re: Cherri – programming language that compiles to an Apple Shortuct

#80
post #8

I've just used this extensively to build 200 Shortcuts for my event-based automation app on macOS [0], because some actions you simply can't do without Shortcuts: changing Focus Mode, toggling Accessibility functions like Color Filters, accessing the Private Cloud Compute model etc. I also wrote about how Claude was able to basically learn the language from scratch and write those fully compilable Shortcuts for me [1…

When you say Claude learned it. That's in the current context window it is able to do that, right? Or is there a more permanent way to make it learn something?

You ask it to read the docs or site and create a 'skill' out of it.
Post reply on HN