#On the name of ALLAH and may the blessing and peace of Allah
#be upon the Messenger of Allah Mohamed Salla Allahu Aliahi Wassalam.
#Author : Fouad Teniou
#Date : 13/08/10
#version : 1.1
#!/usr/bin/env python
#This is a portable way to declare the language being used. In
#our case, it is Python, a language created by Guido van Rossum,
#a non-Muslim born in 1956, who holds a masters degree in
#mathematics.
"""
allah_is_great uses random numbers Mersenne Twister to decide
whether to output "Allah is Great" or to output it.
"""
from random import randint
var = randint(1, 1000)
#generates a random integer between 1 and 1000 using the
#Mersenne Twister, named after Marin Mersenne, a non-Muslim
#(but French) mathematician born in 1588.
#As a laureate of an international Baccalaureate of mathematics
#I am very familiar with his work.
if (var < 500):
print "Allah is great"
#Prints "Allah is great"
else:
print "Allah is great"
#Prints "Allah is great"
Name:
Anonymous2010-08-13 20:31
#!/usr/bin/python
from random import randint
var = randint(1, 1000)
i = 0
Bloated? I'd say useful. Imagine how many lines in Java, Python or other shit you'll have to write for such a simple thing like: @array.pick(3);
Combinations without repetitions. Still bloated to you?
And the language is possibly the last language you expected to ever appear.
>>18
No, but close. It's also slow as fuck at the moment. Want a tip? Ruby programmers are people who couldn't wait for _this_ to appear. The challenge is still here.
I made this in my own language: Don't even try to compile it.
$dick = rand(1-1000);
if ($dick < 500) { print "HAX MY ANUS!!!" };
if ($dick > 500) { print "HAX MY ANUS!!!" };
I started reading through the Perl 6 spec the other day, just to make fun of it, but it's not really as bad as I had hoped for.
It's the numero uno kitchen sink language, of course, but fixing that train wreck of special cased syntax goes a long way towards putting Perl on a level above its retarded little brother PHP, and its inbred syntax brother-in-law C++. It's almost like a real language, only slower and more bloated.