News for hackers. Stuff that matters.

jayrhynas

It's definitely a blurry line, this `run` tool invokes your Swift file with `swift file.swift` which runs it in immediate mode. Technically it is compiling your code to memory and and immediately executing it, but is it that different from JIT in Python or Node scripting?
Re:Meta Ray-Ban Display on Wednesday September 17, 2025 @09:40PM (#45283928)
CTRL-Labs themselves acquired the wristband tech from North/Thalmic, who pivoted into smart glasses for a few years before being acquired by Google.

> In an interesting twist, CTRL-Labs purchased a series of patents earlier this year around the Myo armband, a gesture and motion control device developed by North, formerly known as Thalmic Labs. The Myo armband measured electromyography, or EEG, to translate muscle activity into gesture-related software inputs, but North moved on from the product and now makes a stylish pair of AR glasses known as Focals. It now appears the technology North developed may in some way make its way into a Focals competitor by way of CTRL-Labs.

Re:Type-safe and user-friendly error handling in Swift 6 on Friday September 05, 2025 @09:26AM (#45138315)
I don't really see what advantage typed throws are giving him in this article, since he just wraps arbitrary errors and then uses his lookup function - isn't that basically the same as `catch let error as DecodingError`?
Re:What are OKLCH colors? on Monday August 25, 2025 @06:13PM (#45019748)
I was going to point that out too until I realized that the author updated the article based on the parent comment!

https://news.ycombinator.com/item?id=45013291

> We say "trurel". As if there was an 'e' between the r and l at the end.

From https://curl.se/trurl/

Re:Hardcoded Folder Icons in macOS on Thursday February 09, 2023 @09:58AM (#34724906)
I used to "collect" icon sets, even though I only ever used about 1% of them
Re:Apple announces upgrade to App Store pricing on Tuesday December 06, 2022 @01:36PM (#33884895)
They introduced 15% for apps < $1M/year two years ago.
It looks like you could add ntfy.sh as a backend for dschep/ntfy, but just imagine trying to document that!
I don't think ntfy.sh does that, but are you talking about https://github.com/dschep/ntfy?
Re:First look: adding type annotations to JavaScript on Thursday March 10, 2022 @09:23AM (#30627194)
As far as I understand it, this is allowing TS types to be valid JS syntax that are just ignored by vanilla JS engines. So it is intentionally identical to TS, it just won’t have any affect on the execution of your code.
Not quite. If you offer 3rd party logins you must also offer SIWA, but if you only have email/password you don’t have to.

https://developer.apple.com/app-store/review/guidelines/#sig...

Re:Kotlin 1.4 on Tuesday August 18, 2020 @03:11PM (#24202964)
Swift calls it trailing closure syntax
Re:Mac keyboard shortcuts on Friday August 07, 2020 @10:36AM (#24082312)
This doesn't work globally like the other shortcuts, but Ctrl+left/right will move the cursor to word boundaries in camelCasedWords, which is great for programming. I quickly tested it and it worked in Xcode and Sublime Text but not in TextEdit. (You also have to disable the system shortcuts for moving between spaces)
Apparently they're "completely optional"[1] but they chose to use them in all the examples ¯\_(ツ)_/¯

[1]: https://marcobambini.github.io/gravity/#/syntax

Re:Apple will host WWDC virtually, beginning June 22 on Tuesday May 05, 2020 @01:21PM (#23082398)
> Developers are encouraged to download the Apple Developer app where additional WWDC20 program information — including keynote and Platforms State of the Union details, session and lab schedules...

Sounds like there's going to be some sort of interactive lab, I wonder what format it will be.

There are two identifiers: Identifier for Advertisers (IDFA) and Identifier for Vendors (IDFV).

IDFA is the same across all apps on a device. However, it can be reset by the user or disabled (in which case it returns all 0s). Also, apps have to disclose (to Apple) that they use the IDFA - not sure if that's visible to the user in the App Store anywhere.

IDFV is unique per vendor - that is, each app has a different ID, but two apps from the same developer will have the same ID. I believe this is also reset when resetting the device.

The FBSDK doesn't require developers to enable the IDFA, so the unique identifier in the phone home request is either the IDFV (effectively unique) or just a UUID that the FBSDK generates and stores on launch.

Re:Little Snitch and the deprecation of kernel extensions on Tuesday March 24, 2020 @04:15PM (#22678505)
"we are working closely with Apple to fill the remaining gaps" - definitely sounds like it. I think Apple has made the right call tightening security around kernel extensions but I'm glad they're working with 3rd party developers (even if it's only big ones) to ensure the functionality is still there. They also mentioned the existing version will still work, it will just need to be explicitly enabled.
Re:Swift Playgrounds for macOS on Tuesday February 11, 2020 @08:51PM (#22305012)
They recently released it on macOS (via a Catalyst port of the iPad app)
Re:Swift Playgrounds for macOS on Tuesday February 11, 2020 @08:50PM (#22305004)
Quick note about your functional examples - there's already a built-in version of `take` called `prefix` available on all Sequence types.
Re:Swift Crypto on Monday February 03, 2020 @03:26PM (#22228603)
I think the point he's trying to make is that the CK implementation of the APIs common to CK and SC may (or may not) make use of the secure enclave, and that's one reason to have different implementations.
Re:Dropbox ignore file or folder in beta on Thursday January 30, 2020 @09:25AM (#22191457)
This is kind of the opposite. With Selective Sync, the file exists on Dropbox.com and 0 or more client devices, and each device can choose whether or not to sync the file. The new ignore feature allows a file to exist on one device without being uploaded or synced to other devices.
Re:The Unison language on Friday January 10, 2020 @05:28PM (#22016296)
This [1] seems to be the "head pointer", and I assume it would conflict when merging. In fact, would it not conflict on every merge even if unrelated code was changed, since it hashes on the value of the entire codebase?

Edit: After thinking some more, it wouldn't conflict on a file-level, since the file itself has a different name. But there would be now two files in the _head folder, and I assume the `ucm` tool would detect that and present the user with merging options?

[1]: https://git.io/Jvfen

I think it's A=5 D=1 G=2 O=0

102 x 51 = 5202

Re:Stupid Unix Tricks on Friday October 18, 2019 @09:47AM (#21291301)
You can also hide all the desktop icons with a defaults setting:

    defaults write com.apple.finder CreateDesktop false
Re:Stupid Unix Tricks on Thursday October 17, 2019 @12:37PM (#21283770)
I just use ~/Developer - with tab completion it's not really any harder to type. (And on macOS ~/Developer automatically gets a unique icon in Finder)
Re:Miller Columns on Wednesday October 03, 2018 @08:59AM (#18129721)
I know that some people still prefer a button, but cmd-up on your keyboard will go up a level in both Finder and in file dialogs.
Re:CLI: Improved on Thursday August 30, 2018 @04:05PM (#17880250)
You should be able to pass `--paging always`. The default `auto` will only page if the file contents is bigger than your screen.
As far as I understand it:

A background subshell is started that waits 10 seconds and then runs a program with the input "id". That program uses ioctl to send characters to the current TTY.

Since the user exited back to the root shell before the program executed, the `id` command is typed and executed on the root shell.

Re:Console.table() on Thursday June 14, 2018 @09:09AM (#17311359)
CONsole, the noun, vs conSOLE, the verb (to comfort at a time of grief or disappointment)

Older »