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

Pages: 1-

Lol, so random.

Name: Anonymous 2011-06-09 13:10

The function rand_r() is from POSIX.1-2001.  POSIX.1-2008 marks rand_r() as obsolete.
WTF. Why rand_r is obsolete? What should be used in multithread applications instead?

Name: Anonymous 2011-06-09 13:14

rand_penguin_of_doom()

Name: Anonymous 2011-06-09 13:15

markov chains

Name: !!kCq+A64Losi56ze 2011-06-09 13:15

Go away.

Name: Anonymous 2011-06-09 13:42

You should be using the Mersenne Twister.

Name: Anonymous 2011-06-09 13:46

drand48

Name: Anonymous 2011-06-09 13:56

>>6
>> drand48
      These  functions  are  declared  obsolete by SVID 3, which states that rand(3) should be used instead.

Every rand is obsolete. It's like they don't like randomized algorithms

Name: Anonymous 2011-06-09 13:56

I cannot figure it out.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/rand_r.html says:
Issue 7

Austin Group Interpretation 1003.1-2001 #156 is applied.

The rand_r() function is marked obsolescent.


And if I read https://www.opengroup.org/austin/interps/uploads/40/14559/AI-156.txt I'm guessing that's not why it was removed?

Name: Anonymous 2011-06-09 14:26

Unix is 90% deprecated anyway.

Name: Anonymous 2011-06-09 16:13

idk use whatever python uses

Name: Anonymous 2011-06-09 18:08

>>9
lol you are telling The Truth dude :D

Name: Anonymous 2011-06-09 18:10

>>9 yeah man hi five

Name: Anonymous 2011-06-09 18:11

>>9 yeah man hi five

Name: Anonymous 2011-06-09 18:12

>>9 yes; man, wifi.

Name: Anonymous 2011-06-09 18:16

>>10

Python isn't exactly ideal for multi-threading applications.

Name: Anonymous 2011-06-09 18:18

>>15
The GIL is the future.

Name: Anonymous 2011-06-09 19:21

>>15
yes it is

>>16
the GIL is FUD propagated by just about every other language fanboy in an attempt to undermine python

Name: Anonymous 2011-06-09 19:28

>>17
yes it is
Processes, right? How Pythonic! Sheer elegance! Let's eat some whitespaces and crippled lambdas while our stacks overflow in a tail recurring joy.

Name: Anonymous 2011-06-09 20:39

>>18
you're just mad that iteration can do everything tail recursion can do

Name: Anonymous 2011-06-09 21:03

>>19
You're just mad that tail calls can do everything iteration can do and better.

Name: Anonymous 2011-06-09 22:20

>>20
i yawn'd

Name: Anonymous 2011-06-09 23:41

>>17

Multi-processing is not multi-threading, I'm quite confused as to why I have to make that distinction as it should be clear per definition.

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