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

Pages: 1-4041-8081-

I HER U LYKE XNOR

Name: Anonymous 2009-01-09 3:20

hai guys, because I love you so much I made you a present:


def OR(a,b):
    """ Returns A + B
    """
    x = bool(a) or bool(b)
    return x

def AND(a,b):
    """ Returns A.B
    """
    x = bool(a) and bool(b)
    return x

def XOR(a,b):
    """ Returns A(XOR)B
    """
    if bool(a) and bool(b):
        x = False
    else:
        x = bool(a) or bool(b)
    return x

def INV(a):
    """ Returns -A
    """
    return XOR(a, True)

def NAND(a,b):
    """ Returns -(A.B)
    """
    return INV(AND(a,b))

def NOR(a,b):
    """ Returns -(A + B)
    """
    return INV(OR(a,b))

def XNOR(a,b):
    """ Returns -(A(XOR)B)
    """
    return INV(XOR(a,b))

Name: Anonymous 2009-01-09 4:06

Can I have the receipt? I'm going to return this and get something I actually need.

Name: Anonymous 2009-01-09 4:10

sorry, I 'made' it, no reciept, but feel free to turn it into something you actually need

Name: Anonymous 2009-01-09 4:24

10: assign value to x
20: return x

see anything redundant here?

Name: 2 2009-01-09 4:25

>>3
Thanks!

import operator as op

OR  = op.__or__
AND = op.__and__
XOR = op.__xor__
INV = op.__not__

NAND = lambda a, b: INV(AND(a, b))
NOR  = lambda a, b: INV(OR(a, b))
XNOR = lambda a, b: INV(XOR(a, b))

Name: Anonymous 2009-01-09 4:29

#define XOR(A, B) ((A && !B) || (!A && B))

That's the only one Sepples doesn't have.

Name: Anonymous 2009-01-09 4:30

>>4
You fail to grasp the awesome power of FAIL-SAFE ENTERPRISE REDUNDANT SYSTEMS

Name: Anonymous 2009-01-09 4:31

>>6
Now do it without reevaluating A and B.

Name: Anonymous 2009-01-09 4:32

the awesome thing about /prog/ is you can have your code optimized for free, you just have to look like a troll (obviously actual requests go unanswered)

Name: Anonymous 2009-01-09 4:40

>>6
#define XOR(A, B) (!(A) != !(B))

Name: Anonymous 2009-01-09 4:42

>>5
now write a bitwise version of each

Name: Anonymous 2009-01-09 4:48

Name: Anonymous 2009-01-09 4:58

>>9
I lol'd and then was very disturbed when I realized how true it is.

Name: Anonymous 2009-01-09 4:59

>>9
I lol'd and then was very disturbed when I realized how true it is.

Name: Anonymous 2009-01-09 5:04

>>9
Why you need these functions when you can write the operators  inline like A^B and B&C?

Name: Anonymous 2009-01-09 5:15

>>15
Who cares?

Name: Anonymous 2009-01-09 5:17

>>16
Functional programmers.

Name: Anonymous 2009-01-09 5:23

>>16
I do. Because >>1 described superfluous functions.

Name: Anonymous 2009-01-09 5:40

>>15,17,18
DON'T LOOK A GIFT HORSE IN THE MOUTH

Name: Anonymous 2009-01-09 5:44

>>19
the post of >>1 isn't a gift or present.
More apt comparison would be a Trojan horse since use of
superfluous functions is harmful to performance. they could be easily replaced by inline one-character bitwise operators.

Name: Anonymous 2009-01-09 5:46

Don't look a Trojan horse in the stomach.

Name: Anonymous 2009-01-09 6:44

>>21
I don't look at it. I defined it as "Trojan horse".

Name: Anonymous 2009-01-09 7:48

I care because you do

Name: Anonymous 2009-01-09 9:27

>>20
YOU ARE A FAGGOT!

Name: Anonymous 2009-01-09 9:40

>>24
I'm not homosexual. If you have some fixation with the term, i'm afraid my sexual preference will disappoint you. I prefer women.

Name: Anonymous 2009-01-09 9:48

>>25
FAGGOT!

Name: Anonymous 2009-01-09 9:53

