Janino 2511 Freeware

Janino 2511 Freeware
  • Downloads: 258
  • Requirements: .
  • Size: 1.62
  • Licence:
  • Version: 0
  • Added At: 2007-01-10
  • Publisher Site:



Janino 2511 Freeware

Share

a useful compiler which reads a java expression, block, or source file, and generates java bytecode.janino is not intended to be a development tool, but an embedded compiler for run-time compilation purposes, such as expression evaluators or "server pages" engines like jsp.

the major design goal was to keep the compiler small and simple, while partially sacrificing completeness. nobody likes the idea of carrying around huge libraries for simple applications. see parser for the list of implemented and missing language features.

this software is a useful compiler which reads a java expression, block, or source file, and generates java bytecode that is loaded and executed directly.

when do you need an efficient expression evaluator?

say you build an e-commerce system, which computes the shipping cost for the items that the user put into his/her shopping cart. because you don't know the merchant's shipping cost model at implementation time, you could implement a set of shipping cost models that come to mind (flat charge, by weight, by number of items, ...) and select one of those at run-time.

in practice, you will most certainly find that the shipping cost models you implemented will rarely match what the merchant wants, so you must add custom models, which are merchant-specific. if the merchant's model changes later, you must change your code, re-compile and re-distribute your software.

because this is so unflexible, the shipping cost expression should be specified at run-time, not at compile-time. this implies that the expression must be scanned, parsed and evaluated at run-time, which is why you need an expression evaluator.

a simple expression evaluator would parse an expression and create a "syntax tree". the expression "a + b * c", for example, would compile into a "sum" object who's first operand is parameter "a" and who's second operand is a "product" object who's operands are parameters "b" and "c".

such a syntax tree can evaluated relatively quickly. however, the run-time performance is about a factor of 100 worse than that of native java code.


a useful compiler which reads a java expression, block, or source file, and generates java bytecode.janino is not intended to be a development tool, but an embedded compiler for run-time compilation purposes, such as expression evaluators or "server pages" engines like jsp.

the major design goal was to keep the compiler small and simple, while partially sacrificing completeness. nobody likes the idea of carrying around huge libraries for simple applications. see parser for the list of implemented and missing language features.

this software is a useful compiler which reads a java expression, block, or source file, and generates java bytecode that is loaded and executed directly.

when do you need an efficient expression evaluator?

say you build an e-commerce system, which computes the shipping cost for the items that the user put into his/her shopping cart. because you don't know the merchant's shipping cost model at implementation time, you could implement a set of shipping cost models that come to mind (flat charge, by weight, by number of items, ...) and select one of those at run-time.

in practice, you will most certainly find that the shipping cost models you implemented will rarely match what the merchant wants, so you must add custom models, which are merchant-specific. if the merchant's model changes later, you must change your code, re-compile and re-distribute your software.

because this is so unflexible, the shipping cost expression should be specified at run-time, not at compile-time. this implies that the expression must be scanned, parsed and evaluated at run-time, which is why you need an expression evaluator.

a simple expression evaluator would parse an expression and create a "syntax tree". the expression "a + b * c", for example, would compile into a "sum" object who's first operand is parameter "a" and who's second operand is a "product" object who's operands are parameters "b" and "c".

such a syntax tree can evaluated relatively quickly. however, the run-time performance is about a factor of 100 worse than that of native java code.


�. you can free download Janino 2511 Freeware now.
Soft85 only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here






comments powered by Disqus

Download Janino 2511 Freeware _FREE_