|
|
Home : Development : Other
Janino
Janino Details:
| Publisher:
|
Arno Unkrig |
| Version:
|
2.3.15 |
| License:
|
Freeware |
| Price:
|
$0.00 |
| Operating Systems:
|
Win95,Win98,WinME,WinNT 3.x,WinNT 4.x,Windows2000,WinXP,Unix,Linux,Mac PPC |
| System Requirements:
|
JDK 1.3.1 or above |
| File Size:
|
0.10 MB |
| Total Views:
|
448 |
| Total Downloads:
|
0 |
| Rating:
|
(4 out of 5 Stars) |
| Release Date:
|
11/9/2002 |
| Last Update:
|
2/26/2006 |
|
|
Janino Short Description:
An embedded Java compiler that compiles expressions or scripts on-the-fly.
|
Janino Long Description:
Janino is a compiler that reads a Java expression, block, or source file, and generates Java bytecode that is loaded and executed directly. It 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.
Properties
The major design goal was to keep the compiler small and simple, while partially sacrificing completeness. I don't like the idea of carrying around huge libraries for simple applications. See Parser for the list of implemented and missing language features.
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.
|
Janino Keywords:
Java Compiler Embedded Expression evaluation Script Scripting JVM Virtual Machine Bytecode run-time compilation JSP server pages
|
|
|
We deliver articles like below right to your inbox for free:
Best Registry Cleaners To Speed Up Your PC
by David Anthony
It is very important to maintain and scan the system registry from time-to-time. Finding the best registry fix to do the job can be somewhat confusing to many novice users. The windows registry holds information on the computers application you have installed/uninstalled, hardware drivers, files and more. Overtime this information can get out-of-date and large in size which can result in your PC becoming extremely slow or even display problems such as dll errors, missing files issues, path...
Java Software Development Services
by Palak Bhatt
Java is a programming language and this language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to byte code that can run on any Java virtual machine (JVM) regardless of computer architecture whereas Radix is not lagged behind for this language implementation to the related fields. Services of Radix in Java consulting and softwa...
How Do I Download Music to My PSP
by Jordan Micheal
How do anyone like I download music to my psp device from the personal computer? All you need simply is a USB cable to connect your psp device to the personal computer. Yes, it's that simple and here are the main steps, I like to share with everyone, on how do I download music to my psp device. A. PSP device to personal computer connection Firstly, use the USB cable to connect your psp device to your personal computer. Then press on the psp "home" button, which is at the...
How To Convert Movies To PSP
by Jordan Micheal
Do you find it frustrating trying to understand how to convert movies to PSP? You can read the PSP manual from first to last page and you will still be a bit confused on how to start. I bought one and it took me a while to figure it out. I love watching all sorts of movies that interests me and it keeps me occupied especially in the long commute from home to work. With the PSP console I can enjoy watching movies while I'm on the move. The problem now is how to convert movies to PSP. <...
Hosting Geeklog Sites----Leading To a Booming Online Community
by Fat Jack
The weblogs are increasingly viewed as a cheaper alternative of expensive content management system. It makes no difference whether you are an entrepreneur or a man with opinions to share, the weblog system offers you the least complicated mode of reaching out to maximum number of audiences. Today variety of Weblog-publishing systems are around, but only a few stands out in the crowd for their easy to set up and maintenance features and Geeklog is probably the most popular among them....
|
Recommended Products:
|
|
|
|
|