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

Pages: 1-

HACKMEM

Name: Anonymous 2007-08-25 14:38 ID:py6rEExt

/prog/, you've been missing a requirement.

Name: Anonymous 2007-08-25 15:03 ID:Heaven

Wot?

Name: Anonymous 2007-08-25 15:43 ID:py6rEExt

(define (satori? user)
 (and (user-understands user 'HAKMEM) (user-understands user 'SICP)))
 

Name: Anonymous 2007-08-25 15:52 ID:Heaven

Needs more
(define (user-understands? user item)
 ;...

Also, predicates and with question marks.

Name: Anonymous 2007-08-25 15:53 ID:meAA3I4U

>>1
Still haven't gotten around to reading that.

Name: Anonymous 2007-08-25 17:23 ID:VTJh0Re+

Half of HAKMEM are observations made by the same kind of people that get fascinated by IDs.

>>5's ID is made of "me", "AA" (from the AA tag), and 4U.

Name: Anonymous 2007-08-25 18:31 ID:s4p+lOUz

Wait, what is ``HAKMEM?''

Name: Anonymous 2007-08-25 18:33 ID:fljrPGFx

>>7
Wait, what is ``GOOGLE?''

Name: Anonymous 2007-08-25 18:55 ID:meAA3I4U

(1/3)! and (2/3)! are interexpressible.

Name: Anonymous 2007-08-25 20:31 ID:SZ7fXwBD

Meh.

To exchange two variables in LISP without using a third variable:

(SETQ X (PROG2 0 Y (SETQ Y X)))

OMG OPTIMIZED!!1

Name: Anonymous 2007-08-25 20:42 ID:meAA3I4U

>>10
Lol SETQ. Welcome to 1972!

Name: Anonymous 2007-08-25 21:01 ID:fljrPGFx

(setf (values x y) (values y x))

Name: Anonymous 2007-08-25 21:47 ID:meAA3I4U

Figure 3(b).  A squared rectangle found by Schroeppel using "String Handling Interpretive Translator," a string processing language written by samoson.

lawl

Name: Anonymous 2007-08-25 21:50 ID:/qpO0/wv

>>13
I lol'd.

Name: Anonymous 2007-08-26 3:58 ID:CHRPpFAt

>>8
I used Wikipedia -- but I'd still like an explanation from Anonymous!

Name: Anonymous 2007-08-26 4:45 ID:5j3w3aXm

>>15
It's pretty much what Wikipedia says. Just a bunch of stuff all together. There's math stuff, interesting problems ("Solve the game of go."), game theory stuff (like on the peg solitare game, for example), and who knows what else. It's a collection of whatever those folks were thinking about, whether that was stuff they figured out or stuff they hadn't gotten yet.

Name: Anonymous 2007-08-26 13:43 ID:mFkLDeEI

ITEM 154 (Gosper):
The myth that any given programming language is machine independent is easily exploded by computing the sum of powers of 2.
If the result loops with period = 1 with sign +, you are on a sign-magnitude machine.
If the result loops with period = 1 at -1, you are on a twos-complement machine.
If the result loops with period > 1, including the beginning, you are on a ones-complement machine.
If the result loops with period > 1, not including the beginning, your machine isn't binary -- the pattern should tell you the base.
If you run out of memory, you are on a string or Bignum system.
If arithmetic overflow is a fatal error, some fascist pig with a read-only mind is trying to enforce machine independence. But the very ability to trap overflow is machine dependent.
By this strategy, consider the universe, or, more precisely, algebra:

let X = the sum of many powers of two = ...111111
now add X to itself; X + X = ...111110
thus, 2X = X - 1 so X = -1
therefore algebra is run on a machine (the universe) which is twos-complement.

Name: Anonymous 2011-03-13 11:32

the autism dox

Name: Anonymous 2011-03-14 2:57

Gosper gets a D- for effort on that last one.

Seriously, guys.

Seriously.

You just made that shit up.

Gosper runs on twos-complement.

I'ma hangin' out with my best bud, -0. Now available in creepy NSA white from the Sperry–RAND–UNIVAC Corporation.

Name: Anonymous 2011-03-14 9:37

>>17
1. All computers, we've seen, had a finite amount of memory.
2. If we take a computer with a finite amount of memory and add one bit of memory to it, we will still get a computer with a finite amount of memory.
3. Now, by induction, all computers have finite amount of memory.
4. Universe, as a computer, has a finite amount of memory, so Universe is finite.
5. If Universe is finite, then God is also finite.
6. But God is Infinity, so Infinity is finite.

Name: Anonymous 2011-03-14 9:49

>>20
5. If Universe is finite, then God is also finite.
Oh really?

Name: Anonymous 2011-03-14 9:50

>>20
4. Universe, as a computer, has a finite amount of memory.
Oh really?

Name: Anonymous 2011-03-14 9:51

>>22
Shit, forgot my IHBT.

Name: Anonymous 2011-03-14 10:03

>>21>>22>>23
Learn to logic, poor nyasha.

Name: Anonymous 2011-03-14 12:57

>>24
Go back to whatever russian imageboard you came from, ``pidor''.

Name: Anonymous 2011-03-14 18:27

>>24
[i]Please otimize your quoting!![/i]

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