| MATLAB Central > MATLAB Newsreader > Why does everyone hate 'eval'? |
|
|
|
Subject: Why does everyone hate 'eval'? From: Johan Carlson Date: 11 Dec, 2008 18:19:02 Message: 1 of 46 |
|
Hey guys! |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrlim$oqo$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Joerg Buchholz Date: 11 Dec, 2008 18:40:18 Message: 3 of 46 |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrlim$oqo$1@fred.mathworks.com>... |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrlim$oqo$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Steven Lord Date: 11 Dec, 2008 19:12:19 Message: 5 of 46 |
|
|
|
Subject: Why does everyone hate 'eval'? From: Johan Carlson Date: 11 Dec, 2008 19:29:02 Message: 6 of 46 |
|
"Steven Lord" <slord@mathworks.com> wrote in message <ghromj$f8g$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Bruno Luong Date: 11 Dec, 2008 19:41:02 Message: 7 of 46 |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrplu$4in$1@fred.mathworks.com>... |
|
|
|
Subject: Why does everyone hate 'eval'? From: Bruno Luong Date: 11 Dec, 2008 20:32:03 Message: 9 of 46 |
|
"Matt" <mjacobson.removethis@xorantech.com> wrote in message <ghrsc8$194$1@fred.mathworks.com>... |
|
"Matt" <mjacobson.removethis@xorantech.com> wrote in message <ghrsc8$194$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Steve Amphlett Date: 11 Dec, 2008 21:03:03 Message: 11 of 46 |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrlim$oqo$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Budias Aao Date: 11 Dec, 2008 21:57:02 Message: 12 of 46 |
|
|
|
Subject: Why does everyone hate 'eval'? From: Oliver Woodford Date: 11 Dec, 2008 22:08:02 Message: 13 of 46 |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrlim$oqo$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Doug Schwarz Date: 11 Dec, 2008 23:03:22 Message: 14 of 46 |
|
In article <ghs302$qm8$1@fred.mathworks.com>, |
|
Subject: Why does everyone hate 'eval'? From: Doug Schwarz Date: 11 Dec, 2008 23:08:51 Message: 15 of 46 |
|
In article <ghrplu$4in$1@fred.mathworks.com>, |
|
Subject: Why does everyone hate 'eval'? From: Roger Stafford Date: 11 Dec, 2008 23:27:02 Message: 16 of 46 |
|
"Johan Carlson" <Johan.E.Carlson@gmail.com> wrote in message <ghrplu$4in$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Oliver Woodford Date: 11 Dec, 2008 23:39:04 Message: 17 of 46 |
|
Doug wrote: |
|
Subject: Why does everyone hate 'eval'? From: Steven Lord Date: 12 Dec, 2008 15:57:43 Message: 18 of 46 |
|
|
|
Subject: Why does everyone hate 'eval'? From: Matt Fig Date: 12 Dec, 2008 17:16:03 Message: 19 of 46 |
|
I myself don't 'hate' eval, but I find that it is slower than other methods, when they exist. Just as an example, here is a function that is meant to duplicate the output of bsxfun written two ways. They are substantially the same, both grow arrays in a loop and both do a repmatting, but one uses eval and the other doesn't. I find that the eval version is more than 2 times slower, depending on the inputs. |
|
Subject: Why does everyone hate 'eval'? From: Roger Stafford Date: 13 Dec, 2008 01:34:01 Message: 20 of 46 |
|
"Steven Lord" <slord@mathworks.com> wrote in message <ghu1ln$pn9$1@fred.mathworks.com>... |
|
"Johan Carlson" |
|
Subject: Why does everyone hate 'eval'? From: Roger Stafford Date: 13 Dec, 2008 05:10:19 Message: 22 of 46 |
|
"us " <us@neurol.unizh.ch> wrote in message <ghv5ut$fj7$1@fred.mathworks.com>... |
|
|
|
Subject: Why does everyone hate 'eval'? From: Bruno Luong Date: 13 Dec, 2008 07:35:07 Message: 24 of 46 |
|
"us " <us@neurol.unizh.ch> wrote in message <ghv5ut$fj7$1@fred.mathworks.com>... |
|
|
|
"us " <us@neurol.unizh.ch> wrote in message <ghv5ut$fj7$1@fred.mathworks.com>... |
|
Subject: Why does everyone hate 'eval'? From: Praetorian Date: 13 Dec, 2008 17:53:45 Message: 27 of 46 |
|
On Dec 13, 9:16=A0am, "?yvind" <oyv...@gmail.com> wrote: |
|
Praetorian <ashish.sadanandan@gmail.com> wrote in message <4b2672cf-f966-4714-a857-82abaa812e6d@z27g2000prd.googlegroups.com>... |
|
Subject: Why does everyone hate 'eval'? From: Doug Schwarz Date: 14 Dec, 2008 02:03:02 Message: 29 of 46 |
|
In article <gi0n41$ap4$1@fred.mathworks.com>, |
|
Subject: Why does everyone hate 'eval'? From: Praetorian Date: 14 Dec, 2008 02:10:18 Message: 30 of 46 |
|
On Dec 13, 4:03=A0pm, "?yvind" <oyv...@gmail.com> wrote: |
|
Praetorian <ashish.sadanandan@gmail.com> wrote in message <9e91603f-17c3-4e81-ad47-33379c3e8b95@p2g2000prf.googlegroups.com>... |
|
Subject: Why does everyone hate 'eval'? From: Praetorian Date: 14 Dec, 2008 08:37:20 Message: 32 of 46 |
|
On Dec 14, 1:00=A0am, "?yvind" <oyv...@gmail.com> wrote: |
|
Subject: Why does everyone hate 'eval'? From: Steven Lord Date: 15 Dec, 2008 15:54:25 Message: 33 of 46 |
|
|
|
Subject: Why does everyone hate 'eval'? From: Rune Allnor Date: 15 Dec, 2008 16:33:33 Message: 34 of 46 |
|
On 15 Des, 16:54, "Steven Lord" <sl...@mathworks.com> wrote: |
|
"Steven Lord" |
|
"us " |
|
"Matt" <mjacobson.removethis@xorantech.com> wrote in message <ghrujf$d4d$1@fred.mathworks.com>... |
|
"Darik" <dgambleDEL@uwaterlooDEL.caDEL> wrote in message <gi654q$sfk$1@fred.mathworks.com>... |
|
|
|
Subject: Why does everyone hate 'eval'? From: Loren Shure Date: 9 Feb, 2009 15:20:40 Message: 40 of 46 |
|
In article <gmk92h$ls9$1@fred.mathworks.com>, xys@whatever.com says... |
|
|
|
Loren Shure <loren@mathworks.com> wrote in message |
|
Subject: Why does everyone hate 'eval'? From: Loren Shure Date: 11 Feb, 2009 15:07:10 Message: 43 of 46 |
|
In article <gmtcoa$rqf$1@fred.mathworks.com>, xys@whatever.com says... |
|
Subject: Why does everyone hate 'eval'? From: Tim Davis Date: 17 Feb, 2009 22:03:03 Message: 44 of 46 |
|
assignin ('tongue', cheek) ; |
|
"Tim Davis" |
|
"Steven Lord" |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| humor | Tim Davis | 17 Feb, 2009 17:03:57 |
| subsref | Matt | 7 Feb, 2009 10:28:19 |
| builtin | Matt | 7 Feb, 2009 10:28:09 |
| code | us | 15 Dec, 2008 11:50:16 |
| inline | us | 15 Dec, 2008 11:50:16 |
| evil eval | Joerg Buchholz | 11 Dec, 2008 13:45:05 |
| eval | Adam | 11 Dec, 2008 13:35:48 |
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.
Contact us at files@mathworks.com