Compilation vs. Interpretation 
Author Message
 Compilation vs. Interpretation

     |> Does anyone have an opinion as to whether or not it is appropriate
     to |> use dynamic compilation in a deployed application. That is,
     |> your application with the compiler classes that are used to convert
     |> strings of text entered by users into compiled code.
     |> Example: I need to write an application that includes filtering or
     |> testing. The filtering consists of complex boolean logic.
     |> I have three options (that I can think of): |>
     |>      1. Devise a custom script language and interpret it at runtime
     |>      2. Allow users to write Smalltalk code that gets compiled |>
           and executed (i.e a block)
     |>      3. Take my custom script language and convert it into |>
       Smalltalk code that is then compiled and executed. |>
     |>      ------ stuff deleted -------- |>
     |> Are there any 'patterns' that address this issue? |>
     |> Thanks in advance.
     |> Faisal Waris
     |> Trecom Business System
     |> Consultant at BellSouth Technologies |> (205) 977-7985 (Sorry no
     email yet)

     This is a perfect example of the "Interpreter" pattern in the Gamma,
     Helms, Johnson and Vlissides book ("Design Patterns: Elements of
     Reusable Object Oriented Software").

     Check there for a good example (although the example is C++, it's
     generic enough to adapt)

     Kyle Brown
     Knowledge Systems Corp.

Sat, 11 Oct 1997 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Compilation vs Interpretation

2. HW compilation vs SW compilation

3. RFI: compilation semantics in interpretation state

4. Arbitrary combinations of compilation and interpretation semantics: Implementation

5. RFI: different routines for compilation & interpretation

6. Articles about Prolog's compilation/interpretation

7. immediate vs. compilation semantics

8. conditional compilation (was C++ vs Modula-2)

9. Filenames vs Compilation Unit Names

10. Filenames vs Compilation Names

11. f95 vs. F compilation question

12. Special compilation action for defalut compilation sematics


Powered by phpBB® Forum Software