Giter VIP home page Giter VIP logo

bridge's Introduction

bridge

This is a work in progress. The ultimate goal is to get Hadoop logs from S3 (in Python) and nicely display main ones in Cocoa App.

Communicating Objective-C and Python

It happens, sometimes, that whatever you need from your application is far more easily to be developed using a language like Python than trying to code everything in Objective C. I think there're two reasons for that:

  1. A language like Python obviously allows you to get a proof of concept more quickly.
  2. Python has a larger amount of contributions to help you with that specific task you've in mind.

To me, it was clearly the second. I don't rush when it comes to develop an application. I usually write code for the pleasure of doing it, so doing it quickly simply does not apply to my case. But when I started with Objective-C, I got frustrated a couple of times, when I couldn't find any straightforward mechanism to accomplish some of the tasks I wanted to incorporate into my app.

I started reading about the possibility of communicating Python and Objective-C one month ago, and surprisingly I couldn't find any good example that will simply bring me there. Either, the examples were focused on very specific topics on how both languages bridge together, or don't have all the information so that they are difficult to extend. I haven't written a page like this in years, since my times in the University, so I apologize in advance for inaccuracies, or lack of precision. I did this for fun, but in any case, any comments are welcome.

My understanding

I have been using the py2app way of communicating Objective C and Python. py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts.

bridge's People

Contributors

renero avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.