News for hackers. Stuff that matters.
Re:Scala on LLVM by oelang on Friday March 04, 2016 @12:24PM (#11225243)
This project has been discontinued. But fear not, a new scala-native is on the way, Denys Shabalin a phd student at EPFL is working on completely new implementation of scala-native. His previous work, scala offheap, a way to use off-heap memory on the JVM with type- and memory-safety is very impressive.
Re:Scala on LLVM by thinkpad20 on Friday March 04, 2016 @12:37PM (#11225374)
Would native-compiled scala allow for some of the features that have been prevented by the need for Java semantic compatibility, like guaranteed tail call optimization?
Re:Scala on LLVM by duaneb on Friday March 04, 2016 @12:41PM (#11225408)
> like guaranteed tail call optimization?

Isn't this what the @tailrec annotation is for? If it compiles it's tail recursive. This is separate than actually JIT'ing the call bytecode into a loop, I realize, but for a pragmatic engineer there's already a solution.

Re:Scala on LLVM by densh on Friday March 04, 2016 @12:44PM (#11225433)
@tailrec works only for simple cases of tail recursion. For example it doesn't support mutual tail recursion at the moment.
Re:Scala on LLVM by densh on Friday March 04, 2016 @12:39PM (#11225397)
Yes, especially talking about better tail call optimisation.
Re:Scala on LLVM by JLangley on Friday March 04, 2016 @01:02PM (#11225578)
Really looking forward to hearing this talk!

I wonder if there will be any potential for C++ interop. I would __LOVE__ to be able to code Scala that can be called from and in turn call C++ interfaces.

Re:Scala on LLVM by btown on Friday March 04, 2016 @06:31PM (#11227557)
I mean, there's nothing stopping you from writing JNI wrappers; they work with anything that uses the JVM.

http://hohonuuli.blogspot.com/2013/08/a-simple-java-native-i...