>>26
Wrong. A homosexual would prefer man.
in >>25 i posted the opposite.
Do you believe i'm "faggot" for preferring women?

Name: Anonymous 2009-01-09 9:54

>>27
No, you're a faggot for BEING A FAGGOT!

Name: Anonymous 2009-01-09 9:54

>>27
Only men are homosexual now?

Name: Anonymous 2009-01-09 9:56

>>27
CONFIRMED LESBIAN

Name: Anonymous 2009-01-09 9:57

>>28 This is Circular logic: you are X because you are X.
>>29 homosexual women are properly called lesbians

Name: Anonymous 2009-01-09 10:01

>>31
ACCORDING TO YOUR PRECIOUS FUCKING WIKIPEDIA, YOU'RE WRONG FAGGOT!

http://en.wikipedia.org/wiki/Homosexuality

Name: Anonymous 2009-01-09 10:11

>>32
You didn't read the article at all.
http://en.wikipedia.org/wiki/Homosexuality
"The word gay generally refers to male homosexuality, but is sometimes used in a broader sense to refer to homosexuality in general. In the context of sexuality, the word lesbian denotes female homosexuality."

Name: Anonymous 2009-01-09 13:32

and this, my fellow Anonymous is why you have not yet learned the way of the program.

You need to firstly understand that there is a general case, and then a stop case for any iterative or recursive thought.

Name: Anonymous 2009-01-09 13:36

>>33
but is sometimes used in a broader sense to refer to homosexuality in general.

Name: Anonymous 2009-01-09 14:05

>>35
It indeed does. However to be specific you need to mention the gender-dependent version, which is lesbian.

Name: Anonymous 2009-01-09 14:07

>>36
You have to learn to understand.

Name: Anonymous 2009-01-09 14:26

>>37
I understand what homosexuality refers to(same gender relationships), but i can't understand how can I be a lesbian(homosexual women as >>29 describes ) when i'm Male.

Name: Anonymous 2009-01-09 14:36

>>38
i'm Male
[citation needed]

Name: Anonymous 2009-01-09 14:36

>>38
Its perfectly obvious how you can be a male lesbian; if you don't understand, then that shows your lack of comprehension.

Name: Anonymous 2009-01-09 14:39

>>40
A male lesbian would be contradicting itself:
Lesbian is a women.
Male is a man.

Name: Anonymous 2009-01-09 14:41

>>41
Prove it.

Name: Anonymous 2009-01-09 14:45

>>41
If man is the same as women, language would not need the word to refer to the concept(of 'gender') because genders wouldn't exist at all.

Name: Anonymous 2009-01-09 14:45

How can I be posting on /prog/ when i'm banned.

Name: Anonymous 2009-01-09 14:52

>>43
What if they don't?

Name: Anonymous 2009-01-09 14:58

