Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
493258 | Procedia Technology | 2012 | 8 Pages |
Abstract
Pure method is a method, which does not have any side effects or the extent of the side effect is limited. Purity Analysis is the technique of determining pure methods. Purity information can be used to perform program analysis, specification, verification and optimization. The extent of side effects in a program can be expressed in terms of Degree of Purity. Degree of purity measures the side effects in different areas such as accessing of files, objects and variables, violation of programming constraints and possible exceptions. This paper proposes a model that measures the degree of purity of programming languages and implements it in scala. This allows us to determine concurrency in a program and execution in multi core machine.
Related Topics
Physical Sciences and Engineering
Computer Science
Computer Science (General)