I can't get hello_world to work, something about a unresolved dependency: org.scala-native#sbt-Scalia-native;0.1.0: not found I'm not a regular Scala user.
Scala Native v0.1
21–30 of 254 posts
Re: Scala Native v0.1
#22Earlier quoted context omitted.
Never touch a running system ;) Scala on JVM is much more tested than the new shiny thing. Also don't expect improved performance... many people think that the JVM is bloated and makes programs slower (this is mostly not true). The downsides of the JVM are more memory consumption/footprint (when you have e.g. small servers or micro instances) and the cold startup time of the JVM itself (which is not relevant on a ser…
Long time Java lover here. I agree with all your points, but in the context of Java at least (does Scala support this?) there is no simple static binary that can be built and released, which includes the JVM. I think 1.9 will have this option, but this is something I didn't realize I missed until I started work with Rust and Go. It makes deployment so much simpler.
Edit: thanks for the downvotes but you could at least tell me what's so crazy about my statement.
Re: Scala Native v0.1
#23The generated binary for simple Hello World is 3.45 MB which is quite a lot for printing one line of text but it can be compressed to 326K using UPX.
Re: Scala Native v0.1
#24Quick question: does this compile down to DOT before going to LLVM? Or has DOT not yet arrived in Scala Native?
Re: Scala Native v0.1
#25Re: Scala Native v0.1
#26Earlier quoted context omitted.
I think for Server-Application Scala on the JVM will probably beat Scala-Native. The benefits of Scala-Native over Scala JVM are: - faster startup time - (drastically) lower memory footprint - fine hand-tuning of you application All these things are not super important in server-applications. For example Java trades memory for throughput (higher memory footprint, but also higher throughput. These usually go hand in h…
For me most important benefit is running without pre-installed VM. Not particularly important for backend, but huge win for user-space tools.
Re: Scala Native v0.1
#27Somewhat relevant: https://blog.plan99.net/kotlin-native-310ffac94af2#.ijzik0jx... Title says Kotlin, but it is about JVM languages going native, in general. Or should they?
The Java ecosystem is playing huge catch up here, and I don't think it's a bad thing that people are exploring alternatives, whether that's Avian, the now defunct RoboVM, or LLVM-based backends.
Re: Scala Native v0.1
#28Nice work, I hope this will eventually be a serious alternative to the JVM route. Quick question: does this compile down to DOT before going to LLVM? Or has DOT not yet arrived in Scala Native?
[1] http://www.scala-lang.org/blog/2016/02/03/essence-of-scala.h...
Re: Scala Native v0.1
#29Re: Scala Native v0.1
#30It must be frustrating to work on a project like this, see areas where the language can be improved, but only be able to do the work to make it purely compatible. Hopefully some good comes out in the form of some good SIPs.