Get started with

  Sign up now  
    Pythonista is a really cool app, but how did it make it into the App Store?
    There are 12 new posts
      [Post deleted]
        @gruber Most likely they're compiling down to javascript and running it on the javascript runtime built into webkit. This would make it legit.
          @gruber They want to stop interpreted code from the network. They wrote rules stricter than they actually want. They look the other way when it suits them. Like with almost every game ever shipped for iOS.
            So, are we going to have QBASIC for the iPad soon? RT @gruber Pythonista is a really cool app, but how did it make it into the App Store?
              [Post deleted]
                @gruber Maybe all that emulator stuff was really about Flash and Java. Lua is all over games. Also, what’s that game development app?
                  @gte @gruber One of those situations where it’s great that you can probably ship something against the rules, but scary that Apple can change their mind any time.
                    @gruber The app store rules prevent downloading executable code. Python, Lua, Ruby, & Javascript may be run if embedded in or produced by an app. I presume the reason is to prevent hijacking the app store to build a competing platform on top of it.
                      @gruber Its not much different from Codea which has been out for ages.
                        @gruber as awesome as the app might be, they should have their website be "retina ready". It's terrible to look at on my MacBook Pro #nt
                          @gruber I keep hearing about Pythonista and meant to check it out. Now that I have I’m with you: how the hell did it make it into the App Store? Buy now, ask later.
                            @mrgan @gruber Yup. I gambled that back in ‘08 and it’s been ok. Though the night before submitting I changed all the file extensions for the scripts to .cfg from .lua so as not to temp the beast! And the app does download script code. Shh.
                              @gruber Runs in its own sandbox. Uses standard iOS clipboard module to set and get clipboard. I'm testing the upcoming version, they'll add more integration with standard iOS elements. Caveat: can't download code (no Dropbox sync for instance)
                                @gruber Not the only python interpreter either. "Python 2.7 for iOS" goes as far as exposing the app underlying filesystem.
                                  @gruber So you're stuck with standard libraries and modules of its built-in interpreter. Dev is very responsive and already added lots of stuff to beta (including Markdown). There also ways to "get around" Apple's limitation - like importing...
                                    @gruber ...GitHub gists from URL. Overall, it's a great app that will get a lot better with version 1.2. I just hope Apple never decides to kill it.
                                      @gruber Pretty sure it falls in the category of Lua interpreters, etc. – you aren’t downloading anything in the app (”all docs are self-contained!”), and it’s all within the app’s sandbox. HyperCard/Smalltalk seems like a good paradigm to think about this.
                                        @maronoff @gruber can it open network sockets? Or is it a very limited env?
                                          @maronoff @gruber Now that sounds fun (if semi-useless) - Smalltalk on iOS.
                                            @gruber I have wondered that myself! It doesn't save things, right? Not that there is that much nuance in the review process.
                                              @gruber Wow, as of 1.1 you can save *and* export to Xcode. Not long for this world.
                                                @djacobs @gruber Python is not an imminent threat to Apple’s way of life. In fact, Apple embraces Python. The whole “nothing but ObjC” thing was purely anti-Flash. The “no-interpreted code” is a paranoid firewall for dynamic end-runs around the App Store.
                                                  @gruber Scripting languages have been allowed for well over a year. See also BASIC! and a couple of Lua things. You're not supposed to allow downloading code, but copy/paste or iTunes transfer's fine with Apple.
                                                    @danielpunkass @djacobs @gruber we've submitted apps written in Lua (Aqua Pets) and it's been approved.
                                                      @jtregunna @gruber there's a pretty decent JavaScript python interpreter; a coursera course I'm in uses it to drive their teaching tool. Doesn't support full python though, so maybe pythonista is doing something else?
                                                        @danielpunkass Also anti-Java, guessing. Totally the right call in both cases.
                                                          @danielpunkass @djacobs @gruber IMO the “no interpreted code” rule is also there to stop people from writing apps that download malicious code to end-users’ devices after the app is approved by Apple.