Let’s Kode Together!

As Kotlin Web Demo is the simplest way to try Kotlin. Today we unveil some new features that make it even more fun.

HTML5 Canvas

We added support for HTML5 Canvas (for the JavaScipt back-end) so that you can now do something like:


Watch it in action on YouTube: http://youtu.be/iee75Dtw83k

Note that in order to use Canvas, you need to select the JavaScript (Canvas) run configuration in the panel on the right.

Sharing your programs

Also, you can now save a program you wrote in and share a public link to it:

  1. Go to the Web Demo, and log in with you Google, Facebook or Twitter account.
  2. Write a program, e.g. solve a problem from the Problems section, Save it in your private space.
  3. Share your solution with everyone: press the Public link button next to your saved program and press the button next to the URL, or share the link any other way.

As an example, here’s a public link to the program from the video above:
http://kotlin-demo.jetbrains.com/?publicLink=104074971561017308771626401859
(It is written by Pavel Talanov.)

P.S. BTW, you can now have local functions in your programs, as well as the new form of when.

About Andrey Breslav

Andrey is the lead language designer working on Project Kotlin at JetBrains. He also works on making the Java language better, serving as a Java Community Process expert in a group for JSR-335 ("Project Lambda"), and occasionally speak at software conferences such as Devoxx or JavaOne.
This entry was posted in General. Bookmark the permalink.

4 Responses to Let’s Kode Together!

  1. guangyu says:

    I viewed and ran the program (
    http://kotlin-demo.jetbrains.com/?publicLink=104074971561017308771626401859), and found:

    So cool.
    1) The code was concise;
    2) The appearance is beautiful && fluent.

  2. MuppetGate says:

    That is seriously impressive. :-)

    So you’re writing a Javascript library as well?

  3. Peter says:

    I like the example for ‘when’ in the documentation :D

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">