Haxe-Python Tutorial - Intro

in #programming8 years ago (edited)

This tutorial series is for programmers with previous knowledge in the Haxe programming language. It shows the use of the Python compile target.

In one of my current projects I want to analyze a great amount of data. The programming language Python is predestined for this task because there are a lot of excellent libraries to make it easier. So the first thought would be to learn Python to do the data analysis. But it would take a lot of time to become really good at it.

Because I work mainly with the Haxe programming language there is another way. One feature of Haxe is it's many compile targets. The source code of Haxe can be compiled to source code of other programming languages. Currently (July 2016) there are 10 compile targets. Python is one of them.

So I can write the data analysis in the familiar Haxe language. The compiler creates Python source code that runs in the Python interpreter while using the optimized Python libraries.

The Python compile target is relatively new. There is not a lot of documentation, and there are some features in Python that can't be transfered 1x1 to Haxe. In these tutorials I'd like to show what I learned.

haxe to python

Requirements

  • Basic knowledge of the Haxe programming language and use of the Haxe Toolkit. A good introduction can be found on Haxe.org
  • Basic knowledge of the Python programming language. There is a good introduction on learnpython.org

Tools

Ressources

Some ressources that helped me a gread deal:

Github

The texts and sourcecode of these tutorials are also available on Github for error reporting or improvement ideas.

Next part: Basics

Overview

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64231.88
ETH 3128.59
USDT 1.00
SBD 3.95