Scala.js - Write in Scala for the browser
lampwww.epfl.ch
Scala.js - Write in Scala for the browser
1–10 of 33 posts
Re: Scala.js - Write in Scala for the browser
#2Re: Scala.js - Write in Scala for the browser
#31.) increase difficulty debugging (compiled js -> scala) 2.) decrease productivity, see #1
Why not just write javascript? Though that's my argument against any of these compile to js kits (coffee script being the big one). So maybe I'm just trolling (sorry).
Again, super cool. The author is waaay smarter than I for implementing this, but... The real world.
Re: Scala.js - Write in Scala for the browser
#416MB runtime is really painful. Having to pack a huge amount of the standard library (List is backed by a lot of other traits for example) into the js is going to be very difficult to reduce.
Seeing the presentation, I'm thinking more of using it with something like node-webkit[1] though. Didn't LightTable use clojure-script or something? But then, why don't just use one of JVM's GUI framework?
Re: Scala.js - Write in Scala for the browser
#5While in principal, I love this... Because JS is not my favorite language... I just don't see the real world benefit. It's going to: 1.) increase difficulty debugging (compiled js -> scala) 2.) decrease productivity, see #1 Why not just write javascript? Though that's my argument against any of these compile to js kits (coffee script being the big one). So maybe I'm just trolling (sorry). Again, super cool. The autho…
Re: Scala.js - Write in Scala for the browser
#6How much of this is (b)?
Re: Scala.js - Write in Scala for the browser
#7While in principal, I love this... Because JS is not my favorite language... I just don't see the real world benefit. It's going to: 1.) increase difficulty debugging (compiled js -> scala) 2.) decrease productivity, see #1 Why not just write javascript? Though that's my argument against any of these compile to js kits (coffee script being the big one). So maybe I'm just trolling (sorry). Again, super cool. The autho…
Re: Scala.js - Write in Scala for the browser
#816MB runtime is really painful. Having to pack a huge amount of the standard library (List is backed by a lot of other traits for example) into the js is going to be very difficult to reduce.
Yeah, and I'm not sure scala will be that useful without the standard libs, much like C# or Java. Seeing the presentation, I'm thinking more of using it with something like node-webkit[1] though. Didn't LightTable use clojure-script or something? But then, why don't just use one of JVM's GUI framework? [1]: https://github.com/rogerwang/node-webkit
Also I just want to mention that Clojurescript compiles to javascript that's compatible with Google's Closure compiler, which can do dead code elimination and will remove the parts of the standard library that you don't use.
Re: Scala.js - Write in Scala for the browser
#9While in principal, I love this... Because JS is not my favorite language... I just don't see the real world benefit. It's going to: 1.) increase difficulty debugging (compiled js -> scala) 2.) decrease productivity, see #1 Why not just write javascript? Though that's my argument against any of these compile to js kits (coffee script being the big one). So maybe I'm just trolling (sorry). Again, super cool. The autho…
Re: Scala.js - Write in Scala for the browser
#10I have not used Scala before. What's the motivation for this? I can think of two reasons - a) to make native Scala programmers feel home with Javascript and b) Scala is a superior language than Javascript, will therefor make many things easier. How much of this is (b)?
That said- it's not a superior language, just a different paradigm. With Scala you get very strong typing, functional constructs (so incredibly powerful), matching, options, very clean closure syntax, etc.. You'll eventually fall in-love with _, too.
I haven't used scala.js yet, but here are some downsides to Scala proper: * slow the compile * tooling isn't great (this true of anything jvm to some degree though)