JScala. Write your JavaScript in Scala
Upcoming SlideShare
Loading in...5
×
 

JScala. Write your JavaScript in Scala

on

  • 940 views

JScala library allows you to translate your Scala code to JavaScript. You can express your data and logic as Scala code and reuse it on both server and client sides. It uses Scala macros and macro ...

JScala library allows you to translate your Scala code to JavaScript. You can express your data and logic as Scala code and reuse it on both server and client sides. It uses Scala macros and macro annotations features, yet experimental but very powerful technics. Even though JScala is a young project you already can implement quite complex logic.

Statistics

Views

Total Views
940
Views on SlideShare
922
Embed Views
18

Actions

Likes
1
Downloads
1
Comments
0

5 Embeds 18

https://twitter.com 9
http://www.eventifier.com 5
http://eventifier2013.agilealliance.org 2
http://eventifier.com 1
http://www.eventifier.co 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

JScala. Write your JavaScript in Scala JScala. Write your JavaScript in Scala Presentation Transcript

  • JScala Write you JavaScript in Scala. Let it be type safe! Alexander Nemish @atlanter
  • What is JScala? • JavaScript AST • Scala macros • JavaScript pretty printer • Macro annotations • Typescript import
  • Why JScala? • Type safety • IDE support • Modularity • Single language • No boilerplate View slide
  • Example View slide
  • Example
  • Features • Variables, functions, lambdas • if, for, for..in, while, match, try/throw • classes, traits, inheritance • Array/Traversable, Map • JsDynamic • Injection
  • Manual AST
  • Macro example
  • Generated JavaScript
  • Show Tetris
  • Server code
  • Client code
  • Generated JavaScript
  • Show AES web app
  • @Typescripted
  • JScala Cons • Subset of Scala • Covers only basic parts of the library • Uses experimental Scala features
  • Thank you! • http://jscala.org • https://github.com/nau/jscala • https://github.com/apezel/ts2scala • Google Group: jscala-user • Follow me on twitter: @atlanter • Email: anemish@gmail.com