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

Pages: 1-4041-

Man or boy test.

Name: Anonymous 2014-05-25 5:37

http://rosettacode.org/wiki/Man_or_boy_test

So, how does your weapon of choice fare?

Name: Anonymous 2014-05-25 13:36

It it ain't Clang, it's crap.

Name: Anonymous 2014-05-25 18:12

>>1

Most languages fail badly, because you can't implement it correctly without lazy evaluation. So you have to use Haskell or some Lazy Racket. Surprisingly D has sugar for lazy values.

Name: Anonymous 2014-05-25 18:30

The name of the Man Boy Test is problematic in many ways. First the language excludes women. Second it discriminates by age. Even if it was renamed to Adult Child Test, it would still be problematic.

Name: Anonymous 2014-05-25 18:38

>>4
problematic in many ways
First
Second
that is just two ways.

Name: Anonymous 2014-05-25 18:38

>>4 sucks male adult nigger dicks.

Name: Anonymous 2014-05-25 18:45

In certain tribes of South America, boys enter manhood in a ceremony of repeated, ritual penis punishment.

Name: Anonymous 2014-05-26 0:39

>>3
There are numerous strict-evaluation entries. You can implement it in any language.

Name: Anonymous 2014-05-26 0:51

>>7

Is circumcision considered an act of penis punishment?

Name: Anonymous 2014-05-26 0:52

>>9
A punishment typically doesn't last the rest of your lifetime.

Name: Anonymous 2014-05-26 0:58

>>10
Well that's hardly effective.

Name: Anonymous 2014-05-26 0:58

>>10

As I thought. I had a hunch that penis punishment as a ritual is benefic for the character of those subjected to it, but then I remember the jewish art of penis mangling, and became not so sure about it! But now my doubts are gone. For circumcision is an act of penis degradation and results in the lowering of the individual.

Name: Schlomo Freud 2014-05-26 0:58

>>10
[b][i]wrong![/i][/b]
https://en.wikipedia.org/wiki/Castration_complex#Literal
In 19th century Europe it was not unheard of for parents to threaten their misbehaving sons with castration or otherwise threaten their genitals. This theme is explored in the story Tupik by French writer Michel Tournier in his collection of stories entitled Le Coq de Bruyère (1978) and is a phenomenon Freud documents several times.[5] In same period, Dr. Kellogg and others in America and English speaking countries offered to Victorian parents circumcision and in grave instances, castration of their boys and girls as a terminal cure and punishment for a wide variety of misbehaviours and ills, becoming very popular over time.

Name: Anonymous 2014-05-26 1:57

Fuck off eurotrash, circumcision has been proven SCIENTIFICALLY to be beneficial to sexual health and pleasure. Enjoy your ooga booga foreskins with all their delicious aids and unhygienic piss and smegma. David was circumcised but that stupid renaissance euronigger Michelangelo decided to degrade him as a barbarian with that disgusting foreskin. Should of been a nice, beautiful, clean circumcised cock. Fortunately he got the size right and didn't make it oversized which is something that you modern homosexuals like your nigger dicks to be. Big foreskins, yum. Anyways, most Americans are circumcised and America being the greatest and most powerful country in the world by default makes circumcised men superior, and by the fact that less is more (unix) and do one thing and do it well along with quality over quantity makes circumcised men superior to the rest of their world as most of the world has a disgusting foreskin with their third world/old world practices. Circumcision, welcome to the 21st century. Not even trolling, I'm serious, fuck off with your anti-circumcision 4channer shit.

Name: Anonymous 2014-05-26 2:11

>>14

Shalom, Hymie! Or maybe you a Muslim? Assalamualaikum, Muhamedasama!!!!1

Name: Anonymous 2014-05-26 2:14

>>14

One big, hearty SHALOM to you!

Name: Anonymous 2014-05-26 2:17

>>15,16
I'm a nordic taoist, you stupid niggers. Yes peace to me and peace to circumcision.

