Giter Club home page Giter Club logo

ponyc's Introduction

Getting help

Editor support

Installation

Mac OSX using Homebrew

$ brew install http://www.ponylang.org/releases/ponyc.rb
$ ponyc --version
0.1.2

A pull request for the ponyc formula to be part of homebrew-core is pending.

Linux

  • ponyc: Recommended. Should work on most modern x86_64 platforms.
  • ponyc-avx2: For platforms with AVX2 support.
  • ponyc-numa: A numa-aware version of ponyc-avx2.

Apt-get and Aptitude

First, import the public key of ponylang.org:

$ wget -O - http://www.ponylang.org/releases/[email protected] | sudo apt-key add -

Add the ponylang.org repository to apt-get:

sudo add-apt-repository "deb http://ponylang.org/releases/apt ponyc main"
sudo add-apt-repository "deb http://ponylang.org/releases/apt ponyc-avx2 main"
sudo add-apt-repository "deb http://ponylang.org/releases/apt ponyc-numa main"

Note that add-apt-repository may require to install python-software-properties or software-properties-common.

Then, update your repository cache:

$ sudo apt-get update

Install ponyc, ponyc-avx2 or ponyc-numa:

$ sudo apt-get install <package name>
$ ponyc --version
0.1.2

Zypper

First, add the ponylang.org repository:

$ sudo zypper ar -f http://www.ponylang.org/releases/yum/ponyc.repo

Install ponyc, ponyc-avx2 or ponyc-numa:

$ sudo zypper install <package-name>
$ ponyc --version
0.1.2

YUM

First, add the ponylang.org repository:

$ sudo yum-config-manager --add-repo=http://www.ponylang.org/releases/yum/ponyc.repo

Install ponyc, ponyc-avx2 or ponyc-numa:

$ sudo yum install <package-name>
$ ponyc --version
0.1.2

Windows

64-Bit installers for Windows 7, 8, 8.1 and 10 will be available soon.

Download installers

All installers can also be downloaded from ponylang.org's servers:

Building on Linux build status

First, install LLVM 3.6 using your package manager. You may need to install zlib and ncurses as well.

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

To build a NUMA-aware runtime, install libnuma-dev using your package manager and build as follows:

$ make use=numa config=release

Building on Mac OSX

First, install homebrew if you haven't already. Then, brew llvm36, like this:

$ brew tap homebrew/versions
$ brew install llvm36

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on Windows

The LLVM 3.7 (not 3.6!) prebuilt binaries for Windows do NOT include the LLVM development tools and libraries. Instead, you will have to build and install LLVM 3.7 from source. You will need to make sure that the path to LLVM/bin (location of llvm-config) is in your PATH variable.

You will also need to build and install premake5 (not premake4) from source. We need premake5 in order to support current versions of Visual Studio.

You may also need to install zlib and ncurses.

$ premake5 vs2013
$ Release build with Visual Studio (ponyc.sln)
$ ./build/release/ponyc examples/helloworld

ponyc's People

Contributors

sylvanc avatar sblessing avatar andymcn avatar dleonard0 avatar

Watchers

tlanclos 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.