Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder04.ams.xsnews.nl!feeder03.ams.xsnews.nl!abp002.ams.xsnews.nl!frontend-F10-09.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Python is not bad ;-) Organization: Decebal Computing X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Thu, 30 Apr 2015 09:07:51 +0200 Message-ID: <87mw1q9jqw.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:GBiiPXurz9KnbANbjNOEvh07ffc= MIME-Version: 1.0 Content-Type: text/plain Lines: 20 NNTP-Posting-Host: 81.207.62.244 X-Trace: 1430378089 news.kpn.nl 31958 81.207.62.244@kpn/81.207.62.244:48585 Xref: csiph.com comp.lang.python:89608 I am coding with Python again. I like it that the code is concise and clear. But also that the performance is not bad. I wrote Lucky Numbers in Clojure and Python. When calling with 1E7 Clojure takes 12 seconds and Python 8 seconds. When calling it with 1E8 Clojure takes all 4/8 cores and gets an out of memory. Python takes one core and is finished after 888 seconds. When I call the Python version with 1E9 it is killed after 27 seconds. I get a message Killed and the error code is 137. Probably also an out of memory. When I do that the computer is freezed a few times. That is a little less nice. Does not happen with Clojure when it gets an out of memory. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof