Note: information on this page refers to Ceylon 1.2, not to the current release.
Example programs and applications
We're collecting examples here.
Examples of client-side Ceylon
We have three small demo application which illustrate the use of Ceylon in a web browser:
Examples of full-stack applications
- The Ceylon Web IDE is a great example of how to build a modern web application using Ceylon, making use of Ceylon's HTTP and JSON APIs, and interoperation with native Java libraries. The example even supports deployment to OpenShift.
- The DDDSample demonstrates the use of Ceylon in Java EE.
Simple examples
Learn how to use Ceylon with these Java frameworks:
- Weld and Guice with Ceylon, based on this blog post.
Examples of libraries
The Ceylon SDK includes plenty of good examples of Ceylon code, including:
-
ceylon.collection
demonstrates some very typical usage of generics. -
ceylon.file
demonstrates the use of enumerated types and shows how to wrap a native Java API. -
ceylon.regex
is a cross-platform module that demonstrates the use ofnative
declarations anddynamic
blocks. -
ceylon.locale
is a cross-platform module that demonstrates the use of resource loading. -
ceylon.test
demonstrates some very typical usage of the metamodel. -
ceylon.promise
demonstrates advanced use of abstraction over function types. -
ceylon.json
illustrates a rather cool use of union types.