Live data from Hacker News

Announcing Scala.js v0.1

scala-lang.org

61–70 of 90 posts

Re: Announcing Scala.js v0.1

#61

Anyone know how the compilation times compare with regular Scala?

It's basically equivalent to Scala for the compilation itself (no noticeable difference). But the browser refresh in dev mode can take up to 5 seconds (or down to under 1 sec, depends on the machine). There is a tool that helps with this by using clever tricks to refresh the browser without reparsing the standard lib: https://github.com/lihaoyi/scala-js-workbench

Re: Announcing Scala.js v0.1

#62

It supports Node.js or is only for web applications?

It supports Javascript. Node.Js runs on Javascript. Draw your conclusions.

True, but its main target is definitely the browser. The stand-alone interpreter of Node.js can run code written in Scala.js, and is actually used for benchmarks (along with d8) [1]. However, Scala.js does not emit Node.js modules, nor does it provide any built-in way to import other Node.js modules.

[1] https://github.com/jonas/scalajs-benchmarks

Re: Announcing Scala.js v0.1

#63

This is a game changer. I've used it over the last few 3 or 4 months, and it is really stable and usable. I am betting an entire (although academic) project on it: http://proofpeer.net (note that Clojure is mentioned there as a language of choice, but I switched to Scala since then as Scala provides a similar level of conciseness with all the goodies of a powerful static type system with support for both Java and Jav…

Wow! I started working on a very similar idea half a year ago -- with machine learning and everything (my domain was proofgraph.org). I had to suspend it since it is larger than a one mans freetime project. I am very glad that someone started with a similar idea!

Will it be open source? I would be happy to contribute (I work full-time with Scala).

Re: Announcing Scala.js v0.1

#64
post #63

This is a game changer. I've used it over the last few 3 or 4 months, and it is really stable and usable. I am betting an entire (although academic) project on it: http://proofpeer.net (note that Clojure is mentioned there as a language of choice, but I switched to Scala since then as Scala provides a similar level of conciseness with all the goodies of a powerful static type system with support for both Java and Jav…

Wow! I started working on a very similar idea half a year ago -- with machine learning and everything (my domain was proofgraph.org). I had to suspend it since it is larger than a one mans freetime project. I am very glad that someone started with a similar idea! Will it be open source? I would be happy to contribute (I work full-time with Scala).

It is open source. I am sure the committers would be happy to get additional help.

Re: Announcing Scala.js v0.1

#65
post #47
post #44

Earlier quoted context omitted.

Mmmmm basically I think it's because Scala itself is in a really captivating position, so seeing these utilities emerge makes it that much more promising. I've switched from RoR to Scala on Play framework and at this point it's one of those things where you use & say "this is sick " but are still discouraged because the community is so small in comparison. But with Akka, with the Typesafe Console & other niceties you…

In my mind, Akka is the reason to use Scala right now. Actors are an incredibly powerful abstraction for building highly-concurrent, highly performant systems and the features Akka brings along—remoting, clustering and now event sourcing—make it a fantastic tool for these applications. But then, I'm a backend developer and Akka is more useful in that realm. Play still needs some work IMO. It's great if you need the r…

In my mind, Akka is the reason to use Scala right now.

Why? Akka works fine with Java, Kotlin, and most other JVM languages.

Re: Announcing Scala.js v0.1

#67

Too bad that there is not more effort on Scala.NET instead of this. Lots of people are comfortable with writing Javascript in the browser so all of these compilers emitting Javascript end up being little more than a technology demo. But Scala on the .NET vm would really fill a gap.

Why would you need anything on .net which already runs on the JVM? Is there any platform where you can install .net but not the JVM? Or does .net have a significantly better performance than the JVM?

Re: Announcing Scala.js v0.1

#69

Too bad that there is not more effort on Scala.NET instead of this. Lots of people are comfortable with writing Javascript in the browser so all of these compilers emitting Javascript end up being little more than a technology demo. But Scala on the .NET vm would really fill a gap.

Wouldn't it be a direct competitor for F# then instead of "filling the gap"? Scala has some more features, but the idea of fast and expressive functional-oop language is basically the same for both of them.

Also, F# was there first, has very good support in IDEs, integration with core .NET, etc. I think Scala would have a rather hard time on CLR (I may be biased, I don't know Scala very much and I worked with OCaml long before F# happened).

Re: Announcing Scala.js v0.1

#70
post #47

Earlier quoted context omitted.

In my mind, Akka is the reason to use Scala right now. Actors are an incredibly powerful abstraction for building highly-concurrent, highly performant systems and the features Akka brings along—remoting, clustering and now event sourcing—make it a fantastic tool for these applications. But then, I'm a backend developer and Akka is more useful in that realm. Play still needs some work IMO. It's great if you need the r…

In my mind, Akka is the reason to use Scala right now. Why? Akka works fine with Java, Kotlin, and most other JVM languages.

It's nowhere as elegant when used in Java though.
Post reply on HN