Have you heard about Kotlin? Is this a
new JVM-oriented programming language from JetBrains?
Until yesterday, Kotlin could only
be read and fantasized.
And yesterday, the language development team opened for everyone to access the Kotlin web-code editor with the ability to compile and run. Welcome to
http://kotlin-demo.jetbrains.com !
Here is what you can do now:
- Play with ready-made examples and puzzles.
- Run your JVM code running on our server. Those. You can use familiar classes from JDK.
- You can also compile Kotlin-code in JavaScript and run it in a browser
The code editor is already able to highlight errors “on the fly” or at the time of launch (by default), formatting the code and provides auto-completion by Ctrl + Space.
The project is under development and will be actively developed. Further the library is promised for more convenient work with JDK extensions such as collections, etc., more examples and interesting tasks.
')
Your ideas, sensible suggestions, and bug reports are very welcome in the
project's bug tracker .
And if you want to compete and get a prize, then we offer these 2 tasks:
1) Given a string, find the longest word in it. A word is a sequence of Latin letters, bounded by line boundaries or characters that are not Latin letters.
2) Translate the number in the Roman record to decimal.
Post links to the code (through gist for example) in the comments. The authors of the first correct decisions will receive a T-shirt with the Kotlin logo from us.
Good luck!