tag:blogger.com,1999:blog-178174920347765771.post8551027449583272617..comments2023-10-30T09:20:21.742-07:00Comments on One Div Zero: The State of Sock TubesJames Iryhttp://www.blogger.com/profile/02835376424060382389noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-178174920347765771.post-45483233606452389822009-05-08T11:24:00.000-07:002009-05-08T11:24:00.000-07:00> Erlang's a great language. Actors are a grea...> <I> Erlang's a great language. Actors are a great model. But they are neither race nor deadlock free.</I>Yes but no. Strictly speaking this is true only of Erlang without OTP, but very few people use Erlang that way. Erlang/OTP deals with deadlocks (and other errors) with supervisor tasks, which detect deadlock as non-responsive tasks. A supervisor then logs the error and restarts the taskUnknownhttps://www.blogger.com/profile/04668797355366450128noreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-34350244811649759672009-04-07T07:25:00.000-07:002009-04-07T07:25:00.000-07:00As stated on twitter - and I there weren't any IMH...As stated on twitter - and I there weren't any IMHO good answers there - what I think is a nice problem to solve:<BR/><BR/>- 3 actors sell socks<BR/>- there is a limited amount of socks available<BR/>- if socks are still availble, people should be able to buy them<BR/><BR/>Implement this without a SPoF or a Amdahl bottleneck.<BR/><BR/>Cheers<BR/>StephanStephan.Schmidthttps://www.blogger.com/profile/03845125686370893937noreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-34156034632658474822009-04-06T11:07:00.000-07:002009-04-06T11:07:00.000-07:00Hmm. My initial reaction is "So What?" My slightly...Hmm. My initial reaction is "So What?" My slightly later reaction is still nearly the same. However, being drawn in to the slightly pointless debate, you have given a very simple example. There are many more complex objects that would take a mathematical genius, a huge amount of horsepower or a quantum computer, such as the state within public/private key encryption objects.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-26459820673180021052009-04-06T02:18:00.000-07:002009-04-06T02:18:00.000-07:00>Shocked? Good. Patent pending.I'm not shoc...>Shocked? Good. Patent pending.<BR/><BR/>I'm not shocked, I'm socked!<BR/><BR/>Good article btw, trying to hide obvious state is just silly.Roy van Rijnhttps://www.blogger.com/profile/03661545245172400243noreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-75969345669041443242009-04-04T07:56:00.000-07:002009-04-04T07:56:00.000-07:00@Jack,>I need something more pragmatic.The sequ...@Jack,<BR/><BR/>>I need something more pragmatic.<BR/><BR/>The sequel Jack, the sequel!James Iryhttps://www.blogger.com/profile/02835376424060382389noreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-2022692065227146122009-04-04T07:06:00.000-07:002009-04-04T07:06:00.000-07:00"...is all quite fascinating and liberating but ir..."...is all quite fascinating and liberating but irrelevant to the point of this article. Or is it?"<BR/><BR/>Ok, so what is the point? If most programmers misunderstand the differences between state and the internal representation of that state, where does that cause a problem for them? Why does understanding The State of Sock Tubes help? <BR/><BR/>I need something more pragmatic.Josh Coughhttps://www.blogger.com/profile/04509343962912103631noreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-61756568791974499012009-04-03T21:28:00.000-07:002009-04-03T21:28:00.000-07:00@AlBlue,I never implied that hiding state is the p...@AlBlue,<BR/><BR/>I never implied that hiding state is the point of OO. In fact, I explicitly state that that you can't except by hiding all its effects. Now, hiding representation is a point of OO, but a) representation and state are two different things and b) there are certainly other ways to do it.<BR/><BR/>Pure functional programming doesn't have state in the execution stack except to an James Iryhttps://www.blogger.com/profile/02835376424060382389noreply@blogger.comtag:blogger.com,1999:blog-178174920347765771.post-8347884708035422302009-04-03T20:18:00.000-07:002009-04-03T20:18:00.000-07:00Hiding the fact that there is state isn't the poin...Hiding the fact that there is state isn't the point of OO as you imply; it's hiding the way that that state is stored internally. Even immutable languages have the concept of state, even if it is the execution stack at some point of its execution. In fact, the only time you don't know is in your last example where everything is in a single call - but then you have to appeal to an infinite amount AlBluehttps://www.blogger.com/profile/06362201865553416948noreply@blogger.com