Arch is the best

From ArchWiki
Revision as of 19:16, 1 April 2011 by Ahel (Talk | contribs) (Translations)

Jump to: navigation, search


Purpose

The Arch is the best project is a very sophisticated and exquisite, ego-boosting and mind-blowing (albeit perhaps a bit over-engineered) project which aims to prove Arch's superiority.

History

The project was initiated in April 2008 by long time Arch community member lucke as a simple shell script which provided irrefutable proof that "Arch is the best". Over the following weeks, this project gathered momentum and was ported to multiple different languages, both programming and verbal.

The Code

The "Arch is the best" project is ported to many programming languages.


Ada - A pascal dialect.

with Ada.Text_IO;
use Ada.Text_IO;
procedure ArchIsTheBest is
begin
   Put_Line("Arch is the best!");
end HelloWorld;


Awk - A data-driven programming language designed for processing text-based data.

BEGIN {
   print "Arch is the best!"
}


Bash - The original program, should be compatible with any shell.

#!/bin/bash
echo "Arch is the best!"


Bash (Alternate) - Handy for piping the output to your favourite IRC/email/IM client. Should work with any shell.

#!/bin/bash
yes Arch is the best!


Bash (Dynamically updated)

#!/bin/bash
wget http://wiki.archlinux.org/index.php/Arch_is_the_best -qO-| sed -n ':b;n;s/id="Translations"//;Tb;:d;n;s/id="Links"//;t;p;bd'|sed 's/<[^>]*>//g'|sed 'N;s/\n/: /;N;N;s/\n//g'


Befunge - Believed to be the first two-dimensional, ASCII-based, general-purpose (in the sense of "you could plausibly write Hunt the Wumpus in it") programming language.

<v"Arch is the best!"0
 <,_@#:


brainf*ck - Doesn't the language name exaplain it?

++>++++++>+++++<+[>[->+<]<->++++++++++<]>>.<[-]>[-<++>]
<----------------.---------------.+++++.<+++[-<++++++++++>]<.
>>+.++++++++++.<<.>>+.------------.---.<<.>>---.
+++.++++++++++++++.+.<<+.[-]++++++++++.


C - Note the three space indenting used in this project, much like that used by other superior beings.

#include <stdio.h>
#include <stdlib.h>
int main () 
{
   printf("Arch is the best!\n");
   return EXIT_SUCCESS;
}


C# - Intended to be a simple, modern, general-purpose, object-oriented programming language.

using System;
public class ArchIsTheBest
{
   static public void Main ()
   {
      Console.WriteLine ("Arch is the best!");
   }
}


C++ - Arch == Linux++

#include <iostream>
#include <cstdlib>
int main ()
{
   std::cout << "Arch is the best!" << std::endl;
   return EXIT_SUCCESS;
}


Clojure - A Lisp dialect that runs on the JVM.

(def translations {"english" "Arch is the best!",
                   "german" "Arch ist das Beste!",
                   "australian" "Arch is fair dinkum, mate!",
                   "h4x0r" "arhc 51 7he be57!",
                   "spanish" "¡Arch es el mejor!"})

(defn arch-is-the-best
  "Asks for a language and prints the corresponding translation.                                              
   Loops until input is 'quit'"
  []
  (println "Available languages: ")
  (doseq [language (keys translations)]
    (println (str "\t" language)))
  (flush)
  (loop []
    (print "Enter language, or quit: ")
    (flush)
    (let [input (. (read-line) toLowerCase)]
      (if (= input "quit")
	 (println "Goodbye!")
        (do
          (println (translations input "Bad input!"))
          (recur))))))


Common Lisp - Tested on SBCL, feel free to add more of the translations.

#!/usr/bin/sbcl --script
(defparameter *best-list* '((English "Arch is the best!")
 			     (Chinese "Arch, 她出类拔萃!")
			     (German "Arch ist das Beste!")
			     (Greek "Το Arch είναι το καλύτερο!")))
