Skip to content

Instantly share code, notes, and snippets.

@Bigsby
Last active October 24, 2017 22:47
Show Gist options
  • Save Bigsby/c1b8dbebed9308374d1c3a897281578d to your computer and use it in GitHub Desktop.
Save Bigsby/c1b8dbebed9308374d1c3a897281578d to your computer and use it in GitHub Desktop.

What needs to be done to run the languages. It all comes from here

JavaScript

  • Install NodeJS from website from website
$ node hello.js

C++

  • Git installs Xcode that installs GCC and G++
$ g++ hello.cpp
$ ./a.out

Python

$ python3 hello.py

F#

$ jsharpc hello.fs
$ mono hello.exe

Go

$ export PATH=$PATH:/usr/local/go/bin
$ go run hello.go

Ruby

  • Already installed
$ ruby hello.rb

C#

  • Installed with mono
$ mcs hello.cs
$ mono hello.exe

Java

$ javac hello.java
$ java hello

Perl

  • Already installed
$ perl hello.pl

PowerShell

$ powershell hello.ph1

PHP

  • Already installed
$ php hello-php

VB.Net

  • Installed with mono
$ vbnc hello.vb
$ mono hello.exe

TypeScript

  • npm installed with NodeJS for JavaScript
$ npm i -g typescript
$ npm i -g ts-node
$ npm init -y
$ npm i --save-dev @types/node
$ tsc --init
$ ts-node hello.ts

Erlang

$ brew install erlang
$ erl -compile hello.erl
$ erl -noshell -run hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment