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

Pages: 1-

OBJECT-ADDRESS

Name: Anonymous 2011-07-01 7:12

Is it okay to use object's address for meta-data hashing purposes, or GC can move objects, changing addresses?

Name: Anonymous 2011-07-01 7:21

Depends if the language is allowed to move objects, thereby changing addresses.

Name: Anonymous 2011-07-01 7:23

s/language/GC/

Name: Anonymous 2011-07-01 7:39

>>2>>3
So for Common Lisp using addresses results in undefined behaviour?

Name: Anonymous 2011-07-01 7:39

http://www.lispworks.com/documentation/lw50/LWRM/html/lwref-699.htm
Returns the address of the given object as an integer. Note that the address is likely to change during garbage collection so this integer should be used for debugging purposes only.

Name: Anonymous 2011-07-01 7:40

>>4
I... guess so. Though this makes me very curious as to how they implement hash tables in which arbitrary objects are keys.

Name: Anonymous 2011-07-01 7:48

How does Clojure implement metadata then?

Name: Anonymous 2011-07-01 7:51

>>7
Scheme uses this syntax-object crud, but it's unavailable during runtime, making it useless for data-flow analysis.

Name: Anonymous 2011-07-01 9:17

>>8
Collapsing compile-time and runtime is so Jewish, ``in Lisp'' faggot.

Name: Anonymous 2011-07-01 9:49

>>9
I don't take comments from jewish maggots.

Name: dubzbot-ng 2011-07-01 9:49

:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:66 780b40a1567f313d508e976c9a7d5dae
:1309518749 1309528125

>>10
<-- that's cool and all, but check 'em

Name: Anonymous 2011-07-01 9:55

:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:159 815f014f63555108fb8d1ca43c3cc616
:1309518749 1309528514

>>11
How are you posting without getting banned? I read somewhere else that you have to spoof the User-Agent, but I'm too afraid to try.

Name: Anonymous 2011-07-01 10:14

>>12
Afraid of what? Automatic bans are one week long, and one week without /prog/ can be a blessing.

Certain user-agent strings (including the default ones of many common HTTP libraries) will grant you an error, but no ban. I don't remember if it checks other headers.

Setting the form fields incorrectly will autoban you. When in doubt, just check what your browser is sending through the wire and replicate that exactly. It's fairly easy.

Name: Anonymous 2011-07-01 10:17

>>13
Do they ever change the forms in order to thwart bots? Though that'd be a clear overstatement of the 4chan moderator team's zeal.

Name: Anonymous 2011-07-01 10:23

>>14
Define "ever". If you mean in the last few years, then no.

Name: Anonymous 2011-07-01 15:42

I used to use curl with its default user agent.

Name: Anonymous 2011-07-02 7:38

>>13
Certain user-agent strings (including the default ones of many common HTTP libraries) will grant you an error

Why do they  bother when it's so easy to write a program that sends whatever User-Agent you want?

Name: Anonymous 2011-07-02 7:46


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