Name: Anonymous 2014-05-26 2:19

Yes, bow down to my Circumcised Aryan Dick and all its glorious hygiene and pleasure.

Name: Anonymous 2014-05-26 2:32

Having been recently released after eight years in a US state correctional facility on the East Coast, I can attest that circumcision is alive and well at that institution. It was a very common practice amongst the black population, many of which convert to Islam while in prison. They of course, request the procedure to complete their conversion and the State gladly complies. There was a general feeling among the inmates that the Warden had a particularly interest in circumcision (perhaps men's dicks in general) and his directions were to circumcise every man possible. If any man went into the infirmary for any length of time he often came out circumcised. I'm not saying these were done completely without consent, but certainly you felt pressure to be circumcised. There was lots of lectures and "education" about hygiene, foreskin problems, etc. and plenty of talk about going home fully "rehabilitated" and ready to "perform" with your lady. Much was made in formal presentations and in conversations with fellow inmates about improved desirability for circumcised men and how much better the sex would (eventually) be. "When you get home, let your lady know you truly are a new man... in all ways!" This was a common statement. The sizable Hispanic population largely tried to avoid the procedure, but many brown foreskins succumbed to the docs clamp. Most of the white guys were already circumcised, but I was not. After two years, I too got circumcised, as a way of getting out of a very undesirable work assignment. I've not got what you folks would likely consider a tight circumcision. I'm out now three plus years, and I have to say I'm very happy to be circumcised. It does look and feel great, and the ladies do seem to prefer it. Mandatory circumcisions probably wouldn't be a bad idea.

Name: Anonymous 2014-05-26 2:37

>>19
Congratulations! Welcome to the club, brother.

Name: Anonymous 2014-05-26 2:39

>>14
Look at all the discoveries about the foreskin
1832: prevents nocturnal emissions
1845: prevents masturbation
1855: prevents syphilis
1865: cures epilepsy
1870: cures epilepsy
1870: prevents spinal paralysis
1873: cures bed wetting
1875: cures curvature of the spine
1875: cures paralysis of the bladder
1875: cures clubfoot
1879: cures nocturnal seminal emissions
1879: curse abdominal neuralgia
1881: cures eye problems
1886: prevents crossed eyes
1888: prevents masturbating
1890: cures blindness
1890: cures deafness
1890: cures dumbness
1891: "foreskin constitutes a harbor for filth"
1891: "foreskin is a constant source of irritation"
1891: conduces to masturbation
1891: adds to the difficulties of sexual continence
1894: circumcising Blacks prevents them from raping White women
1894: cures urinary incontinence
1894: cures rectal incontinence
1900: needed to desensitize the penis
1901: needed to desensitize the penis
1902: foreskin causes epilepsy

Name: Anonymous 2014-05-26 2:40

>>21
As we can see, circumcision adds greatly to pleasure and hygiene.

Name: Anonymous 2014-05-26 3:07

In amateur or porn vids I see more circumcised men moaning than ones with foreskin. People say that foreskins are oh so incredibly sensitive and just touching the penis head erect will make them explode but why don't they moan then? They make no uncontrollable sounds and surely they would if they were feeling such pleasure. I'm a virgin, used to hump my pillows or underwear in makeshift vaginas and with my circumcised dick which is unfortunately keratinized but I had moaned like hell and had great pleasure and orgasms. Keratinized dick and fabric but I had great pleasure. Now soon I'll be getting myself one of those artificial vaginas and I'll be completely getting rid of the keratin (which is possible and easily done) and so with a great quality artificial vagina and a smooth penis can you imagine the pleasure I'm going to feel? Those frenulum don't seem to actually do anything and have any reason for being there other than moving the flaps and the foreskin itself is no big deal with pre-cum and a woman's wet horny vagina (no need lube unless you're old and even with a foreskin) and plus I could just stretch to get the skin flaps back anyways. Circumcised master race.

