Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-

HMA.py

Name: Anonymous 2010-08-13 3:56


#!/usr/bin/python
from random import randint
var = randint(1, 1000)

if (var < 500):
    print "Hax my anus!"
else:
    print "Hax my anus!"

Name: Anonymous 2010-08-13 4:32

Fuck off, ``faggot´´

Name: Anonymous 2010-08-13 4:46

>>2
Non-standard form detected.

Name: Anonymous 2010-08-13 9:27

Please do not remove Fouad's boilerplate from your citation.

Name: Anonymous 2010-08-13 14:35

VIP THREAD!!!

Name: VIPPER 2010-08-13 17:37

JEWS

Name: Anonymous 2010-08-13 17:38

#!/usr/bin/python
from random import randint
var = randint(1, 1000)

if (var < 500):
    print "Suck my dick, OP!"
else:
    print "Suck my dick, OP!"

Name: Anonymous 2010-08-13 17:39

>>7
No code tags. Get the fuck out!

Name: Anonymous 2010-08-13 19:01

#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: Anonymous 2010-08-13 20:31

#!/usr/bin/python
from random import randint
var = randint(1, 1000)
i = 0

while i < var:
    print "Hax my anus!"
    i = i + 1

Name: Anonymous 2010-08-13 22:04

>>9
OP here, I lol'd.

Name: Anonymous 2010-08-13 22:13

#!/usr/bin/python
from random import randint
lol = randint(1, 6)
if (lol = 4):
    print "That ain't funny nigga"
else:
    print "HAHAHAHAHAHAHA"

Name: Anonymous 2010-08-14 3:06

Best thread on /prog/ right now.

Name: Anonymous 2010-08-14 4:21

>>13
That's really sad HAX MY ANUS.

Name: Anonymous 2010-08-14 5:30

if (1..1000).pick > 500 {
    say 'lol python'
} else {
    say 'lol python'
}

Name: Anonymous 2010-08-14 11:15

>>15
Okay what retarded language is that? Not even Java is bloated enough to have a .pick method to ranges/arrays!

Name: Anonymous 2010-08-14 11:21

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.

Name: Anonymous 2010-08-14 12:30

>>17
Is it possibly Ruby? Because if it was, I'd hate to break to you that your favorite language is slow as FUCK.

Name: Anonymous 2010-08-14 13:46

No. Ruby is done as follows:

class Fixnum
  def is_less_than_500?
    self < 500
  end
end

unless rand(1000).is_less_than_500?
  puts "Chunky bacon ^_^"
else
  puts "Chunky bacon ^_^"
end

Name: Anonymous 2010-08-14 14:51

999)rand 500<["Hax my anus!".]=

Name: Anonymous 2010-08-14 15:13

v              
   >   v       
>#v?   v       
       "       
       s       
  >> "suna",,,,@
       n       
       a       
       "       
       ,       
       ,       
       ,       
       ,       
       @

Name: Anonymous 2010-08-14 19:16

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

Name: Anonymous 2010-08-14 19:18

>>22
Perl 6?

Name: Anonymous 2010-08-14 23:17

>>22
HMAPL My Anus Programming Language?

Name: Anonymous 2010-08-15 0:17

#!/usr/bin/python
from random import randint
number = randint(1, 2)

if(number == 1):
   Print "
HAX MY ANUS"
else:
   Print "
HAX MY ANUS[code]"

Name: Anonymous 2010-08-15 0:18

>>25
You don't belong here.

Name: Anonymous 2010-08-15 0:21

<?php
$anus = rand(1, 1000);
if ($anus < 500) {
    print "HAX MY ANUS!";
} else {
    print "HAX MY ANUS!";
};
?>

Name: Anonymous 2010-08-15 0:27

#!/bin/lua
hax = math.random(1,1000);
if hax < 500 then
   print("HAX MY ANUS!");
else
   print("HAX MY ANUS!");
end

Name: Anonymous 2010-08-15 0:29

inb4 scheme and HASKAL versions

Name: Anonymous 2010-08-15 0:50

VIP THREAD!!!!!!!!!!!!!!!!!!!!!!!!!

Name: Anonymous 2010-08-15 1:04

#!/usr/bin/perl
use strict;
use warnings;

my $range = 1000;
my $penis = rand($range);

if ($penis < 500) {
    print "HAX MY ANUS!!!!!";
} else {
    print "HAX MY ANUS!!!!!";
};

Name: Anonymous 2010-08-15 4:12

>>29
U MENA PASCAL

Name: Anonymous 2010-08-15 4:55


