CSC/ECE 517 Fall 2010/ch3 3e br: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 25: Line 25:
[http://en.wikipedia.org/wiki/File:LISP_machine.jpg Lisp] is the second-oldest high-level programming language in common use
[http://en.wikipedia.org/wiki/File:LISP_machine.jpg Lisp] is the second-oldest high-level programming language in common use
today (after FORTRAN).  Invented in 1958 by John McCarthy at Massachusetts Institute of Technology, LISP was first actually implemented  
today (after FORTRAN).  Invented in 1958 by John McCarthy at Massachusetts Institute of Technology, LISP was first actually implemented  
[[File:|link=http://upload.wikimedia.org/wikipedia/commons/1/16/LISP_machine.jpg]]
[[File:LISP_machine.jpg|link=http://upload.wikimedia.org/wikipedia/commons/1/16/LISP_machine.jpg]]


====Perl====
====Perl====

Revision as of 15:24, 3 October 2010

eval() [Computer Programming]

Introduction

The eval facility is one of the most powerful features of Ruby (as well as other dynamic languages). Kernel.eval method will parse and execute an arbitrary string of legal Ruby source code. To put it plainly, if your Ruby program can generate a string of valid Ruby code, the Kernel.eval method can evaluate that code. The eval facility gives developers the ability to modify the runtime behavior of program. Illustrate the practical advantages of Ruby's eval(...) and compare it with similar mechanisms in other languages.

Origin

LISP The first actual implementation of LISP was by Steve Russell. He realized that the Lisp eval function could be implemented in machine code.[3] The result was a working Lisp interpreter which could be used to run Lisp programs, or more properly, 'evaluate Lisp expressions.'

[[File:http://en.wikipedia.org/wiki/File:LISP_machine.jpg%7C]

Security risks

[1] Eval, Retrieved October, 2010.

Context

Implementation

Dynamic Programming Languages

Lisp

Lisp is the second-oldest high-level programming language in common use today (after FORTRAN). Invented in 1958 by John McCarthy at Massachusetts Institute of Technology, LISP was first actually implemented File:LISP machine.jpg

Perl

Ruby

JavaScript

PHP

Python

ColdFusion

Static Programming Languages

Java

GroovyShell

Command Line interpreters

Unix

References

[2] Eval, Retrieved October, 2010.