News for hackers. Stuff that matters.
Re:Scala on LLVM by DanielRibeiro on Tuesday August 06, 2013 @04:46AM (#6165500)
Scala can also host the JVM (well, a subset of it, enough to run itself): https://github.com/lihaoyi/Metascala
Re:Scala on LLVM by octo_t on Tuesday August 06, 2013 @05:09AM (#6165572)
http://www.dzone.com/links/videopresentation_compiling_scala... for a video on the project, explaining the rationale etc by the author.
Re:Scala on LLVM by iso-8859-1 on Tuesday August 06, 2013 @06:17AM (#6165729)
Not working. This one is, though: http://www.infoq.com/presentations/Scala-LLVM
Re:Scala on LLVM by auggierose on Tuesday August 06, 2013 @07:04AM (#6165892)
"This is the paper presented at the Second Scala Workshop to be held at Stanford on June 2nd 2011."

Not a good sign.

Re:Scala on LLVM by terhechte on Tuesday August 06, 2013 @02:46AM (#6165177)
Note: It seems the author hasn't had time working on this project for the last couple of months. Still, I think it might be interesting for others to know about this project, maybe someone wants to play around with this.
Re:Scala on LLVM by ericssmith on Tuesday August 06, 2013 @07:29AM (#6165959)
Indeed. I just found this yesterday, and it is an interesting project. Not sure I'll be able to contribute in the next few months, but I certainly will "play around" with it.
Re:Scala on LLVM by doogle88 on Tuesday August 06, 2013 @04:08AM (#6165389)
Do you know how complete this is at the moment?
Re:Scala on LLVM by terhechte on Tuesday August 06, 2013 @04:47AM (#6165503)
I haven't tried it myself yet, but I really wish that somebody would continue working on this as I think it is an awesome project. My CS knowledge is not deep enough to work on this myself, I fear. The author wrote this about the project in February (on the mailing list):

"So, it's not dead but there's (currently) noone working on it besides me and my time for it is very limited (to barely more than zero over the last year). I'm hopeful that I'll be able to find more time, hopefully around summer. That said, if anyone is interested in working on it, I'm more than happy to have the help. I do promise to make some time to work with potential contributors, but as you can see my latency can be pretty bad at times. "

And last year in June he wrote this: "Also, most any normal scala program will not work since many parts of the standard library are not compatible yet with LLVM (because of java library dependencies)."

Which probably still stands as there's no way to easily convert the java library to Scala and then to llvm.

Re:Scala on LLVM by yareally on Tuesday August 06, 2013 @05:04AM (#6165551)
There is a way to convert Java straight to LLVM. I would guess the developer is already aware of that though

https://llvm.org/svn/llvm-project/java/trunk/docs/java-front...

Re:Scala on LLVM by gsnedders on Tuesday August 06, 2013 @05:21AM (#6165599)
The LLVM FAQ states, however:

> There is an incomplete version of a Java front end available in the java module. There is no documentation on this yet so you'll need to download the code, compile it, and try it.

Re:Scala on LLVM by octo_t on Tuesday August 06, 2013 @05:09AM (#6165568)
Theres a talk from ScalaDays last year (I think) where the answer is basically "its not"
Re:Scala on LLVM by est on Tuesday August 06, 2013 @04:23AM (#6165426)
This project is so cool, only Elixir on Xen could be just as cool.
Re:Scala on LLVM by eru on Tuesday August 06, 2013 @04:42AM (#6165481)
Re:Scala on LLVM by est on Tuesday August 06, 2013 @05:07AM (#6165564)
Holycrap, exokernel is the most brilliant idea I've heard today. I don't have to mess with sk_buffer anymore!
Re:Scala on LLVM by eru on Tuesday August 06, 2013 @05:45AM (#6165654)
Years ago there was lots of excitement about exokernels coming out of MIT. They haven't gotten anywhere much, yet.
Re:Scala on LLVM by seanmcdirmid on Tuesday August 06, 2013 @06:43AM (#6165793)
Sure they have, you'd just have to look deep inside google to see their influence, probably.
Re:Scala on LLVM by gngeal on Tuesday August 06, 2013 @05:19AM (#6165596)
I wonder, how is this different from the venerable VM/CMS approach?
Re:Scala on LLVM by eli_gottlieb on Tuesday August 06, 2013 @02:11PM (#6168176)
Their "unikernels" paper was one of the most brilliant I've read in months.
Re:Scala on LLVM by Historiopode on Tuesday August 06, 2013 @07:24AM (#6165949)
I think that is rather straightforward: http://elixir-lang.org/blog/2013/05/02/elixir-on-xen/

Most of the work really is on the Erlang side of things.

Re:Scala on LLVM by delinka on Tuesday August 06, 2013 @09:14AM (#6166343)
Am I missing something about the terminology? This claims to be an "LLVM backend for Scala" which sounds wrong. Perhaps you want a backend that compiles LLVM AST to JVM bytecode. Or perhaps you want a Scala frontend that compiles Scala to LLVM AST.

Unless they really intend to compile LLVM AST into Scala ... and then what?

Re:Scala on LLVM by bronxbomber92 on Tuesday August 06, 2013 @10:39AM (#6166803)
"LLVM backend for the Scala compiler". There ya go, no ambiguity.
Re:Scala on LLVM by auggierose on Tuesday August 06, 2013 @10:25AM (#6166722)
What's front or back depends obviously on what your point of view is: Scala or LLVM.