#include <cstdlib>
#include <iostream>
using namespace std;

int main() {
    srand( time(NULL) );
    if( rand()%1000 < 499 ) {
        cout << "\x48\x61\x78\x20\x6d\x79\x20\x61\x6e\x75\x73\x21\x0a" << endl;
    } else {
        cout << "\xc2\xa1\x73\x6e\x75\xc9\x90\x20\xca\x8e\xc9\xaf\x20\x78\xc9\x90\xc9\xa5\x0a" << endl;
    }
    return 0;
}

Name: Anonymous 2010-08-15 5:53

>>33
Terrible!

Name: Anonymous 2010-08-15 9:35

>>21
Terrible!!

?v
"suna ym xah">:#,_@
 >"suna ym xah"^

Name: >>35 2010-08-15 9:37

Oh what the fuck, Shitchan.

Name: Anonymous 2010-08-15 14:37

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!!!" };

Name: Anonymous 2010-08-15 15:55

>>23
Exactly

Yeah, I know Rakudo Star is slow. But it is. First make it right, then make it fast.

Name: Anonymous 2010-08-15 17:09

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.

Name: Anonymous 2010-08-15 17:16

>>39
Is now possible to parse perl? http://www.perlmonks.org/?node_id=663393

Name: Anonymous 2010-08-15 17:52

>>40
Yes, it has a specified grammar now.

Name: Anonymous 2010-08-15 18:17

>>39
retarded little brother PHP
I think you mean "rapechild." Even Perl4 stands far apart from that shit. It might be a different story if PHP had a completely different standard library and sane defaults for at least most of its features.

Name: Anonymous 2010-08-15 22:18

>>42
I think you mean "rapechild."
I think you mena mena.

Name: Anonymous 2010-08-15 22:45

BUMP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Name: Anonymous 2010-08-16 0:11

>>39
Rakudo on the current Parrot is hopelessly slow. The startup time reminds me of what it used to be like to run a Python program without the precompiled bytecode. The good news is that Parrot is being unfucked. I guess when you take a decade to get to this point, rewriting the VM and imcc isn't something you flinch at.

They've brought in a lot of things that just didn't fit in Perl 5. The type system in particular is finally sensible allowing you to constrain the DWIM semantics in a natural way, in fact a lot of changes seem to make it natural to subvert unintended DWIMmery. You can actually mean "do what I say." My biggest issue with Perl so far has been general abuse of numbers. I might start writing Perl again.

Name: Anonymous 2010-08-16 0:29

>>42
Everyone misunderstands PHP, and so do you.

Name: Anonymous 2010-08-16 10:45

#!/usr/bin/php
niggercock = rand(1, 1000);

if (niggercock < 500):
    print "HAX MY ANUS!!!!";
else:
    print "HAX MY ANUS!!!!";

Name: Anonymous 2010-08-16 13:07

OP, I found a bug in your code. There is only a 49.9% chance that it will print "Hax my anus!", and a 50.1% chance that it will print "Hax my anus!". I'm assuming that you meant for it to be 50-50?

Name: Anonymous 2010-08-16 15:33

>>45
Perl just feels like programming through oven gloves. So do other scripting languages, probably.

Name: Anonymous 2010-08-16 15:53

>>49
That depends on what you're doing, but for most of what I do these days I completely agree. Perl 6 is looking really nice though.

Name: Anonymous 2010-08-16 16:04

>>49
I have no idea what are you talking about. Could you elaborate a bit?

Name: Anonymous 2010-08-16 17:19

>>49
that sounds like you dont know how to program.

Name: Anonymous 2010-08-16 17:24

I have developed my own language.. The ANUS programming language. It can only do one thing, output hax my anus! using the random integer method.

Simply type $hax-anus; and it will run OP's code in python!! Amazing!

Name: Anonymous 2010-08-16 21:00

>>15
At least be interesting:
subset Heads of Num where { $_ >= .5 }
subset Tails of Num where { $_ < .5 }
given(rand) {
    when Heads { say "HMA" }
    when Tails { say "MHA" }
}

Name: Anonymous 2010-08-16 21:16

>>9
This one is the best.

Name: Anonymous 2010-08-17 5:21

>>9
#Date : 13/08/2010
Die, Gregorian infidel!

Name: Anonymous 2010-08-17 5:54

>>54
MAX HIGH ANUS
But right, this at least looks funny.

Name: Anonymous 2010-08-17 9:09

>>57
It was a typo I'm letting stand in for "[Ow] My haxed anus!"

Name: Anonymous 2010-08-17 9:20

(define eval (λ x "hax my anus"))
(define-syntax loop (syntax-rules () ((_ exp) (let loop () (begin exp (loop))))))
(define print displayln)
(loop (print (eval (read))))

Name: Anonymous 2010-08-17 10:16

>>58
You probably meant
multi sub infix:<hax>(Buttock $a, Buttock $b) {
    #Anus.new($a, $b).raep
    Anus.new($a, $b).hax
}

[hax] @buttocks;

Name: Anonymous 2010-08-17 10:26

displayln
( ≖‿≖)

Name: Anonymous 2010-08-17 14:32

>>60
Heh. That doesn't do any of the things I was going for, but it's still cute.

Name: Anonymous 2010-08-17 16:13


MODULE HMA;
   IMPORT Out;
  
   TYPE
      Anus* = RECORD
         Id-: ARRAY 32 OF CHAR;
      END;
  
   PROCEDURE (A: Anus) Hax*;
   BEGIN
      Out.String('My '); Out.String(A.Id); Out.String(" has been haxed"); Out.Ln;
   END Hax;
  
   PROCEDURE (A: Anus) Init*(Id: ARRAY OF CHAR);
   BEGIN
      A.Id := Id;
   END Init;
  
VAR
   MyAnus*: Anus; (* Export MyAnus *)
BEGIN
   MyAnus.Init("anus");
   MyAnus.Hax; (* Hax at load-time, just for good measure *)
END HMA.

Name: Anonymous 2010-08-17 18:32

ABBC has done a fine job coloring all of the Perl 6 code in this thread and that scares me. Would someone please produce a Perl 6 script that shiichan will shii all over, so I don't have nightmares?

Thanks.

Name: Anonymous 2010-08-17 19:01

>>64
ABBC? A Better BBCode Compiler? Or is that ABBBCC?

Name: Anonymous 2010-08-17 19:16

>>65
http://dis.4chan.org/abbc/

(Incidentally, 'no', and 'no'.)

Name: Anonymous 2010-08-17 23:15

>>64
ABBC does not deal with syntax highlighting.

Name: Anonymous 2010-08-18 0:52

>>67
Meh, it knows what code tags are and presumably has some opportunity to fuck it all up.

Name: ­ 2010-08-18 1:51

69 get again.  I am the worst person here.

Name: Anonymous 2010-08-30 1:43

#!/usr/bin/python
from random import choice
names = "HAX MY ANUS", "HAX MY ANUS", "HAX MY ANUS", "HAX MY ANUS"
echo = choice(names)
print echo

Name: Anonymous 2010-08-30 2:04

>>70
Really, just fuck off.

Name: Anonymous 2010-08-30 4:16

>>69
You will never 69-get IRL.

Name: Anonymous 2010-08-30 7:08

>>29
(if (< (random 1000) 500) "HAX MY ANUS" "HAX MY ANUS")



haxMyAnus :: [Char]
haxMyAnus = "HAY MY ANUS"

main = putStrLn haxMyAnus

(please notice the elegance and code reduction found in the haskell solution)

Name: Anonymous 2010-08-30 8:00

ITT EXPERT ENTERPRISE SOLUTIONS

Name: Anonymous 2010-08-30 8:35

>>74
And it only took you 73 posts to catch on!

Name: Anonymous 2010-08-30 16:08

>>73

HAY MY ANUS?

Name: Anonymous 2010-08-30 17:49

main = randomRIO (1, 1000) >>= putStrLn . flip (flip if' "U MENA HASKAL" . (<500)) "U MENA HASKAL"

In after HASKAL

Name: Anonymous 2010-08-30 19:47

>>73,76-77
Stop bumping your thread.

Name: Anonymous 2010-08-31 14:37

>>78
Hey asshole, I'm the OP.

>>1,27,28,31,70,76,79

These are all my posts.. Only 1 of them was in your list. And that was pointing out that some guy spelled HAX wrong. JERKFACE

Name: Anonymous 2010-08-31 14:41

>>79
NOW LISTEN HERE !!

Name: Anonymous 2010-09-01 9:31

[code]#!/usr/bin/python
from random import randint
op = randint(1, 1000)
if (op < 500):
    print "OP IS A FAGGOT!"
else:
    print "OP IS A FAGGOT!"

Name: Anonymous 2010-09-01 10:29

[/code]

Name: Anonymous 2010-12-06 10:01

Back to /b/, ``GNAA Faggot''

Don't change these.
Name: Email:
Entire Thread Thread List