www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Graal VM

reply RazvanN <razvan.nitu1305 gmail.com> writes:
Hello everyone,

Has anyone heard of GraalVM [1]? It seems that this is a virtual 
machine that enables the writing of polyglot applications 
(applications that can mix code from different languages). The 
supported languages are Java-based (Scala, Kotlin), dynamic 
languages (Javascript, R, Ruby, Python) and LLVM-based languages 
(C and C++). This sounds like a really cool thing and I was 
wondering if D could be integrated with this (via ldc),

What do you guys think?

Cheers,
RazvanN

[1] https://www.graalvm.org/docs/reference-manual/polyglot/
Aug 30 2019
next sibling parent reply jmh530 <john.michael.hall gmail.com> writes:
On Friday, 30 August 2019 at 10:56:05 UTC, RazvanN wrote:
 Hello everyone,

 Has anyone heard of GraalVM [1]? [snip]
I had heard about it last year I think. Laeeth had tried to use dpp with it [1], but I haven't heard anything since then. [1] https://forum.dlang.org/post/ykvgbfstbyeaysmihqqm forum.dlang.org
Aug 30 2019
parent reply Laeeth Isharc <laeeth kaleidic.io> writes:
On Friday, 30 August 2019 at 12:34:50 UTC, jmh530 wrote:
 On Friday, 30 August 2019 at 10:56:05 UTC, RazvanN wrote:
 Hello everyone,

 Has anyone heard of GraalVM [1]? [snip]
I had heard about it last year I think. Laeeth had tried to use dpp with it [1], but I haven't heard anything since then. [1] https://forum.dlang.org/post/ykvgbfstbyeaysmihqqm forum.dlang.org
Dmitry O told me about it. When I got back home I tried using LDC in betterC mode and it just worked. I did some work that I didn't finish on making a wrapper out of polyglot.h Problem with porting runtime too is that graal doesn't have pthread even. I guess you could fake that and anything else you now. Dmitry looks to be working on transpiling D to Java via DMD motivated by running on Graal. I think he has Scala code at work but maybe other benefits from Graal. Very cool once it works.
Sep 03 2019
parent Jacob Carlborg <doob me.com> writes:
On 2019-09-04 00:55, Laeeth Isharc wrote:

 Dmitry looks to be working on transpiling D to Java via DMD motivated by 
 running on Graal.
Better to do it the other way around [1] :) [1] https://github.com/d-widget-toolkit/jport/tree/dev -- /Jacob Carlborg
Sep 04 2019
prev sibling next sibling parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Friday, 30 August 2019 at 10:56:05 UTC, RazvanN wrote:
 Hello everyone,

 Has anyone heard of GraalVM [1]? It seems that this is a 
 virtual machine that enables the writing of polyglot 
 applications (applications that can mix code from different 
 languages). The supported languages are Java-based (Scala, 
 Kotlin), dynamic languages (Javascript, R, Ruby, Python) and 
 LLVM-based languages (C and C++). This sounds like a really 
 cool thing and I was wondering if D could be integrated with 
 this (via ldc),

 What do you guys think?

 Cheers,
 RazvanN

 [1] https://www.graalvm.org/docs/reference-manual/polyglot/
Take a look at what Dmitry has recently been up to: https://github.com/DmitryOlshansky/dmd-graal ;)
Aug 30 2019
parent Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Friday, 30 August 2019 at 20:23:13 UTC, Petar Kirov 
[ZombineDev] wrote:
 On Friday, 30 August 2019 at 10:56:05 UTC, RazvanN wrote:
 Hello everyone,

 Has anyone heard of GraalVM [1]? It seems that this is a 
 virtual machine that enables the writing of polyglot 
 applications (applications that can mix code from different 
 languages). The supported languages are Java-based (Scala, 
 Kotlin), dynamic languages (Javascript, R, Ruby, Python) and 
 LLVM-based languages (C and C++). This sounds like a really 
 cool thing and I was wondering if D could be integrated with 
 this (via ldc),

 What do you guys think?

 Cheers,
 RazvanN

 [1] https://www.graalvm.org/docs/reference-manual/polyglot/
Take a look at what Dmitry has recently been up to: https://github.com/DmitryOlshansky/dmd-graal ;)
He should share his thoughts on the matter, but I think getting a SAoC / GSoC student to help would go along way to making many things in this area possible.
Aug 30 2019
prev sibling parent Laeeth Isharc <laeeth kaleidic.io> writes:
On Friday, 30 August 2019 at 10:56:05 UTC, RazvanN wrote:
 Hello everyone,

 Has anyone heard of GraalVM [1]? It seems that this is a 
 virtual machine that enables the writing of polyglot 
 applications (applications that can mix code from different 
 languages). The supported languages are Java-based (Scala, 
 Kotlin), dynamic languages (Javascript, R, Ruby, Python) and 
 LLVM-based languages (C and C++). This sounds like a really 
 cool thing and I was wondering if D could be integrated with 
 this (via ldc),

 What do you guys think?

 Cheers,
 RazvanN

 [1] https://www.graalvm.org/docs/reference-manual/polyglot/
Maybe similar sort of approach to how Sebastian Koppe is approaching wasm might be easiest?
Sep 03 2019