ONLY DO WHAT ONLY YOU CAN DO

こけたら立ちなはれ 立ったら歩きなはれ

『CompileOnline』すっげー

自分のPCに、わざわざ環境を作らなくても、こんなことができてしまう...
Compile and Execute Programs Online

Ada

with Ada.Text_IO; 
use  Ada.Text_IO;
procedure Hello is
begin
    Put_Line("Hello, world!");
end Hello;
Compiling the source code....
$gnatmake hello.adb 2>&1
gcc -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali

Executing the program....
$hello
Hello, world!

Objective-C

int main()
{
    printf("Hello, world!\n");
    return 0;
}
Compiling the source code....
$gcc `gnustep-config --objc-flags` -L/usr/GNUstep/System/Library/Libraries -lgnustep-base main.m -o demo -lm -pthread -lgmpxx -lreadline 2>&1
main.m: In function 'main':
main.m:3: warning: implicit declaration of function 'printf'
main.m:3: warning: incompatible implicit declaration of built-in function 'printf'

Executing the program....
$demo
Hello, world!

D

import std.stdio;

int main(string[] args)
{
   writeln("Hello, world!");
   return 0;
}
Compiling the source code....
$dmd -I./ main.d -ofdemo.amx 2>&1

Executing the program....
$demo.amx
Hello, world!

Clojure

(println "Hello, world!")
Executing the program....
$java -jar /usr/share/java/clojure-1.4.0.jar -i main.clj
Hello, world!

Lua

print("Hello, world!")
Executing the program....
$lua main.lua
Hello, world!