News for hackers. Stuff that matters.
Re:Show HN: Python on iOS Native Apps by jventura on Thursday May 28, 2020 @06:37AM (#23335735)
This project is a base for which to add a python interpreter to a swift iOS project. It allows us to call python functions and get the resulting string, and then use the result in swift code (to update native widgets, etc.)

As I'm a beginner in swift and iOS, I've documented all the process at https://github.com/joaoventura/pybridge-ios/blob/master/docs....

I hope this allows me to share all the Python code in my Android app (https://play.google.com/store/apps/details?id=com.flatangle....), which uses the same technique but for android (https://github.com/joaoventura/pybridge)

Re:Show HN: Python on iOS Native Apps by vaxman on Thursday May 28, 2020 @05:56PM (#23343265)
Are you okay with having your app's binaries string dumped by unknown parties where upon they find the underlying Python source code? Some basic encryption (or tokenization) would be better, since few would expect to go looking for it.
Re:Show HN: Python on iOS Native Apps by jventura on Thursday May 28, 2020 @06:15PM (#23343506)
A simple strategy is to include only the pyc or pyo files inside a zip file, and it will continue to work as well..
Re:Show HN: Python on iOS Native Apps by mason55 on Thursday May 28, 2020 @02:08PM (#23340401)
Will Apple approve apps that use this?
Re:Show HN: Python on iOS Native Apps by nickmain on Thursday May 28, 2020 @02:49PM (#23340894)
As long as there is no downloading, side-loading or user editing of python code in the app then Apple doesn't care.

There are limited exceptions for apps that teach programming, such as Pythonista.

Re:Show HN: Python on iOS Native Apps by vaxman on Thursday May 28, 2020 @06:11PM (#23343462)
There is a great disturbance in the Force --youngling Jedis are practicing their https://CircuitPython.org ways on https://circuitpython.org/board/particle_argon/ kits that have WiFi, BLE, NFC, TensorFlowLite local image/speech recognition and the ability to connect with all types and sizes of displays (ePaper to AMOLED, retinal projectors, touch, multitouch etc.) and interfaces to LTE (150/50Mbps) via https://www.dfrobot.com/product-1834.html as well as headphones, 3D-printed multi-module wearable cases, personal (airborne and ground based) drones, personal indicators and other interfaces that "New" Apple can't even begin to imagine in it's crummy foodcourt (where they fire their best for letting their little girls make a social media post that accidentally shows a prerelease build while hackers and 9to5Mac lay the entire next release bare for all the public). Time to port Blinka to iOS so that it can at least run this Future's apps using something like https://www.adafruit.com/product/2264
Re:Show HN: Python on iOS Native Apps by vaxman on Monday June 01, 2020 @03:13AM (#23376033)
hah, my Karma literally went negative after that post on Friday (I don't post much so downvotes hurt) --probably wasn't the part about Python takin' over the game ;)

I have the same shirt as this poor guy... https://youtu.be/NeHFDf0zKs4