3 ms·
Looking at the system version is always possible for any third-party app. If you have, say, the Pythonista app[0] for running Python code, running the following
by kccqzy 8y ago
Looking at the system version is always possible for any third-party app. If you have, say, the Pythonista app[0] for running Python code, running the following is the equivalent:
with open('/System/Library/CoreServices/SystemVersion.plist', 'rb') as f: print(f.read())
But the apparently builtin plist parsing is a nice touch I'd say.
[0]: https://itunes.apple.com/us/app/pythonista-3/id1085978097?mt=8 https://itunes.apple.com/us/app/pythonista-3/id1085978097?mt...
- tlrobinson 8y agoNeat, I didn't realized Apple started allowing interpreted code in developer tools [1][2]. It's surprising they even allow accessing the filesystem, etc. 1. https://www.theregister.co.uk/2017/06/07/apple_relaxes_developer_rules/ https://www.theregister.co.uk/2017/06/07/apple_relaxes_devel... 2. Aside from the built-in JavaScript engine in WebKit which was always allowed?
- kccqzy 8y agoApple has always allowed interpreted code, apart from a brief period in the pre-iOS 4 era. What was new in 2017 was that apps can download that interpreted code on its own, instead of being user input. It's not surprising at all, if you are in the iOS ecosystem and you are a power user/tinkerer. Pythonista is just one of those apps. IIRC I had quite some fun running Haskell on my iPad about five years ago.
- tinus_hn 8y agoThere is a limitation on JIT compiling though which does not apply to the built in JavaScript vm.
- johncolanduoni 8y agoIt does unless you’re running it in another process as part of a WebKit instance, via WKWebView or SFSafariViewController. Using JavaScript core directly still limits you to interpretation.