background preloader

FreeMarker Java Template Engine - Overview

FreeMarker Java Template Engine - Overview

Time - Java date and time API - Home Release 2.7 is the current latest release. This release is considered stable and worthy of the 2.x tag. See the upgrade notes for full details. Joda-Time requires Java SE 5 or later and has no dependencies. Available in Maven Central. <dependency><groupId>joda-time</groupId><artifactId>joda-time</artifactId><version>2.7</version></dependency> The 2.x product line will be supported using standard Java mechanisms. Joda-Time v2.x is an evolution of the 1.x codebase, not a major rewrite. StringTemplate Template Engine

What's New in Java 8 by Adam L. Davis Java 8 is a giant step forward for the Java language. In Project Lambda, Java gets a new closure syntax (lambda expressions), method-references, and default and static methods on interfaces. It manages to add many of the features of functional languages without losing the clarity and simplicity Java developers have come to expect. In addition, many of the existing Java core library classes have been enhanced with the new Streams API. This ebook will help you understand Java 8, including: Project Lambda, the new Date-Time API, Streams, default methods, Nashorn, and more. This book is 100% complete and available in print here and other places. 10% of all proceeds go directly to the Electronic Frontier Foundation (EFF). Disclaimer: Java is a registered trademark of Oracle.

Cheetah - The Python-Powered Template Engine ant Helma Templates: Tail Call Optimization and Java I was recently asked whether Java SE 8 contained an optimization for tail calls, which are a special kind of function call. This optimization is most relevant for recursive calls, which are particularly important for functional languages, as they often rely on recursive design and coding patterns. In this article, I examine exactly what a tail call is, how it can be optimized effectively, and where Java 8 stands in terms of implementing this optimization. Before we dive in, let's define a tail call. What is A Tail Call? A tail call is a fancy term that refers to a situation in which a method or function call is the last instruction inside of another method or function (for simplicity, I'll refer to all calls as function calls from now on). int foo(int a) { a = a + 1; return func(a); } The call to function func() is the last statement in function foo(), hence it's a tail call. You might be wondering why all of these semantics are important. Tail Call Optimization Described ... !

Related: