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

linked list thread GO

Name: Anonymous 2007-09-21 5:08 ID:NyHzW48J

i'll start

Name: Anonymous 2007-09-21 5:08 ID:NyHzW48J

>>1

Name: o shi-- 2007-09-21 5:24 ID:JiKl+LRO

>>2

Name: Anonymous 2007-09-21 5:31 ID:sMLGv68i

>>4

Name: Anonymous 2007-09-21 7:13 ID:2CWGGvop

>>1

Name: Anonymous 2007-09-21 8:14 ID:Heaven

shouldn't the first node have a reference to the second one?

Name: Anonymous 2007-09-21 9:45 ID:Heaven

>>6
not if you want the second one to be garbage collected

Name: Anonymous 2007-09-21 11:43 ID:ubIo0WeJ

>>7
"I am doubly linked list"
>>9

Name: Anonymous 2007-09-21 11:45 ID:svobwSRX

(cons >>10 >>11)

Name: Anonymous 2007-09-21 11:55 ID:OgNuuEmr

>>7
lolwut?
>>1

Name: Anonymous 2007-09-21 11:57 ID:R8GDnVlk

>>l0

(srsly)

Name: Anonymous 2007-09-21 12:18 ID:DT+9FxI9

>>12
Lol GC

Name: Anonymous 2007-09-21 12:22 ID:OgNuuEmr

What kind of faggot GC is that? >>12's cyclic reference won't fool any kind of GC, that's for sure.

Name: Anonymous 2007-09-21 12:47 ID:igRItp8Q

>>new String("NODE")

Error: Object is not of type ``Node"

Name: Anonymous 2007-09-21 13:01 ID:tGZds2wl

>>14
END OF DOUBLE ENDED LIST
/THREAD

Name: Anonymous 2007-09-21 16:46 ID:xVcN9nuO

>>16

"I'm a node holding an array."

0 => 1
1 => 2
2 => 3
3 => 4
4 => 5
5 => 6
6 => 7
7 => 8
8 => 9
9 => 10
10 => 11
11 => 12
12 => 13
13 => 14
14 => 15
15 => 16
16 => 17

Name: Anonymous 2007-09-21 16:47 ID:Heaven

awww, failure.

Name: Anonymous 2007-09-21 19:58 ID:yIUvO+uI

>>null

Name: Anonymous 2007-09-21 20:52 ID:nf3oM7F6

>>0

Name: Anonymous 2007-09-21 22:25 ID:PMZD5bBg

>>25

YOUR A FUCK TARD

Name: Anonymous 2007-09-22 11:16 ID:VxuHoxuN

Name: Anonymous 2007-09-22 12:43 ID:Heaven

>>20
>YOU'RE
fix'd

Name: Anonymous 2007-09-22 17:36 ID:uiK4X/F0

It just occured to me that attempts to be clever/disruptive (like ">>0", etc.) would have no effect because threads are structured like this:


             +--++--+    +--++--+    +--++--+
post-list -> |  ||  +--->|  ||  |--->|  ||  |---> ...
             +--++--+    +--++--+    +--++--+
              |            |           |    
              |            |           |    
              V            V           V    
              Metadata and text of posts...


post-list is a pointer to the first post in a thread. The car of it points to the metadata and the actual text of the post, possibly using a table. The filling-in-the-template function obviously just pastes what it finds in the metadata and possibly linkyfies it. Thus, the text posted doesn't affect the thread. As you can see on the left, each post is properly enumerated starting from 1.

My point? The funny thing about this thread is that it is a proper list no matter what anyone posts. Posts like >>6 only see the text posted but ignore the post number. >>1 didn't have to explicitly link to >>2 because it's done automatically by the board software. My guess is that >>1 started this thread knowing full-well that people will post cyclic references and null pointers and is now laughing at all the naivity.

Name: 23 2007-09-22 18:05 ID:uiK4X/F0

Please excuse my stupid post (>>23). I'm currently reading SICP (atm at section 3.3.4) and it's messing with my brain. Something got triggered when I read "linked list" and then saw all the bogus references and that post just started flowing out.

Name: Anonymous 2007-09-22 18:13 ID:Heaven

Read SICP.

Name: Anonymous 2007-09-22 20:35 ID:lALP+toX

>>3

Continuing the linked list.
Of course the nodes don't have to have consecutive addresses, that would be an array.

Name: Anonymous 2009-03-06 11:09

node equals new SingleCharacter   C 1 new.

Name: Anonymous 2011-02-04 15:55


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