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

Pages: 1-4041-

Lambda fails

Name: Anonymous 2009-04-03 18:15

(define a
  (lambda (x)
    (not (x x))))
(a a)


SHIT BRICKS

Name: Anonymous 2009-04-03 18:26

babby learns procedure stack overflow

Name: Anonymous 2009-04-03 18:27

> (halts? (a a))
#f


The definition of halts? is left as an excercise for the reader.

Name: Anonymous 2009-04-03 18:28

Name: Anonymous 2009-04-03 20:18

(call/cc call/cc)

Name: Anonymous 2009-04-03 20:21

Name: Anonymous 2009-04-03 20:34

Name: Anonymous 2009-04-03 20:38

Name: Anonymous 2009-04-03 20:41

This page has been deleted. The deletion log for the page is provided below for reference.

03:41, 14 February 2009 PMDrive1061 (talk | contribs) deleted "Your gay" ‎ (G1: Patent nonsense, meaningless, or incomprehensible)

Name: Anonymous 2009-04-03 20:51

>>5
Welcome to MzScheme v4.0 [cgc], Copyright (c) 2004-2008 PLT Scheme Inc.
(call/cc call/cc)
#<continuation>
((call/cc call/cc) (call/cc call/cc))
...

Name: Anonymous 2009-04-03 22:01

>>10 Yeah that's the one! I dont have a scheme

Name: Anonymous 2009-04-04 1:46

>>4
FUCK.

Name: Anonymous 2009-04-04 2:45

>>12
I invented the meme of bolding the dot at the end of a sentence. That's my meme.

Name: Anonymous 2009-04-04 2:52

>>13
Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so[m].[/m]

Name: Anonymous 2009-04-04 3:23

Test.

Name: Anonymous 2009-04-04 11:49

Test.

Name: Anonymous 2009-04-04 12:42

Test[size=1]THE GAME[/size]

Name: Anonymous 2009-04-04 16:44

Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.

Name: Anonymous 2009-04-04 16:44

Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.  Excuse me, but that dot at the end of the sentence is enclosed in [m] tags, like so.

Name: Anonymous 2009-04-04 17:16

>>1
Prelude> let a f = not $ f f

<interactive>:1:16:
    Occurs check: cannot construct the infinite type: t = t -> Bool
    Probable cause: `f' is applied to too many arguments
    In the second argument of `($)', namely `f f'
    In the expression: not $ f f

Name: Anonymous 2009-04-04 17:42

Name: Anonymous 2009-04-04 17:47

>>21
We didn't call the Oleg!!

Name: Anonymous 2009-04-04 18:01

Lambda fails
obviously:
Prelude> take 20 $ (\x -> map x [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.10 secs, 3348836 bytes)
Prelude> take 20 $ (flip map [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.03 secs, 1046272 bytes)

Name: Anonymous 2009-04-04 18:07

>>23
EXPERT BENCHMARKER

Name: Anonymous 2009-04-04 19:38

>>24
Prelude> take 20 $ (flip map [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.03 secs, 4482144 bytes)
Prelude> take 20 $ (\x -> map x [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.01 secs, 1048896 bytes)

Name: Anonymous 2009-04-04 20:00

>>25
Prelude> take 20 $ (flip map [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.03 secs, 1047184 bytes)
Prelude> take 20 $ (\x -> map x [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.03 secs, 1050216 bytes)
Prelude> take 20 $ (flip map [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.02 secs, 1046072 bytes)
Prelude> take 20 $ (\x -> map x [1..]) sqrt
[1.0,1.4142135623730951,1.7320508075688772,2.0,2.23606797749979,2.449489742783178,2.6457513110645907,2.8284271247461903,3.0,3.1622776601683795,3.3166247903554,3.4641016151377544,3.605551275463989,3.7416573867739413,3.872983346207417,4.0,4.123105625617661,4.242640687119285,4.358898943540674,4.47213595499958]
(0.03 secs, 1050216 bytes)

Name: Anonymous 2009-04-04 20:13


Prelude> sum $ take 100000 $ (\x -> map x [1..]) sqrt
2.1082008973917928e7
(0.18 secs, 22560092 bytes)
Prelude> sum $ take 100000 $ (flip map [1..]) sqrt
2.1082008973917928e7
(0.18 secs, 22566236 bytes)

Name: Anonymous 2009-04-04 20:52

Prelude> sum $ take 100000 $ (\x -> map x [1..]) sqrt
2.1082008973917928e7
(0.10 secs, 22563496 bytes)
Prelude> sum $ take 100000 $ (flip map [1..]) sqrt
2.1082008973917928e7
(0.10 secs, 22570596 bytes)

Name: Anonymous 2009-04-04 21:00

(0.10 secs, 22570596 bytes)
How to turn on this thing?

Name: Anonymous 2009-04-04 21:03

The GHCi might not be very indicative of how these lists would compil. It is, after all, an evaluator.

Name: Anonymous 2009-04-04 21:04

compile

Name: Anonymous 2009-04-04 22:11

>>29
:set +s

I HELPED HIM!

Name: Anonymous 2009-04-04 23:31

>>32
ghci manual doesn't say that, so it's ok.

Name: Anonymous 2009-04-04 23:40

Name: Anonymous 2009-04-04 23:43

>>33
GHCi itself says that.  You'd have to be some kind of clueless moron to not have it enabled already.

Name: Anonymous 2009-04-05 1:07

OP is a rote learner.

Name: Anonymous 2009-04-05 3:08

>>35
GHCi itself says that.  In the source>>33 has to be some kind of clueless moron to not have it enabled already.

Name: Anonymous 2009-04-05 11:02

Has anyone here READ GEB ?!?!?!

Name: Anonymous 2009-04-05 11:21

>>38
Quine my anus.

Name: Anonymous 2010-11-27 12:45

Name: Anonymous 2010-12-06 9:36

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

Name: Anonymous 2011-01-31 20:33

<-- check em dubz

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