News for hackers. Stuff that matters.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by chadzawistowski on Tuesday March 17, 2015 @09:37PM (#9223037)
How does that get around the iOS App store restriction on interpreted code?
Re:John Carmack: “I just dumped the C++ server I wrote for a... by rsynnott on Tuesday March 17, 2015 @10:19PM (#9223199)
I assume they got around that restriction by cunningly releasing it after that restriction was abandoned in 2010...
Re:John Carmack: “I just dumped the C++ server I wrote for a... by chadzawistowski on Thursday March 19, 2015 @07:07PM (#9235184)
Ah, my inexperience with Apple's platforms is showing.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by edvinbesic on Tuesday March 17, 2015 @09:57PM (#9223117)
I belive that restriction was lifted quite a while ago, like in 2010 or something. It didn't last long as game engines required the use of scripting languages for game logic, among other things. Apple simply had to cave in.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by paines on Wednesday March 18, 2015 @05:47AM (#9224424)
Excuse my ignorance, but what about the new situation that all apps MUST use ARC. Does that interfere with lets say embedded Lisps in Apps etc...
Re:John Carmack: “I just dumped the C++ server I wrote for a... by rsynnott on Wednesday March 18, 2015 @10:01AM (#9225480)
Apple no longer allow use of Objective C garbage collection on the MacOS App Store (it was never supported on iOS). This doesn't effect third-party garbage collection and there's no requirement for third-party languages to use ARC (it wouldn't be practical for most of them, anyway, though there is an AOT-compiled Ruby that uses it).
Re:John Carmack: “I just dumped the C++ server I wrote for a... by paines on Wednesday March 18, 2015 @10:21AM (#9225626)
Thank you!
Re:John Carmack: “I just dumped the C++ server I wrote for a... by coob on Wednesday March 18, 2015 @07:40AM (#9224769)
You don't have to use ARC. You can reference count manually if you like. What you can't do is use the old garbage collection (which was only ever available on OS X).
Re:John Carmack: “I just dumped the C++ server I wrote for a... by rsynnott on Wednesday March 18, 2015 @10:00AM (#9225469)
And in fact you _can_ still use the old garbage collection if you really want to; you just won't be able to submit new apps to the OS X app store.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by fulafel on Wednesday March 18, 2015 @06:22AM (#9224515)
The restriction was reformulated to something like "you can't allow dynamic code loading over the net" or something. So as long as the app ships with the example snippets it runs and otherwise works only with user input, it should be politically correct.

Edit: reference: http://seattleclouds.com/ticketfiles/8665/ios_program_standa... 3.3.2 "An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded." So in fact the Lisp app is also forbidden (but of course Apple is free to selectively enforce)

Re:John Carmack: “I just dumped the C++ server I wrote for a... by rsynnott on Wednesday March 18, 2015 @09:59AM (#9225463)
This seems to be done on a "spirit of the agreement" basis; they're okay with the various python REPL languages even though you can do things like eval(urlopen("http://bla.com/some_python.py").read()), for instance.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by fulafel on Wednesday March 18, 2015 @10:15AM (#9225580)
Ah, I didn't even think that far, I stopped at any REPL being a violation since it's running code which was not packaged with the app.
Re:John Carmack: “I just dumped the C++ server I wrote for a... by AceJohnny2 on Tuesday March 17, 2015 @09:55PM (#9223104)
Is that still a thing? I thought they relented?