News for hackers. Stuff that matters.
Re:Graal and Truffle could accelerate programming language d... by kodablah on Tuesday July 19, 2016 @01:16PM (#12123090)
The Oracle flavors of the JVM/JDK probably scare too many away with regards to redistribution of their product. That coupled with the fact that things like the AOT engine is closed source and the weight of the JVM for anything besides daemons (both mentioned towards the end of the article) probably keep language designers away these days.

I would love a lightweight toolkit that made for easy language development. VMKit[0] is dead, MicroVM[1] is a nice idea but not full fledged. Many like myself looking to implement a toy language would love to be fast out of the gate and would rather not mess with the OS-specific constructs and specifics of LLVM IR. So we end up cross-compiling to existing languages or marrying ourselves to a certain runtime (e.g. the CLR). Any other lightweight VMs or AOT compilers that are cross-platform that language designers can use these days?

0 - http://vmkit.llvm.org/ 1 - http://microvm.github.io/

Re:Graal and Truffle could accelerate programming language d... by frankpf on Tuesday July 19, 2016 @01:41PM (#12123317)
QBE[1] seems to be what you're looking for. It "aims to be a pure C embeddable backend that provides 70% of the performance of advanced compilers in 10% of the code".

Previous discussion on HN: https://news.ycombinator.com/item?id=11555527

[1]: http://c9x.me/compile/

Re:Graal and Truffle could accelerate programming language d... by kodablah on Tuesday July 19, 2016 @02:27PM (#12123699)
Neat, I missed this when originally posted. Sadly, it falls apart on the "cross-platform" requirement (does not appear to support Windows).
Re:Graal and Truffle could accelerate programming language d... by the8472 on Tuesday July 19, 2016 @01:22PM (#12123160)
Graal/Truffle is not a proprietary part of the JDK, i.e. it's also part of OpenJDK. The article mentions this.

Some tangential things mentioned are proprietary though.

Re:Graal and Truffle could accelerate programming language d... by mahmoudimus on Tuesday July 19, 2016 @01:29PM (#12123227)
I think we should start to see post-Java9 a less resource intensive JVM, even more so with Java10. The problem boils down to if there exists an alternative ecosystem that is going to be as featureful and as powerful in the meantime. I am bullish on Oracle here, as much as I hate to say it
Re:Graal and Truffle could accelerate programming language d... by merb on Tuesday July 19, 2016 @04:24PM (#12124615)
yeah java9/10/11 stuff is probably a little bit late.
Re:Graal and Truffle could accelerate programming language d... by pjmlp on Tuesday July 19, 2016 @05:21PM (#12125012)
Yeah, the problem is that it will only appear around 2020 and meanwhile the competion doesn't stand still.

Also we still have deployments using EOL Java versions that don't get upgraded, because IT doesn't want to change those servers.

Re:Graal and Truffle could accelerate programming language d... by geodel on Tuesday July 19, 2016 @01:24PM (#12123171)
Also sometime back there use to be OpenJDK maxine VM project which is gone and now an option of closed source SubstrateVM appeared.

It may be unlikely but Oracle can simply remove highly paid staff from above mentioned projects and put in some closed source alternative/analogous projects. Open source project may then be left to rot. As it is almost every single developer on Graal etc is Oracle labs or Oracle funded research group at university.

Re:Graal and Truffle could accelerate programming language d... by Scarbutt on Tuesday July 19, 2016 @01:29PM (#12123222)
check out RPython.
Re:Graal and Truffle could accelerate programming language d... by kodablah on Tuesday July 19, 2016 @01:33PM (#12123259)
I should have mentioned one of my wants was a pluggable type system. Maybe not a full type inferencing component (that would be nice!) but at least static typing at the IR level.