News for hackers. Stuff that matters.
Re:Scala Native with Denys Shabalin – Software Engineering D... by groceryheist on Wednesday October 18, 2017 @09:54PM (#15504896)
Any reason to use Scala native when Rust exists?
Re:Scala Native with Denys Shabalin – Software Engineering D... by lmm on Thursday October 19, 2017 @04:46AM (#15506406)
Higher-kinded types (worth it for this alone), existing library ecosystem, better tool support, politics. I do hope Rust reaches a stage where it can a substitute for Scala, but without HKT it will never be as productive.
Re:Scala Native with Denys Shabalin – Software Engineering D... by densh on Wednesday October 18, 2017 @10:32PM (#15505061)
You can think of Scala Native as Go on steroids. We don’t try to compete with Rust at all.
Re:Scala Native with Denys Shabalin – Software Engineering D... by edko on Wednesday October 18, 2017 @11:58PM (#15505373)
I am not sure Akka already runs on Scala Native, but if/when it does, that would be my first reason.
Re:Scala Native with Denys Shabalin – Software Engineering D... by pjmlp on Thursday October 19, 2017 @01:17AM (#15505630)
The language is more powerful, Rust still doesn't have HKT support.

The maturity of the eco-system.

Not having to deal with the borrow checker.

In any case, I would say in such cases OCaml and Haskell are also good candidates.

Re:Scala Native with Denys Shabalin – Software Engineering D... by bad_user on Thursday October 19, 2017 @01:44AM (#15505712)
Rust is in a different league altogether.

Scala, Haskell, OCaml are garbage collected languages. This makes them easier to use, but some problems are out of reach.

Embedded development, kernels, native apps requiring performance without frames dropped, real-time systems actually, including consumer stuff like decoding video, these have been the domain of C/C++.

Of course, there are projects out there using these languages, pushing the boundaries, like MirageOS (https://mirage.io/) which is built with OCaml. But those are like the exceptions confirming the rule.

Re:Scala Native with Denys Shabalin – Software Engineering D... by pjmlp on Thursday October 19, 2017 @01:51AM (#15505733)
Java is doing quite well in such domains, including real time control of battleship weapon systems and missile radar controls.

The ongoing NLL work proves ergonomics are still not there, and it doesn't cover all scenarios like internal references as done typically for callbacks in GUI widgets.

It will surely improve, and the best thing for polyglot developers is that we can easily pick the best tool for the job.

Re:Scala Native with Denys Shabalin – Software Engineering D... by didibus on Thursday October 19, 2017 @01:40PM (#15509899)
Powerful is a strange choice of word. Did you meant to say more expressive?

I feel like if anything, Rust sounds more powerful to me, greater performance, control over memory, low level unsafe access, etc.

Re:Scala Native with Denys Shabalin – Software Engineering D... by walkingolof on Thursday October 19, 2017 @06:20AM (#15506742)
There is plenty of Scala developers that needs to write for example command line tools etc that benefit greatly from the startup times of a native application.
Re:Scala Native with Denys Shabalin – Software Engineering D... by pacala on Wednesday October 18, 2017 @10:10PM (#15504972)
Garbage collection.