>>45
The concept of gender stems from the (biological) difference between people. Its obvious that the two genders are not the same. if the is no genders, the is no concept of male,female,lesbian,gay or homosexual because they would merge to single concept(which doesn't reference gender more then "person" does).

Name: Anonymous 2009-01-09 15:00

>>46
What if none of those concepts are really valid?

Name: Anonymous 2009-01-09 15:07

>>46
we actually have a grammatical need for more genders so as to differentiate black women, black men and white women and white men to unambiguously imply that.

Name: Anonymous 2009-01-09 15:07

>>47
but they exist for as long as there are genders. Do you have an explanation to why we shouldn't use these concepts?
It would be limiting to not have the concept for water for example.

Name: Anonymous 2009-01-09 15:12

>>49
But why would it be limiting? Or do you expect me to just except the truth of that claim on your authority?

Name: Anonymous 2009-01-09 15:14

>>50
Because by not having the concept for water you wouldn't be able to ask,refer to,or trade for water.

Name: Anonymous 2009-01-09 15:20

>>51
So I should want a word that refers to water so I can refer to water?
But that's a logical fallicy!

Name: Anonymous 2009-01-09 15:22

>>50

to except the truth is to exclude the truth, which you seem to do on a constant basis.

Name: Anonymous 2009-01-09 15:24

>>52
Yo dawg I herd you like referring to water so I put a logical fallacy to the discussion so that you can refer to water while you refer to water.

Name: Anonymous 2009-01-09 15:25

>>52
no, you would need a concept of water in order to refer to water; it is not a logical fallacy.

oh my, would that be a Freudian slip? I assumed you meant "fallacy" but you wrote "fallicy" which is closer to "phallus-y".

Name: Anonymous 2009-01-09 15:26

>>12
fact n = product [2..n]
perm n r = product [n-r+1..n]
comb n r = let sr = min r (n-r) in
    perm n sr `div` fact sr
ringvar len = 1+sum [ comb (len-ones) ones + comb (len-ones-1) (ones-1) |
    ones <- [1..div len 2]]
eul209 = product $ map ringvar [1,6,46,6,3,2]

Name: Anonymous 2009-01-09 15:27

>>52
So that you could name it.

Name: Anonymous 2009-01-09 15:29

>>53
But to exclude the truth is also to exude the truth, which you don't seem to be able to comprehend.

Name: Anonymous 2009-01-09 15:29

Logic can not exist without mental constructs to represent reality. Be these words or otherwise.

I am amazed at the low level thought that FrozenVoid manages continuously! I have theorised the level of thought to be roughly equivalent to that of a PENIS(it has nerves and is capable of perceiving stimulus; it will even erect by reflex! However it lacks a brain to understand the stimulus outside of natural reflex coded into its stupid penis DNA)

Name: Anonymous 2009-01-09 15:33

oh my, would that be a Freudian slip? I assumed you meant "fallacy" but you wrote "fallicy" which is closer to "phallus-y".
Actually, its "fallicy": http://en.wikipedia.org/wiki/fallacy_fallicy
And where do you think the concept of water comes from? Obviously not from the word. Therefore you have failed at logic.

Name: Anonymous 2009-01-09 15:34

>>59
Could a penis be smarter then the organism its a part of?

Name: Anonymous 2009-01-09 15:36

>>61
No. It would be paradoxical if it became the organism `its' part of.

Name: Anonymous 2009-01-09 15:40

>>62
Then your post about thinking penises is invalid.

Name: Anonymous 2009-01-09 15:40

Name: Anonymous 2009-01-09 15:42

Just as a bit of background, the reason why circuit engineers use NOR, NAND and NXOR logic gates is because negation requires less transistors. In fact, you can create every other logic gate using only NOR and NAND gates

Name: Anonymous 2009-01-09 15:46

>>59 A "living thinking penis" which you describe at >>59 is only a part of male body and cannot be independent. Thus making a claim that "FrozenVoid" is a thinking penis invalid.

Name: Anonymous 2009-01-09 15:46

>>63
I haven't posted a post about thinking penises. What the fuck are you talking about anyway?

I just happened to spot a straightforward question: ``Could a penis be smarter then the organism its a part of?'' and replied truthfully.

Name: Anonymous 2009-01-09 15:47

>>66 learn2metaphor

Name: Anonymous 2009-01-09 15:50

>>68
what exactly is the "thinking level of a Penis" if its not a "thinking living penis"?

Name: Anonymous 2009-01-09 15:54

curious, I am the original PENIS metaphor anon.... and I would argue that a penis is indeed thinking to a very low-level (when compared relatively with the human brain, for example!) but thinking nonetheless.

the nerves of the penis are no different from a section of the nerves of the brain, therefore if the penis is non-thinking, then the brain is non-thinking... or equivalently thought is independent of nerves.

Name: Anonymous 2009-01-09 15:56

>>70
But where are the penis nerves connected to? Is it separate from the system?

Name: Anonymous 2009-01-09 16:19

>>71 it could be; actually it would be quite possible to separate the penis from the body and pump nutrient-rich blood through its veins... the penis would be independent of the brain and technically alive.

on the other hand the Brain is connected to the nerves in the penis, is the penis an extension of the brain or vice versa?

Name: Anonymous 2009-01-09 16:21

>>71
Optimally, yes.

Name: Anonymous 2009-01-09 16:25

could /prog/ program a penis?

Name: Anonymous 2009-01-09 16:28

>>74
Only if it's in x86 Assembly

Name: Anonymous 2009-01-09 16:30

>>74
That was actually done in another thread, also a vagina.

Name: Anonymous 2009-01-09 16:48

would you, Sir, be so gentle as to provide a link? >>76

Name: FlammingFaggot !SNCngL2R7I 2009-01-09 17:03

>>77
I just remember it, I don't know where it is in the archive, and I don't have any kind of /prog/-scraping program.

Name: Anonymous 2009-01-09 17:11

>>78
There's one "m" too many in your name.

Name: Anonymous 2009-01-09 17:44

>>79
He might be a drummer.

Name: DrummmingFaggot !HJA/tC3Zag 2009-01-09 18:27

>>80
that is correct anon

Name: RESAL INIHS 2009-01-09 18:42

is th[i]is were all the expert programers hang??? god becuse i need help, me and my mates are making the internet project and we need help on ways to implamen[/i]t melti taskable elaments, we already made the guis, and the icons?? whats the next step on our mission for knowledge!

Name: Anonymous 2009-01-09 18:49

>>82
read sicp

Name: Anonymous 2009-01-09 20:33

>>80
GIVE THE DRUMMER SOME

Name: Anonymous 2009-01-10 3:26

>>72
Obviously the penis is only a part controlled by the brain and sending sensual information back to it. Which none of you can't understand and instead assume it can "think".

Name: Anonymous 2009-01-10 3:57

    (☣) [☢] 4chan EMERGENCY BROADCAST SYSTEM [☢] (☣)
     [EN] WARNING: THIS THREAD IS BEING USED TO CONTAIN A POTENTIALLY DANGEROUS THREAD. DO NOT ENTER THIS AREA. DO NOT POST IN THIS THREAD. DAMAGE CONTROL AGENTS WILL SHOOT ON SIGHT.
     [DE] ACHTUNG: DIESES GEWINDE WIRD BENUTZT, UM EIN MÖGLICHERWEISE GEFÄHRLICHES GEWINDE ZU ENTHALTEN. DIESEN BEREICH NICHT EINGEBEN. NICHT IN DIESEM GEWINDE BEKANNTGEBEN. BESCHÄDIGUNG STEUERmittel SCHIESSEN AUF ANBLICK.
     [IT] AVVERTISMO: QUESTO FILETTO STA USANDO PER CONTENERE UN FILETTO POTENZIALMENTE PERICOLOSO. NON ENTRARE IN QUESTA ZONA. NON INVIARE IN QUESTO FILETTO. GLI AGENTI DI CONTROLLO DI DANNI SPARERANNO SU VISTA.
     [FR] AVERTISSEMENT : CE FIL EST EMPLOYÉ POUR CONTENIR UN FIL POTENTIELLEMENT DANGEREUX. NE PAS ENTRER DANS CE SECTEUR. NE PAS SIGNALER EN CE FIL. LES AGENTS DE COMMANDE DE DOMMAGES TIRERONT SUR LA VUE.
     [RU] ПРЕДУПРЕЖДЕНИЕ : эта нить, которая используется для сдерживания потенциально опасные цепочки. Не вводите этой области. Не отвечайте в эту тему. Ущерба будут стрелять без предупреждения.
     [JA] 警告: この糸が可能性としては危ない糸を含んでいるのに使用されている。 この区域に入ってはいけない。 この糸で掲示してはいけない。 被害対策の代理店は視力で撃つ。
     (☣) [☢] 4chan EMERGENCY BROADCAST SYSTEM [☢] (☣)

Name: Anonymous 2009-01-10 3:58

THIS FUCKING AWESOMES.

Name: Anonymous 2009-01-10 4:00

This thread has reached a post by FrozenVoid. You cannot reply anymore.

Name: Anonymous 2009-01-10 4:03

>>88
If you don't want to reply(it already reached a post by FrozenVoid) you wouldn't  post this >>88 post at all.
But instead you prefer to add your own reply, thus defeating your own determination.

Name: Anonymous 2009-03-06 10:04

The title so it   will probably have   thousands of lines   each followed by   a GO TO   the high res.

Name: Anonymous 2009-03-06 11:57

looking within yourself Wat!

Name: Anonymous 2010-12-10 6:23

Name: Anonymous 2011-02-04 12:02


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