-
Notifications
You must be signed in to change notification settings - Fork 63
Sulong with Swift? #654
Comments
Hi, Swift would be interesting, yes. However, we did not yet try it. Currently we test Sulong with C/C++ and Fortran compiled with Clang 3.2 or GCC 4.6. -Matthias |
thanks for the feedback. Btw, I am absolutely not familiar with llvm itself, but since swift has its own front end and then it compiles to Swift IR and only then to LLVM IR, do you think it will complicate the LLVM IR that will kinda degrade its performance on JVM when comparing to Clang languages? I guess I need to integrate the sulong with swift toolchain and play around with it, seems very seductive 😄 |
I did not look at the LLVM IR produced by Swift yet. So I can not answer this question; sounds like a nice experiment though ;-) If you start playing around with Sulong and Swift, I'm happy to answer any questions you might have: [email protected] or Skype: grimmer_m |
Great, thanks! |
There is exactly one reason why you might want to use Sulong: to get seamless interoperability with other Truffle languages like Ruby, JavaScript, R or Python. Otherwise you could just compile the LLVM IR to native code and completely forget Sulong (and most of the time that would also be faster).
Depends. The Graal compiler can produce a self contained executable (= compile Sulong to a self contained executable; you can search for something called "SubstrateVM"). It can also run on top of a GraalVM which is just a JVM + Graal compiler as JIT. In both cases you end up with something like the
There are papers about both Graal/Truffle as well as Sulong. See docs/PUBLICATIONS.md and Graal/Publications and Presentations. |
Greeting guys,
Has anybody tried (or started) integrating Sulong with swift toolchain? Or its too early yet?
It just feels quite promising that sulong can potentially allow swift to target JVM.
(I just recently discovered sulong).
The text was updated successfully, but these errors were encountered: