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

Pages: 1-

Prog collabrative challange

Name: Anonymous 2011-03-11 3:42

Prog collaborative challange: make hax function for hashing.
Take code, modify it, post it.

Usage of elliptecal curves, primes, sboxes are all allowed. Changning languages is allowed.
Inventing new languages is allowed.

I start with simple

uint32_t hax(uint8_t* anus, size_t anus_depth)
{
     unsigned dildo;
     uint32_t vipper = 0x9011;
     for(dildo=0;dildo<anus_depth;++dildo){
       vipper ^= (vipper<< 8) | anus[dildo];
     }
     return vipper;    
}

Name: Anonymous 2011-03-11 3:43

Or, almost forgot the important: posting code that doesn't compile is allowed.

Not allowed: not using [code] tags.

Name: Anonymous 2011-03-11 5:14

no

Name: Anonymous 2011-03-11 5:15

Hey OP, if code doesn't need to compile... what's the point?

make it work! http://codepad.org/Z02jPuNo

Name: Anonymous 2011-03-11 5:22

>>4
Hey OP, if code doesn't need to compile... what's the point?
there never was a point, young man. All life is meaningless.

make it work! http://codepad.org/Z02jPuNo
challenge accepted:  http://codepad.org/2q0003j8

Name: Anonymous 2011-03-11 5:45

added readline support
http://codepad.org/ld6k5BIE

Name: Anonymous 2011-03-11 8:27

Removed readline support
http://codepad.org/2q0003j8

Name: Anonymous 2011-03-11 9:44

reverted >>7 for vandalism
http://codepad.org/ld6k5BIE

Name: Christopher 2011-03-11 10:13

Requested deletion of this thread due to lack of notable sources.

Name: Anonymous 2011-03-11 10:34

>>9
Please note:Notable source require certification of quality by Microsoft, Oracle or IBM. Any other source will be rejected.

Name: Anonymous 2011-03-11 11:43


yobaHash name
 -> [0@(map asInt name)]
 |> fold {h x -> h:h<<4+x
                 g:(and h #xF0000000)
                 h:g.{pos?->xor h g>>24; _->h}
                 inv 32 g |> and h}
 |> and #xFFFFFFFF

Name: Anonymous 2011-03-11 11:45

>>11
ONE WORD THE FORCED OBFUSCATION OF CODE THREAD OVER

Name: Anonymous 2011-03-11 11:47

>>11

yobaHash name -> [0@name] |> fold {h x -> h:h<<4+x.asInt g:(and h #xF0000000)
                                          h:g.{pos?->xor h g>>24; _->h}
                                          inv 32 g |> and h}
                          |> and #xFFFFFFFF

Name: Anonymous 2011-03-11 15:13

Name: Anonymous 2011-03-11 15:27

>>14
wrong

Name: Anonymous 2011-03-11 15:56

>>13
I don't know what I'm looking at, but I think it's hilarious.

Name: Anonymous 2011-03-11 16:05

Name: Anonymous 2011-03-11 16:10

yoba
Back to whatever Russian imageboard you came from.

Name: Anonymous 2011-03-12 0:33

>>18
Yoba is my family name:
http://www.google.com/search?q=yoba

Hope all you jewish-russian pigs will die for your war crimes against Ichkeria, Samxret Oseti and Islam in general. Allah akbar!

Name: Anonymous 2011-03-12 4:44

>>19
Wait... you're the ``in Lisp'' troll, real numbers and set theory are not math troll with antisemitic traits. And now you even revealed your family name and religion.

Name: Anonymous 2011-03-12 5:17

>>20
So, what?

Name: Anonymous 2011-03-12 5:48

It are jews, who should be ashamed of their family.

Do you know, how jews come into business? Jews hire mafia thugs, who force you into selling your business to jews for a nominal price and run for your life. Now your family business is seized by jews and you've nowhere to go.

Name: Anonymous 2011-03-12 5:52

In Russia happens something unspeakable: jews, ironically, hire skinheads (nazi goons) to kill muslims and vandalize their businesses.

Name: Anonymous 2011-03-12 6:27

>>20
Please try to ignore troll posts.

Name: Anonymous 2011-03-12 6:48

>>20
He's both the ``in Lisp'' guy and that other faggot.

Name: Anonymous 2011-03-12 7:30

We (the SUSSIX dev team (Me)) propose this as the final version.

;;; ;;;
;;; @file hash.asm
;;; @brief create a hash from a line of text
;;;
;;; @assemble    nasm -f elf -Ox hash.asm
;;; @link    ld -s hash.o -o hash
;;; @clean    rm -f hash.o
;;;
;;; @author Gerald Jay Sussman (Massachvsetts Institvte of Technology)
;;;
;;; Copyright (C) 2011 Gerald Jay Sussman and the Massachvsetts
;;; Institvte of Technology. All rights reserved.
;;;
;;; The new BSD License is applied to this software, see LICENSE.txt
;;; ;;;

section    .bss
iobuf:    resb    32

section    .data
hash:    dd    0

section    .text
    global    _start

_start:
    pop    ecx
    pop    ebx

    dec    ecx
    test    ecx, ecx
    jz    .fin

.argvloop:
    pop    ebx
    push    ecx

    xor    ecx, ecx
    mov    eax, [ebx]
    shl    eax, 7
.inner:
    mov    cl, [ebx]
    test    cl, cl
    jz    .endinner

    mov    edx, 1000003
    mul    edx
    xor    eax, ecx
    inc    ebx
    jmp    .inner
.endinner:
    mov    ecx, [hash]
    add    ecx, eax
    mov    [hash], ecx

    pop    ecx
    loop    .argvloop
.fin:
    call    print_unsigned32
    mov    al, 0x0A
    call    print_char

    mov    eax, 1
    mov    ebx, 0
    int    0x80

;;; Snip from the SUSSIX corelibs
print_unsigned32:
    pushad
    lea    ecx, [iobuf + 32]
.loop:
    dec    ecx

    xor    edx, edx
    mov    ebx, 10
    div    ebx

    add    dl, 0x30
    mov    [ecx], dl

    test    eax, eax
    jz    .ret

    jmp    .loop
.ret:
    mov    eax, 4
    mov    ebx, 1
    lea    edx, [iobuf + 32]
    sub    edx, ecx
    int    0x80
    popad
    ret

print_char:
    pushad

    mov    [iobuf], al
    mov    eax, 4
    mov    ebx, 1
    mov    ecx, iobuf
    mov    edx, 1
    int    0x80

    popad
    ret

Name: Anonymous 2011-03-12 7:37

>>26

This is message from the SUSSIX dev team (Me):
Fatal bug in this version of hash section .fin, computed result not used, add line mov eax, [hash] at start of section .fin

59d58                                                                                                                                                                                                                                         
<       mov     eax, [hash]

Name: Anonymous 2011-03-12 7:55

>>27

You might want to know why the diff is in reverse, in true SUSSIX philosophy every bug fix is in time reverse, since everything SUSSIX is perfect (per definition) we never develop software with bugs in them. Therefore any SUSSIX-like software with bugs in them are derivatives of the actual perfect SUSSIX software and we use the diffs to explain the difference between the actual SUSSIX program and the bug, disease ridden filth that is non-SUSSIX software.

Name: Anonymous 2011-03-12 14:15

So all those trolls were the same guy? That's so... sad.

You should seek help, man. Or maybe you should just become a suicide bomber. Whichever, but more than just trolling a BBS.

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