Questions tagged [ceylon]

Ceylon programming language for Java and JavaScript virtual machines.

Ceylon is a modern, modular, statically typed programming language for Java and JavaScript virtual machines. The language features a flexible and very readable syntax, a unique and uncommonly elegant static type system, a powerful module architecture, and excellent tooling, including awesome Eclipse- and IntelliJ-based IDEs.

The Ceylon language is defined by a readable specification.

Since 'Hello World' is the traditional way to introduce a language, here's how it looks in Ceylon:

shared void hello()
        => print("Hello, World!");

To learn more, you can start with the quick introduction or take the in-depth tour of Ceylon.


Current release: 1.3.3 (Contents May Differ)

  • Ceylon is open source on Github
  • Ceylon 1.4 is under development including migration of the compiler to the Eclipse Foundation.

Ceylon is:

  • Powerful: Ceylon's powerful flow-sensitive static type system catches many bugs while letting you express more, more easily: union and intersection types, tuples, function types, mixin inheritance, enumerated types, and reified generics.
  • Readable: We spend more time reading other people's code than writing our own. Therefore, Ceylon prioritizes readability, via a highly regular syntax, support for treelike structures, and elegant syntax sugar where appropriate.
  • Predictable: Ceylon controls complexity with clarity. The language eschews magical implicit features with ambiguous corner cases. The compiler follows simple, intuitive rules and produces meaningful errors.

Ceylon offers:

  • A platform: Ceylon is a whole platform with amodern SDK designed from scratch. It runs on both Java and JavaScript virtual machines, bridging the gap between client and server. Ceylon is fully interoperable with Java and the Java SDK, and with JavaScript and its libraries.
  • With modularity: Modularity is at the very core of the language, SDK, and tooling. The compiler produces module archives which are then distributed via a next-generation repository architecture with Ceylon Herd as its social focus point.
  • And tooling: Static typing is the technology that enables killer tools. Ceylon comes with a complete command line toolset, and awesome Eclipse- and IntelliJ-based IDEs with searching, refactoring, quick fixes + assists, autocompletion, debugging, and much more.
114 questions
0
votes
1 answer

Minify ceylon-sdk and ceylon-language when compiling to javascript

For an in-browser application written in ceylon-js it would be desirable to reduce the size of the ceylon.language-1.2.0.js file to only that what is actually needed. This question was answered already. How to use ceylon js (also with google closure…
user3464741
0
votes
1 answer

How to use ceylon code in a web page?

I'm trying to use javaSCript in a web page according to this tutorial ceylon.language-1.2.0-model.js. Where can I get that. Also is there an easier way than what is described in that tutorial?
jgleoj23
  • 262
  • 2
  • 9
0
votes
1 answer

why recursive factorial is faster than fold in ceylon

I have this ceylon code : Integer fact(Integer n) { return (n<=1)then 1 else n*fact(n-1); } Integer? factorial(Integer|String|Null n) { Integer? num; if(is String n) { num=parseInteger(n); } else if(is Integer n) …
niceman
  • 2,653
  • 29
  • 57
0
votes
1 answer

Can I use the Ceylon language with RoboVM (iOS)?

I'm getting lately interested in the JVM, thanks to this awesome language called Ceylon. So if RoboVM enables you to write Java targetting iOS, I'm wondering if there could be a way to use Ceylon with RoboVM? Thanks!
knocte
  • 16,941
  • 11
  • 79
  • 125
0
votes
1 answer

Importing java.lang in Ceylon

I have a simple import from java.lang at the top of my file: import java.lang {UnsupportedOperationException} As expected, I get this error: Package not found in imported modules: java.lang (add module import to module descriptor of…
drhagen
  • 8,331
  • 8
  • 53
  • 82
0
votes
1 answer

Ceylon not implemented error

What is Ceylon's idiom for indicating that a function is not implemented? I often want to see if a design will typecheck before going through the trouble of implementing all the functions. Presumably, this means having the body throw an error, which…
drhagen
  • 8,331
  • 8
  • 53
  • 82
0
votes
3 answers

Can't import any java classes

HelloWorld.ceylon import java.util { HashMap } //Error:(1, 8) ceylon: package not found in imported modules: java.util (define a module and add module import to its module descriptor) void run() { print("test"); } module.properties module…
kandi
  • 1,098
  • 2
  • 12
  • 24
0
votes
2 answers

Splitting a list into n other lists, and other questions

I haven't quite verified the correctness and lack of off-by-one bugs, but bear with me for a moment. The goal here is to deal/split a deck of cards (defined as a {Card*}) into multiple Decks (which optionally take a {Card*} as a constructor…
Max
  • 4,882
  • 2
  • 29
  • 43
0
votes
1 answer

Ceylon String not being recognized by Swing

I have just started playing with Ceylon and I really like it... But I ran into this problem when using Swing... I want to add components to a JPanel using a BorderLayout. This is the code I am using: import javax.swing { JLabel, SwingUtilities {…
Renato
  • 12,940
  • 3
  • 54
  • 85
1 2 3 4 5 6 7
8