Name: Anonymous 2014-05-26 3:13

Don't forget, there's also a man's anus and male anal orgasms for sexual pleasure. You can get a just as good full body orgasm that a woman has and even better sometimes!

Name: faggot 2014-05-26 3:43

>>14
I nice dick tastes best with a hint of smegma, urine, and sweat. I would know!

Name: Anonymous 2014-05-26 3:50

>>25
Look at this poor soul, a feggot. And this disgusting ``it'' this disgusting FEGGOT proves my point. Foreskins are disgusting urine and smegma factories and it seems the foreskin-advocates are a bunch of FEGGOTS

Name: Anonymous 2014-05-26 5:36

>>26
Alan Turing was a cock sucking faggot and none of us will match his legacy.

Name: Anonymous 2014-05-26 5:44

>>27
Alan turing was heterosexphile (straight/heterosexual), stop trying to change the histroy faggots!

Name: Anonymous 2014-05-26 5:57

>>28

https://en.wikipedia.org/wiki/Alan_Turing

Turing was prosecuted for homosexuality in 1952, when such acts were still criminalised in the UK. He accepted treatment with estrogen injections (chemical castration) as an alternative to prison. Turing died in 1954, 16 days before his 42nd birthday, from cyanide poisoning. An inquest determined his death a suicide; his mother and some others believed it was accidental.[7] On 10 September 2009, following an Internet campaign, British Prime Minister Gordon Brown made an official public apology on behalf of the British government for "the appalling way he was treated." The Queen granted him a posthumous pardon on 24 December 2013.[8][9]

Name: Anonymous 2014-05-26 6:01

>>29
nice try feminist progresive kike

Name: Anonymous 2014-05-26 6:04

>>30
Say whatever helps you sleep at night, killer of great men like Alan Turing.

Name: Anonymous 2014-05-26 6:15

>>29
Arguing against a shitposter with facts? IHBT.

Name: Anonymous 2014-05-26 8:34

>>32
since when is wikipedia a fact?
since when is vipfart-tier posting shitposting?

Name: Anonymous 2014-05-26 9:05

>>33
vipfart-tier posting
shartposting then

Name: Anonymous 2014-05-26 10:09

My Scheme interpreter passes the test with:

(define A (lambda (k x1 x2 x3 x4 x5)
(define B (lambda ()
(set! k (- k 1))
(A k B x1 x2 x3 x4)))
(if (<= k 0)
(+ (x4) (x5))
(B))))

(display (A 10 (lambda () 1) (lambda () -1) (lambda () -1) (lambda () 1) (lambda () 0)))


GC doesn't run into any problems, either.

Name: Anonymous 2014-05-26 10:31

>>35
GC tends to do a decent job at it nowadays. Maybe Java still screws it up, but they collect as late as possible.

Name: Anonymous 2014-05-26 10:34

>>36
By ``my Scheme interpreter'' in that post, I meant the Scheme interpreter I wrote.

Of course, guile and mit-scheme pass. Mine is a little slower, but it doesn't take up more memory than needed.

Name: Anonymous 2014-05-26 14:19

>>35
Wtf?? o.o

Name: Anonymous 2014-05-26 14:35

what the hell, does any fucking system even fail this retarded test?

Name: le pedophile 2014-05-26 16:56

I like boys.

Name: Anonymous 2014-05-26 17:09

>>35
My Scheme interpreter passes the test with
(lambda () 1) (lambda () -1) (lambda () -1) (lambda () 1) (lambda () 0)))
with being shit.

Name: Anonymous 2014-05-26 20:35

>>41

(define m (lambda (x) (lambda () x)))

(A 10 (m 1) (m -1) (m -1) (m 1) (m 0))

Name: Anonymous 2014-05-26 20:48

>>37
Oh, nice. Does memory usage remain more or less constant?

>>39
It's not meaningful without lambdas for example. Some langauge implementations have problems with memory. I don't think you're supposed to need 4gb to compute k = 26, but GHC does.