(defun aitb ()
  (format t "Available languages: ~{~{~@(~a~)~*~}~^, ~}.~%" *best-list*)
  (loop for input = (progn (format t "~&Input the desired language, (or 'quit'): ~%")
                           (force-output)
                           (read-line))
     if (string-equal input "quit")
     do (loop-finish)
     else
     do (let ((language-def
               (assoc input *best-list*
                      :key (lambda (lang) (symbol-name lang))
                      :test #'string-equal)))
          (if language-def
              (format t "~&~A~%" (second language-def))
              (format t "~&Invalid language.~%"))))
  (format t "~&May the Arch be with you!~%"))
(aitb)


Common Lisp (Alternate) - Should run on any implementation (Clisp, Allegro, SBCL...)

(princ "Arch is the best!")


Dash - Debian Almquist shell (dash) is a Unix shell, much smaller than bash but still aiming at POSIX-compliancy.

#!/bin/dash
echo "Arch is the best!"


Forth Stack-based language.

." Arch is the best" cr -- kiss way


Gjs - A Javascript binding for GNOME. It's mainly based on Spidermonkey javascript engine and the GObject introspection framework.

#!/usr/bin/env gjs
print ('Arch is the best');


Go - A language created by Google that's a love child between C, C++ and Python.

package main

import "fmt"

func main() 
{
  fmt.Printf("Arch is the best!\n")
}


Haskell - The language where IO is easy and unproblematic.

main = putStrLn "Arch is the best!"


Java - An extremely portable language, this will run on pretty much anything, it might even run on your toaster!

public class ArchIsTheBest {
   public static void main(String[] args) {
       System.out.println("Arch is the best!");
   }
}


JavaScript - Also known as ECMAScript, a prototype-based object-oriented scripting language.

<script type="text/javascript">
   alert('Arch is the best!');
</script>


LOLCODE - Why not?

HAI
CAN HAS STDIO?
VISIBLE "ARCH IS TEH PWNZ LOL!"
KTHXBYE


Lua - A lightweight, extensible programming language.

if io.popen("uname -r"):read():match("ARCH") then print("Arch is the best") else print("Get the Arch") end


Objective-C - A reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.

NSLog(@"Arch is the best!");


OCaml - The main implementation of the Caml programming language.

print_endline "Arch is the best!"


Perl - A high-level, general-purpose, interpreted, dynamic programming language.

#!/usr/bin/perl
print "Arch is the best!\n";


PHP - A general-purpose scripting language.

<?php
   echo "Arch is the best!\n";
?> 


Pixilang - Make me pixels.

print("Arch is the best!",0,0,#1897D1)
frame


Portable GNU assembler - as -o arch.o arch.s && ld -o arch -O0 arch.o

   .section .data
archIsBest:	
   .ascii 	"Arch is the best!\n"
archIsBest_len:
   .long 	. - archIsBest
   .section .text
   .globl _start
_start:
   xorl %ebx, %ebx
   movl $4, %eax	
   xorl %ebx, %ebx
   incl %ebx	
   leal archIsBest, %ecx
   movl archIsBest_len, %edx	
   int $0x80	
   xorl %eax, %eax
   incl %eax
   xorl %ebx, %ebx	
   int $0x80


Processing - An open source programming language and IDE built for the electronic arts and visual design.

println("Arch is the best!");


Prolog - A general purpose logic programming language associated with artificial intelligence and computational linguistics.

format('Arch is the best~n',[]).


Python - An interpreted, general-purpose high-level programming language.

#!/usr/bin/env python
print('Arch is the best!')


QBASIC - An interpreter for a variant of the BASIC programming language which is based on QuickBASIC.

PRINT "Arch is the best!"


R - A language for statistical computing (and much more!).

archIsBest <- function() { cat("Arch is the best!\n") }
archIsBest()


Ruby - A dynamic, reflective, general purpose object-oriented programming language.

#!/usr/bin/ruby -w
puts 'Arch is the best!'


Scheme - A dialect of Lisp.

(display "Arch is the best!\n")


Seed - A library and interpreter, dynamically bridging the WebKit JavaScriptCore engine, with the GNOME platform.

#!/usr/bin/env seed
print ('Arch is the best');


Shoes - A Ruby version using Shoes for a GUI

Shoes.app :width => 135, :height => 30 do 
    para "Arch is the Best!"
end


Standard ML - A general-purpose, modular, functional programming language with compile-time type checking and type inference.

print "Arch is the best!\n"


Tcl/Tk - A scripting language that is commonly used for rapid prototyping, scripted applications, GUIs and testing.

#!/usr/bin/env tclsh
puts "Arch is the best!"


Wiring (Arduino) - Built on Processing, the open source programming language developed at the Massachusetts Institute of Technology.

void setup() 
{
   Serial.begin(9600);    
}
void loop() 
{ 
   Serial.print("Arch is the best!");
}


X11 - X11 is an architecture independent system for display of graphical user interfaces.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <X11/Xlib.h>

int main()
{
       Display *d;
       Window w;
       XEvent e;
       int s;

       if (!(d = XOpenDisplay(NULL))) {
               fprintf(stderr, "Couldn't open display, but Arch is the best!\n");
               exit(1);
       }

       s = DefaultScreen(d);
       w = XCreateSimpleWindow(d, RootWindow(d,s), 0, 0, 110, 20, 0, 
                               0, WhitePixel(d,s));
       XSelectInput(d, w, ExposureMask | KeyPressMask);
       XMapWindow(d,w);

       while (1) {
               XNextEvent(d, &e);
               if (e.type == Expose) {
                       XDrawString(d, w, DefaultGC(d, s), 5, 15, "Arch is the best!", 17);
               }
       }

       XCloseDisplay(d);
       return 0;
}

Translations

Arabic

ارتش هو الأفضل

Australian

Arch is fair dinkum, mate!

Bahasa Indonesia

Arch terbaik!

Basque

Arch onena da!

Belarusian

Арч - самы лепшы!

Bengali

Arch shobcheye bhalo!

Binary ASCII

0100000101110010011000110110100000100000011010010111001100100000011101000110100001100101001000000110001001100101011100110111010000100001

British

Arch is simply spiffing.

Bulgarian

Арч е най-добрия!

Chinese (Simplified)

Arch 最棒了!

Ancient Chinese

阿祺,盡善矣。

Czech

Arch je nejlepší!

Danish

Arch er bedst!

Desrever (Reversed)

!tseb eht si hcrA

Dutch

Arch is de beste!

Finnish

Arch on paras!

Filipino

Mabuhay ang Arch!

French

Arch est le meilleur!

Galician

Arch é o mellor!

German

Arch ist das Beste!

Greek

Το Arch είναι το καλύτερο!

h4x0r

Arch 15 7h3 b357!

Hantec

Arch je nejbetélnější!

Hebrew

ארצ' זה הכי אחי!

Hexadecimal ASCII

4172636820697320746865206265737421

Hindi

आर्ख सब से अच्छा है ।

Hungarian

Az Arch a legjobb!

Irish

Arch é is fearr!

Italian

Arch e' il meglio!

Japanese

Archが一番ですよ!

Kazakh

Арч - ең жақсы!

Latin

Arch optimus est!

Latvian

Arch ir labākais!

Lithuanian

Arch yra geriausias!

Marathi

आर्च सगळ्यात भारी आहे!

Norwegian

Arch er best!

Pig Latin

Archway isway ethay estbay!

Polish

Arch jest najlepszy!

Portuguese

Arch é o melhor!

Québécois

Arch est le plus meilleure du monde!

Romanian

Аrch e cel mai bun!

Russian

Арч - лучший!

Serbian

Arch je najbolji!

Slovenian

Arch je najboljši!

Spanish

¡Arch es el mejor!

Swedish

Arch är bäst!

Fikonspråket

Firch Arkon fir äkon fist bäkon

Turkish

Arch en iyisidir!

Tamil

ஆர்ச்சே சிறந்தது!

Morse Code

..- -... ..- -. - ..- / .. ... / - .... . / -... . ... -

Braille

⠁⠗⠉⠓⠀⠊⠎⠀⠮⠀⠃⠑⠎⠞⠲

Base64

QXJjaCBpcyB0aGUgYmVzdCEK

URL Encoded

Arch%20is%20the%20best!

ROT13

Nepu vf gur orfg!

Links