Questions tagged [evaluation]

Anything related to evaluation of expressions, i.e. the process used to determine the value of expressions in a running program.

What is it?

Evaluation is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.

Related tags

  • The tag may be used more specifically for the execution or invocation of evaluations.
  • For more specific questions use tags such as for example

See also:

1334 questions
8
votes
1 answer

Perl - evaluation order of list elements, with assignment inside the list

According to Perldoc( https://perldoc.perl.org/perlop#Comma-Operator ): Comma Operator ... In list context, it's just the list argument separator, and inserts both its arguments into the list. These arguments are also evaluated from left to…
gypark
  • 612
  • 7
  • 26
8
votes
1 answer

How does R evaluate these weird expressions?

I was trying to make Python 3-style assignment unpacking possible in R (e.g., a, *b, c = [1,2,3], "C"), and although I got so close (you can check out my code here), I ultimately ran into a few (weird) problems. My code is meant to work like this: a…
Zeke
  • 617
  • 1
  • 6
  • 15
8
votes
3 answers

C# logical operation question

why this is true: (true | false & false) and this is false: (true | false && false) in my mind should be the oposite..
Rodolfo
  • 181
  • 1
  • 1
  • 9
8
votes
1 answer

Unable to call function defined by partialmethod

I'm want to use Python3 partialmethod and I can't call the resultant function. My code is based on the example from the Python documentation https://docs.python.org/release/3.6.4/library/functools.html from functools import partialmethod class…
M Wade
  • 177
  • 1
  • 11
8
votes
2 answers

How can I enable "implicit evaluation" in the JetBrains Rider settings?

JetBrains Rider does not give me the new value for my watches automatically. Instead, I have to click refresh after every step: I went to the settings and made sure this option was enabled: However, the problem still occurs. Any help would be…
sethpblue
  • 81
  • 2
8
votes
2 answers

will the result of `let` and `where` expressions be stored in haskell?

I am rather new to Haskell and after reading this and some performance tips on strictness I am still wondering how this applies to let and where expressions. If I have code like: f :: Int -> Int -> Int f a b |a==b =
Chris
  • 710
  • 7
  • 15
8
votes
4 answers

Limiting Starts or Run Time for Evaluation Software in C# and Windows

Are there any good ways to limit the number of times an application can start or limit how long it can be used for under Windows 7 and using C#? As far as I can see the registry can be easily edited, there are programs to report any kind of file…
Andy
  • 938
  • 1
  • 10
  • 21
8
votes
2 answers

Why does a strict length function perform noticeably faster?

I toyed around with definitions to better understand the evaluation model, and wrote two for the length of a list. The naive definition: len :: [a] -> Int len [] = 0 len (_:xs) = 1 + len xs The strict (and tail-recursive) definition: slen :: [a] ->…
MasterMastic
  • 20,711
  • 12
  • 68
  • 90
8
votes
2 answers

Non standard evaluation in Hadley's advanced R book

In Hadley's Advanced R book, there is a piece of code that I cannot understand the output. f <- function(x) substitute(x) g <- function(x) deparse(f(x)) g(1:10) g(x) g(x + y ^ 2 / z + exp(a * sin(b))) Why do they all return "x"? Especially when g…
Heisenberg
  • 8,386
  • 12
  • 53
  • 102
8
votes
4 answers

When evaluating an iPhone dev shop, best questions to ask?

We are currently in the process of evaluating a couple of iPhone development shops and we're putting together a list of questions/topics that we'll be asking them about when we meet. To make sure that we have the most relevant areas covered, what…
Georges
  • 804
  • 9
  • 15
8
votes
2 answers

what is f-measure for each class in weka

When we evaluate a classifier in WEKA, for example a 2-class classifier, it gives us 3 f-measures: f-measure for class 1, for class 2 and the weighted f-measure. I'm so confused! I thought f-measure is a balanced measure that show balanced…
MSepehr
  • 890
  • 2
  • 13
  • 36
7
votes
5 answers

Should I use an expression parser in my Math game?

I'm writing some children's Math Education software for a class. I'm going to try and present problems to students of varying skill level with randomly generated math problems of different types in fun ways. One of the frustrations of using computer…
anon
7
votes
3 answers

Getting started in WPF

We are evaluating the use of WPF for an upcoming project. We plan to "commercialize" some of our internal tools and could really use some of the effects WPF offers. We also like the idea of the design layer and code layers being independent to allow…
Scott
7
votes
1 answer

C++: What is the evaluation order of the user-defined comma operator?

I was reading the "C++ 17 Completed Guide" by Nicolai Josuttis and came across the following expression: foo(arg1), (foo(arg2), foo(arg3)); The author claims that the evaluation order will be left to right for the built-in comma operators, but it…
Denis
  • 2,786
  • 1
  • 14
  • 29
7
votes
1 answer

Calling a Scheme function using its name from a list

Is it possible to call a Scheme function using only the function name that is available say as a string in a list? Example (define (somefunc x y) (+ (* 2 (expt x 2)) (* 3 y) 1)) (define func-names (list "somefunc")) And then call the somefunc…
commsoftinc
  • 71
  • 1
  • 3