Name: Anonymous 2014-05-26 21:04

>>42
D:
A(10, 1, -1, -1, 1, 0)

Scheme:
(define m (lambda (x) (lambda () x)))
(A 10 (m 1) (m -1) (m -1) (m 1) (m 0))

Name: Anonymous 2014-05-26 21:14

>>44
And now someone's going to macro it up (in CL) and it'll be a short and incomprehensible mess. Then someone else will come along and do it in J. Will you be happy then?

Name: Anonymous 2014-05-26 21:21

>>44
The D versions look suspect. The first one is plain wrong. Not sure about the others, can you really invoke an int in D as though it's a nullary function returning int? (Weird feature. Even Perl isn't that DWIMMy.)

Name: Anonymous 2014-05-26 21:26

>>44
Shit I spent like 5 minutes staring at this post trying to figure out what you were making a frowny face at, until I read >>46 and realized that was the implementation in ``D''.

Niggers.

Name: Anonymous 2014-05-26 21:51

>>43
Huh. Using massif in valgrind I just found out my implementation uses less memory than guile and also frees it in the most efficient way.

Valgrind --tool=massif heap allocation graph for guile:

MB
3.508^ #
| #
| #
| #
| #
| :@ :::::::#
| @:@:: :@::#
| @:@:: :@::#
| 2.1MB ------- My interpreter's peak '@:@:: :@::#
| :@:@::::@::@:@:: :@::#
| ::::@:::@:@:@:: @::@:@:: :@::#
| ::: @:::@:@:@:: @::@:@:: :@::#
| :::::::::::: @:::@:@:@:: @::@:@:: :@::#
| ::: :::::::: @:::@:@:@:: @::@:@:: :@::#
| :::::::::::::::::::::: :::::::: @:::@:@:@:: @::@:@:: :@::#
| ::: :: : : ::: ::::: :::::::: @:::@:@:@:: @::@:@:: :@::#
| :::@:::::: :: : : ::: ::::: :::::::: @:::@:@:@:: @::@:@:: :@::#
| :::::@:::::: :: : : ::: ::::: :::::::: @:::@:@:@:: @::@:@:: :@::#
| :::::::@:::::: :: : : ::: ::::: :::::::: @:::@:@:@:: @::@:@:: :@::#
| :::::::@:::::: :: : : ::: ::::: :::::::: @:::@:@:@:: @::@:@:: :@::#
0 +----------------------------------------------------------------------->Mi
0 118.5
Number of snapshots: 93
Detailed snapshots: [9, 40, 44, 46, 48, 53, 63, 70, 80, 90, 92 (peak)]


Heap allocation graph for my interpreter:


MB
2.025^ ##
| @# :
| @:@# @@:::::
| ::@:@# @ : : ::::::::::
| ::@:@# @ : : ::::: :: :::::::
| ::::@:@# @ : : ::::: :: ::: :: :::::::::
| @@: ::@:@# @ : : ::::: :: ::: :: :: ::: : :::
| @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::::
| ::@ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: : :
| : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: ::::::
| ::: @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: :::::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: :::::::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::@:
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::@::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::@::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::@::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::@::
| :: : @ : ::@:@# @ : : ::::: :: ::: :: :: ::: : :::@::: :::: ::::::::@::
0 +----------------------------------------------------------------------->Gi
0 40.70

Number of snapshots: 58
Detailed snapshots: [4, 8, 10, 11 (peak), 12, 37, 54]


Mine hits the peak early on at 2MB and decreases steadily after, while guile hits the peak at the end with 3.5MB because it never frees memory (also it has a shitload of memory errors if you run it through valgrind --leak-check=full).

Name: Anonymous 2014-05-26 22:01

>>47
I kekked

Name: Anonymous 2014-05-26 23:43

>>48
Mazel tov! Does it get the right result though?

Name: Anonymous 2014-05-27 7:26

>>50
Yes.

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