Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Immutable Datastructures with good Sharing Date: Sat, 05 Nov 2011 20:05:58 -0700 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <4eb59a7e$0$292$14726298@news.sunsite.dk> <4eb59ed8$0$288$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 6 Nov 2011 03:06:00 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="22418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gBj9A1B74ELuJ6OzzOocgxgQCq1ohg5o=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: Cancel-Lock: sha1:r7fVBeIFI0erdA7J9mG9iy4OO5k= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9636 On 11/5/2011 6:13 PM, Arved Sandstrom wrote: > On 11-11-05 09:20 PM, markspace wrote: >> I'd like to see that proof. I think this is the fundamental disconnect >> most people are having on this thread. What is an immutable stack >> actually good for? There's nothing that comes to my mind. > Concurrency. Immutable data structures help in that environment - > nothing special about stacks in that regard. Yes, granted, but we don't have any evidence the OP is doing any concurrency. Jan (the OP) has put the cart before the horse, so to speak. He's asking for programming solutions, when the problem domain isn't clear. All we have is some vague assertion that his friend has used an immutable something or other (stack? queue? Jan seems unclear on it) and that it's "faster." Why is it faster? Who's measuring? How? Jan admits he hasn't seen the code. I'd bet money his friend's algorithm is in fact doing nothing like what Jan supposes. Jan seems educated, and often poses interesting problems, but at the same time he also seem blithering, and frequently confuses concepts that have nothing to do with each other, or leaps to irrelevant conclusions. It's all a load of old pisswiffle if you ask me.