X-Received: by 10.42.39.140 with SMTP id h12mr16213071ice.9.1404008707125; Sat, 28 Jun 2014 19:25:07 -0700 (PDT) X-Received: by 10.50.61.145 with SMTP id p17mr430124igr.16.1404008707043; Sat, 28 Jun 2014 19:25:07 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!hn18no17763577igb.0!news-out.google.com!gf2ni200igb.0!nntp.google.com!hn18no17763567igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sat, 28 Jun 2014 19:25:06 -0700 (PDT) In-Reply-To: <87wqc0hmdo.fsf@elektro.pacujo.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.7.105; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui NNTP-Posting-Host: 59.95.7.105 References: <53acdd24$0$29985$c3e8da3$5496439d@news.astraweb.com> <87wqc0hmdo.fsf@elektro.pacujo.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: print statements and profiling a function slowed performance From: Rustom Mody Injection-Date: Sun, 29 Jun 2014 02:25:07 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:73720 On Sunday, June 29, 2014 12:50:19 AM UTC+5:30, Marko Rauhamaa wrote: > Chris Angelico wrote: > > Threading is a focus of so many myths. People who don't understand it > > think that threads are magic pixie dust that fixes everything, or else > > magic pixie dust that breaks everything. Or both, at the same time. > > Neither notion is true. > I'm in the latter camp. > More precisely: threads have their uses but they are used far too much > and not feared nearly enough. Third Camp: Since both views are true: Chris: Threads solve a large class of important problems Marko: Threads are horribly error prone lets have a (bondage-and-discipline) language that supports smooth mostly error-free threads. Most famous recent example is Go. More classic (and more bondage-and-discipline) are Erlang, CloudHaskell PS. I find the success of node.js (async model) scary. The success is a fact